Browse Source

adjusted codemcp instructions; adjusted to-do list

Brandon Wong 1 year ago
parent
commit
a217556e4d
2 changed files with 10 additions and 0 deletions
  1. 9 0
      codemcp.toml
  2. 1 0
      popup/popup.js

+ 9 - 0
codemcp.toml

@@ -1,11 +1,20 @@
+# Claude Desktop project's instructions (in "project knowledge"):
+# "Initialize codemcp with <home>/projects/experiments/playlist/"
+# (use absolute path for <home> because otherwise the LLM will hallucinate a home path)
+
 project_prompt = '''
 - this is a firefox browser extension which manages a set of playlists, where each video is located at a url
 - it also tracks video playback history
 - playlist and history data is stored using the browser's storage API
 - the extension popup code is in the popup/ folder, and is implemented in Alpine.js
   - all the Alpine code must be in "CSP" mode, which means there can be no javascript expression strings in the html attributes (no `===` equality checks, no function calls) (favor binding in Alpine.data instead)
+  - the popup menu has several "views" (or tabs, or pages):
+    - the main view of the popup shows all the playlists and their unviewed vidoes, and some extra action buttons
+    - the individual playlist view shows all the videos of a playlist, including past (viewed) videos
+    - the history view shows the videos that have been played in the past, as well as individual play/pause/finished events
 - background.js adds context menus (for adding new videos to the playlist), and manages automatic browser navigation and history tracking
 - content_scripts/content.js is injected to add video playback event listeners
+- the shared/ folder contains functions that may be used across different parts of the extension
 - under no circumstances will there be any need to read or write files outside the code directory
   - do not execute any command that reads, writes, or searches for files outside the code directory
 - at the end of each request, before committing in git, save a copy of the contents of the context window (including the user's original prompt) to a file in the code folder with the filename of "<date>-codemcp-<feature name>.md"

+ 1 - 0
popup/popup.js

@@ -16,6 +16,7 @@ document.addEventListener("alpine:init", () => {
   // - button to add channel to youtube page (copy gql mutation to clipboard) (like the automa version)
   // - long-term: replace youtube page? rss feeds? need server?
   // X add personal rating feature ("enjoyed", "this was important", etc)
+  // - option to move video (including status) to another playlist
   Alpine.data("playlistManager", () => ({
     playlists: {},
     currentIndices: {},