From f788fd4bb4c315ba8523c4f7361bab0b9b3aa864 Mon Sep 17 00:00:00 2001 From: Towsty Date: Tue, 1 Sep 2026 18:39:02 -0500 Subject: [PATCH] Split prompts into pre/prompt/post and tidy the AIGen video form. Keep wrappers off the library mid-prompt so Use as input and Extend restore the same split, send stills to xAIGen as hidden inputs, and stop the two-column library from growing with the list. Co-authored-by: Cursor --- .env.example | 5 + components/GlobalLocksEditor.vue | 63 ++-- components/PromptField.vue | 71 ++++ components/PromptPartsEditor.vue | 208 ++++++++++ nuxt.config.ts | 6 +- pages/index.vue | 357 ++++++++++-------- pages/library.vue | 23 ++ server/api/edit.post.ts | 4 + server/api/extend.post.ts | 12 +- server/api/generate.post.ts | 12 +- server/api/library/backup-ingest.post.ts | 48 +++ server/api/library/stills/[id]/backup.post.ts | 38 ++ server/api/v2/generate.post.ts | 4 + server/utils/imageChain.ts | 10 +- server/utils/imageChainV2.ts | 5 +- server/utils/jobs.ts | 3 + server/utils/library.ts | 20 +- server/utils/pending.ts | 8 + server/utils/studioQueue.ts | 6 + server/utils/videoChain.ts | 3 +- server/utils/watch.ts | 4 +- utils/promptParts.ts | 42 +++ 22 files changed, 753 insertions(+), 199 deletions(-) create mode 100644 components/PromptField.vue create mode 100644 components/PromptPartsEditor.vue create mode 100644 server/api/library/backup-ingest.post.ts create mode 100644 server/api/library/stills/[id]/backup.post.ts create mode 100644 utils/promptParts.ts diff --git a/.env.example b/.env.example index 6f321fd..ed3a11e 100644 --- a/.env.example +++ b/.env.example @@ -24,6 +24,11 @@ NUXT_OIDC_AUTHORIZE_URL=https://auth.carrgarage.com/application/o/authorize/ NUXT_OIDC_TOKEN_URL=http://192.168.77.2:9000/application/o/token/ LIBRARY_DIR=/data/library +# AIGen → xAIGen still backup. Set the URL + token on AIGen. Set the same token on xAIGen as BACKUP_INGEST_TOKEN. +# BACKUP_STUDIO_URL=https://xaigen.carrgarage.com +# BACKUP_STUDIO_TOKEN= +# BACKUP_INGEST_TOKEN= + # Private clone (xaigen): password login, isolated library, Comfy prefix # AUTH_MODE=password # NUXT_PUBLIC_INSTANCE_NAME=xAIGen diff --git a/components/GlobalLocksEditor.vue b/components/GlobalLocksEditor.vue index 274890b..fcd6294 100644 --- a/components/GlobalLocksEditor.vue +++ b/components/GlobalLocksEditor.vue @@ -1,5 +1,5 @@