Commit Graph
102 Commits
Author SHA1 Message Date
Benjiyaya c6ef5e7204 feat: release 1.5.2 - bilingual UI (en/zh) and local start scripts
Ship the merged dictionary layer as 1.5.2. Every user-facing string now
resolves through the en/zh dictionaries instead of hardcoded English, with
a language switcher in the header and local setup/start scripts for the
first-run path.

Docs: docs/changelogs/2026-09-16-bilingual-ui.md
2026-09-16 03:41:41 +08:00
BenjiandGitHub 035a53333b Merge pull request #58 from happymy/dev
i18n: Full-site bilingual dictionary and component integration + local start scripts
2026-09-16 03:18:43 +08:00
happymy 31a859cd5e merge: 合并主分支更新 (shot brief 展示、README 截图) 2026-09-13 08:26:02 +08:00
happymy 389b4c0db7 fix(i18n): 清除剩余硬编码英文文案并接入字典
消除 canvas 页 2 处 aria-label 与 Unlink 按钮、LanguageSwitcher aria、QueueStage "Clip #"、StoryStage "New beat"、JobInputsDrawer "Job #" 等硬编码英文;en/zh 字典同步新增 6 组 key 保持对齐。npm run check 0 errors。
2026-09-13 08:19:24 +08:00
happymy ba99cb4929 fix(i18n): 修复设置页面包屑字面显示 {t('nav.settings')}
Svelte 属性表达式中嵌套花括号的模板字面量被按字面解析,改为字符串拼接后实测渲染 / 设置。
2026-09-13 08:14:31 +08:00
BenjiandGitHub 247a0359b0 Update screenshot in README.md
Replaced an old screenshot with a new one in the README.
2026-09-13 02:59:29 +08:00
Benjiyaya 4c71cc497e feat(video): show the selected clip's shot brief in the composer
1.5 moved rendering to clips but the Video stage only surfaced the scene
script, so the workflow prompt field gave no hint of what an individual
clip performs. Each clip now carries its description, shot size, and
covered dialog lines into a brief panel above the composer, with a copy
button feeding the prompt. The stage splits into player + a scrollable
input inspector so the input stack can no longer squeeze the player out.
2026-09-13 02:57:17 +08:00
happymy 2483c7278f i18n: 将 bat 脚本输出改为中英文双语
setup/start/start-bg/stop 四个 bat 的 echo 改为 English / 中文 对照,GBK+CRLF 不变。
2026-09-12 16:04:46 +08:00
happymy 44ab8389d6 fix(i18n): 修复 {n} 占位符插值断裂
t() 按 {占位名} 逐名替换,但多数 count 语义键字典用 {n}、调用处传 count 或不传参,导致页面显示字面 "{n}"。t() 增加 count→{n} 约定,一次性修复 WorkflowsLibrary 统计、ProjectCard 相对时间、ActivityPanel、NavRail、MemoryPanel、ScriptStage、AssetsStage 等错配;queue.exportingSub/filmstrip.sceneClips/queue.scene/script.shotClipPlural 补 {n} 参数;queue.queueingProgress 与 queue.filmMeta 调用参数对齐字典;filmstrip.clipTitle 重写为 {scene}·镜头 {shot}·{time}。en/zh 983 keys 对齐,svelte-check 0 errors。
2026-09-12 15:56:31 +08:00
happymy 0caadd5a97 i18n: 补齐设置导航与画布/项目页缺失的中文文案
SettingsNav 7 个 tab 的 nav.* key(label/blurb)补齐中英文案;画布页 canvas/[id] 所有硬编码英文(toast、确认框、按钮 title、空态/错误提示)改为 t() 动态键;项目页 project/[id] 错误态、视频工作台按钮、队列状态接入 i18n;agents 页自动会话标题改用 t()(agent.task.*),移除静态 AGENT_TASK_TITLES;hooks.client.ts 全局兜底错误消息接入 i18n。en/zh 各 983 keys 键集完全对齐,svelte-check 0 errors。
2026-09-12 13:21:59 +08:00
happymy be0f5b6046 feat(i18n): 全量中英双语字典与组件接入
- en.ts 934 键无重复,zh.ts 全量镜像
- 补齐 assets/buildScene/queue 缺失键,修正 promptPreview.sceneMeta/shotMeta 占位符
- i18n.svelte.ts 修复 \ 响应式语言状态
- 修复 QueueStage/ToastHost 局部变量遮蔽 t()
2026-09-12 13:00:19 +08:00
happymy 929df8c9b6 feat: 添加本地启动/停止脚本并纳入版本控制
新增 setup.bat(首次安装)、start.bat(前台启动)、start-bg.bat(后台启动)、
stop.bat(停止)四个脚本,便于一键起停前后端;.gitignore 移除
start.bat/end.bat 遗留忽略条目。
2026-09-12 08:42:45 +08:00
BenjiandGitHub 047048eee5 Update 2026-09-10-build-scene-clips.md 2026-09-11 22:13:08 +08:00
Benjiyaya ce0b4e1983 feat: release 1.5.0 — Build Scene 3D blockout composer + 1 scene : N shot clips
Build Scene (/build-scene): three.js + mannequin-js blockout viewport ported
from open-media, with per-session compositions (origin='scene' keeps rails
separate), agent shot_* tools as the only toolset for that surface, viewport
toolbar, keyframe motion + camera timeline with 60s video export, and
captures usable as project reference images.

