@agent-native/core 0.114.6 → 0.114.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +15 -0
  3. package/corpus/core/package.json +1 -1
  4. package/corpus/core/src/cli/mcp-config-writers.ts +6 -4
  5. package/corpus/core/src/cli/mcp.ts +124 -0
  6. package/corpus/core/src/cli/skills-content/help.ts +4 -3
  7. package/corpus/core/src/cli/skills-content/index.ts +1 -0
  8. package/corpus/core/src/cli/skills-content/rewind-skill.ts +52 -0
  9. package/corpus/core/src/cli/skills.ts +115 -13
  10. package/corpus/core/src/mcp/screen-memory-stdio.ts +1360 -104
  11. package/corpus/core/src/mcp-client/index.ts +9 -0
  12. package/corpus/core/src/mcp-client/screen-memory-local.ts +847 -13
  13. package/corpus/core/src/server/agent-chat-plugin.ts +16 -9
  14. package/corpus/templates/analytics/app/components/dashboard/SqlChart.tsx +19 -7
  15. package/corpus/templates/analytics/app/hooks/use-chart-tooltip-portal.ts +60 -0
  16. package/corpus/templates/analytics/app/routes/chart.tsx +1 -1
  17. package/corpus/templates/analytics/changelog/2026-07-20-dashboard-requests-no-longer-stall-without-progress.md +6 -0
  18. package/corpus/templates/analytics/server/plugins/agent-chat.ts +6 -0
  19. package/corpus/templates/clips/actions/apply-rewind-extension.ts +195 -0
  20. package/corpus/templates/clips/actions/delete-agent-recording-if-unpromoted.ts +64 -0
  21. package/corpus/templates/clips/actions/get-rewind-extension-request.ts +22 -0
  22. package/corpus/templates/clips/actions/get-screen-memory-status.ts +18 -2
  23. package/corpus/templates/clips/actions/list-rewind-extension-requests.ts +52 -0
  24. package/corpus/templates/clips/actions/make-recording-private-for-rewind.ts +55 -0
  25. package/corpus/templates/clips/actions/query-screen-memory-context.ts +4 -4
  26. package/corpus/templates/clips/actions/request-rewind-extension.ts +81 -0
  27. package/corpus/templates/clips/actions/update-rewind-extension-request.ts +47 -0
  28. package/corpus/templates/clips/app/components/editor/editor-layout.tsx +25 -0
  29. package/corpus/templates/clips/app/components/editor/editor-toolbar.tsx +36 -0
  30. package/corpus/templates/clips/app/components/editor/rewind-extension-dialog.tsx +338 -0
  31. package/corpus/templates/clips/app/components/editor/stitch-manager.tsx +1 -16
  32. package/corpus/templates/clips/app/components/editor/timeline.tsx +26 -0
  33. package/corpus/templates/clips/app/i18n/en-US.ts +18 -0
  34. package/corpus/templates/clips/app/lib/ffmpeg-export.ts +19 -12
  35. package/corpus/templates/clips/app/lib/rewind-visibility.ts +31 -0
  36. package/corpus/templates/clips/app/lib/timestamp-mapping.ts +7 -0
  37. package/corpus/templates/clips/app/lib/upload-file-client.ts +17 -0
  38. package/corpus/templates/clips/changelog/2026-07-14-rewind-keeps-recent-screen-context-local-and-turns-it-into-clips.md +6 -0
  39. package/corpus/templates/clips/changelog/2026-07-17-active-clips-keep-rewind-stable-and-settings-clear.md +12 -0
  40. package/corpus/templates/clips/changelog/2026-07-17-clicking-the-clips-icon-during-a-recording-now-opens-the-app.md +6 -0
  41. package/corpus/templates/clips/changelog/2026-07-17-default-mic-now-uses-the-mac-default-and-transcription-shares-one-capture.md +6 -0
  42. package/corpus/templates/clips/changelog/2026-07-17-full-screen-clips-finalize-even-when-screencapturekit-stop-hangs.md +6 -0
  43. package/corpus/templates/clips/changelog/2026-07-17-normal-full-screen-clips-no-longer-stop-immediately-after-th.md +6 -0
  44. package/corpus/templates/clips/changelog/2026-07-17-rewind-can-hand-one-bounded-private-clip-to-your-agent.md +12 -0
  45. package/corpus/templates/clips/changelog/2026-07-17-rewind-home-can-copy-a-local-agent-prompt.md +6 -0
  46. package/corpus/templates/clips/changelog/2026-07-17-rewind-now-has-a-calm-home-status-focused-first-run-consent-.md +6 -0
  47. package/corpus/templates/clips/changelog/2026-07-17-rewind-settings-are-smaller-clearer-and-agent-first.md +6 -0
  48. package/corpus/templates/clips/changelog/2026-07-17-the-full-clips-interface-stays-available-while-recording.md +6 -0
  49. package/corpus/templates/clips/changelog/2026-07-18-rewind-organizes-recent-work-into-local-searchable-chapters.md +8 -0
  50. package/corpus/templates/clips/changelog/2026-07-18-searchable-rewind-chapters.md +6 -0
  51. package/corpus/templates/clips/changelog/2026-07-19-rewind-backed-recordings-now-start-immediately-after-the-cou.md +6 -0
  52. package/corpus/templates/clips/changelog/2026-07-20-rewind-can-set-up-your-local-agent-once-so-future-requests-w.md +6 -0
  53. package/corpus/templates/clips/desktop/package.json +1 -0
  54. package/corpus/templates/clips/desktop/scripts/sign-macos-local.ts +12 -1
  55. package/corpus/templates/clips/desktop/src/app.tsx +2498 -239
  56. package/corpus/templates/clips/desktop/src/components/ReadinessPanel.tsx +21 -1
  57. package/corpus/templates/clips/desktop/src/components/Switch.tsx +3 -0
  58. package/corpus/templates/clips/desktop/src/hooks/useMeetingTranscription.ts +156 -24
  59. package/corpus/templates/clips/desktop/src/lib/native-recording-warm.ts +6 -7
  60. package/corpus/templates/clips/desktop/src/lib/recorder.ts +1763 -1160
  61. package/corpus/templates/clips/desktop/src/lib/rewind-agent-prompt.ts +9 -0
  62. package/corpus/templates/clips/desktop/src/lib/rewind-recording-start.ts +20 -0
  63. package/corpus/templates/clips/desktop/src/main.tsx +3 -0
  64. package/corpus/templates/clips/desktop/src/overlays/countdown.tsx +14 -14
  65. package/corpus/templates/clips/desktop/src/overlays/onboarding.tsx +4 -4
  66. package/corpus/templates/clips/desktop/src/overlays/preparing.tsx +13 -0
  67. package/corpus/templates/clips/desktop/src/overlays/toolbar.tsx +27 -2
  68. package/corpus/templates/clips/desktop/src/shared/config.ts +16 -0
  69. package/corpus/templates/clips/desktop/src/styles.css +956 -134
  70. package/corpus/templates/clips/desktop/src-tauri/Cargo.toml +5 -0
  71. package/corpus/templates/clips/desktop/src-tauri/build.rs +69 -1
  72. package/corpus/templates/clips/desktop/src-tauri/src/accessibility.rs +386 -12
  73. package/corpus/templates/clips/desktop/src-tauri/src/capture_audio_bus.rs +382 -0
  74. package/corpus/templates/clips/desktop/src-tauri/src/capture_graph.rs +777 -0
  75. package/corpus/templates/clips/desktop/src-tauri/src/clips/mod.rs +249 -22
  76. package/corpus/templates/clips/desktop/src-tauri/src/config.rs +148 -1
  77. package/corpus/templates/clips/desktop/src-tauri/src/lib.rs +58 -4
  78. package/corpus/templates/clips/desktop/src-tauri/src/logfile.rs +13 -1
  79. package/corpus/templates/clips/desktop/src-tauri/src/native_screen/custom_capture.rs +1505 -51
  80. package/corpus/templates/clips/desktop/src-tauri/src/native_screen/live_upload.rs +124 -0
  81. package/corpus/templates/clips/desktop/src-tauri/src/native_screen.rs +1006 -95
  82. package/corpus/templates/clips/desktop/src-tauri/src/rewind_capture_suspension.rs +165 -0
  83. package/corpus/templates/clips/desktop/src-tauri/src/rewind_chapters.rs +2434 -0
  84. package/corpus/templates/clips/desktop/src-tauri/src/rewind_clip.rs +1650 -0
  85. package/corpus/templates/clips/desktop/src-tauri/src/rewind_egress.rs +643 -0
  86. package/corpus/templates/clips/desktop/src-tauri/src/rewind_local_ask.rs +803 -0
  87. package/corpus/templates/clips/desktop/src-tauri/src/rewind_meeting_history.rs +595 -0
  88. package/corpus/templates/clips/desktop/src-tauri/src/screen_memory.rs +2900 -91
  89. package/corpus/templates/clips/desktop/src-tauri/src/screen_memory_ocr.rs +360 -0
  90. package/corpus/templates/clips/desktop/src-tauri/src/screen_memory_transcript.rs +408 -0
  91. package/corpus/templates/clips/desktop/src-tauri/src/shortcuts.rs +114 -33
  92. package/corpus/templates/clips/desktop/src-tauri/src/state.rs +2 -2
  93. package/corpus/templates/clips/desktop/src-tauri/src/system_audio.rs +13 -3
  94. package/corpus/templates/clips/desktop/src-tauri/src/tray.rs +4 -1
  95. package/corpus/templates/clips/desktop/src-tauri/src/util.rs +7 -13
  96. package/corpus/templates/clips/desktop/src-tauri/src/whisper_speech.rs +198 -11
  97. package/corpus/templates/clips/desktop/src-tauri/tauri.alpha.conf.json +17 -0
  98. package/corpus/toolkit/CHANGELOG.md +6 -0
  99. package/corpus/toolkit/package.json +1 -1
  100. package/dist/cli/mcp-config-writers.d.ts +2 -2
  101. package/dist/cli/mcp-config-writers.d.ts.map +1 -1
  102. package/dist/cli/mcp-config-writers.js +6 -6
  103. package/dist/cli/mcp-config-writers.js.map +1 -1
  104. package/dist/cli/mcp.d.ts +14 -0
  105. package/dist/cli/mcp.d.ts.map +1 -1
  106. package/dist/cli/mcp.js +79 -0
  107. package/dist/cli/mcp.js.map +1 -1
  108. package/dist/cli/skills-content/help.d.ts +1 -1
  109. package/dist/cli/skills-content/help.d.ts.map +1 -1
  110. package/dist/cli/skills-content/help.js +4 -3
  111. package/dist/cli/skills-content/help.js.map +1 -1
  112. package/dist/cli/skills-content/index.d.ts +1 -0
  113. package/dist/cli/skills-content/index.d.ts.map +1 -1
  114. package/dist/cli/skills-content/index.js +1 -0
  115. package/dist/cli/skills-content/index.js.map +1 -1
  116. package/dist/cli/skills-content/rewind-skill.d.ts +2 -0
  117. package/dist/cli/skills-content/rewind-skill.d.ts.map +1 -0
  118. package/dist/cli/skills-content/rewind-skill.js +53 -0
  119. package/dist/cli/skills-content/rewind-skill.js.map +1 -0
  120. package/dist/cli/skills.d.ts +6 -0
  121. package/dist/cli/skills.d.ts.map +1 -1
  122. package/dist/cli/skills.js +90 -14
  123. package/dist/cli/skills.js.map +1 -1
  124. package/dist/collab/struct-routes.d.ts +1 -1
  125. package/dist/mcp/screen-memory-stdio.d.ts +365 -0
  126. package/dist/mcp/screen-memory-stdio.d.ts.map +1 -1
  127. package/dist/mcp/screen-memory-stdio.js +1014 -91
  128. package/dist/mcp/screen-memory-stdio.js.map +1 -1
  129. package/dist/mcp-client/index.d.ts +1 -1
  130. package/dist/mcp-client/index.d.ts.map +1 -1
  131. package/dist/mcp-client/index.js +1 -1
  132. package/dist/mcp-client/index.js.map +1 -1
  133. package/dist/mcp-client/screen-memory-local.d.ts +90 -0
  134. package/dist/mcp-client/screen-memory-local.d.ts.map +1 -1
  135. package/dist/mcp-client/screen-memory-local.js +590 -12
  136. package/dist/mcp-client/screen-memory-local.js.map +1 -1
  137. package/dist/observability/routes.d.ts +1 -1
  138. package/dist/progress/routes.d.ts +1 -1
  139. package/dist/provider-api/actions/provider-api.d.ts +4 -4
  140. package/dist/resources/handlers.d.ts +1 -1
  141. package/dist/server/agent-chat-plugin.d.ts +5 -0
  142. package/dist/server/agent-chat-plugin.d.ts.map +1 -1
  143. package/dist/server/agent-chat-plugin.js +10 -9
  144. package/dist/server/agent-chat-plugin.js.map +1 -1
  145. package/package.json +2 -2
  146. package/src/cli/mcp-config-writers.ts +6 -4
  147. package/src/cli/mcp.ts +124 -0
  148. package/src/cli/skills-content/help.ts +4 -3
  149. package/src/cli/skills-content/index.ts +1 -0
  150. package/src/cli/skills-content/rewind-skill.ts +52 -0
  151. package/src/cli/skills.ts +115 -13
  152. package/src/mcp/screen-memory-stdio.ts +1360 -104
  153. package/src/mcp-client/index.ts +9 -0
  154. package/src/mcp-client/screen-memory-local.ts +847 -13
  155. package/src/server/agent-chat-plugin.ts +16 -9
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/cli/skills-content/help.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,o7KA4EoC,CAAC"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/cli/skills-content/help.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,8hLA6EoC,CAAC"}
@@ -2,13 +2,14 @@ export const HELP = `npx @agent-native/core@latest skills
2
2
 
3
3
  Usage:
4
4
  npx @agent-native/core@latest skills list
5
- npx @agent-native/core@latest skills status [assets|content|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--json]
6
- npx @agent-native/core@latest skills update [assets|content|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--dry-run] [--json]
7
- npx @agent-native/core@latest skills add assets|content|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray [--client codex|claude-code|cowork|cursor|opencode|github-copilot|all] [--scope user|project] [--mode hosted|local-files|self-hosted] [--mcp-url <url>] [--no-connect] [--with-github-action] [--yes] [--dry-run] [--json]
5
+ npx @agent-native/core@latest skills status [assets|content|rewind|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--json]
6
+ npx @agent-native/core@latest skills update [assets|content|rewind|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--dry-run] [--json]
7
+ npx @agent-native/core@latest skills add assets|content|rewind|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray [--client codex|claude-code|cowork|cursor|opencode|github-copilot|all] [--scope user|project] [--mode hosted|local-files|self-hosted] [--mcp-url <url>] [--no-connect] [--with-github-action] [--yes] [--dry-run] [--json]
8
8
  npx @agent-native/core@latest skills add <manifest-or-app-dir|skill-repo> [--skill <name>] [--client ...] [--yes]
9
9
 
10
10
  Examples:
11
11
  npx @agent-native/core@latest skills add assets
12
+ npx @agent-native/core@latest skills add rewind --client codex --scope user --yes
12
13
  npx @agent-native/core@latest skills add content --mode local-files
13
14
  npx @agent-native/core@latest skills add design-exploration
14
15
  npx @agent-native/core@latest skills add visual-edit
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../../src/cli/skills-content/help.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDA4EiC,CAAC","sourcesContent":["export const HELP = `npx @agent-native/core@latest skills\n\nUsage:\n npx @agent-native/core@latest skills list\n npx @agent-native/core@latest skills status [assets|content|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--json]\n npx @agent-native/core@latest skills update [assets|content|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--dry-run] [--json]\n npx @agent-native/core@latest skills add assets|content|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray [--client codex|claude-code|cowork|cursor|opencode|github-copilot|all] [--scope user|project] [--mode hosted|local-files|self-hosted] [--mcp-url <url>] [--no-connect] [--with-github-action] [--yes] [--dry-run] [--json]\n npx @agent-native/core@latest skills add <manifest-or-app-dir|skill-repo> [--skill <name>] [--client ...] [--yes]\n\nExamples:\n npx @agent-native/core@latest skills add assets\n npx @agent-native/core@latest skills add content --mode local-files\n npx @agent-native/core@latest skills add design-exploration\n npx @agent-native/core@latest skills add visual-edit\n npx @agent-native/core@latest skills add visual-plan\n npx @agent-native/core@latest skills add visual-recap\n npx @agent-native/core@latest skills add visualize-repo\n npx @agent-native/core@latest skills add visual-recap --with-github-action\n npx @agent-native/core@latest skills add visual-plan --mode local-files\n npx @agent-native/core@latest skills add visual-plan --mode self-hosted --mcp-url https://my-plan-app.example.com\n npx @agent-native/core@latest skills status visual-plan\n npx @agent-native/core@latest skills update visual-plan\n npx @agent-native/core@latest skills update scaffold --project\n npx @agent-native/core@latest skills add visual-plan --no-connect\n npx @agent-native/core@latest skills add context-xray --client all\n npx @agent-native/core@latest skills add assets --client claude-code\n npx @agent-native/core@latest skills add assets --mcp-url https://my-app.ngrok-free.dev\n npx @agent-native/core@latest skills add ./dist/assets-skill --client codex\n npx @agent-native/core@latest skills add BuilderIO/skills --client codex --scope project\n npx @agent-native/core@latest skills add BuilderIO/skills --with-github-action\n\nThe add command installs the SKILL.md instructions, registers the app-backed\nMCP connector, and then authenticates it in one step so you do not hit an OAuth\nwall on the first tool call. Hosted installs can configure Claude Code, Codex,\nClaude Cowork, Cursor, OpenCode, and GitHub Copilot / VS Code; local-files\ninstruction installs target the shared .agents skill path used by Codex, Pi,\nCursor, OpenCode, Copilot, and similar agents, plus Claude Code's native skill\npath when selected. Pass --client to narrow it. Authentication reuses\n\"npx @agent-native/core@latest connect\": OAuth-capable clients (Claude Code,\nCursor, OpenCode, GitHub Copilot / VS Code) get URL-only entries and authenticate\ninside that host, while Codex / Cowork run the browser device-code flow. In a\nnon-interactive shell or CI the auth step is skipped and the exact\n\"npx @agent-native/core@latest connect <url> --client all\" command is printed instead.\n\nRunning \"npx @agent-native/skills@latest add ...\" uses this same shared install\nflow with the broader BuilderIO skills catalog enabled. Pass --no-connect to\nregister MCP where possible without authenticating (leave auth to the host or run\n\"npx @agent-native/core@latest connect\" later). Pass --mcp-url to register that connector against\na custom origin (an ngrok tunnel, a local dev server, or a self-hosted\ndeployment) instead of the built-in hosted default — a bare origin gets the\nstandard /mcp path appended. Use app-skill pack for marketplace\nbundles and custom adapter output.\n\nWhen installing visual-plan, visual-recap, or visualize-repo interactively, the\nCLI asks where Plans artifacts should live: hosted Plans for shareable\nlinks/comments, local files for \"No sharing, all local.\", or a\nself-hosted/custom Plan app URL.\nPass --mode to choose directly. Local-files mode skips MCP registration and\nauth and installs instructions that default to a no-auth block catalog fetch,\nMDX folders, and the localhost bridge viewer.\n\nWhen installing content with --mode local-files, the CLI installs Content\ninstructions and writes or updates agent-native.json with repo-backed Markdown /\nMDX roots for docs, blog, content, and resources. Use a local Content app, Agent\nNative Desktop, or another trusted local bridge for Content actions to read and\nwrite those files.\n\nWhen installing visual-recap interactively, the CLI offers to add the optional PR\nVisual Recap GitHub Action. Pass --with-github-action to write it directly, then\nrun \"npx @agent-native/core@latest recap setup\" / \"npx @agent-native/core@latest recap doctor\" to configure and\nverify GitHub Actions. Docs: https://www.agent-native.com/docs/pr-visual-recap.\n\nThe status/update commands inspect copied Agent Native skill folders and refresh\ntheir instruction files from the current @agent-native/core package. In generated\napps/workspaces, \"skills update scaffold --project\" refreshes the framework\nskills copied into the scaffold and repairs AGENTS.md / CLAUDE.md and\n.agents/skills / .claude/skills compatibility links.`;\n"]}
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../../../src/cli/skills-content/help.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDA6EiC,CAAC","sourcesContent":["export const HELP = `npx @agent-native/core@latest skills\n\nUsage:\n npx @agent-native/core@latest skills list\n npx @agent-native/core@latest skills status [assets|content|rewind|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--json]\n npx @agent-native/core@latest skills update [assets|content|rewind|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray|scaffold] [--client codex|claude-code|pi|all] [--scope user|project] [--dry-run] [--json]\n npx @agent-native/core@latest skills add assets|content|rewind|design-exploration|visual-edit|visual-plan|visual-recap|visualize-repo|context-xray [--client codex|claude-code|cowork|cursor|opencode|github-copilot|all] [--scope user|project] [--mode hosted|local-files|self-hosted] [--mcp-url <url>] [--no-connect] [--with-github-action] [--yes] [--dry-run] [--json]\n npx @agent-native/core@latest skills add <manifest-or-app-dir|skill-repo> [--skill <name>] [--client ...] [--yes]\n\nExamples:\n npx @agent-native/core@latest skills add assets\n npx @agent-native/core@latest skills add rewind --client codex --scope user --yes\n npx @agent-native/core@latest skills add content --mode local-files\n npx @agent-native/core@latest skills add design-exploration\n npx @agent-native/core@latest skills add visual-edit\n npx @agent-native/core@latest skills add visual-plan\n npx @agent-native/core@latest skills add visual-recap\n npx @agent-native/core@latest skills add visualize-repo\n npx @agent-native/core@latest skills add visual-recap --with-github-action\n npx @agent-native/core@latest skills add visual-plan --mode local-files\n npx @agent-native/core@latest skills add visual-plan --mode self-hosted --mcp-url https://my-plan-app.example.com\n npx @agent-native/core@latest skills status visual-plan\n npx @agent-native/core@latest skills update visual-plan\n npx @agent-native/core@latest skills update scaffold --project\n npx @agent-native/core@latest skills add visual-plan --no-connect\n npx @agent-native/core@latest skills add context-xray --client all\n npx @agent-native/core@latest skills add assets --client claude-code\n npx @agent-native/core@latest skills add assets --mcp-url https://my-app.ngrok-free.dev\n npx @agent-native/core@latest skills add ./dist/assets-skill --client codex\n npx @agent-native/core@latest skills add BuilderIO/skills --client codex --scope project\n npx @agent-native/core@latest skills add BuilderIO/skills --with-github-action\n\nThe add command installs the SKILL.md instructions, registers the app-backed\nMCP connector, and then authenticates it in one step so you do not hit an OAuth\nwall on the first tool call. Hosted installs can configure Claude Code, Codex,\nClaude Cowork, Cursor, OpenCode, and GitHub Copilot / VS Code; local-files\ninstruction installs target the shared .agents skill path used by Codex, Pi,\nCursor, OpenCode, Copilot, and similar agents, plus Claude Code's native skill\npath when selected. Pass --client to narrow it. Authentication reuses\n\"npx @agent-native/core@latest connect\": OAuth-capable clients (Claude Code,\nCursor, OpenCode, GitHub Copilot / VS Code) get URL-only entries and authenticate\ninside that host, while Codex / Cowork run the browser device-code flow. In a\nnon-interactive shell or CI the auth step is skipped and the exact\n\"npx @agent-native/core@latest connect <url> --client all\" command is printed instead.\n\nRunning \"npx @agent-native/skills@latest add ...\" uses this same shared install\nflow with the broader BuilderIO skills catalog enabled. Pass --no-connect to\nregister MCP where possible without authenticating (leave auth to the host or run\n\"npx @agent-native/core@latest connect\" later). Pass --mcp-url to register that connector against\na custom origin (an ngrok tunnel, a local dev server, or a self-hosted\ndeployment) instead of the built-in hosted default — a bare origin gets the\nstandard /mcp path appended. Use app-skill pack for marketplace\nbundles and custom adapter output.\n\nWhen installing visual-plan, visual-recap, or visualize-repo interactively, the\nCLI asks where Plans artifacts should live: hosted Plans for shareable\nlinks/comments, local files for \"No sharing, all local.\", or a\nself-hosted/custom Plan app URL.\nPass --mode to choose directly. Local-files mode skips MCP registration and\nauth and installs instructions that default to a no-auth block catalog fetch,\nMDX folders, and the localhost bridge viewer.\n\nWhen installing content with --mode local-files, the CLI installs Content\ninstructions and writes or updates agent-native.json with repo-backed Markdown /\nMDX roots for docs, blog, content, and resources. Use a local Content app, Agent\nNative Desktop, or another trusted local bridge for Content actions to read and\nwrite those files.\n\nWhen installing visual-recap interactively, the CLI offers to add the optional PR\nVisual Recap GitHub Action. Pass --with-github-action to write it directly, then\nrun \"npx @agent-native/core@latest recap setup\" / \"npx @agent-native/core@latest recap doctor\" to configure and\nverify GitHub Actions. Docs: https://www.agent-native.com/docs/pr-visual-recap.\n\nThe status/update commands inspect copied Agent Native skill folders and refresh\ntheir instruction files from the current @agent-native/core package. In generated\napps/workspaces, \"skills update scaffold --project\" refreshes the framework\nskills copied into the scaffold and repairs AGENTS.md / CLAUDE.md and\n.agents/skills / .claude/skills compatibility links.`;\n"]}
@@ -8,6 +8,7 @@
8
8
  export * from "./help.js";
