@creator-notes/cnotes 0.25.1 → 0.25.2
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.
- package/dist/commands/canvas.d.ts.map +1 -1
- package/dist/commands/canvas.js +122 -20
- package/dist/commands/canvas.js.map +1 -1
- package/dist/commands/operations.d.ts.map +1 -1
- package/dist/commands/operations.js +21 -19
- package/dist/commands/operations.js.map +1 -1
- package/dist/lib/api-client.d.ts +35 -9
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js +60 -24
- package/dist/lib/api-client.js.map +1 -1
- package/dist/lib/auth-store.d.ts +42 -10
- package/dist/lib/auth-store.d.ts.map +1 -1
- package/dist/lib/auth-store.js +38 -12
- package/dist/lib/auth-store.js.map +1 -1
- package/dist/lib/output.d.ts +7 -0
- package/dist/lib/output.d.ts.map +1 -1
- package/dist/lib/output.js +16 -0
- package/dist/lib/output.js.map +1 -1
- package/package.json +2 -2
- package/skills/cnotes/SKILL.md +20 -2
package/skills/cnotes/SKILL.md
CHANGED
|
@@ -284,13 +284,31 @@ cnotes canvas from-template <templateId> --populate # Auto-populat
|
|
|
284
284
|
|
|
285
285
|
# Agent-run bracketing — group a sequence of canvas changes into one operation
|
|
286
286
|
# with before/after snapshots so the user can see "AI did X" and revert as a unit.
|
|
287
|
-
# REQUIRED when an AI agent modifies a canvas.
|
|
287
|
+
# REQUIRED when an AI agent modifies a canvas. Notes directly below the block.
|
|
288
288
|
cnotes canvas agent-run wrap --canvas <id> --prompt "<intent>" -- <command> # one-shot
|
|
289
289
|
cnotes canvas agent-run begin --canvas <id> --prompt "<intent>" [--rationale "<plan>"] # multi-step
|
|
290
|
-
cnotes canvas agent-run end --canvas <id>
|
|
290
|
+
cnotes canvas agent-run end --canvas <id> # no --run-id needed; ends the active run
|
|
291
291
|
cnotes canvas activity <canvasId> # inspect operations + attribution after the fact
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
+
`begin` persists the run as the active run for this server (the same pointer
|
|
295
|
+
`cnotes operations begin` uses), so **every subsequent cnotes write attaches to
|
|
296
|
+
it automatically** — across separate shells and stateless tool calls, with no
|
|
297
|
+
env var to thread through. `end` closes that active run, so it needs no
|
|
298
|
+
`--run-id`. Only one run can be open at a time: a second `begin` refuses with
|
|
299
|
+
exit 5 (CONFLICT) rather than silently clobbering the first — pass `--force` to
|
|
300
|
+
end the prior run server-side and start fresh.
|
|
301
|
+
|
|
302
|
+
Prefer `wrap` for a single command (it auto-closes even on failure, and its run
|
|
303
|
+
is scoped to the subprocess, so it nests correctly inside an open `operations`
|
|
304
|
+
run). Use `begin`/`end` when the batch spans several commands.
|
|
305
|
+
|
|
306
|
+
**Always close the run.** If you can't, a later `begin --force` ends the stale
|
|
307
|
+
one and starts clean. Verify attribution with `cnotes canvas activity <id>`:
|
|
308
|
+
writes made inside a run show `operationType: agent.run` / `actorSource: agent`.
|
|
309
|
+
If you see `manual.edit` / `actorSource: human`, the bracket did not take and
|
|
310
|
+
the timeline is crediting your edits to the user.
|
|
311
|
+
|
|
294
312
|
### Timeline (`cnotes timeline` / `cnotes tl`)
|
|
295
313
|
```bash
|
|
296
314
|
# Show recent changes (default: last 7 days)
|