Scene to Clips: clips table (1 scene : N renderable shots), coverage agent
breaks scenes into shots with full dialogue/action allocation, script
generation stays faithful to the screenplay (verbatim dialogue, content-
derived durations, chunked + durable inserts), video pipeline re-scoped to
clips (enqueue, continue-from, export, drafts), Script/Video UI clip-first
(#N.M labels, per-scene Break Into Shots scoped to one scene).

Agent loop: lean ReAct discipline with fail-streak escalation and budget
nudge; policy treats explicit user commands as permission; Build Scene tool
scope enforced mechanically; document + video attachments feed the VLM.
2026-09-11 18:05:21 +08:00
Benjiyaya f8faa72653 fix(agent): per-session event seq, parsed SSE echo, and vision attachments
Implements the intent of open PRs #48, #49, and part of #47 (all reviewed
against the working tree — none of the three bugs were fixed yet):

- #48 append_event returned cur.lastrowid (global row id) as the event's
  seq, while the INSERT allocates a per-session seq. The two only agree on
  a single-session DB, so ask_user's question_seq never matched
  latest_open_question() on a real install — card clicks never recorded an
  approval. The allocated seq is now read back from the inserted row; the
  atomic single-INSERT allocation is unchanged.

- #49 the agent.message SSE echo carried the raw agent_messages row
  (tool_args_json / tool_result_json strings, no parsed keys), while GET
  /sessions/{id} hands clients the parsed shape. _persist_message now
  returns parsed tool_args / tool_result alongside the raw keys, so the
  ask_user question card renders live instead of after a reload.

- #47 (partial) main.py carried the version as two literals that drifted
  from pyproject twice (1.3.2 reported 1.2.1; 1.4.1 reported 1.4.0). The
  version is now single-sourced in calliope.__version__, consumed by both
  FastAPI and /api/health; pyproject uses hatchling dynamic version. The
  PR's importlib.metadata approach was avoided: the venv's editable
  dist-info still says 0.1.0, which would report a third stale version.

- Vision attachments: user-attached images now project as OpenAI
  image_url content parts (data URLs read from disk), so vision-capable
  models see the actual pixels instead of a path line (derive_chat_rows /
  project_user_content, tested in test_agent_event_log).

Regression tests: per-session seq with a diverging second session, the
full card-answer flow across sessions, and the health version matching
the single-sourced metadata (tests/test_agent_interaction.py,
tests/test_projects.py).
2026-09-08 05:20:23 +08:00
BenjiandGitHub 7b2d4c9c08 Merge pull request #48 from justostoll/fix/event-seq-from-row
Event log: append_event returns the row id, not the per-session seq — card clicks never record an approval
2026-09-08 04:30:38 +08:00
Justo StollandClaude Fable 5.1 693656757c Event log: return the per-session seq from append_event, not the row id
append_event handed back cur.lastrowid — the table-wide row id — while the
INSERT allocates a per-session seq and read_events returns that column. The
two only agree while a single session exists, so ask_user's question_seq
never matched latest_open_question() on a real install: a card click never
wrote question/answered and never counted as a structured approval.

