@notis_ai/cli 0.2.0-beta.1792531730806.1 → 0.2.0-beta.1792581804316.1

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 (52) hide show
  1. package/README.md +33 -3
  2. package/dist/agent-hooks/notis-agent-hook.mjs +625 -340
  3. package/dist/base-skills/notis-cli/.notis-base-skill.json +1 -1
  4. package/dist/base-skills/notis-cli/references/app-delivery.md +2 -2
  5. package/dist/base-skills/notis-query/.notis-base-skill.json +1 -1
  6. package/dist/base-skills/notis-query/SKILL.md +2 -2
  7. package/dist/base-skills/notis-query/references/database-discovery.md +2 -2
  8. package/dist/base-skills/notis-query/references/documents.md +2 -1
  9. package/dist/base-skills/notis-spaces/.notis-base-skill.json +1 -0
  10. package/dist/base-skills/{notis-apps → notis-spaces}/SKILL.md +63 -6
  11. package/dist/base-skills/{notis-apps → notis-spaces}/references/reading.md +8 -2
  12. package/dist/base-skills/{notis-apps → notis-spaces}/references/release.md +12 -6
  13. package/dist/base-skills/notis-spaces/references/reports.md +77 -0
  14. package/dist/base-skills/{notis-apps → notis-spaces}/references/views.md +7 -1
  15. package/dist/sdk/src/hooks/useMarqueeSelection.ts +13 -3
  16. package/dist/sdk/src/hooks/useViewParams.ts +3 -3
  17. package/dist/sdk/src/index.ts +3 -1
  18. package/dist/sdk/src/space.ts +8 -2
  19. package/dist/sdk/src/standardViewParams.ts +36 -0
  20. package/dist/sdk/src/viewPeriod.ts +26 -0
  21. package/dist/skill-sync/index.js +1 -1
  22. package/dist/skill-sync/index.js.map +2 -2
  23. package/dist/skill-sync-worker.mjs +3 -2
  24. package/dist/space-harness/host.js +90 -87
  25. package/dist/space-sdk/dist/{chunk-KYPWTC6D.js → chunk-RGU3Q4P3.js} +1 -1
  26. package/dist/space-sdk/dist/index.js +2 -2
  27. package/dist/space-sdk/dist/ui.js +2 -2
  28. package/dist/space-sdk/src/hooks/useMarqueeSelection.d.ts +3 -0
  29. package/dist/space-sdk/src/index.d.ts +3 -1
  30. package/dist/space-sdk/src/space.ts +8 -2
  31. package/dist/space-sdk/src/standardViewParams.d.ts +15 -0
  32. package/dist/space-sdk/src/tailwind-candidates.d.ts +40 -0
  33. package/dist/space-sdk/src/viewPeriod.d.ts +8 -0
  34. package/dist/view-renderer/dist/host.js +153 -150
  35. package/package.json +3 -3
  36. package/skills/notis-cli/AGENT_INSTRUCTIONS.md +62 -11
  37. package/skills/{notis-apps → notis-spaces}/cli.md +28 -1
  38. package/src/command-specs/agents.js +121 -8
  39. package/src/command-specs/spaces.js +32 -0
  40. package/src/runtime/agent-setup.js +172 -13
  41. package/src/runtime/base-skills.d.ts +5 -0
  42. package/src/runtime/base-skills.js +21 -1
  43. package/src/runtime/skill-sync/index.ts +1 -1
  44. package/src/runtime/space-test-server.js +1 -0
  45. package/src/runtime/space-view-manifest.js +33 -7
  46. package/dist/base-skills/notis-apps/.notis-base-skill.json +0 -1
  47. /package/dist/base-skills/{notis-apps → notis-spaces}/references/architecture.md +0 -0
  48. /package/dist/base-skills/{notis-apps → notis-spaces}/references/context.md +0 -0
  49. /package/dist/base-skills/{notis-apps → notis-spaces}/references/design.md +0 -0
  50. /package/dist/base-skills/{notis-apps → notis-spaces}/references/memory.md +0 -0
  51. /package/dist/base-skills/{notis-apps → notis-spaces}/references/sdk.md +0 -0
  52. /package/dist/base-skills/{notis-apps → notis-spaces}/references/troubleshooting.md +0 -0
package/README.md CHANGED
@@ -111,18 +111,21 @@ Examples:
111
111
 
