@nodaro/cli 1.37.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.37.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.37.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.37.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
  }
@@ -1287,7 +1311,7 @@ function ratingArg(value) {
1287
1311
  }
1288
1312
  function jobsCommand() {
1289
1313
  const cmd = new Command("jobs").description("list, inspect, rate and cancel jobs");
1290
- cmd.command("list").description("your jobs, newest first").option("--status <statuses>", "only these statuses, comma-separated (e.g. failed,cancelled)").option("--type <types>", "only these input_data.type values, comma-separated (e.g. generate-image)").option("--origin <origin>", "only jobs this client app sent").option("--favorited", "only jobs you favorited").option("--no-favorited", "only jobs you did not favorite").option("--rating <rating>", "good, bad, rated (any) or unrated").option("--limit <n>", "page size (1-100)").option("--cursor <cursor>", "the previous page's next").option("--profile <name>").option("--json").action(async (opts) => {
1314
+ cmd.command("list").description("your jobs, newest first").option("--status <statuses>", "only these statuses, comma-separated (e.g. failed,cancelled)").option("--type <types>", "only these input_data.type values, comma-separated (e.g. generate-image)").option("--origin <origin>", "only jobs this client app sent").option("--source <sources>", "only jobs these surfaces created, comma-separated (mcp, web, cli, sdk, extension, app, api, internal)").option("--favorited", "only jobs you favorited").option("--no-favorited", "only jobs you did not favorite").option("--rating <rating>", "good, bad, rated (any) or unrated").option("--limit <n>", "page size (1-100)").option("--cursor <cursor>", "the previous page's next").option("--profile <name>").option("--json").action(async (opts) => {
1291
1315
  try {
1292
1316
  const rating = ratingFilter(opts.rating);
1293
1317
  const client = buildClient(opts.profile);
@@ -1295,6 +1319,7 @@ function jobsCommand() {
1295
1319
  status: list(opts.status),
1296
1320
  type: list(opts.type),
1297
1321
  origin: opts.origin,
1322
+ source: list(opts.source),
1298
1323
  favorited: opts.favorited,
1299
1324
  rating,
1300
1325
  limit: opts.limit ? Number(opts.limit) : void 0,
@@ -5933,9 +5958,11 @@ function addRunFlags(cmd) {
5933
5958
  collectVariadic
5934
5959
  ).option(
5935
5960
  "--choice <key.chip=new|original>",
5936
- "a slot's chip: make it anew from your pictures or keep the clip's, e.g. person.outfit=original (repeatable)",
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)",
5937
5962
  collectVariadic
5938
- ).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)");
5939
5966
  }
5940
5967
  function checkSlotKey(flag, spec, key2) {
5941
5968
  if (!SLOT_KEY_RE.test(key2) || key2 === "__proto__") {
@@ -6038,7 +6065,7 @@ function trendsCommand() {
6038
6065
  handleError(err);
6039
6066
  }
6040
6067
  });
6041
- 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) => {
6042
6069
  try {
6043
6070
  const trend = await buildClient(opts.profile).trends.get(slug, { locale: opts.locale });
6044
6071
  if (opts.json) emit(trend, opts);
@@ -6144,9 +6171,9 @@ function trendsCommand() {
6144
6171
  }
6145
6172
  function fullQualityCommand() {
6146
6173
  const cmd = new Command("full-quality").description(
6147
- "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"
6148
6175
  );
6149
- 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) => {
6150
6177
  try {
6151
6178
  const quote = await buildClient(opts.profile).castSwap.fullQualityEstimate(jobId);
6152
6179
  if (opts.json) {
@@ -6154,9 +6181,12 @@ function fullQualityCommand() {
6154
6181
  return;
6155
6182
  }
6156
6183
  info(`about ${quote.totalCredits} credits`);
6157
- dim(` castSwap: ${quote.breakdown.castSwap}`);
6158
- dim(` seedanceHd: ${quote.breakdown.seedanceHd}`);
6159
- 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");
6160
6190
  dim(`available until ${terminalSafe(quote.availableUntil)}`);
6161
6191
  } catch (err) {
6162
6192
  handleError(err);
@@ -6173,7 +6203,7 @@ function fullQualityCommand() {
6173
6203
  return;
6174
6204
  }
6175
6205
  const id = terminalSafe(result.jobId);
6176
- 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)`);
6177
6207
  else success(`started Full Quality \u2014 job ${id}`);
6178
6208
  dim(`follow it: nodaro jobs get ${id}`);
6179
6209
  } catch (err) {