Read the allocated seq back for the inserted row and return it. Two
regression tests seed a second session first so row id != seq.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 07:27:18 +02:00
Benjiyaya f4424a5c4f chore: release 1.4.1 — chunked story/script generation + working question cards 2026-09-07 05:43:15 +08:00
Benjiyaya dc5421c4a5 fix(agent): make ask_user question cards actually appear
The loop raised the end-turn control flow BEFORE logging/emitting the
ask_user tool result, so the frontend never received the question — the
chat sat on "working…" with no card until the user hit Stop or refreshed
(the report: "the agent loop just stops there"). The result is now
logged + emitted first, then the turn ends with status awaiting_input.

- Question card renders the question text plus stacked option buttons
  (long sentences read cleanly) and a hint line.
- Card answers are graded by first word: "Yes, replace with ~40 shorter
  scenes" grants, "No, keep existing scenes" refuses — previously a
  sentence option had to match "yes" exactly.
- Two regression tests: tool/result precedes turn/end with the question
  payload; option-sentence approval matrix.
2026-09-07 05:36:05 +08:00
BenjiandGitHub 5136e24132 Merge pull request #46 from justostoll/feat/llm-extra-body-hook
LLM client: per-call extra_body hook + h3_rewrite_extra_body setting (thinking off for the H3 rewrite: 158 s → 27 s)
2026-09-07 01:14:03 +08:00
Justo StollandClaude Fable 5.1 710fa56e96 tests: settings round-trip restores the live value instead of assuming an empty start
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-06 18:34:59 +02:00
Justo Stoll 2d095b7fbb LLM client: per-call extra_body hook; h3_rewrite_extra_body setting for the H3 profile rewrite
LLMClient.chat / chat_stream / _chat_blocking accept extra_body, merged into the
OpenAI-compatible payload (model / messages / stream cannot be overridden). New
setting h3_rewrite_extra_body (default {}, never sent when empty) is passed on
the minimax_h3_ref rewrite only, so e.g. {"chat_template_kwargs":
{"enable_thinking": false}} (Qwen3 on oMLX / vLLM / SGLang) turns a 158 s
thinking preview into a 27 s one without touching story/script calls.
Settings API + config file round-trip; three tests.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 395a4a03a68444dee8fce83f887682c17d96c6ee)
2026-09-06 18:34:59 +02:00
Benjiyaya 447a4802c9 fix(agent): generate story beats and script scenes in chunks
Long-form generation asked the LLM for the whole board in one response —
a 50-beat story or 20-scene script is a multi-thousand-token JSON answer
that small/local models take minutes to stream, often under-deliver, and
then a single short chunk retried the ENTIRE thing. That is the "Draft
Storyline / Regenerate Script hangs" bug.

Both generators now write incrementally:
- Script: SCRIPT_CHUNK (4) scenes per call, each fed the full context plus
  the last two written scenes for continuity.
- Story: STORY_CHUNK (12) beats per call — a brief call (title, logline,
  cast, opening beats) then continuations given the established cast and
  recent beats.

