Commit Graph
31 Commits
Author SHA1 Message Date
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
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 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
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 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
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 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 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
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
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 c4f2e284a7 feat: relabel continue-from-previous scene toggle 2026-08-29 05:20:18 +08:00
Benjiyaya 36db1f90c9 feat: video-stage continue validator and clip picker 2026-08-29 05:17:35 +08:00
Benjiyaya acc1952e78 feat: model-per-agent picker in Settings agent tab 2026-08-29 00:54:09 +08:00
Benjiyaya 22658f6147 Merge PR 25 locally for testing 2026-08-27 11:50:18 +08:00
Justo Stoll 8bc3659bf2 Paint a first frame in clip previews: '#t=0.1' media fragments
With preload="metadata" browsers paint NOTHING until playback, so the Video
tab's hero monitor and every filmstrip thumbnail sat black — clips looked
missing while their audio played fine ('no picture, but sound'). The media
fragment makes the browser seek and paint the frame at 0.1 s without playing.
Verified in-browser: fresh load paints hero + all thumbnails; selecting a
scene paints its first frame immediately.

(cherry picked from commit a81280b1543b9f6aa913be8373f0a390d3db5871)
2026-08-26 21:24:57 +02:00
Stefán Einarsson 4e480f6195 Add a button on Assets to upload or replace an image 2026-08-25 22:46:46 +02:00
Stefán Einarsson 34487703b4 Allow multiple LLM endpoints in Settings and pick which one is active. 2026-08-25 21:13:13 +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
BenjiandGitHub 9a7ec6b8d5 Merge pull request #14 from justostoll/feat/generate-all-batch
Video tab: "Generate all" button to queue every scene's clip in sequence
2026-08-23 15:54:45 +08:00
BenjiyayaandCursor d79c9f4aba Merge origin/main: keep chain-from-prev-clip with H3 motion context
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 15:32:33 +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
Justo StollandClaude Fable 5 d243e0a1ab Video tab: Generate-all button to queue every scene's clip in sequence
Queues clips one POST at a time in timeline order rather than a single
all-scenes request: the H3 prompt rewrite runs synchronously inside each
generate-videos request (~1-3 min per scene on local models), so one bulk
request for a long timeline would sit for many minutes and risk a client
timeout. The label is state-aware - 'Generate all (n)' targets only scenes
without a clip (skipping done and in-flight scenes), flipping to 'Regenerate
all' when the timeline is complete. A scene that fails to queue toasts and
the loop continues. Rendering itself stays serialized by the queue worker.

Workflow resolution matches the per-scene Generate button (session pick ->
scene's stored workflow -> first enabled video workflow), which also heals
scenes whose stored workflow was deleted - without it they enqueue a job
doomed to 'No workflow found for job'.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-23 00:39:37 +02:00
Justo StollandClaude Fable 5 882a345caf Script tab: per-scene 'Chain from prev clip' toggle - start a clip from the previous scene's last frame
Adds scenes.chain_from_prev (additive migration, same pattern as the existing
ones) with a toggle chip on every Script-tab scene card except the first.

The frame is resolved at JOB RUN time, not enqueue time: when queueing a whole
timeline the previous scene has not rendered yet at enqueue, but the worker is
sequential, so by the time scene N runs the clip for N-1 exists. The worker
finds the nearest earlier scene with a clip, extracts its last frame (ffmpeg,
already a runtime dependency for export), and swaps it into whichever ref slot
held the location image - located by value match against the enqueue-time
location path, so it works for any workflow layout (generic ref slots or
role-tagged), with the location-role node as fallback. No previous clip or a
failed extraction falls back to the scene's own refs with an event-bus notice,
never a hard failure.

On reference-style video workflows this yields scene-to-scene continuity (the
frame acts as the scene reference); on workflows with a pinned first-image
slot it opens frame-exact.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-23 00:39:37 +02:00
Benjiyaya 170dc0695d Calliope 1.1.0: publish backend, web, and example workflows 2026-08-19 03:53:29 +08:00