Commit Graph
7 Commits
Author SHA1 Message Date
Benjiyaya 7551ba9d88 fix: accept name as an alias for a project's title so agent/API creates stop 422ing 2026-09-22 18:15:56 +08:00
Benjiyaya a11317ae0a feat(harness): canvas/skills/memory/interaction plugins + guard hardening
Self-registering harness plugins for the merged Canvas surface: canvas tools
(summarize/create/connect/link/update/run/post/delete, get-or-create sandbox
canvas), SKILL.md skills library with / composer picker, durable agent memory,
and ask_user question cards with structured HITL approvals. Guards emit typed
reason codes; stop cancels session jobs via ComfyUI interrupt; contract
vocabulary gate (contracts.json + export script) keeps web/backend names in sync.
2026-09-06 05:15:00 +08:00
Justo Stoll 1ec5348f42 Gate generate-story/script append mode; add beat CRUD tools
The destructive guard only gated replace=true — an unconfirmed
generate_story(replace=false) on a non-empty project silently APPENDED a
duplicate 25-beat set (25 -> 50, observed live 2026-08-25), and the guard's
own message recommended exactly that escape. Both modes are now gated on a
non-empty project with mode-specific messages that point at the granular
tools; 'append' joins the confirmation cues.

And the granular tools now exist for beats: add_beat (insert-with-shift, or
append when order_index omitted), update_beat (project-scoped id check),
delete_beat (destructive-flagged; later beats renumber to close the gap) —
before this, bulk regeneration was the only way to change a beat, which is
what boxed the story sub-agent into the append in the first place. The story
role's allowlist gains all three.

(cherry picked from commit 14ca52f5c02d1e8dd52e0f58e5fd0b8593816c9b)
2026-08-26 21:24:57 +02:00
Justo Stoll dfb82264bf get_workspace sections + teaching truncation note + assets-role editors
On a large project (43 scenes with full action paragraphs) get_workspace
serializes past the 4000-char tool-result cap, so the tail-chop landed
mid-beats and characters/locations/items were ALWAYS below the waterline —
observed live: an assets sub-agent re-called get_workspace in a loop, blind
to the sections it needed, with no editor tools in its allowlist anyway.

- get_workspace gains sections=[beats|characters|locations|items|scenes];
  project + stats always included; omitted sections listed; invalid sections
  error names the valid set; no-arg call unchanged (back-compat).
- All three truncation sites share TRUNCATE_NOTE, which names the way out
  (sections=[...], scoped tools) instead of a bare '[truncated]'.
- The assets role gains update_character / update_location / update_item
  (deletes deliberately excluded).

(cherry picked from commit 9460b6c2e398bad5403ff73e4e8e7d2a96478821)
2026-08-26 21:24:57 +02:00
Justo Stoll d8fe088ce4 Add unlink_project: the way out of the linked-session one-way door
Once a session linked to a project, the agent could neither create a fresh
project (create_project is sandbox-only) nor switch (link_project is
sandbox-only) — and no unlink existed. Observed live: a linked agent burned
three failed tool calls and ~7 minutes of reasoning discovering the box, then
overwrote the linked project as its only option.

unlink_project (linked-only) clears the session binding and nothing else; the
blind_only rejection message now points to it, so the model recovers in one
step; link_project's description documents the switch path.

(cherry picked from commit f4fc7cde6461529177563d58383c5c50287026e1)
2026-08-26 21:24:57 +02:00
Benjiyaya 71bed77095 Add tabbed video ref picker, stricter agent HITL, and item attach.
Playground creates a new misc. item instead of overwriting one; item generate jobs persist the image path. Notes in docs/changelogs/2026-08-23.md.
2026-08-24 04:29:49 +08:00
BenjiyayaandCursor a1e329c9ef Calliope 1.2.0: agents, misc items, motion context, and queue timeout
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 15:29:44 +08:00