@nodaro/cli 1.38.0 → 1.39.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/dist/index.js CHANGED
@@ -41,7 +41,7 @@ var require_package = __commonJS({
41
41
  "package.json"(exports$1, module) {
42
42
  module.exports = {
43
43
  name: "@nodaro/cli",
44
- version: "1.38.0",
44
+ version: "1.39.0",
45
45
  description: "Command-line interface for Nodaro \u2014 list and run workflows, inspect jobs and executions, manage projects from the terminal.",
46
46
  type: "module",
47
47
  license: "Apache-2.0",
@@ -82,11 +82,11 @@ var require_package = __commonJS({
82
82
  "@inquirer/confirm": "^6.0.12",
83
83
  "@inquirer/input": "^5.0.12",
84
84
  "@inquirer/select": "^5.1.4",
85
- "@nodaro/sdk": "^2.43.0",
86
- "@nodaro/shared": "^3.38.0",
85
+ "@nodaro/sdk": "^2.44.0",
86
+ "@nodaro/shared": "^3.41.0",
87
87
  commander: "^12.1.0",
88
88
  picocolors: "^1.1.1",
89
- "@nodaro/prompts": "^1.40.0"
89
+ "@nodaro/prompts": "^1.42.0"
90
90
  },
91
91
  devDependencies: {
92
92
  tsup: "^8.5.0",
@@ -413,7 +413,7 @@ function saveWorkspace(profileName, workspaceId) {
413
413
  }
414
414
 
415
415
  // src/client.ts
416
- var CLI_VERSION = "1.38.0" ;
416
+ var CLI_VERSION = "1.39.0" ;
417
417
  function buildPublicClient(opts = {}) {
418
418
  const { profile } = getProfile(opts.profile);
419
419
  return createClient({
@@ -1201,6 +1201,30 @@ function workflowsCommand() {
1201
1201
  handleError(err);
1202
1202
  }
1203
1203
  });
1204
+ cmd.command("mcp-conversations").description("list your MCP conversations of one month \u2014 each a flow an assistant built").option("--month <YYYY-MM>", "the month to list (default: the latest month that has conversations)").option("--source <list>", "only these sources, comma-separated (claude, claude-code, chatgpt, ...)").option("--profile <name>").option("--json").action(async (opts) => {
1205
+ try {
1206
+ const client = buildClient(opts.profile);
1207
+ const sources = opts.source?.split(",").map((s) => s.trim()).filter(Boolean);
1208
+ const result = await client.workflows.listMcpConversations({ month: opts.month, sources });
1209
+ if (opts.json) {
1210
+ emit(result, opts);
1211
+ return;
1212
+ }
1213
+ table(
1214
+ result.data.map((c) => ({
1215
+ id: c.id,
1216
+ name: c.name,
1217
+ source: c.clientLabel,
1218
+ nodes: c.nodeCount,
1219
+ credits: c.credits ?? "",
1220
+ startedAt: c.startedAt
1221
+ })),
1222
+ ["id", "name", "source", "nodes", "credits", "startedAt"]
1223
+ );
1224
+ } catch (err) {
1225
+ handleError(err);
1226
+ }
1227
+ });
1204
1228
  cmd.addCommand(collaboratorsCommand());
1205
1229
  return cmd;
1206
1230
  }
@@ -5936,7 +5960,9 @@ function addRunFlags(cmd) {
5936
5960
  "--choice <key.chip=new|original>",
5937
5961
  "a slot's chip: make it anew from your pictures or keep the clip's, e.g. person.outfit=original (repeatable; only the chips `trends get` lists for the slot)",
5938
5962
  collectVariadic
5939
- ).option("--example <n>", "1-based example whose pictures fill the optional slots you leave empty (default 1)").option("--details <text>", "your own words (at most 1,000 characters); mention a slot as {slot:<key>}").option("--preview", "a 4-second preview run (only when the trend offers one)").addOption(new Option("--resolution <r>", "default 480p").choices([...RESOLUTIONS])).option("--no-draft", "a full run instead of a draft (a draft is 480p only, and the default there)");
5963
+ ).option("--example <n>", "1-based example whose pictures fill the optional slots you leave empty (default 1)").option("--details <text>", "your own words (at most 1,000 characters); mention a slot as {slot:<key>}").option("--preview", "a 4-second preview run (only when the trend offers one)").addOption(
5964
+ new Option("--resolution <r>", "one the trend offers (`trends get`); default its first: 480p, or 720p on a Kling 4 trend").choices([...RESOLUTIONS])
5965
+ ).option("--no-draft", "a full run instead of a draft (a draft is 480p only, and the default there; a Kling 4 trend has none)");
5940
5966
  }
5941
5967
  function checkSlotKey(flag, spec, key2) {
5942
5968
  if (!SLOT_KEY_RE.test(key2) || key2 === "__proto__") {
@@ -6039,7 +6065,7 @@ function trendsCommand() {
6039
6065
  handleError(err);
6040
6066
  }
6041
6067
  });
6042
- cmd.command("get <slug>").description("a trend's page: its slots, examples, preview and resolutions").option("--locale <locale>", "language of names and descriptions").option("--profile <name>").option("--json").action(async (slug, opts) => {
6068
+ cmd.command("get <slug>").description("a trend's page: its slots, examples, preview, engine and resolutions").option("--locale <locale>", "language of names and descriptions").option("--profile <name>").option("--json").action(async (slug, opts) => {
6043
6069
  try {
6044
6070
  const trend = await buildClient(opts.profile).trends.get(slug, { locale: opts.locale });
6045
6071
  if (opts.json) emit(trend, opts);
@@ -6145,9 +6171,9 @@ function trendsCommand() {
6145
6171
  }
6146
6172
  function fullQualityCommand() {
6147
6173
  const cmd = new Command("full-quality").description(
6148
- "finish a draft run (Cast Swap or trend) at Full Quality: the same take at 1080p, as a new job \u2014 `estimate` quotes it (free), `run` SPENDS CREDITS"
6174
+ "finish a run (Cast Swap or trend) at Full Quality at 1080p, as a new job: a draft's same take, or a new take of a Kling 4 720p run \u2014 `estimate` quotes it (free), `run` SPENDS CREDITS"
6149
6175
  );
6150
- cmd.command("estimate <jobId>").description("quote finishing the draft at Full Quality (free): the credits, and until when the draft can be finished").option("--profile <name>").option("--json").action(async (jobId, opts) => {
6176
+ cmd.command("estimate <jobId>").description("quote finishing the run at Full Quality (free): same or new take, the credits, and until when it can be finished").option("--profile <name>").option("--json").action(async (jobId, opts) => {
6151
6177
  try {
6152
6178
  const quote = await buildClient(opts.profile).castSwap.fullQualityEstimate(jobId);
6153
6179
  if (opts.json) {
@@ -6155,9 +6181,12 @@ function fullQualityCommand() {
6155
6181
  return;
6156
6182
  }
6157
6183
  info(`about ${quote.totalCredits} credits`);
6158
- dim(` castSwap: ${quote.breakdown.castSwap}`);
6159
- dim(` seedanceHd: ${quote.breakdown.seedanceHd}`);
6160
- if (quote.breakdown.seedanceHd === 0) dim(" an earlier try's 1080p render is reused");
6184
+ if (quote.kind === "new-take") dim("a NEW take at 1080p from the same inputs (the 720p run stays)");
6185
+ else dim("the same take at 1080p");
6186
+ for (const [part, credits] of Object.entries(quote.breakdown)) {
6187
+ if (typeof credits === "number") dim(` ${terminalSafe(part)}: ${credits}`);
6188
+ }
6189
+ if (quote.kind !== "new-take" && quote.breakdown.seedanceHd === 0) dim(" an earlier try's 1080p render is reused");
6161
6190
  dim(`available until ${terminalSafe(quote.availableUntil)}`);
6162
6191
  } catch (err) {
6163
6192
  handleError(err);
@@ -6174,7 +6203,7 @@ function fullQualityCommand() {
6174
6203
  return;
6175
6204
  }
6176
6205
  const id = terminalSafe(result.jobId);
6177
- if (result.existing) info(`this draft's Full Quality already exists \u2014 job ${id} (nothing new was charged)`);
6206
+ if (result.existing) info(`this run's Full Quality already exists \u2014 job ${id} (nothing new was charged)`);
6178
6207
  else success(`started Full Quality \u2014 job ${id}`);
6179
6208
  dim(`follow it: nodaro jobs get ${id}`);
6180
6209
  } catch (err) {