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.
This commit is contained in:
Benjiyaya
2026-08-24 04:29:49 +08:00
parent e87a7d3180
commit 71bed77095
30 changed files with 1584 additions and 350 deletions
+4 -2
View File
@@ -275,7 +275,7 @@ export const jobsApi = {
api<{ ok: boolean; job: Job }>(`/api/jobs/projects/${projectId}/export`, { method: 'POST' }),
};
export type PlaygroundAttachTarget = 'character_sheet' | 'location' | 'scene';
export type PlaygroundAttachTarget = 'character_sheet' | 'location' | 'item' | 'scene';
export type UploadKind = 'image' | 'video' | 'audio';
@@ -319,9 +319,11 @@ export const playgroundApi = {
target: PlaygroundAttachTarget;
character_id?: number;
location_id?: number;
item_id?: number;
scene_id?: number;
name?: string;
}) =>
api<{ ok: boolean; path: string; target: string; project_id: number }>(
api<{ ok: boolean; path: string; target: string; project_id: number; item_id?: number }>(
'/api/playground/attach',
{ method: 'POST', body: JSON.stringify(payload) },
),