@nodaro/cli 1.26.1 → 1.26.2

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
@@ -29,7 +29,7 @@ var require_package = __commonJS({
29
29
  "package.json"(exports$1, module) {
30
30
  module.exports = {
31
31
  name: "@nodaro/cli",
32
- version: "1.26.1",
32
+ version: "1.26.2",
33
33
  description: "Command-line interface for Nodaro \u2014 list and run workflows, inspect jobs and executions, manage projects from the terminal.",
34
34
  type: "module",
35
35
  license: "Apache-2.0",
@@ -70,11 +70,11 @@ var require_package = __commonJS({
70
70
  "@inquirer/confirm": "^6.0.12",
71
71
  "@inquirer/input": "^5.0.12",
72
72
  "@inquirer/select": "^5.1.4",
73
- "@nodaro/sdk": "^2.21.0",
74
- "@nodaro/shared": "^3.25.0",
73
+ "@nodaro/sdk": "^2.21.1",
74
+ "@nodaro/shared": "^3.26.0",
75
75
  commander: "^12.1.0",
76
76
  picocolors: "^1.1.1",
77
- "@nodaro/prompts": "^1.34.0"
77
+ "@nodaro/prompts": "^1.35.0"
78
78
  },
79
79
  devDependencies: {
80
80
  tsup: "^8.5.0",
@@ -398,7 +398,7 @@ function saveWorkspace(profileName, workspaceId) {
398
398
  }
399
399
 
400
400
  // src/client.ts
401
- var CLI_VERSION = "1.26.1" ;
401
+ var CLI_VERSION = "1.26.2" ;
402
402
  function buildClient(profileName) {
403
403
  const { name, profile } = getProfile(profileName);
404
404
  if (!profile) {
@@ -1520,7 +1520,7 @@ function charactersCommand() {
1520
1520
  handleError(err);
1521
1521
  }
1522
1522
  });
1523
- cmd.command("generate <id>").description("trigger portrait generation for a character").option("--seed-prompt <prompt>").option("--description <desc>").option("--provider <provider>", "image provider (defaults to nano-banana)").option("--count <n>", "1, 2, or 4 candidate portraits", "1").option("--name <name>", "override the character's display name in the prompt").option("--profile <name>").option("--json").option("--watch", "poll the first job until it completes").action(
1523
+ cmd.command("generate <id>").description("trigger portrait generation for a character").option("--seed-prompt <prompt>").option("--description <desc>").option("--provider <provider>", "image provider (defaults to gpt-image-2)").option("--count <n>", "1, 2, or 4 candidate portraits", "1").option("--name <name>", "override the character's display name in the prompt").option("--profile <name>").option("--json").option("--watch", "poll the first job until it completes").action(
1524
1524
  async (id, opts) => {
1525
1525
  try {
1526
1526
  const client = buildClient(opts.profile);
@@ -1688,7 +1688,7 @@ function promptCommand() {
1688
1688
  const cmd = new Command("prompt").description(
1689
1689
  "AI prompt wizard \u2014 analyze, generate, and enhance prompts for generation nodes"
1690
1690
  );
1691
- cmd.command("wizard").description("interactive: answer guided questions and get an optimized prompt").option("--node-type <type>", "target node type (omit for an interactive picker)").option("--prompt <text>", "your rough idea (optional)").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini models only: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit tier up, capped at premium.").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").action(async (opts) => {
1691
+ cmd.command("wizard").description("interactive: answer guided questions and get an optimized prompt").option("--node-type <type>", "target node type (omit for an interactive picker)").option("--prompt <text>", "your rough idea (optional)").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini and Claude models: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit rung up (a premium model moves to premium-direct).").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").action(async (opts) => {
1692
1692
  try {
1693
1693
  if (!isInteractive()) {
1694
1694
  warn("`prompt wizard` needs an interactive terminal \u2014 use `prompt analyze` + `prompt generate`, or `prompt enhance`, in scripts.");
@@ -1738,7 +1738,7 @@ function promptCommand() {
1738
1738
  handleError(err);
1739
1739
  }
1740
1740
  });
1741
- cmd.command("analyze").description("return guided questions for a rough prompt idea").requiredOption("--node-type <type>").option("--prompt <text>").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini models only: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit tier up, capped at premium.").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").option("--json").action(async (opts) => {
1741
+ cmd.command("analyze").description("return guided questions for a rough prompt idea").requiredOption("--node-type <type>").option("--prompt <text>").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini and Claude models: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit rung up (a premium model moves to premium-direct).").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").option("--json").action(async (opts) => {
1742
1742
  try {
1743
1743
  const client = buildClient(opts.profile);
1744
1744
  const { jobId, questions } = await client.promptHelper.analyze({
@@ -1763,7 +1763,7 @@ function promptCommand() {
1763
1763
  handleError(err);
1764
1764
  }
1765
1765
  });
1766
- cmd.command("generate").description("build an optimized prompt from --selection category=value flags").requiredOption("--node-type <type>").option("--selection <pairs...>", "category=value (repeat); custom answers are wizard-only", collectVariadic).option("--original-prompt <text>").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini models only: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit tier up, capped at premium.").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").option("--json").action(async (opts) => {
1766
+ cmd.command("generate").description("build an optimized prompt from --selection category=value flags").requiredOption("--node-type <type>").option("--selection <pairs...>", "category=value (repeat); custom answers are wizard-only", collectVariadic).option("--original-prompt <text>").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini and Claude models: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit rung up (a premium model moves to premium-direct).").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").option("--json").action(async (opts) => {
1767
1767
  try {
1768
1768
  const client = buildClient(opts.profile);
1769
1769
  const selections = parseSelectionPairs(opts.selection);
@@ -1783,7 +1783,7 @@ function promptCommand() {
1783
1783
  handleError(err);
1784
1784
  }
1785
1785
  });
1786
- cmd.command("enhance").description("rewrite a rough idea into one optimized prompt (no questions)").requiredOption("--node-type <type>").option("--prompt <text>").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini models only: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit tier up, capped at premium.").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").option("--json").action(async (opts) => {
1786
+ cmd.command("enhance").description("rewrite a rough idea into one optimized prompt (no questions)").requiredOption("--node-type <type>").option("--prompt <text>").option("--provider <name>").option("--style <name>").option("--aspect-ratio <ratio>").option("--duration <seconds>", "clip duration in seconds", (v) => parseInt(v, 10)).option("--llm-model <id>").option("--reasoning-effort <level>", "reasoning effort: none|low|medium|high|xhigh|max (model-dependent)").option("--advanced", "Gemini and Claude models: run on the provider's own API so --temperature/--max-tokens/the full reasoning range apply. Bills one credit rung up (a premium model moves to premium-direct).").option("--temperature <n>", "Sampling temperature (only with --advanced)", parseFloat).option("--max-tokens <n>", "Output token cap (only with --advanced)", (v) => parseInt(v, 10)).option("--profile <name>").option("--json").action(async (opts) => {
1787
1787
  try {
1788
1788
  const client = buildClient(opts.profile);
1789
1789
  const result = await client.promptHelper.enhance({
@@ -4638,7 +4638,7 @@ function locationsCommand() {
4638
4638
  handleError(err);
4639
4639
  }
4640
4640
  });
4641
- cmd.command("generate").description("trigger main-image generation for a location").requiredOption("--name <name>", "the location's display name (used in the prompt)").option("--description <desc>").option("--user-prompt <prompt>", "additional free-text prompt").option("--category <category>").option("--style <style>").option("--provider <provider>", "image provider (defaults to nano-banana)").option("--count <n>", "1, 2, or 4 candidate main images", "1").option("--attach-to-location-id <id>", "auto-attach result to this location row (count=1 only)").option("--profile <name>").option("--json").option("--watch", "poll the first job until it completes").action(
4641
+ cmd.command("generate").description("trigger main-image generation for a location").requiredOption("--name <name>", "the location's display name (used in the prompt)").option("--description <desc>").option("--user-prompt <prompt>", "additional free-text prompt").option("--category <category>").option("--style <style>").option("--provider <provider>", "image provider (defaults to gpt-image-2)").option("--count <n>", "1, 2, or 4 candidate main images", "1").option("--attach-to-location-id <id>", "auto-attach result to this location row (count=1 only)").option("--profile <name>").option("--json").option("--watch", "poll the first job until it completes").action(
4642
4642
  async (opts) => {
4643
4643
  try {
4644
4644
  const client = buildClient(opts.profile);
@@ -4988,7 +4988,7 @@ function objectsCommand() {
4988
4988
  handleError(err);
4989
4989
  }
4990
4990
  });
4991
- cmd.command("generate").description("trigger main-image generation for an object").requiredOption("--name <name>", "the object's display name (used in the prompt)").option("--description <desc>").option("--user-prompt <prompt>", "additional free-text prompt").addOption(new Option("--category <category>", "object category").choices([...OBJECT_CATEGORIES])).addOption(new Option("--style <style>", "object visual style").choices([...OBJECT_STYLES])).option("--provider <provider>", "image provider (defaults to nano-banana)").option("--count <n>", "1, 2, or 4 candidate main images", "1").option("--attach-to-object-id <id>", "auto-attach result to this object row (count=1 only)").option("--seed-prompt-hint <hint>", "parameter-picker prompt-fragment pass-through").option("--profile <name>").option("--json").option("--watch", "poll all jobs until they complete (parallel)").action(
4991
+ cmd.command("generate").description("trigger main-image generation for an object").requiredOption("--name <name>", "the object's display name (used in the prompt)").option("--description <desc>").option("--user-prompt <prompt>", "additional free-text prompt").addOption(new Option("--category <category>", "object category").choices([...OBJECT_CATEGORIES])).addOption(new Option("--style <style>", "object visual style").choices([...OBJECT_STYLES])).option("--provider <provider>", "image provider (defaults to gpt-image-2)").option("--count <n>", "1, 2, or 4 candidate main images", "1").option("--attach-to-object-id <id>", "auto-attach result to this object row (count=1 only)").option("--seed-prompt-hint <hint>", "parameter-picker prompt-fragment pass-through").option("--profile <name>").option("--json").option("--watch", "poll all jobs until they complete (parallel)").action(
4992
4992
  async (opts) => {
4993
4993
  try {
4994
4994
  const client = buildClient(opts.profile);