112
112
  Install Notis instructions and recall/capture hooks for local Codex and Claude Code.
113
113
 
114
- When to use: Run after login to give local coding agents durable Notis CLI guidance, session-start profile context, deduplicated relevant recall, and automatic completed-turn capture. Hosted Notis sandboxes already receive prompt context and are skipped.
114
+ When to use: Run after login to give local coding agents durable Notis CLI guidance, session-start profile context, deduplicated relevant recall, and automatic completed-turn capture. Hosted Notis sandboxes are skipped unless --recall-only is given: that mode installs only recall hooks into the hosted agent's own config folder, signed in with the session's injected credential.
115
115
 
116
116
  Options:
117
117
  - `--codex-only` — Configure only Codex.
118
118
  - `--claude-only` — Configure only Claude Code.
119
119
  - `--no-memory-hooks` — Install static instructions and remove Notis recall/capture hooks.
120
+ - `--recall-only` — Hosted coding agents: install only recall hooks (no capture, no instructions) into CODEX_HOME or CLAUDE_CONFIG_DIR, signed in with the injected NOTIS_JWT.
121
+ - `--env-file <path>` — With --recall-only: a shell file each hook sources first to pick up the current injected sign-in.
120
122
 
121
123
  Examples:
122
124
  - `npx --package @notis_ai/cli@latest -- notis agents install`
123
125
  - `npx --package @notis_ai/cli@latest -- notis agents install --codex-only`
124
126
  - `npx --package @notis_ai/cli@latest -- notis agents install --claude-only`
125
127
  - `npx --package @notis_ai/cli@latest -- notis agents install --no-memory-hooks`
128
+ - `npx --package @notis_ai/cli@latest -- notis agents install --recall-only --codex-only`
126
129
 
127
130
 
128
131
  ## Skills
@@ -235,7 +238,34 @@ Examples:
235
238
 
236
239
  ## Spaces
237
240
 
238
- Build, verify and publish Space views, their linked Skills and resources. The product `notis-apps` skill owns the workflow and the consequences of links, moves and the bin.
241
+ Build, verify and publish Space views, their linked Skills and resources. The product `notis-spaces` skill owns the workflow and the consequences of links, moves and the bin.
242
+
243
+ ### `npx --package @notis_ai/cli@latest -- notis spaces history list <space-id>`
244
+
245
+ Read a Space’s saved view versions, newest first.
246
+
247
+ When to use: Inspect when and by whom a view changed, before restoring or undoing a change.
248
+
249
+ Options:
250
+ - `--before <revision>` — Read versions before this cursor.
251
+
252
+ Examples:
253
+ - `npx --package @notis_ai/cli@latest -- notis spaces history list <space-id>`
254
+
255
+ ### `npx --package @notis_ai/cli@latest -- notis spaces history restore <space-id>`
256
+
257
+ Republish a saved view and its settings as a new version; records stay unchanged.
258
+
259
+ When to use: Restore a chosen version, or undo your last change using the version immediately before it.
260
+
261
+ Options:
262
+ - `--target-revision <revision>` — The saved version to restore.
263
+ - `--revision <revision>` — Current Space metadata revision from history list.
264
+ - `--request-id <id>` — Stable restore request ID; reuse on retry.
265
+ - `--dry-run` — Check current access, bindings and saved source without publishing.
266
+
267
+ Examples:
268
+ - `npx --package @notis_ai/cli@latest -- notis spaces history restore <space-id> --target-revision 2 --revision 5 --request-id undo-last-change --dry-run`
239
269
 
240
270
  ### `npx --package @notis_ai/cli@latest -- notis spaces screenshot <url>`
241
271
 
@@ -667,7 +697,7 @@ Examples:
667
697
 
668
698
  ## Reports and saved HTML
669
699
 
670
- Create independently authored interactive reports as Space views with the product `notis-reports` and `notis-apps` guidance. Build and verify the selected source, deploy within the user's authorization, then render its current view link.
700
+ Create independently authored interactive reports as Space views with the product `notis-spaces` guidance and its reports reference. Build and verify the selected source, deploy within the user's authorization, then render its current view link.
671
701
 
672
702
  Save self-contained HTML pages and reports in Notis Notes with the Save HTML Skill that comes with it; pages and reports saved before Spaces open there too. Its generic file upload is attached to an existing note with a separate revision-checked write; a raw download URL is not a saved page link.
673
703