9
9
  export * from "./assets-skill.js";
10
10
  export * from "./content-skill.js";
11
+ export * from "./rewind-skill.js";
11
12
  export * from "./design-exploration-skill.js";
12
13
  export * from "./design-visual-edit-skill.js";
13
14
  export * from "./plan-setup-auth.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/skills-content/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/skills-content/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
@@ -8,6 +8,7 @@
8
8
  export * from "./help.js";
9
9
  export * from "./assets-skill.js";
10
10
  export * from "./content-skill.js";
11
+ export * from "./rewind-skill.js";
11
12
  export * from "./design-exploration-skill.js";
12
13
  export * from "./design-visual-edit-skill.js";
13
14
  export * from "./plan-setup-auth.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/skills-content/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC","sourcesContent":["/**\n * Barrel for the large embedded-markdown string constants used by\n * `agent-native skills` (SKILL.md bodies, shared reference docs, and the CLI\n * help text). Split out of `skills.ts` so that file can lead with real CLI\n * logic instead of ~3,000 lines of data. Content is purely relocated here —\n * no bytes were changed.\n */\nexport * from \"./help.js\";\nexport * from \"./assets-skill.js\";\nexport * from \"./content-skill.js\";\nexport * from \"./design-exploration-skill.js\";\nexport * from \"./design-visual-edit-skill.js\";\nexport * from \"./plan-setup-auth.js\";\nexport * from \"./wireframe.js\";\nexport * from \"./canvas.js\";\nexport * from \"./document-quality.js\";\nexport * from \"./exemplar.js\";\nexport * from \"./connection.js\";\nexport * from \"./local-files.js\";\nexport * from \"./visual-plan-skill.js\";\nexport * from \"./visual-recap-skill.js\";\nexport * from \"./visualize-repo-skill.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/skills-content/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC","sourcesContent":["/**\n * Barrel for the large embedded-markdown string constants used by\n * `agent-native skills` (SKILL.md bodies, shared reference docs, and the CLI\n * help text). Split out of `skills.ts` so that file can lead with real CLI\n * logic instead of ~3,000 lines of data. Content is purely relocated here —\n * no bytes were changed.\n */\nexport * from \"./help.js\";\nexport * from \"./assets-skill.js\";\nexport * from \"./content-skill.js\";\nexport * from \"./rewind-skill.js\";\nexport * from \"./design-exploration-skill.js\";\nexport * from \"./design-visual-edit-skill.js\";\nexport * from \"./plan-setup-auth.js\";\nexport * from \"./wireframe.js\";\nexport * from \"./canvas.js\";\nexport * from \"./document-quality.js\";\nexport * from \"./exemplar.js\";\nexport * from \"./connection.js\";\nexport * from \"./local-files.js\";\nexport * from \"./visual-plan-skill.js\";\nexport * from \"./visual-recap-skill.js\";\nexport * from \"./visualize-repo-skill.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const REWIND_SKILL_MD = "---\nname: rewind\ndescription: >-\n Retrieve recent local Clips Rewind context when the user says \"Look at\n Rewind,\" asks what just happened, or refers to something they recently said\n or saw.\nmetadata:\n visibility: exported\n---\n\n# Rewind\n\nUse Clips Rewind as local screen memory. Start broad enough to find the right\nmoment, then read only the smallest relevant range.\n\n## Retrieval Flow\n\n1. Call `screen_memory_status` first. If the newest segment is still open,\n wait for it to finalize rather than substituting an older segment.\n2. Search `screen_memory_search_chapters` before requesting raw recent\n context. Use the user's words, the visible app or project, and the likely\n time range as clues.\n3. If several chapters plausibly match, show the candidates and ask which one\n the user means. Do not blend separate workstreams together.\n4. Read the smallest useful range with `screen_memory_recent_context`.\n Restate what you recovered before acting, and flag transcription or coverage\n uncertainty.\n5. Use `screen_memory_frame_at` for one exact visual moment or\n `screen_memory_contact_sheet` to scan a bounded range. Prefer local frames\n before escalating to cloud processing.\n6. Request the smallest relevant timestamp range through Clips' bounded private\n Clip handoff only when local text and frames are insufficient, such as\n garbled speech, important motion, dense analysis, or a Clip the user wants\n to keep and query later.\n\n## Boundaries\n\n- Rewind recordings, screenshots, audio, transcripts, OCR, and indexes remain\n local unless the user explicitly asks for a bounded Clip handoff.\n- Do not reveal archive filesystem paths, crawl Clips' app-data folders, or\n bypass the Screen Memory MCP broker.\n- Do not upload frames returned by local Screen Memory tools.\n- Treat foreground apps and chapter labels as evidence, not proof of intent.\n- If the Screen Memory MCP is missing, explain that the one-time setup needs to\n be repaired with:\n\n `npx -y @agent-native/core@latest skills add rewind --client <client> --scope user --yes`\n\n Replace `<client>` with the current compatible host: `codex`,\n `claude-code`, `cursor`, `opencode`, `github-copilot`, or `cowork`.\n Ask the user to restart the host if it cannot reload MCP servers in place.\n";
2
+ //# sourceMappingURL=rewind-skill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rewind-skill.d.ts","sourceRoot":"","sources":["../../../src/cli/skills-content/rewind-skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,myEAmD3B,CAAC"}
@@ -0,0 +1,53 @@
1
+ export const REWIND_SKILL_MD = `---
2
+ name: rewind
3
+ description: >-
4
+ Retrieve recent local Clips Rewind context when the user says "Look at
5
+ Rewind," asks what just happened, or refers to something they recently said
6
+ or saw.
7
+ metadata:
8
+ visibility: exported
9
+ ---
10
+
11
+ # Rewind
12
+
13
+ Use Clips Rewind as local screen memory. Start broad enough to find the right
14
+ moment, then read only the smallest relevant range.
15
+
16
+ ## Retrieval Flow
17
+
18
+ 1. Call \`screen_memory_status\` first. If the newest segment is still open,
19
+ wait for it to finalize rather than substituting an older segment.
20
+ 2. Search \`screen_memory_search_chapters\` before requesting raw recent
21
+ context. Use the user's words, the visible app or project, and the likely
22
+ time range as clues.
23
+ 3. If several chapters plausibly match, show the candidates and ask which one
24
+ the user means. Do not blend separate workstreams together.
25
+ 4. Read the smallest useful range with \`screen_memory_recent_context\`.
26
+ Restate what you recovered before acting, and flag transcription or coverage
27
+ uncertainty.
28
+ 5. Use \`screen_memory_frame_at\` for one exact visual moment or
29
+ \`screen_memory_contact_sheet\` to scan a bounded range. Prefer local frames
30
+ before escalating to cloud processing.
31
+ 6. Request the smallest relevant timestamp range through Clips' bounded private
32
+ Clip handoff only when local text and frames are insufficient, such as
33
+ garbled speech, important motion, dense analysis, or a Clip the user wants
34
+ to keep and query later.
35
+
36
+ ## Boundaries
37
+
38
+ - Rewind recordings, screenshots, audio, transcripts, OCR, and indexes remain
39
+ local unless the user explicitly asks for a bounded Clip handoff.
40
+ - Do not reveal archive filesystem paths, crawl Clips' app-data folders, or
41
+ bypass the Screen Memory MCP broker.
42
+ - Do not upload frames returned by local Screen Memory tools.
43
+ - Treat foreground apps and chapter labels as evidence, not proof of intent.
44
+ - If the Screen Memory MCP is missing, explain that the one-time setup needs to
45
+ be repaired with:
46
+
47
+ \`npx -y @agent-native/core@latest skills add rewind --client <client> --scope user --yes\`
48
+
49
+ Replace \`<client>\` with the current compatible host: \`codex\`,
50
+ \`claude-code\`, \`cursor\`, \`opencode\`, \`github-copilot\`, or \`cowork\`.
51
+ Ask the user to restart the host if it cannot reload MCP servers in place.
52
+ `;
53
+ //# sourceMappingURL=rewind-skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rewind-skill.js","sourceRoot":"","sources":["../../../src/cli/skills-content/rewind-skill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD9B,CAAC","sourcesContent":["export const REWIND_SKILL_MD = `---\nname: rewind\ndescription: >-\n Retrieve recent local Clips Rewind context when the user says \"Look at\n Rewind,\" asks what just happened, or refers to something they recently said\n or saw.\nmetadata:\n visibility: exported\n---\n\n# Rewind\n\nUse Clips Rewind as local screen memory. Start broad enough to find the right\nmoment, then read only the smallest relevant range.\n\n## Retrieval Flow\n\n1. Call \\`screen_memory_status\\` first. If the newest segment is still open,\n wait for it to finalize rather than substituting an older segment.\n2. Search \\`screen_memory_search_chapters\\` before requesting raw recent\n context. Use the user's words, the visible app or project, and the likely\n time range as clues.\n3. If several chapters plausibly match, show the candidates and ask which one\n the user means. Do not blend separate workstreams together.\n4. Read the smallest useful range with \\`screen_memory_recent_context\\`.\n Restate what you recovered before acting, and flag transcription or coverage\n uncertainty.\n5. Use \\`screen_memory_frame_at\\` for one exact visual moment or\n \\`screen_memory_contact_sheet\\` to scan a bounded range. Prefer local frames\n before escalating to cloud processing.\n6. Request the smallest relevant timestamp range through Clips' bounded private\n Clip handoff only when local text and frames are insufficient, such as\n garbled speech, important motion, dense analysis, or a Clip the user wants\n to keep and query later.\n\n## Boundaries\n\n- Rewind recordings, screenshots, audio, transcripts, OCR, and indexes remain\n local unless the user explicitly asks for a bounded Clip handoff.\n- Do not reveal archive filesystem paths, crawl Clips' app-data folders, or\n bypass the Screen Memory MCP broker.\n- Do not upload frames returned by local Screen Memory tools.\n- Treat foreground apps and chapter labels as evidence, not proof of intent.\n- If the Screen Memory MCP is missing, explain that the one-time setup needs to\n be repaired with:\n\n \\`npx -y @agent-native/core@latest skills add rewind --client <client> --scope user --yes\\`\n\n Replace \\`<client>\\` with the current compatible host: \\`codex\\`,\n \\`claude-code\\`, \\`cursor\\`, \\`opencode\\`, \\`github-copilot\\`, or \\`cowork\\`.\n Ask the user to restart the host if it cannot reload MCP servers in place.\n`;\n"]}
@@ -19,6 +19,12 @@ export declare const BUILT_IN_APP_SKILLS: {
19
19
  manifest: AppSkillManifest;
20
20
  skillMarkdown: string;
21
21
  };
22
+ rewind: {
23
+ skillName: string;
24
+ screenMemoryMcp: true;
25
+ manifest: AppSkillManifest;
26
+ skillMarkdown: string;
27
+ };
22
28
  design: {
23
29
  skillName: string;
24
30
  extraSkills: {
@@ -1 +1 @@
1
- {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/cli/skills.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAKL,KAAK,gBAAgB,EAEtB,MAAM,gBAAgB,CAAC;AAUxB,OAAO,EAAW,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGjE,OAAO,EAEL,mBAAmB,EACnB,uBAAuB,EAIvB,6BAA6B,EAC7B,qBAAqB,EAErB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB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AC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,wBAAwB;IAChC,YAAY,EAAE,SAAS,GAAG,MAAM,CAAC;CAClC;AAED,UAAU,2BAA2B;IACnC,WAAW,EAAE,eAAe,CAAC;CAC9B;AAgzDD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,gBAAgB,CA8GhE;AAyiBD,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,eAAe,CAAC,CA+a1B;AAiRD,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CA8Zf"}
@@ -14,9 +14,10 @@ import { buildAppSkillPack, ensureAppSkill, loadAppSkillManifest, normalizeAppSk
14
14
  import { resolveClients, runConnect, writeConnectClientPreferences, } from "./connect.js";
15
15
  import { CONTEXT_XRAY_SKILL_MD, installLocalContextXray, } from "./context-xray-local.js";
16
16
  import { CLIENTS } from "./mcp-config-writers.js";
17
+ import { installScreenMemoryForClient, resolveScreenMemoryStoreDir, } from "./mcp.js";
17
18
  import { PR_VISUAL_RECAP_SETUP, writePrVisualRecapWorkflow } from "./recap.js";
18
19
  import { setupAgentSymlinks } from "./setup-agents.js";
19
- import { ASSETS_SKILL_MD, CANVAS_REFERENCE_MD, CONNECTION_REFERENCE_MD, CONTENT_SKILL_MD, DESIGN_EXPLORATION_SKILL_MD, DESIGN_VISUAL_EDIT_SKILL_MD, DOCUMENT_QUALITY_REFERENCE_MD, EXEMPLAR_REFERENCE_MD, HELP, LOCAL_FILES_REFERENCE_MD, VISUAL_PLANS_SKILL_MD, VISUAL_RECAP_SKILL_MD, VISUALIZE_REPO_SKILL_MD, WIREFRAME_REFERENCE_MD, } from "./skills-content/index.js";
20
+ import { ASSETS_SKILL_MD, CANVAS_REFERENCE_MD, CONNECTION_REFERENCE_MD, CONTENT_SKILL_MD, DESIGN_EXPLORATION_SKILL_MD, DESIGN_VISUAL_EDIT_SKILL_MD, DOCUMENT_QUALITY_REFERENCE_MD, EXEMPLAR_REFERENCE_MD, HELP, LOCAL_FILES_REFERENCE_MD, REWIND_SKILL_MD, VISUAL_PLANS_SKILL_MD, VISUAL_RECAP_SKILL_MD, VISUALIZE_REPO_SKILL_MD, WIREFRAME_REFERENCE_MD, } from "./skills-content/index.js";
20
21
  import { createCliTelemetry } from "./telemetry.js";
21
22
  export { CANVAS_REFERENCE_MD, CONNECTION_REFERENCE_MD, DOCUMENT_QUALITY_REFERENCE_MD, EXEMPLAR_REFERENCE_MD, LOCAL_FILES_REFERENCE_MD, VISUAL_PLANS_SKILL_MD, VISUAL_RECAP_SKILL_MD, VISUALIZE_REPO_SKILL_MD, WIREFRAME_REFERENCE_MD, };
22
23
  export const BUILT_IN_APP_SKILLS = {
@@ -111,6 +112,38 @@ export const BUILT_IN_APP_SKILLS = {
111
112
  }),
112
113
  skillMarkdown: CONTENT_SKILL_MD,
113
114
  },
115
+ rewind: {
116
+ skillName: "rewind",
117
+ screenMemoryMcp: true,
118
+ manifest: normalizeAppSkillManifest({
119
+ schemaVersion: 1,
120
+ id: "rewind",
121
+ displayName: "Rewind",
122
+ description: "Retrieve recent local Clips screen memory, chapters, transcripts, and exact frames through a privacy-preserving agent workflow.",
123
+ hosted: {
124
+ url: "https://clips.agent-native.com",
125
+ mcpUrl: "https://clips.agent-native.com/mcp",
126
+ },
127
+ mcp: { serverName: "clips-screen-memory" },
128
+ auth: { mode: "none" },
129
+ surfaces: [
130
+ {
131
+ id: "rewind-memory",
132
+ path: "/",
133
+ description: "Search and inspect the user's local Clips Rewind memory through a bounded local MCP broker.",
134
+ },
135
+ ],
136
+ skills: [
137
+ {
138
+ path: "skills/rewind",
139
+ visibility: "exported",
140
+ exportAs: "rewind",
141
+ },
142
+ ],
143
+ hostAdapters: ["plain-skill", "claude-skill", "generic-mcp"],
144
+ }),
145
+ skillMarkdown: REWIND_SKILL_MD,
146
+ },
114
147
  design: {
115
148
  skillName: "design-exploration",
116
149
  extraSkills: {
@@ -301,6 +334,10 @@ const BUILT_IN_APP_SKILL_ALIASES = {
301
334
  "local-content": "content",
302
335
  "content-local-files": "content",
303
336
  "agent-native-content": "content",
337
+ rewind: "rewind",
338
+ "screen-memory": "rewind",
339
+ "clips-rewind": "rewind",
340
+ "agent-native-rewind": "rewind",
304
341
  design: "design",
305
342
  "ui-design": "design",
306
343
  "ux-design": "design",
@@ -342,6 +379,7 @@ const BUILT_IN_APP_SKILL_DISPLAY_ALIASES = {
342
379
  "content-local-files",
343
380
  "agent-native-content",
344
381
  ],
382
+ rewind: ["screen-memory", "clips-rewind", "agent-native-rewind"],
345
383
  design: [
346
384
  "design-exploration",
347
385
  "visual-edit",
@@ -431,6 +469,9 @@ function isKnownSkill(value) {
431
469
  function isLocalOnlyBuiltInSkill(entry) {
432
470
  return Boolean(entry && "localOnly" in entry && entry.localOnly);
433
471
  }
472
+ function isScreenMemoryMcpBuiltInSkill(entry) {
473
+ return Boolean(entry && "screenMemoryMcp" in entry && entry.screenMemoryMcp);
474
+ }
434
475
  function targetSupportsInstallMode(targetId) {
435
476
  return targetId === "visual-plans" || targetId === "content";
436
477
  }
@@ -597,6 +638,7 @@ function skillFilesForBuiltIn(appSkillId, options = {}) {
597
638
  displayName: entry.manifest.displayName,
598
639
  skillName,
599
640
  mcpUrl: isLocalOnlyBuiltInSkill(entry) ||
641
+ isScreenMemoryMcpBuiltInSkill(entry) ||
600
642
  localFilesModeSkipsMcp(appSkillId, options.planMode)
601
643
  ? ""
602
644
  : (options.mcpUrl ?? entry.manifest.hosted.mcpUrl),
@@ -775,11 +817,10 @@ function writeContentLocalFilesManifest(baseDir, options = {}) {
775
817
  function builtInSkillsRootForAgent(agent, scope, baseDir) {
776
818
  const home = homeDir() ?? baseDir;
777
819
  if (scope === "project") {
778
- if (agent === "codex")
779
- return path.join(baseDir, ".agents", "skills");
780
- if (agent === "pi")
781
- return path.join(baseDir, ".agents", "skills");
782
- return path.join(baseDir, ".claude", "skills");
820
+ if (agent === "claude-code" || agent === "claude-code-cli") {
821
+ return path.join(baseDir, ".claude", "skills");
822
+ }
823
+ return path.join(baseDir, ".agents", "skills");
783
824
  }
784
825
  if (agent === "codex") {
785
826
  return process.env.CODEX_HOME
@@ -789,6 +830,11 @@ function builtInSkillsRootForAgent(agent, scope, baseDir) {
789
830
  if (agent === "pi") {
790
831
  return path.join(home, ".agents", "skills");
791
832
  }
833
+ if (agent === "cursor" ||
834
+ agent === "opencode" ||
835
+ agent === "github-copilot") {
836
+ return path.join(home, ".agents", "skills");
837
+ }
792
838
  return path.join(home, ".claude", "skills");
793
839
  }
794
840
  function builtInCommandsRootForAgent(agent, scope, baseDir) {
@@ -1498,6 +1544,11 @@ const BUILT_IN_SKILL_PROMPT_OPTIONS = [
1498
1544
  label: "content",
1499
1545
  hint: BUILT_IN_APP_SKILLS.content.manifest.description,
1500
1546
  },
1547
+ {
1548
+ value: "rewind",
1549
+ label: "rewind",
1550
+ hint: BUILT_IN_APP_SKILLS.rewind.manifest.description,
1551
+ },
1501
1552
  {
1502
1553
  value: "design-exploration",
1503
1554
  label: "design-exploration",
@@ -2505,7 +2556,11 @@ export async function addAgentNativeSkill(parsed, options = {}) {
2505
2556
  throw new Error(`Unknown skill or manifest path: ${target}. Run "npx @agent-native/core@latest skills list".`);
2506
2557
  }
2507
2558
  const knownBuiltIn = knownTarget ? BUILT_IN_APP_SKILLS[knownTarget] : null;
2559
+ const installsScreenMemoryMcp = isScreenMemoryMcpBuiltInSkill(knownBuiltIn);
2508
2560
  const baseDir = options.baseDir ?? process.cwd();
2561
+ if (installsScreenMemoryMcp && parsed.mcpUrl) {
2562
+ throw new Error("Rewind uses the local Clips Screen Memory MCP and does not accept --mcp-url.");
2563
+ }
2509
2564
  if (isLocalOnlyBuiltInSkill(knownBuiltIn)) {
2510
2565
  if (parsed.planMode) {
2511
2566
  throw new Error("--mode only applies to visual-plan / visual-recap / visualize-repo / content.");
@@ -2596,7 +2651,9 @@ export async function addAgentNativeSkill(parsed, options = {}) {
2596
2651
  throw new Error("MCP setup supports Claude Code, Codex, Claude Cowork, Cursor, OpenCode, or GitHub Copilot / VS Code clients. Use --mode local-files or --no-mcp for Pi.");
2597
2652
  }
2598
2653
  installTarget = preserveMcpUrlAppPathOverride(installTarget, parsed.mcpUrl);
2599
- const skillsAgents = skillsAgentsForClients(clients);
2654
+ const skillsAgents = installsScreenMemoryMcp
2655
+ ? clients
2656
+ : skillsAgentsForClients(clients);
2600
2657
  if (parsed.dryRun) {
2601
2658
  try {
2602
2659
  const localManifestPath = shouldWriteContentLocalFilesManifest(modeAwareTargetId, planMode)
@@ -2619,9 +2676,11 @@ export async function addAgentNativeSkill(parsed, options = {}) {
2619
2676
  displayName: installTarget.displayName,
2620
2677
  skillNames: installTarget.skillNames,
2621
2678
  skillsAgents,
2622
- mcpUrl: localFilesModeSkipsMcp(modeAwareTargetId, planMode)
2679
+ mcpUrl: installsScreenMemoryMcp
2623
2680
  ? ""
2624
- : installTarget.loaded.manifest.hosted.mcpUrl,
2681
+ : localFilesModeSkipsMcp(modeAwareTargetId, planMode)
2682
+ ? ""
2683
+ : installTarget.loaded.manifest.hosted.mcpUrl,
2625
2684
  mcpClients: shouldRegisterMcp ? mcpClients : [],
2626
2685
  dryRun: true,
2627
2686
  commands: [
@@ -2716,7 +2775,21 @@ export async function addAgentNativeSkill(parsed, options = {}) {
2716
2775
  scope: parsed.scope,
2717
2776
  dryRun: Boolean(parsed.dryRun),
2718
2777
  });
2719
- if (shouldRegisterMcp) {
2778
+ if (shouldRegisterMcp && installsScreenMemoryMcp) {
2779
+ const screenMemoryDir = resolveScreenMemoryStoreDir();
2780
+ if (!screenMemoryDir) {
2781
+ throw new Error("No local Clips Screen Memory store was found. Turn Rewind on in Clips, then run the setup again.");
2782
+ }
2783
+ registeredMcpClients = mcpClients.map((client) => {
2784
+ commands.push(`npx @agent-native/core@latest mcp install-screen-memory --client ${client} --scope ${parsed.scope}`);
2785
+ installScreenMemoryForClient(client, screenMemoryDir, baseDir, parsed.scope);
2786
+ return client;
2787
+ });
2788
+ options.telemetry?.track("skills_cli mcp registered", {
2789
+ skills: installTarget.skillNames.join(","),
2790
+ });
2791
+ }
2792
+ else if (shouldRegisterMcp) {
2720
2793
  commands.push(`npx @agent-native/core@latest app-skill ensure --manifest ${installTarget.loaded.file} --client ${parsed.client} --scope ${parsed.scope} --yes`);
2721
2794
  if (!parsed.dryRun) {
2722
2795
  const ensureResult = await ensureAppSkill(installTarget.loaded, {
@@ -2807,9 +2880,11 @@ export async function addAgentNativeSkill(parsed, options = {}) {
2807
2880
  instructionSource,
2808
2881
  skillNames: installTarget.skillNames,
2809
2882
  skillsAgents,
2810
- mcpUrl: localFilesModeSkipsMcp(modeAwareTargetId, planMode)
2883
+ mcpUrl: installsScreenMemoryMcp
2811
2884
  ? ""
2812
- : installTarget.loaded.manifest.hosted.mcpUrl,
2885
+ : localFilesModeSkipsMcp(modeAwareTargetId, planMode)
2886
+ ? ""
2887
+ : installTarget.loaded.manifest.hosted.mcpUrl,
2813
2888
  mcpClients: registeredMcpClients,
2814
2889
  dryRun: parsed.dryRun,
2815
2890
  commands,
@@ -2838,10 +2913,11 @@ function listSkills(options = {}) {
2838
2913
  aliases: BUILT_IN_APP_SKILL_DISPLAY_ALIASES[entry.manifest.id] ?? [],
2839
2914
  name: entry.manifest.displayName,
2840
2915
  description: entry.manifest.description,
2841
- mcpUrl: isLocalOnlyBuiltInSkill(entry)
2916
+ mcpUrl: isLocalOnlyBuiltInSkill(entry) || isScreenMemoryMcpBuiltInSkill(entry)
2842
2917
  ? ""
2843
2918
  : entry.manifest.hosted.mcpUrl,
2844
- local: isLocalOnlyBuiltInSkill(entry),
2919
+ local: isLocalOnlyBuiltInSkill(entry) ||
2920
+ isScreenMemoryMcpBuiltInSkill(entry),
2845
2921
  source: "agent-native",
2846
2922
  })),
2847
2923
  ...publicSkillEntries(options).map((entry) => ({