@nodaro/cli 1.50.1 → 1.51.0

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/README.md CHANGED
@@ -121,6 +121,7 @@ nodaro nodes list [--category ai|processing|input|...]
121
121
  nodaro nodes get <type> # full input schema
122
122
  nodaro nodes run <type> --param prompt="…" --param provider=flux [--watch]
123
123
  nodaro nodes run <type> --params-file body.json [--watch] [--poll-interval 1000]
124
+ nodaro nodes run generate-video|text-to-video … [--reference-task-type auto|reference|edit|extend] # what the reference media is for
124
125
 
125
126
  # Models — browse the model catalog (makers, capability sheets, credit pricing, prompt tips)
126
127
  nodaro models list [--kind video] [--mode i2v] [--family Google] [--featured]
@@ -238,6 +239,12 @@ nodaro nodes run generate-image \
238
239
 
239
240
  For arrays, nested objects, or any value that doesn't fit the flag form, use `--params-file body.json`. Flag values override file values for the same key.
240
241
 
242
+ `--reference-task-type <auto|reference|edit|extend>` (`generate-video`, `text-to-video`) sets `referenceTaskType`, what the request's reference media is for; the platform decides whether the model and the request declare it. It wins over the same key in `--param` / `--params-file`, and `--param referenceTaskType=edit` still works. Any other node type refuses it, `video-to-video` included (an edit always runs as an edit there).
243
+
244
+ ```bash
245
+ nodaro nodes run generate-video --params-file body.json --reference-task-type extend --watch
246
+ ```
247
+
241
248
  ## Output formatting
242
249
 
243
250
  Every read command supports `--json` for machine-readable output:
package/dist/index.js CHANGED
@@ -15,8 +15,8 @@ import { transcribeTranslationRefusal, collectionRecordHeadline, PREVIEW_RENDER_
15
15
  import select from '@inquirer/select';
16
16
  import checkbox from '@inquirer/checkbox';
17
17
  import input from '@inquirer/input';
18
+ import { TRANSCRIBE_PROVIDERS, transcribeLaneSupportsWordTimestamps, SEEDANCE_REFERENCE_TASK_TYPES, DIALOGUE_PROVIDERS, dialogueStabilityAccepted, dialogueProviderOf, getDialogueCapabilities, CAPTION_TRANSCRIBE_LANES, DEFAULT_TRANSCRIBE_PROVIDER, TRANSCRIBE_TARGET_LANGUAGES } from '@nodaro/shared/models';
18
19
  import { CHARACTER_STYLES } from '@nodaro/shared/entities';
19
- import { TRANSCRIBE_PROVIDERS, transcribeLaneSupportsWordTimestamps, DIALOGUE_PROVIDERS, dialogueStabilityAccepted, dialogueProviderOf, getDialogueCapabilities, CAPTION_TRANSCRIBE_LANES, DEFAULT_TRANSCRIBE_PROVIDER, TRANSCRIBE_TARGET_LANGUAGES } from '@nodaro/shared/models';
20
20
  import { VOICE_FAVORITE_TYPES } from '@nodaro/shared/pipeline';
21
21
  import { OVERLAY_ANCHORS, OVERLAY_PLATFORM_IDS, GENERATE_MASK_LIMITS, DEFAULT_VIDEO_MASK_PROVIDER, VIDEO_MASK_PROVIDERS, VIDEO_MASK_LIMITS, MASK_COMPOSITE_BOUNDS, MASK_COMPOSITE_DEFAULTS, MASK_COMPOSITE_BACKGROUND_FITS, MASK_COMPOSITE_AUDIO_SOURCES, MASK_COMPOSITE_FILLS } from '@nodaro/shared/media';
22
22
  import { ALL_CAPTION_STYLES, DEFAULT_CAPTION_LOOK, CAPTION_LOOK_IDS, CAPTION_MAX_WORDS_PER_LINE_MIN, CAPTION_MAX_WORDS_PER_LINE_MAX, SUPPORTED_FONT_NAMES } from '@nodaro/shared/captions';
@@ -42,7 +42,7 @@ var require_package = __commonJS({
42
42
  "package.json"(exports$1, module) {
43
43
  module.exports = {
44
44
  name: "@nodaro/cli",
45
- version: "1.50.1",
45
+ version: "1.51.0",
46
46
  description: "Command-line interface for Nodaro \u2014 list and run workflows, inspect jobs and executions, manage projects from the terminal.",
47
47
  type: "module",
48
48
  license: "Apache-2.0",
@@ -83,11 +83,11 @@ var require_package = __commonJS({
83
83
  "@inquirer/confirm": "^6.0.12",
84
84
  "@inquirer/input": "^5.0.12",
85
85
  "@inquirer/select": "^5.1.4",
86
- "@nodaro/sdk": "^2.71.0",
87
- "@nodaro/shared": "^3.64.0",
86
+ "@nodaro/sdk": "^2.75.0",
87
+ "@nodaro/shared": "^3.69.0",
88
88
  commander: "^12.1.0",
89
89
  picocolors: "^1.1.1",
90
- "@nodaro/prompts": "^1.56.0"
90
+ "@nodaro/prompts": "^1.59.0"
91
91
  },
92
92
  devDependencies: {
93
93
  tsup: "^8.5.0",
@@ -414,7 +414,7 @@ function saveWorkspace(profileName, workspaceId) {
414
414
  }
415
415
 
416
416
  // src/client.ts
417
- var CLI_VERSION = "1.50.1" ;
417
+ var CLI_VERSION = "1.51.0" ;
418
418
  function buildPublicClient(opts = {}) {
419
419
  const { profile } = getProfile(opts.profile);
420
420
  return createClient({
@@ -1939,6 +1939,20 @@ function withBatchFlags(type, params, flags) {
1939
1939
  }
1940
1940
  return out;
1941
1941
  }
1942
+ var REFERENCE_TASK_NODE_TYPES = ["generate-video", "text-to-video"];
1943
+ function withReferenceTaskType(type, params, value) {
1944
+ if (value === void 0) return params;
1945
+ if (type === "video-to-video") {
1946
+ throw new Error("--reference-task-type does not apply to video-to-video: an edit always runs as an edit");
1947
+ }
1948
+ if (!REFERENCE_TASK_NODE_TYPES.includes(type)) {
1949
+ throw new Error(`--reference-task-type is a ${REFERENCE_TASK_NODE_TYPES.join(" / ")} option (got node type "${type}")`);
1950
+ }
1951
+ if (!SEEDANCE_REFERENCE_TASK_TYPES.includes(value)) {
1952
+ throw new Error(`--reference-task-type must be one of ${SEEDANCE_REFERENCE_TASK_TYPES.join(", ")} (got "${value}")`);
1953
+ }
1954
+ return { ...params, referenceTaskType: value };
1955
+ }
1942
1956
  function batchOf(result) {
1943
1957
  const r = result;
1944
1958
  return r && Array.isArray(r.jobIds) && Array.isArray(r.groups) && typeof r.batchId === "string" ? r : null;
@@ -2016,7 +2030,7 @@ function nodesCommand() {
2016
2030
  handleError(err);
2017
2031
  }
2018
2032
  });
2019
- cmd.command("run [type] [extras...]").description("run a single node directly \u2014 no workflow, no DAG. Inputs go through --param k=v (repeat) or --params-file body.json. Omit <type> for an interactive picker.").option("--param <pairs...>", `input value, repeat or space-separate; JSON arrays/objects supported (e.g. --param prompt="a leopard" --param 'targetPickers=["person"]')`, collectVariadic).option("--params-file <path>", "JSON file with the full input body (--param flags override matching keys)").option("--watch", "if the response includes a jobId, poll until the job completes (every job of a batch)").option("--poll-interval <ms>", "watch poll interval in ms", (v) => parseInt(v, 10), 2e3).option("--count <n>", "generate-image: how many images (1-4), each its own job; with --models, per model").option("--models <ids>", "generate-image: run the same request on 2-4 models at once (comma-separated), instead of provider").option("--profile <name>").option("--json").addHelpText("after", `
2033
+ cmd.command("run [type] [extras...]").description("run a single node directly \u2014 no workflow, no DAG. Inputs go through --param k=v (repeat) or --params-file body.json. Omit <type> for an interactive picker.").option("--param <pairs...>", `input value, repeat or space-separate; JSON arrays/objects supported (e.g. --param prompt="a leopard" --param 'targetPickers=["person"]')`, collectVariadic).option("--params-file <path>", "JSON file with the full input body (--param flags override matching keys)").option("--watch", "if the response includes a jobId, poll until the job completes (every job of a batch)").option("--poll-interval <ms>", "watch poll interval in ms", (v) => parseInt(v, 10), 2e3).option("--count <n>", "generate-image: how many images (1-4), each its own job; with --models, per model").option("--models <ids>", "generate-image: run the same request on 2-4 models at once (comma-separated), instead of provider").option("--reference-task-type <type>", `generate-video / text-to-video: what the reference media is for (${SEEDANCE_REFERENCE_TASK_TYPES.join(", ")}); the platform decides whether the model and request declare it`).option("--profile <name>").option("--json").addHelpText("after", `
2020
2034
  Examples:
2021
2035
  $ nodaro nodes run generate-image --param prompt="a snow leopard" --watch
2022
2036
  $ nodaro nodes run generate-image --param prompt="hi" --param provider=flux --param resolution=2K --watch
@@ -2027,6 +2041,7 @@ Examples:
2027
2041
  $ nodaro nodes run generate-image --param presetId=generate-image/logo-wordmark --param presetVariables='{"BRAND":"Acme"}' --watch
2028
2042
  $ nodaro nodes run text-to-speech --param text="And so it begins." --param previousText="The night before, nobody slept." --param nextText="By noon the harbour was empty." --watch
2029
2043
  $ nodaro nodes run video-depth --param videoUrl=https://cdn.example/clip.mp4 --param colormap=turbo --watch
2044
+ $ nodaro nodes run generate-video --params-file body.json --reference-task-type extend --watch
2030
2045
 
2031
2046
  Structured references (the editor's wired-reference shape) \u2014 let a {image:N} prompt
2032
2047
  token bind a labeled reference, assembled server-side into @image_N (same as the
@@ -2043,7 +2058,11 @@ Tip: \`nodaro nodes get <type>\` shows the full input schema (required fields, p
2043
2058
  try {
2044
2059
  const client = buildClient(opts.profile);
2045
2060
  const resolvedType = type ?? await pickNodeInteractively(client);
2046
- const params = withBatchFlags(resolvedType, resolveParams(opts.param, opts.paramsFile), opts);
2061
+ const params = withReferenceTaskType(
2062
+ resolvedType,
2063
+ withBatchFlags(resolvedType, resolveParams(opts.param, opts.paramsFile), opts),
2064
+ opts.referenceTaskType
2065
+ );
2047
2066
  const result = await client.nodes.run(resolvedType, params);
2048
2067
  const jobId = typeof result === "object" && result && "jobId" in result ? result.jobId : null;
2049
2068
  if (opts.json && !opts.watch) {
@@ -5774,8 +5793,10 @@ Examples:
5774
5793
  $ nodaro pickers get person --field hairColor
5775
5794
  $ nodaro pickers get person --json | jq '.dimensions[].options[] | {id, imageUrl}'
5776
5795
 
5777
- Options that have a picture carry an absolute imageUrl; person and styling also
5778
- return their topics (sections), each with its round picture.`
5796
+ Options that have a picture carry an imageUrl: an absolute URL, or, for a
5797
+ picture a deployment ships on its own site, a path on that site (/brand/...),
5798
+ which is on the API address you call. Person and styling also return their
5799
+ topics (sections), each with its round picture.`
5779
5800
  ).action(
5780
5801
  async (nodeType, opts) => {
5781
5802
  try {