@somewhere-cloud/cli 0.38.143 → 0.38.145

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.38.145
4
+
5
+ - `somewhere tasks waiting` lists what is waiting for you across your projects: what agents have asked you to do, with the steps, the reason, who asked and when. `--project` reads one project; `--cursor` continues. It also lists what was answered and by which credential.
6
+ - `somewhere tasks answer <task-id> --done` (or `--cannot`, or `--not-needed`), with `--note`, answers one.
7
+ - `somewhere tasks create --supersedes <task-id>` replaces an earlier ask in one command; `tasks update --superseded-by <task-id>` marks one replaced. A replaced ask leaves the waiting list at once.
8
+ - `somewhere tasks create` and `tasks update` take `--waiting-on` and `--author`, and `tasks create` takes `--status-note`, so an agent can ask the person for something in one command.
9
+ - Matches platform consumer contract 39, so deploys no longer warn that the CLI contract differs from the platform.
10
+
11
+ ## 0.38.144
12
+
13
+ - Matches platform consumer contract 36, so deploys no longer warn that the CLI contract differs from the platform.
14
+ - `somewhere deploy` states the dotfile rule only when it leaves a dotfile out; `--json` with nothing left out keeps stderr quiet.
15
+ - `somewhere typecheck` no longer fails on `somewhere:api` imports; it says once that they are checked at deploy, where the client is generated.
16
+
3
17
  ## 0.38.143
4
18
 
5
19
  - Include the project name in the CLI docs starter command.
