From e7640c74a4aab4eaf539aafa79c1305807da6d80 Mon Sep 17 00:00:00 2001 From: Benjiyaya Date: Sun, 6 Sep 2026 05:14:40 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20release=201.4.0=20=E2=80=94=20AI=20Can?= =?UTF-8?q?vas=20changelog=20+=20version=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calliope-backend/pyproject.toml | 2 +- calliope-web/package-lock.json | 4 +- calliope-web/package.json | 2 +- docs/changelogs/2026-09-06-canvas-merge.md | 81 ++++++++++++++++++++++ docs/changelogs/README.md | 1 + 5 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 docs/changelogs/2026-09-06-canvas-merge.md diff --git a/calliope-backend/pyproject.toml b/calliope-backend/pyproject.toml index 2b07ad1f..44a1da5c 100644 --- a/calliope-backend/pyproject.toml +++ b/calliope-backend/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "calliope" -version = "1.3.2" +version = "1.4.0" description = "Local-first AI story-to-video studio" requires-python = ">=3.11" dependencies = [ diff --git a/calliope-web/package-lock.json b/calliope-web/package-lock.json index fab53223..18447d1a 100644 --- a/calliope-web/package-lock.json +++ b/calliope-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "calliope-web", - "version": "1.3.2", + "version": "1.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "calliope-web", - "version": "1.3.2", + "version": "1.4.0", "dependencies": { "@tanstack/svelte-query": "^5.66.0", "@xyflow/svelte": "^1.6.5" diff --git a/calliope-web/package.json b/calliope-web/package.json index c27b7be9..96b30073 100644 --- a/calliope-web/package.json +++ b/calliope-web/package.json @@ -1,6 +1,6 @@ { "name": "calliope-web", - "version": "1.3.2", + "version": "1.4.0", "private": true, "scripts": { "dev": "vite dev", diff --git a/docs/changelogs/2026-09-06-canvas-merge.md b/docs/changelogs/2026-09-06-canvas-merge.md new file mode 100644 index 00000000..2b879723 --- /dev/null +++ b/docs/changelogs/2026-09-06-canvas-merge.md @@ -0,0 +1,81 @@ +# Calliope 1.4.0 — AI Canvas + +The **AI Canvas** (`/canvas/[id]`) merges the old Agents chat and Playground +into one node-graph surface: your project's story bible as cards on a canvas, +with the agent chat hosted in the right panel and the session list as a +collapsible left rail. The separate `/agents` and `/playground` pages now +redirect in. + +## New + +- **Merged Canvas surface.** A `@xyflow/svelte` graph of characters, locations, + items, and scenes. One durable canvas per project (the story bible, shared + across its sessions) plus one sandbox canvas per unlinked chat, so a + free-flow session can generate images and videos and see the results without + committing to a film. +- **Entity auto-seed.** Opening a project canvas adds a card for every + character, location, item, and scene — idempotent, so reopening only adds + new entities. Deleting a card tombstones it and it never resurrects. Card + media resolves live (character sheet, location/item reference, scene clip). +- **Edges + run-path.** Drag a data edge from an entity/artifact card into a + workflow node to wire a `(Input:role)` slot (role-resolved, cycle-checked); + Shift-drag makes a labeled story-bible link edge instead. **Run** on a + workflow node enqueues through the existing pipeline; the finished output + materializes as an artifact card. +- **Agent canvas tools.** The chat agent can read and edit the board: + `summarize_canvas`, `create_canvas_node`, `canvas_connect`, `canvas_link`, + `update_canvas_node`, `run_canvas_node` (HITL-gated), `post_artifact_to_canvas`, + `delete_canvas_node`. +- **Skills.** Reusable expertise the agent loads on demand — standard + `/skills//SKILL.md` folders with YAML frontmatter. Three + built-ins ship seeded (H3 video prompts, scene-to-video, character + consistency). Manage them in **Settings → Skills**; type `/` in the composer + to tag one, and the agent reads it before applying. +- **Memory.** Durable user preferences and project conventions the agent + carries across chats. It saves when you state one ("always give me 16:9", + "never show the villain's face"); saved memories are injected into every + turn. Manage them in **Settings → Agent → Memory**. +- **Question cards (HITL).** When the agent needs an explicit choice, it asks + with a clickable card (`ask_user`) and ends its turn until you answer — a + click records a structured approval instead of the agent guessing from prose. +- **Tidy layout.** One click re-arranges every card into clean columns and + grids. + +## Fixed + +- **Stop actually stops.** The Stop button now cancels the agent turn *and* + the GPU jobs it enqueued — pending/running jobs for the session are + cancelled and the running ComfyUI prompt is interrupted, so generation halts + immediately instead of only killing the LLM call. +- **Canvas drag positions persist.** Group/box drags now save every moved + card (previously only one was written), and an SSE-driven refetch can no + longer snap a card back mid-drag. +- **Card media renders correctly.** Artifact images fill their frame instead + of showing a cropped corner; clicking any card — scene clip or job output — + opens the same modal player. +- **Agent can generate in sandbox.** Canvas artifact cards no longer + double-post (unique per-job guard), and a sandbox session can post to its + own board without being told to attach to a project. +- **Settings → Skills / Memory pages** navigate correctly (tab switching + previously left the URL changed but the panel stale). +- **Browser tab title** is now "Calliope Lab". + +## Notes + +- The agent's render permission comes from explicit user acts only — an + `@workflow` tag, a question-card approval, or your own words asking to + generate. Mass-generation is guarded mechanically by the enqueue tools + (explicit ids, or an "all/remaining" request), not by guessing at prose. +- Canvas titles derive from what they show: project canvases take the project + name, sandbox canvases the session title. + +## Upgrade + +```bash +git pull +cd calliope-web && npm install +``` + +New frontend dep: `@xyflow/svelte`. Backend DB auto-migrates on start (adds +`canvas`, `canvas_node`, `canvas_edge`, `agent_memory` tables). Restart the +backend (FastAPI) and the frontend dev server (Vite) to pick everything up. diff --git a/docs/changelogs/README.md b/docs/changelogs/README.md index 63cfb94c..ca1bd002 100644 --- a/docs/changelogs/README.md +++ b/docs/changelogs/README.md @@ -2,6 +2,7 @@ Dated notes for GitHub releases. Newest first. +- [2026-09-06 canvas merge](./2026-09-06-canvas-merge.md) — AI Canvas merges Agents + Playground; skills, memory, question cards (1.4.0) - [2026-08-31 hardening](./2026-08-31-hardening.md) — Prompt preview fails fast + never blocks Generate (1.3.2) - [2026-08-31 patch](./2026-08-31-patch.md) — SvelteKit security bump so `npm audit fix --force` is never needed (1.3.1) - [2026-08-31](./2026-08-31.md) — Prompt review gate, ComfyUI error surfacing, saved scene setups (1.3.0)