@chuzi/shared 1.3.43 → 1.3.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -297,6 +297,14 @@ var REALMS = {
297
297
  chuzi_ai_insufficient: "Not enough create credits for this generation.",
298
298
  chuzi_ai_apply: "Build story",
299
299
  chuzi_ai_applying: "Building scenes\u2026",
300
+ chuzi_ai_scene_create: "Create scene with Chuzi AI",
301
+ chuzi_ai_scene_overwrite: "Rewrite scene with Chuzi AI",
302
+ chuzi_ai_scene_brief: "Scene direction",
303
+ chuzi_ai_scene_brief_hint: "Describe what should happen in this scene. Chuzi AI reads your existing story for characters, tone, and style.",
304
+ chuzi_ai_scene_context_note: "Uses your story\u2019s existing scenes, typography, and art direction as context.",
305
+ chuzi_ai_scene_overwrite_confirm: "I understand this replaces this scene\u2019s text and styling.",
306
+ chuzi_ai_scene_apply_create: "Create scene",
307
+ chuzi_ai_scene_apply_overwrite: "Replace scene",
300
308
  chuzi_ai_step_hero: "Hero",
301
309
  chuzi_ai_step_hero_hint: "Who is your protagonist? Name, age, personality, and what makes them relatable.",
302
310
  chuzi_ai_step_world: "Ordinary world",
@@ -682,6 +690,14 @@ var REALMS = {
682
690
  chuzi_ai_insufficient: "Not enough create credits for this generation.",
683
691
  chuzi_ai_apply: "Build story",
684
692
  chuzi_ai_applying: "Building scenes\u2026",
693
+ chuzi_ai_scene_create: "Create scene with Chuzi AI",
694
+ chuzi_ai_scene_overwrite: "Rewrite scene with Chuzi AI",
695
+ chuzi_ai_scene_brief: "Scene direction",
696
+ chuzi_ai_scene_brief_hint: "Describe what should happen in this scene. Chuzi AI reads your existing story for characters, tone, and style.",
697
+ chuzi_ai_scene_context_note: "Uses your story\u2019s existing scenes, typography, and art direction as context.",
698
+ chuzi_ai_scene_overwrite_confirm: "I understand this replaces this scene\u2019s text and styling.",
699
+ chuzi_ai_scene_apply_create: "Create scene",
700
+ chuzi_ai_scene_apply_overwrite: "Replace scene",
685
701
  chuzi_ai_step_hero: "Hero",
686
702
  chuzi_ai_step_hero_hint: "Who is your protagonist? Name, age, personality, and what makes them relatable.",
687
703
  chuzi_ai_step_world: "Ordinary world",
@@ -1065,6 +1081,14 @@ var FALLBACK_LEXICON = {
1065
1081
  chuzi_ai_insufficient: "Not enough create credits for this generation.",
1066
1082
  chuzi_ai_apply: "Build story",
1067
1083
  chuzi_ai_applying: "Building scenes\u2026",
1084
+ chuzi_ai_scene_create: "Create scene with Chuzi AI",
1085
+ chuzi_ai_scene_overwrite: "Rewrite scene with Chuzi AI",
1086
+ chuzi_ai_scene_brief: "Scene direction",
1087
+ chuzi_ai_scene_brief_hint: "Describe what should happen in this scene. Chuzi AI reads your existing story for characters, tone, and style.",
1088
+ chuzi_ai_scene_context_note: "Uses your story\u2019s existing scenes, typography, and art direction as context.",
1089
+ chuzi_ai_scene_overwrite_confirm: "I understand this replaces this scene\u2019s text and styling.",
1090
+ chuzi_ai_scene_apply_create: "Create scene",
1091
+ chuzi_ai_scene_apply_overwrite: "Replace scene",
1068
1092
  chuzi_ai_step_hero: "Hero",
1069
1093
  chuzi_ai_step_hero_hint: "Who is your protagonist? Name, age, personality, and what makes them relatable.",
1070
1094
  chuzi_ai_step_world: "Ordinary world",
@@ -1652,7 +1676,13 @@ function createChuziClient(config) {
1652
1676
  reject: (id, req) => request("POST", `/api/v1/ai/generations/${encodeURIComponent(id)}/reject`, { body: req }),
1653
1677
  storyStyle: (storyId, opts) => request("GET", `/api/v1/ai/stories/${encodeURIComponent(storyId)}/style`, opts),
1654
1678
  storyEstimate: (req) => request("POST", "/api/v1/ai/story/estimate", { body: req }),
1655
- storyGenerate: (req) => request("POST", "/api/v1/ai/story/generate", { body: req })
1679
+ storyGenerate: (req) => request("POST", "/api/v1/ai/story/generate", { body: req }),
1680
+ sceneEstimate: (req) => request("POST", `/api/v1/ai/stories/${encodeURIComponent(req.story_id)}/scene/estimate`, {
1681
+ body: { brief: req.brief, mode: req.mode, scene_id: req.scene_id }
1682
+ }),
1683
+ sceneGenerate: (req) => request("POST", `/api/v1/ai/stories/${encodeURIComponent(req.story_id)}/scene/generate`, {
1684
+ body: { brief: req.brief, mode: req.mode, scene_id: req.scene_id }
1685
+ })
1656
1686
  }
1657
1687
  };
1658
1688
  }