@@ -44647,8 +44647,8 @@ var init_skills_pack_generated = __esm({
44647
44647
  BUNDLED_SKILLS_PACK = {
44648
44648
  "schema": 1,
44649
44649
  "name": "somewhere-skills",
44650
- "version": "1+1f34c974ae28",
44651
- "sha256": "1f34c974ae2841bffb28d8eccb98fcee84bf5f98e15de6aaf453a9a050c95e4b",
44650
+ "version": "1+c727c92e8193",
44651
+ "sha256": "c727c92e81938d2e7cbf125de17c4d8a6feef4cf5bc4530f173f6dc04fe0da3e",
44652
44652
  "files": [
44653
44653
  {
44654
44654
  "path": "adopt/SKILL.md",
@@ -44662,8 +44662,8 @@ var init_skills_pack_generated = __esm({
44662
44662
  },
44663
44663
  {
44664
44664
  "path": "schema-changes/SKILL.md",
44665
- "sha256": "71fafce1ed983f1de2667253b4be41f8a0ec15e61fc5eda22ecfe05310746f49",
44666
- "content": "---\nname: schema-changes\ndescription: Before adding, changing, or removing a table or column in db/schema.ts.\n---\n\n# Change the database schema safely\n\n## The file is the contract\n\nThe default `somewhere init` starter has no `db/schema.ts`: create it at the project root, or start with `somewhere init --features private-data`, which includes one.\n\n```ts\n// db/schema.ts\nimport { id, owner, schema, table, text, timestamp } from 'somewhere/db';\n\nexport default schema({\n notes: table(\n {\n id: id(),\n title: text(),\n body: text({ default: '' }),\n created_at: timestamp({ default: 'now' }),\n },\n {\n scope: owner(),\n client: {\n read: ['id', 'title', 'body', 'created_at'],\n create: ['title', 'body'],\n update: ['title', 'body'],\n delete: true,\n },\n },\n ),\n});\n```\n\nA table without a `client` block can't be reached from the browser at all.\n\nBefore the first deploy, delete an unused starter table declaration outright: there is no deployed table to retire. After a table has been deployed, mark it `removedTable()` to retire it with 30-day data retention, including when the table is empty.\n\nRun `somewhere typecheck` before deploying schema changes.\n\n## What a deploy does with it\n\n- **Additive changes apply**: a new table, a new nullable-or-defaulted column, a new index, a new unique group. Unchanged schema is a no-op.\n- **Unmarked removals and shape changes refuse** with `409 SCHEMA_DEPLOY_REFUSED` and a message naming the change.\n- **Access-rule changes apply in place**: a later deploy can change an existing table's scope, and its rows stay.\n- a production deploy or a promotion that would remove or rename a column is refused before anything changes, so a running release never loses a column it uses. Keep the column declared and leave its data in place.\n\n## Failure: raw SQL refused after the schema file deploys\n\nOn an older shared database, ordinary `sw.db.query` / `sw.db.batch` fail before transport with `MANAGED_RAW_SQL_REQUIRES_SERVER_AUTHORITY`, including in job, queue, and cron handlers; with a separate SQL database they run there and never see declared tables. Fix: write with `sw.db.insert` / `sw.db.update` / `sw.db.remove` (the table needs a declared intent)\n\nSources (`somewhere docs <topic>`): declared-data, getting-started, sw.db, troubleshooting.\n"
44665
+ "sha256": "ab5a21715672de983d2bb1ed19822563a8d94fad936b2424f3653c0c087642b2",
44666
+ "content": "---\nname: schema-changes\ndescription: Before adding, changing, or removing a table or column in db/schema.ts.\n---\n\n# Change the database schema safely\n\n## The file is the contract\n\nThe default `somewhere init` starter has no `db/schema.ts`: create it at the project root, or run `somewhere init --name my-app --features private-data` to start with a schema.\n\n```ts\n// db/schema.ts\nimport { id, owner, schema, table, text, timestamp } from 'somewhere/db';\n\nexport default schema({\n notes: table(\n {\n id: id(),\n title: text(),\n body: text({ default: '' }),\n created_at: timestamp({ default: 'now' }),\n },\n {\n scope: owner(),\n client: {\n read: ['id', 'title', 'body', 'created_at'],\n create: ['title', 'body'],\n update: ['title', 'body'],\n delete: true,\n },\n },\n ),\n});\n```\n\nA table without a `client` block can't be reached from the browser at all.\n\nBefore the first deploy, delete an unused starter table declaration outright: there is no deployed table to retire. After a table has been deployed, mark it `removedTable()` to retire it with 30-day data retention, including when the table is empty.\n\nRun `somewhere typecheck` before deploying schema changes.\n\n## What a deploy does with it\n\n- **Additive changes apply**: a new table, a new nullable-or-defaulted column, a new index, a new unique group. Unchanged schema is a no-op.\n- **Unmarked removals and shape changes refuse** with `409 SCHEMA_DEPLOY_REFUSED` and a message naming the change.\n- **Access-rule changes apply in place**: a later deploy can change an existing table's scope, and its rows stay.\n- a production deploy or a promotion that would remove or rename a column is refused before anything changes, so a running release never loses a column it uses. Keep the column declared and leave its data in place.\n\n## Failure: raw SQL refused after the schema file deploys\n\nOn an older shared database, ordinary `sw.db.query` / `sw.db.batch` fail before transport with `MANAGED_RAW_SQL_REQUIRES_SERVER_AUTHORITY`, including in job, queue, and cron handlers; with a separate SQL database they run there and never see declared tables. Fix: write with `sw.db.insert` / `sw.db.update` / `sw.db.remove` (the table needs a declared intent)\n\nSources (`somewhere docs <topic>`): declared-data, getting-started, sw.db, troubleshooting.\n"
44667
44667
  },
44668
44668
  {
44669
44669
  "path": "sign-in-setup/SKILL.md",
@@ -74547,12 +74547,17 @@ import { spawn as spawn3, spawnSync } from "node:child_process";
74547
74547
  import { existsSync as existsSync12, readFileSync as readFileSync14, rmSync as rmSync3, writeFileSync as writeFileSync10 } from "node:fs";
74548
74548
  import { randomUUID as randomUUID4 } from "node:crypto";
74549
74549
  import { dirname as dirname4, join as join13, relative as relative3 } from "node:path";
74550
+ function isGeneratedApiImport(e) {
74551
+ return e.code === "TS2307" && /^Cannot find module ['"]somewhere:api['"]/.test(e.message);
74552
+ }
74550
74553
  function isUnresolvedBareImport(e) {
74551
74554
  if (!UNRESOLVED_DEP_CODES.has(e.code))
74552
74555
  return false;
74553
74556
  const specifier = /['"]([^'"]+)['"]/.exec(e.message)?.[1];
74554
74557
  if (specifier === void 0)
74555
74558
  return true;
74559
+ if (specifier === "somewhere:api")
74560
+ return isGeneratedApiImport(e);
74556
74561
  if (/^somewhere(?::data|:files|\/db)$/.test(specifier))
74557
74562
  return false;
74558
74563
  return !/^(?:\.{1,2}(?:[\\/]|$)|[\\/]|[A-Za-z]:[\\/])/.test(specifier);
@@ -74895,6 +74900,9 @@ async function runTypecheckWith(projectDir, command, args, via, declaredData) {
74895
74900
  if (run.error)
74896
74901
  return { ok: false, errors: [], via, raw: run.out, spawnError: run.error.message };
74897
74902
  const allErrors = parseTscOutput(run.out);
74903
+ if (allErrors.some(isGeneratedApiImport)) {
74904
+ process.stderr.write("The somewhere:api import is checked at deploy, where its client is generated.\n");
74905
+ }
74898
74906
  const errors = allErrors.filter((e) => !isUnresolvedBareImport(e));
74899
74907
  const unexplainedFailure = run.code !== 0 && allErrors.length === 0;
74900
74908
  return { ok: errors.length === 0 && !unexplainedFailure, errors, via, raw: run.out };
@@ -74914,6 +74922,7 @@ var init_typecheck = __esm({
74914
74922
  init_platform_contract();
74915
74923
  init_declared_data();
74916
74924
  UNRESOLVED_DEP_CODES = /* @__PURE__ */ new Set(["TS2307", "TS7016", "TS2306", "TS2875"]);
74925
+ __name(isGeneratedApiImport, "isGeneratedApiImport");
74917
74926
  __name(isUnresolvedBareImport, "isUnresolvedBareImport");
74918
74927
  __name(npxTscInvocation, "npxTscInvocation");
74919
74928
  __name(typecheckArgs, "typecheckArgs");
@@ -76832,7 +76841,7 @@ function isBinaryPath2(p2) {
76832
76841
  return BINARY_EXTS.has(extname3(p2).toLowerCase());
76833
76842
  }
76834
76843
  function collectFiles(baseDir, options2 = {}) {
76835
- const out = { files: {}, binaryFiles: {}, functions: {}, skipped: [], oversize: [], notes: [], excluded: [], sensitive: [], published: [] };
76844
+ const out = { dotfilesLeftOut: false, files: {}, binaryFiles: {}, functions: {}, skipped: [], oversize: [], notes: [], excluded: [], sensitive: [], published: [] };
76836
76845
  const ignore = loadDeployIgnore(baseDir);
76837
76846
  const candidates = [];
76838
76847
  const sizes = /* @__PURE__ */ new Map();
@@ -76923,6 +76932,8 @@ function walk(baseDir, currentDir, out, ignore, candidates, sizes) {
76923
76932
  for (const entry of readdirSync3(currentDir, { withFileTypes: true })) {
76924
76933
  const fullPath = join16(currentDir, entry.name);
76925
76934
  const relPath = toDeployPath(relative6(baseDir, fullPath));
76935
+ if (!IGNORE.has(entry.name) && entry.name.startsWith(".") && entry.name !== ".well-known")
76936
+ out.dotfilesLeftOut = true;
76926
76937
  if (IGNORE.has(entry.name) || entry.name.startsWith(".") && entry.name !== ".well-known" || ignore.ignores(relPath, entry.isDirectory())) {
76927
76938
  continue;
76928
76939
  }
@@ -84118,8 +84129,9 @@ Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cl
84118
84129
  process.exit(1);
84119
84130
  }
84120
84131
  if (opts.listUnpublished) {
84121
- const { excluded: excluded2, sensitive: sensitive2, skipped: skipped2 } = collectFiles(targetDir, { include: opts.include ?? [] });
84122
- console.error(DOTFILE_NOTICE);
84132
+ const { excluded: excluded2, sensitive: sensitive2, skipped: skipped2, dotfilesLeftOut } = collectFiles(targetDir, { include: opts.include ?? [] });
84133
+ if (dotfilesLeftOut)
84134
+ console.error(DOTFILE_NOTICE);
84123
84135
  if (opts.json)
84124
84136
  printJson({ excluded: excluded2, sensitive: sensitive2, skipped: skipped2 });
84125
84137
  else {
@@ -84148,7 +84160,8 @@ Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cl
84148
84160
  const collectionEndedAt = performance.now();
84149
84161
  const collectionMs = collectionEndedAt - collectionStartedAt;
84150
84162
  const { files, binaryFiles, functions, skipped, excluded, sensitive } = collected;
84151
- console.error(DOTFILE_NOTICE);
84163
+ if (collected.dotfilesLeftOut)
84164
+ console.error(DOTFILE_NOTICE);
84152
84165
  const sensitiveRefusal = sensitiveReferenceRefusal(collected);
84153
84166
  if (sensitiveRefusal) {
84154
84167
  if (opts.json)
@@ -132173,11 +132186,60 @@ async function runTaskTool(name, args, json, printer) {
132173
132186
  process.exitCode = 1;
132174
132187
  }
132175
132188
  }
132189
+ function printWaiting(value) {
132190
+ const data2 = unwrapPlatformData(value);
132191
+ const items = isRecord(data2) && Array.isArray(data2.items) ? data2.items.filter(isRecord) : null;
132192
+ if (!items) {
132193
+ printJson(value);
132194
+ return;
132195
+ }
132196
+ if (items.length === 0)
132197
+ console.log("Nothing is waiting for you" + (isRecord(data2) && data2.next_cursor ? " on the apps checked so far." : "."));
132198
+ for (const item of items) {
132199
+ const asked = isRecord(item.asked_by) ? item.asked_by : {};
132200
+ const via = isRecord(asked.via) ? asked.via : {};
132201
+ const who = [typeof asked.name === "string" ? asked.name : null, typeof via.name === "string" ? via.name : typeof via.kind === "string" ? via.kind : null].filter(Boolean).join(" via ");
132202
+ const when = typeof item.asked_at === "string" ? timeAgo(item.asked_at) : null;
132203
+ console.log(`${teal(String(item.id))} ${String(item.title ?? "")}`);
132204
+ console.log(dim(` ${[who || null, when, typeof item.project_name === "string" ? item.project_name : null, item.kind === "product_decision" ? "a decision" : null].filter(Boolean).join(" \xB7 ")}`));
132205
+ const steps = Array.isArray(item.step_list) ? item.step_list.filter((step2) => typeof step2 === "string") : [];
132206
+ const lines = Array.isArray(item.sentences) ? item.sentences.filter((line) => typeof line === "string") : [];
132207
+ for (const line of lines)
132208
+ console.log(` ${line}`);
132209
+ steps.forEach((step2, at2) => console.log(` ${at2 + 1}. ${step2}`));
132210
+ if (steps.length === 0 && lines.length === 0 && typeof item.steps === "string")
132211
+ console.log(` ${item.steps.split("\n").join("\n ")}`);
132212
+ if (typeof item.replaces === "string" && item.replaces)
132213
+ console.log(dim(` Replaces an earlier request: ${item.replaces}`));
132214
+ if (typeof item.why === "string" && item.why)
132215
+ console.log(dim(` Why: ${item.why}`));
132216
+ console.log(dim(` Answer: ${cliInvocation()} tasks answer ${String(item.id)} -p ${String(item.project_id)} --done (or --cannot, or --not-needed, with --note "...")`));
132217
+ console.log("");
132218
+ }
132219
+ const answered = isRecord(data2) && Array.isArray(data2.answered) ? data2.answered.filter(isRecord) : [];
132220
+ if (answered.length > 0)
132221
+ console.log(dim("Answered:"));
132222
+ for (const item of answered) {
132223
+ const by = isRecord(item.answered_by) ? item.answered_by : {};
132224
+ const via = isRecord(by.via) ? by.via : {};
132225
+ const kind = typeof via.kind === "string" ? via.kind : "unknown";
132226
+ const who = kind === "dashboard" ? by.you === true ? "you, in the dashboard" : "someone on the team, in the dashboard" : `${{ connector: "connector", agent: "connected agent", terminal: "terminal", key: "API key", app: "the app" }[kind] ?? kind}${typeof via.name === "string" ? ` ${via.name}` : ""}`;
132227
+ const when = typeof by.at === "string" ? timeAgo(by.at) : null;
132228
+ console.log(`${teal(String(item.id))} ${String(item.title ?? "")}`);
132229
+ console.log(dim(` ${by.answer === "cannot" ? `Marked "can't do this"` : by.answer === "not_needed" ? "Marked as no longer needed" : "Marked done"} by ${who}${when ? ` \xB7 ${when}` : ""}${typeof item.project_name === "string" ? ` \xB7 ${item.project_name}` : ""}`));
132230
+ if (typeof item.note === "string" && item.note)
132231
+ console.log(` ${item.note}`);
132232
+ }
132233
+ if (isRecord(data2) && typeof data2.next_cursor === "string") {
132234
+ const checked = typeof data2.projects_checked === "number" && typeof data2.projects_total === "number" ? `Checked ${data2.projects_checked} of ${data2.projects_total} apps. ` : "";
132235
+ console.log(dim(`${checked}Show the rest: ${cliInvocation()} tasks waiting --cursor ${data2.next_cursor}`));
132236
+ }
132237
+ }
132176
132238
  function resolveTaskProject(project) {
132177
132239
  return resolveProjectRef(project, " Use -p default for the shared organization board if you have access.");
132178
132240
  }
132179
132241
  function registerTasks(program2) {
132180
- const tasks = program2.command("tasks").description("List, read, create, update, delete, and restore platform tasks").addHelpText("after", `
132242
+ const tasks = program2.command("tasks").description("List, read, create, update, answer, delete, and restore platform tasks").addHelpText("after", `
132181
132243
  Shared organization board (requires access): ${cliInvocation()} tasks list -p default`);
132182
132244
  tasks.command("list").description("List tasks").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--status <status>", "Filter by status").option("--type <type>", "Filter by type, or a comma-separated list (e.g. decision, directive)").option("--assignee <assignee>", "Filter by assignee").option("--label <label>", "Match an exact label").option("--area <area>", "Filter by area").option("--parent <task-id>", 'Filter by parent task; use "null" for top-level tasks').option("-q, --query <text>", "Search task titles and descriptions").option("--active", "Only open and in-progress tasks").option("--stale", "Only stale in-progress tasks").option("--stale-days <days>", "Staleness threshold").option("--sort <sort>", "Sort by priority, updated, or created").option("--full", "Return complete descriptions").option("--limit <n>", "Maximum rows").option("--offset <n>", "Fresh row offset; prefer cursor for continuation").option("--cursor <cursor>", "next_cursor from the previous page; repeat filters").option("--json", "Print the complete response as JSON").action(async (opts) => {
132183
132245
  const args = compactRecord([
@@ -132233,7 +132295,29 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
132233
132295
  ["limit", numberOption(opts.limit)]
132234
132296
  ]), opts.json, (value) => printJson(unwrapPlatformData(value)));
132235
132297
  });
132236
- tasks.command("create <title>").description("Create a task without opening an editor").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("-d, --description <text>", "Long-form task description").option("--status <status>", "Initial status").option("--priority <priority>", "low, normal, high, or urgent").option("--type <type>", "Task type").option("--assignee <assignee>", "Assignee").option("--labels <labels>", "Comma-separated labels").option("--area <area>", "Subsystem area").option("--parent <task-id>", "Parent task ID").option("--due-at <unix-ms>", "Due time as a Unix timestamp in milliseconds").option("--json", "Print the complete response as JSON").action(async (title, opts) => {
132298
+ tasks.command("waiting").description("List what is waiting for you: what agents have asked you to do, across your projects, with the steps").option("-p, --project <project>", "Only this project (slug or ID), read at once").option("--cursor <cursor>", "next_cursor from the previous answer: the next 25 projects").option("--json", "Print the complete response as JSON").action(async (opts) => {
132299
+ const args = compactRecord([
132300
+ ["waiting", "me"],
132301
+ ["project_id", opts.project ? resolveTaskProject(opts.project) : void 0],
132302
+ ["cursor", opts.cursor]
132303
+ ]);
132304
+ await runTaskTool("tasks_list", args, opts.json, printWaiting);
132305
+ });
132306
+ tasks.command("answer <task-id>").description("Answer something that is waiting for you: --done when you did it, --cannot when you can't or won't, --not-needed when it is no longer needed").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--done", "You did it").option("--cannot", "You can't or won't do it").option("--not-needed", "It is no longer needed").option("--note <text>", "A short note for the agent that asked; never a password or a key").option("--json", "Print the complete response as JSON").action(async (taskId, opts) => {
132307
+ if ([opts.done, opts.cannot, opts.notNeeded].filter(Boolean).length !== 1) {
132308
+ error("Say which one: --done, --cannot or --not-needed.");
132309
+ process.exitCode = 1;
132310
+ return;
132311
+ }
132312
+ const args = compactRecord([
132313
+ ["project_id", resolveTaskProject(opts.project)],
132314
+ ["task_id", taskId],
132315
+ ["answer", opts.done ? "done" : opts.cannot ? "cannot" : "not_needed"],
132316
+ ["note", opts.note]
132317
+ ]);
132318
+ await runTaskTool("tasks_update", args, opts.json, printTaskMutation);
132319
+ });
132320
+ tasks.command("create <title>").description("Create a task without opening an editor").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("-d, --description <text>", "Long-form task description").option("--status <status>", "Initial status").option("--priority <priority>", "low, normal, high, or urgent").option("--type <type>", "Task type").option("--assignee <assignee>", "Assignee").option("--labels <labels>", "Comma-separated labels").option("--area <area>", "Subsystem area").option("--parent <task-id>", "Parent task ID").option("--due-at <unix-ms>", "Due time as a Unix timestamp in milliseconds").option("--waiting-on <who>", 'human or product_decision asks the person (shown under "Waiting for you"); external records an outside wait').option("--status-note <text>", "Current state; with --waiting-on human, the numbered steps for the person, one per line").option("--author <name>", "The asking agent's own name, shown to the person as who asked").option("--supersedes <task-id>", "An earlier task this one replaces; the earlier one leaves the person's waiting list at once").option("--json", "Print the complete response as JSON").action(async (title, opts) => {
132237
132321
  const args = compactRecord([
132238
132322
  ["project_id", resolveTaskProject(opts.project)],
132239
132323
  ["title", title],
@@ -132245,11 +132329,15 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
132245
132329
  ["labels", parseCommaList(opts.labels)],
132246
132330
  ["area", opts.area],
132247
132331
  ["parent_id", opts.parent],
132248
- ["due_at", numberOption(opts.dueAt)]
132332
+ ["due_at", numberOption(opts.dueAt)],
132333
+ ["waiting_on", opts.waitingOn],
132334
+ ["status_note", opts.statusNote],
132335
+ ["author", opts.author],
132336
+ ["supersedes", opts.supersedes]
132249
132337
  ]);
132250
132338
  await runTaskTool("tasks_create", args, opts.json, printTaskMutation);
132251
132339
  });
132252
- tasks.command("update <task-id>").description("Update task fields or add a comment").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--title <title>", "New title").option("-d, --description <text>", "New description").option("--status <status>", "New status").option("--priority <priority>", "New priority").option("--type <type>", "New type").option("--assignee <assignee>", "New assignee").option("--labels <labels>", "Replacement comma-separated labels").option("--area <area>", "New area; pass an empty string to clear").option("--parent <task-id>", "New parent; pass an empty string to detach").option("--due-at <unix-ms>", "Due time as a Unix timestamp in milliseconds").option("--status-note <text>", "Overwrite the current status note").option("--health <health>", "on_track, at_risk, or off_track").option("--comment <text>", "Append an evidence comment").option("--resolution-note <text>", "Resolution note when closing the task").option("--shipped-in <version>", "Release/version tag this task shipped in").option("--deployment-project <project>", "Project owning --deployment-version").option("--deployment-version <version>", "Verified production version to link").option("--json", "Print the complete response as JSON").action(async (taskId, opts) => {
132340
+ tasks.command("update <task-id>").description("Update task fields or add a comment").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--title <title>", "New title").option("-d, --description <text>", "New description").option("--status <status>", "New status").option("--priority <priority>", "New priority").option("--type <type>", "New type").option("--assignee <assignee>", "New assignee").option("--labels <labels>", "Replacement comma-separated labels").option("--area <area>", "New area; pass an empty string to clear").option("--parent <task-id>", "New parent; pass an empty string to detach").option("--due-at <unix-ms>", "Due time as a Unix timestamp in milliseconds").option("--status-note <text>", "Overwrite the current status note").option("--waiting-on <who>", "human or product_decision asks the person; external records an outside wait; an empty string clears it (withdraws an ask)").option("--superseded-by <task-id>", "The task that replaces this one; a replaced ask leaves the person's waiting list at once").option("--author <name>", "The asking agent's own name, shown as who asked or who commented").option("--health <health>", "on_track, at_risk, or off_track").option("--comment <text>", "Append an evidence comment").option("--resolution-note <text>", "Resolution note when closing the task").option("--shipped-in <version>", "Release/version tag this task shipped in").option("--deployment-project <project>", "Project owning --deployment-version").option("--deployment-version <version>", "Verified production version to link").option("--json", "Print the complete response as JSON").action(async (taskId, opts) => {
132253
132341
  const args = compactRecord([
132254
132342
  ["project_id", resolveTaskProject(opts.project)],
132255
132343
  ["task_id", taskId],
@@ -132264,6 +132352,9 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
132264
132352
  ["parent_id", opts.parent],
132265
132353
  ["due_at", numberOption(opts.dueAt)],
132266
132354
  ["status_note", opts.statusNote],
132355
+ ["waiting_on", opts.waitingOn],
132356
+ ["superseded_by", opts.supersededBy],
132357
+ ["author", opts.author],
132267
132358
  ["health", opts.health],
132268
132359
  ["comment", opts.comment],
132269
132360
  ["resolution_note", opts.resolutionNote],
@@ -132272,7 +132363,7 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
132272
132363
  ["deployment_version", numberOption(opts.deploymentVersion)]
132273
132364
  ]);
132274
132365
  if (Object.keys(args).length === 2) {
132275
- error("No update supplied. Pass a field such as --status, --status-note, or --comment.");
132366
+ error("No update supplied. Pass a field such as --status, --status-note, --waiting-on, or --comment.");
132276
132367
  process.exitCode = 1;
132277
132368
  return;
132278
132369
  }
@@ -132344,6 +132435,7 @@ var init_tasks = __esm({
132344
132435
  __name(taskRows, "taskRows");
132345
132436
  __name(printTaskMutation, "printTaskMutation");
132346
132437
  __name(runTaskTool, "runTaskTool");
132438
+ __name(printWaiting, "printWaiting");
132347
132439
  __name(resolveTaskProject, "resolveTaskProject");
132348
132440
  __name(registerTasks, "registerTasks");
132349
132441
  }