Both renumber order_index gaplessly, retry only a short chunk, publish
agent.thinking progress per chunk, and keep single-call behavior for small
boards. The generate_story/generate_script agent tools route through the
same code, so the agent loop benefits too.
2026-09-06 16:07:10 +08:00
Benjiyaya e7640c74a4 chore: release 1.4.0 — AI Canvas changelog + version bump 2026-09-06 05:15:00 +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
Benjiyaya 045a729a07 feat(canvas): playable scene video cards + draggable chat panel width cap 30% 2026-09-06 05:15:00 +08:00
Benjiyaya 8bd0432f30 feat(nav): drop Agents link, AI Canvas is the primary surface 2026-09-06 05:15:00 +08:00
Benjiyaya 5932f4c081 feat(nav): rename to AI Canvas, drop Playground link, logo targets /canvas 2026-09-06 05:15:00 +08:00
Benjiyaya 5b7157a866 chore(canvas): drop unused imports flagged by ruff 2026-09-06 05:15:00 +08:00
Benjiyaya d3a2d397be feat(canvas): redirect /agents and /playground into the merged canvas surface 2026-09-06 05:15:00 +08:00
Benjiyaya 86d99b86d9 feat(canvas): merged shell route with Svelte Flow graph, collapsible rail, hosted agent chat 2026-09-06 05:15:00 +08:00
Benjiyaya dd51b914a9 feat(canvas): @xyflow/svelte dep + typed canvas API client 2026-09-06 05:15:00 +08:00
Benjiyaya 082e767c8e feat(canvas): CRUD router with entity auto-seed, tombstones, position persistence 2026-09-06 05:15:00 +08:00
Benjiyaya 6786115666 feat(canvas): canvas + canvas_node tables with project/session cascade scoping 2026-09-06 05:15:00 +08:00
BenjiandGitHub c2812f66b6 Update README.md 2026-09-06 05:01:29 +08:00
BenjiandGitHub 9e83a25ebd Update README.md 2026-09-06 04:31:35 +08:00
BenjiandGitHub b4e2d7d992 Merge pull request #40 from benjiyaya/fix/preview-modal-hardening-1.3.2
fix: harden prompt preview — fail fast and never block Generate (1.3.2)
2026-09-01 00:04:41 +08:00
Benjiyaya db414f92f1 fix: harden prompt preview — fail fast and never block Generate (1.3.2)
With an unreachable LLM endpoint the Review-prompt modal fired duplicate
long-hanging requests and left Generate impossible. Preview resolves now
fire exactly once per scene, the H3 rewrite times out after 30s and falls
back to the deterministic template, and on failure the modal populates the
editor with raw scene text so the user can edit + Generate or retry.
2026-08-31 23:41:17 +08:00
BenjiandGitHub 466af9d078 Merge pull request #39 from benjiyaya/fix/sveltekit-bump-1.3.1
chore: bump @sveltejs/kit to 2.70.3 (1.3.1) — defuse npm audit fix --force breakage
2026-08-31 18:46:54 +08:00
Benjiyaya 40934eb5f5 chore: bump @sveltejs/kit to 2.70.3, release 1.3.1
The old 2.20.x range carried high-severity npm audit advisories
(CSRF, dev-mode 404 XSS, handle-hook DoS), which pushed users toward
npm audit fix --force — a command that downgrades kit to a 2021
pre-release and breaks the install (issue #38). Bumping within the
major plus the safe audit fixes leaves only 3 low-severity transitives,
all requiring major downgrades. Recovery steps for affected users are
in the changelog.
2026-08-31 18:33:20 +08:00
BenjiandGitHub 05a592cd14 Add files via upload 2026-08-31 14:29:04 +08:00
BenjiandGitHub 47e29f9b95 Delete example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs_API.json 2026-08-31 14:28:53 +08:00
BenjiandGitHub fdaabdd464 Add files via upload 2026-08-31 14:24:59 +08:00
BenjiandGitHub ec6496a69e Merge pull request #35 from benjiyaya/feat/issue-update-1.3.0
Calliope 1.3.0 — prompt review gate, ComfyUI error surfacing, saved scene setups
2026-08-31 03:28:37 +08:00
Benjiyaya 9c8ea8f28f feat: prompt review gate, ComfyUI error surfacing, saved scene setups (1.3.0)
Issues #27/#33/#28. Generate now resolves the prompt first (saved draft
or H3 rewrite) and opens an editable review modal before enqueueing;
job history drawer shows each render's exact payload with copy-to-form.
ComfyUI 400s surface error.type + per-node messages; audio uploads go
flat and VHS audio: widgets are patched. Per-scene video settings
persist via scenes.video_settings_json (additive migration) and batch
generate honors them. Version bumped to 1.3.0.
2026-08-31 03:20:25 +08:00
BenjiandGitHub 792e9c57b1 Merge pull request #31 from benjiyaya/test-pr-25
Video-extend continue flow + clip source modal (1.2.3)
2026-08-29 21:47:42 +08:00
Benjiyaya e896688963 chore: release 1.2.3 2026-08-29 21:45:49 +08:00
Benjiyaya 1ce2c2a535 feat: modal-based video source picker with project clip grid
The native select was too cramped for a project with many clips. Replace
it with a wide modal (Auto / Upload file / clip grid with thumbnails).
Clip options now cover any scene in the timeline, not just earlier ones,
and uploads wire through a hidden input. Also fix the Choose-Video modal
rendering blank under Clips/Uploads tabs: duplicate asset paths crashed
Svelte's keyed each mid-render — dedupe by path and clamp the active tab
when a tile's kind changes.
2026-08-29 21:43:05 +08:00
Benjiyaya 91cbaf1a44 docs: replace motion-context chain with video-extend continue flow 2026-08-29 05:30:18 +08:00
Benjiyaya c4f2e284a7 feat: relabel continue-from-previous scene toggle 2026-08-29 05:20:18 +08:00