@somewhere-cloud/cli 0.38.144 → 0.38.146
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 +13 -0
- package/README.md +2 -2
- package/dist/lib/bundle.js +97 -12
- package/dist/lib/bundle.js.map +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/runtime/DECLARED-DATA-VENDOR.json +6 -6
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/declared-data.cjs +32 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.146
|
|
4
|
+
|
|
5
|
+
- `somewhere init --link --project <app>` in an empty folder, for an app that already has a live release, now stops before writing any file and says to run `somewhere pull <app>` first. This keeps a later deploy from replacing a live app with the blank starter.
|
|
6
|
+
- `somewhere deploy` and `somewhere deploys` messages about an existing app now say `somewhere pull <app>` instead of `init --link`.
|
|
7
|
+
|
|
8
|
+
## 0.38.145
|
|
9
|
+
|
|
10
|
+
- `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.
|
|
11
|
+
- `somewhere tasks answer <task-id> --done` (or `--cannot`, or `--not-needed`), with `--note`, answers one.
|
|
12
|
+
- `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.
|
|
13
|
+
- `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.
|
|
14
|
+
- Matches platform consumer contract 39, so deploys no longer warn that the CLI contract differs from the platform.
|
|
15
|
+
|
|
3
16
|
## 0.38.144
|
|
4
17
|
|
|
5
18
|
- Matches platform consumer contract 36, so deploys no longer warn that the CLI contract differs from the platform.
|
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ For optional after-edit checking, explicitly run `somewhere hooks install --host
|
|
|
94
94
|
| `somewhere logout` | Clear stored credentials |
|
|
95
95
|
| `somewhere whoami` | Show current user and project count |
|
|
96
96
|
| `somewhere init` | Write a starter; signed-in runs also create and link a project |
|
|
97
|
-
| `somewhere init --link --project <id
|
|
97
|
+
| `somewhere init --link --project <id>` | Link a folder that already holds the app’s source, or scaffold an unpublished project in an empty folder |
|
|
98
98
|
| `somewhere projects` | List all projects with status |
|
|
99
99
|
| `somewhere project create <name>` | Create a new project |
|
|
100
100
|
| `somewhere project view [name]` | Show project details |
|
|
@@ -109,7 +109,7 @@ For optional after-edit checking, explicitly run `somewhere hooks install --host
|
|
|
109
109
|
| `somewhere git connect [owner/repo]` | Install/authorize the GitHub App if needed, deploy repository HEAD, then deploy every push |
|
|
110
110
|
| `somewhere git status` | Show connected repo, commit, deploy status, logs link, and live URL |
|
|
111
111
|
| `somewhere git disconnect` | Stop push-to-deploy; the currently deployed site stays live |
|
|
112
|
-
| `somewhere pull
|
|
112
|
+
| `somewhere pull <app>` | Download the live source of an existing app and link the folder before editing |
|
|
113
113
|
| `somewhere typecheck` | Checks the project with `tsc --noEmit` and reports advisory platform source warnings with a suggested fix. Install the project dependencies first. If TypeScript is absent, the CLI tells you before fetching it through npm. |
|
|
114
114
|
| `somewhere logs` | Show recent logs |
|
|
115
115
|
| `somewhere logs --follow` | Stream logs in real-time |
|
package/dist/lib/bundle.js
CHANGED
|
@@ -51844,7 +51844,7 @@ __export(init_exports, {
|
|
|
51844
51844
|
import { basename, join as join8 } from "node:path";
|
|
51845
51845
|
import { existsSync as existsSync8 } from "node:fs";
|
|
51846
51846
|
function registerInit(program2) {
|
|
51847
|
-
program2.command("init").description("Write a starter app with a generated AGENTS.md guide").option("--name <name>", "Project name (skip prompt); sign-in and invitation emails show it").option("--subdomain <slug>", "Subdomain for the new project; default: derived from --name").option("--link", "
|
|
51847
|
+
program2.command("init").description("Write a starter app with a generated AGENTS.md guide").option("--name <name>", "Project name (skip prompt); sign-in and invitation emails show it").option("--subdomain <slug>", "Subdomain for the new project; default: derived from --name").option("--link", "Link local source or scaffold an unpublished project").option("--project <ref>", "Existing project ID, name, slug, or subdomain (requires --link)").option("--bare", "Create and link only: no starter source or dependencies (AGENTS.md/CLAUDE.md are still added when absent)").option("--template <name>", "Starter to write: auth (default), minimal (auth route, no sign-in UI), or bare (link only)", "auth").option("--features <ids>", "Generate selected modules into an empty directory, comma-separated: auth, magic-link, private-data, agent (see --catalog)").option("--ui <mode>", "With --features: styled (default; src/ui + design tokens) or headless (hooks and plain markup)").option("--catalog", "Print the module catalog for --features and exit; no login, project or files").option("--dry-run", "With --features: validate the selection and print the file plan; nothing is created").option("--json", "Print the created or linked project as JSON").addHelpText("after", `
|
|
51848
51848
|
${FIRST_CLI_PERMISSION}
|
|
51849
51849
|
|
|
51850
51850
|
Recommended for a new app: run \`${cliInvocation()} init\` in an empty directory.
|
|
@@ -51859,6 +51859,8 @@ Init installs React, the SDK and editor types. The platform builds your source w
|
|
|
51859
51859
|
TypeScript is fetched when first needed. Vite and Playwright are installed only if you choose to use them.
|
|
51860
51860
|
New starters and --bare also install ${skillNames(BUNDLED_SKILLS_PACK).length} agent skills in .agents/skills, pinned by skills-lock.json.
|
|
51861
51861
|
|
|
51862
|
+
For a live app, run \`${cliInvocation()} pull <app>\` to get its source.
|
|
51863
|
+
|
|
51862
51864
|
A directory that already holds an app (package.json, index.html, src/, \u2026) is
|
|
51863
51865
|
linked and left untouched. A directory holding only other files (notes, a stray
|
|
51864
51866
|
file) is refused before anything is created. Use --bare only to bring your own
|
|
@@ -52224,6 +52226,9 @@ async function linkExisting(client, dir, projectRef3, json = false, configureMcp
|
|
|
52224
52226
|
if (!projectId)
|
|
52225
52227
|
return;
|
|
52226
52228
|
const project = result.projects.find((p2) => p2.id === projectId);
|
|
52229
|
+
if (scaffold && (project.has_promoted === true || (project.active_release_id ?? null) !== null)) {
|
|
52230
|
+
throw new Error(`Run \`${cliInvocation()} pull ${shellQuote(project.id)}\` to get this app\u2019s source before working on it.`);
|
|
52231
|
+
}
|
|
52227
52232
|
const appUrl = await getAuthoritativeAppUrl(client, project.id).catch(() => null);
|
|
52228
52233
|
await scaffold?.(project);
|
|
52229
52234
|
const recordedCli = loadProjectConfig(dir)?.cli_version;
|
|
@@ -83981,7 +83986,7 @@ function formatSignedInUnlinkedExplanation() {
|
|
|
83981
83986
|
"",
|
|
83982
83987
|
"Next steps:",
|
|
83983
83988
|
` New project: run \`${cliInvocation()} init --bare --name <name>\` (creates it in your account and links this folder; adds .somewhere.json, AGENTS.md/CLAUDE.md and agent skills, no app source), then \`${cliInvocation()} deploy\`.`,
|
|
83984
|
-
` Existing
|
|
83989
|
+
` Existing app: run \`${cliInvocation()} pull <app>\` in a fresh folder before editing (list yours with \`${cliInvocation()} projects\`).`
|
|
83985
83990
|
].join("\n");
|
|
83986
83991
|
}
|
|
83987
83992
|
function formatLinkedProjectAccessRefusal(signedIn2, dir) {
|
|
@@ -84024,7 +84029,7 @@ function formatLinkedProjectMismatchExplanation(linkedProjectId, ref, resolvedPr
|
|
|
84024
84029
|
"",
|
|
84025
84030
|
"Next steps:",
|
|
84026
84031
|
` Deploy this folder to its linked project: run \`${cliInvocation()} deploy\` (no --project).`,
|
|
84027
|
-
`
|
|
84032
|
+
` Work on ${ref}: run \`${cliInvocation()} pull ${shellQuote(ref)} --out <fresh-folder>\`, re-apply your changes there, then run \`${cliInvocation()} deploy\`.`,
|
|
84028
84033
|
` Deploy a copy elsewhere: copy the files into an unlinked folder and run \`${cliInvocation()} deploy --project ${ref}\` there.`
|
|
84029
84034
|
].join("\n");
|
|
84030
84035
|
}
|
|
@@ -84033,7 +84038,7 @@ function formatExplicitProjectBaseRequiredExplanation(ref) {
|
|
|
84033
84038
|
`The live version of project ${ref} could not be read before deploying, and this folder has no record of which published version its files came from, so the deploy was NOT applied.`,
|
|
84034
84039
|
"",
|
|
84035
84040
|
"Next steps:",
|
|
84036
|
-
`
|
|
84041
|
+
` Start with \`${cliInvocation()} pull ${shellQuote(ref)} --out <fresh-folder>\`, re-apply your changes there, then run \`${cliInvocation()} deploy\`.`,
|
|
84037
84042
|
` Or replace the live release deliberately: \`${cliInvocation()} deploy --project ${ref} --force --yes\`.`
|
|
84038
84043
|
].join("\n");
|
|
84039
84044
|
}
|
|
@@ -84116,7 +84121,7 @@ No project yet? Signed out, deploy creates a temporary app and prints its claim
|
|
|
84116
84121
|
Signed in, deploy never creates one on its own:
|
|
84117
84122
|
${cliInvocation()} init --bare --name <name> create a project in your account and link this folder
|
|
84118
84123
|
${cliInvocation()} deploy then deploy it
|
|
84119
|
-
Existing
|
|
84124
|
+
Existing app: \`${cliInvocation()} pull <app>\` downloads the live source and links your folder.
|
|
84120
84125
|
`).option("--project <ref>", `Existing project to deploy to \u2014 accepts the project UUID, slug, or subdomain (all three resolve server-side). To create one, run \`${cliInvocation()} init --bare --name <name>\``).option("--scope <scope>", "Partial deploy: 'functions' (backend only, leaves the site untouched) or 'static' (site only, leaves functions untouched). Default deploys both.").option("--dry-run", "Show what would change (added / modified / removed files) in an already deployed project, without deploying. The files a deploy would publish are sent to Somewhere to compute the change; nothing is published. Never creates a project or a temporary workspace.").option("--replace-functions", "Delete deployed functions that are not in this directory. A full deploy already does; use it with --scope functions, which otherwise keeps them.").option("--prebuilt", "Deploy pre-built / bundled output (e.g. a dist/ folder) instead of raw source. Raw source is the default and recommended path: the platform compiles your TSX/JSX/TS on deploy, which keeps the app editable end-to-end. Choosing --prebuilt trades that away \u2014 pull/export round-trips, find/replace patches, and visual (source-map) editing are disabled for the bundled files. Use it only when you need full control of your own build.").option("--allow-bundled", "Alias for --prebuilt.").option("--new", "Publish to a new project and replace this folder\u2019s .somewhere.json link").option("--temporary", "Deploy to a temporary workspace and show when it expires (automatic when logged out)").option("--force", "Overwrite remote changes even when this machine last deployed an older version").option("--include <paths>", 'Publish a file or folder the deploy would otherwise hold back, e.g. --include NOTES.md or --include tests (comma-separate several, or repeat the flag). A "!NOTES.md" or "!tests/" line in .somewhereignore does the same thing permanently.', (value, previous = []) => previous.concat(value.split(",").map((v2) => v2.trim()).filter(Boolean))).option("--yes", "Skip confirmation prompts (for --force)").option("--verify [flow.json]", "After the deploy is live, run one browser verification flow at desktop and phone size. Omit the file for the default health check.").addOption(new Option("--test", "After a successful deploy, run somewhere test once against the new release").hideHelp()).option("-m, --message <text>", "Add a note for this version").option("--json", "Print the deploy result and its uploaded file list as JSON on stdout. Stderr reports files left out locally and the dotfile rule.").option("--list-unpublished", "List the local files deploy would keep on your machine, then exit").option("--allow-type-errors", "Upload even when the local TypeScript check fails").option("--timing", "Print deploy details and timings").action(async (dir, opts) => {
|
|
84121
84126
|
const startupMs = performance.now();
|
|
84122
84127
|
const targetDir = resolveTargetDir(dir);
|
|
@@ -84850,7 +84855,7 @@ ${dim("Build")}`);
|
|
|
84850
84855
|
if (tempSession.handoffReady) {
|
|
84851
84856
|
info(`Open ${link} and select "Save and connect agent" to work on the saved apps and create new ones. You can choose to include your other apps.`);
|
|
84852
84857
|
} else if (besideRealLogin) {
|
|
84853
|
-
info(`Open ${link} to save the app to your account, then run \`${cliInvocation()}
|
|
84858
|
+
info(`Open ${link} to save the app to your account, then run \`${cliInvocation()} pull ${shellQuote(projectId)}\` in a fresh folder to work on it.`);
|
|
84854
84859
|
} else {
|
|
84855
84860
|
info(`Open ${link} to save the app to your account, then run \`${cliInvocation()} login\` to connect this terminal.`);
|
|
84856
84861
|
}
|
|
@@ -85432,7 +85437,8 @@ function registerDeploys(program2) {
|
|
|
85432
85437
|
const note = entry.status === "success" && entry.message ? formatUserSuppliedNote(entry.message) : "";
|
|
85433
85438
|
const restore = entry.restore?.body;
|
|
85434
85439
|
const command = restore ? `${cliInvocation()} restore ${restore.version} --project ${shellQuote(restore.project_id)} --yes` : "";
|
|
85435
|
-
|
|
85440
|
+
const platform2 = entry.deployed_by?.kind === "platform" ? entry.deployed_by.name : void 0;
|
|
85441
|
+
console.log([version2, entry.promoted_at ?? entry.at ?? "\u2014", state, platform2, note, command].filter(Boolean).join(" "));
|
|
85436
85442
|
}
|
|
85437
85443
|
} catch (err) {
|
|
85438
85444
|
historyError(err, options2.json);
|
|
@@ -132186,11 +132192,60 @@ async function runTaskTool(name, args, json, printer) {
|
|
|
132186
132192
|
process.exitCode = 1;
|
|
132187
132193
|
}
|
|
132188
132194
|
}
|
|
132195
|
+
function printWaiting(value) {
|
|
132196
|
+
const data2 = unwrapPlatformData(value);
|
|
132197
|
+
const items = isRecord(data2) && Array.isArray(data2.items) ? data2.items.filter(isRecord) : null;
|
|
132198
|
+
if (!items) {
|
|
132199
|
+
printJson(value);
|
|
132200
|
+
return;
|
|
132201
|
+
}
|
|
132202
|
+
if (items.length === 0)
|
|
132203
|
+
console.log("Nothing is waiting for you" + (isRecord(data2) && data2.next_cursor ? " on the apps checked so far." : "."));
|
|
132204
|
+
for (const item of items) {
|
|
132205
|
+
const asked = isRecord(item.asked_by) ? item.asked_by : {};
|
|
132206
|
+
const via = isRecord(asked.via) ? asked.via : {};
|
|
132207
|
+
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 ");
|
|
132208
|
+
const when = typeof item.asked_at === "string" ? timeAgo(item.asked_at) : null;
|
|
132209
|
+
console.log(`${teal(String(item.id))} ${String(item.title ?? "")}`);
|
|
132210
|
+
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 ")}`));
|
|
132211
|
+
const steps = Array.isArray(item.step_list) ? item.step_list.filter((step2) => typeof step2 === "string") : [];
|
|
132212
|
+
const lines = Array.isArray(item.sentences) ? item.sentences.filter((line) => typeof line === "string") : [];
|
|
132213
|
+
for (const line of lines)
|
|
132214
|
+
console.log(` ${line}`);
|
|
132215
|
+
steps.forEach((step2, at2) => console.log(` ${at2 + 1}. ${step2}`));
|
|
132216
|
+
if (steps.length === 0 && lines.length === 0 && typeof item.steps === "string")
|
|
132217
|
+
console.log(` ${item.steps.split("\n").join("\n ")}`);
|
|
132218
|
+
if (typeof item.replaces === "string" && item.replaces)
|
|
132219
|
+
console.log(dim(` Replaces an earlier request: ${item.replaces}`));
|
|
132220
|
+
if (typeof item.why === "string" && item.why)
|
|
132221
|
+
console.log(dim(` Why: ${item.why}`));
|
|
132222
|
+
console.log(dim(` Answer: ${cliInvocation()} tasks answer ${String(item.id)} -p ${String(item.project_id)} --done (or --cannot, or --not-needed, with --note "...")`));
|
|
132223
|
+
console.log("");
|
|
132224
|
+
}
|
|
132225
|
+
const answered = isRecord(data2) && Array.isArray(data2.answered) ? data2.answered.filter(isRecord) : [];
|
|
132226
|
+
if (answered.length > 0)
|
|
132227
|
+
console.log(dim("Answered:"));
|
|
132228
|
+
for (const item of answered) {
|
|
132229
|
+
const by = isRecord(item.answered_by) ? item.answered_by : {};
|
|
132230
|
+
const via = isRecord(by.via) ? by.via : {};
|
|
132231
|
+
const kind = typeof via.kind === "string" ? via.kind : "unknown";
|
|
132232
|
+
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}` : ""}`;
|
|
132233
|
+
const when = typeof by.at === "string" ? timeAgo(by.at) : null;
|
|
132234
|
+
console.log(`${teal(String(item.id))} ${String(item.title ?? "")}`);
|
|
132235
|
+
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}` : ""}`));
|
|
132236
|
+
if (typeof item.note === "string" && item.note)
|
|
132237
|
+
console.log(` ${item.note}`);
|
|
132238
|
+
}
|
|
132239
|
+
if (isRecord(data2) && typeof data2.next_cursor === "string") {
|
|
132240
|
+
const checked = typeof data2.projects_checked === "number" && typeof data2.projects_total === "number" ? `Checked ${data2.projects_checked} of ${data2.projects_total} apps. ` : "";
|
|
132241
|
+
console.log(dim(`${checked}Show the rest: ${cliInvocation()} tasks waiting --cursor ${data2.next_cursor}`));
|
|
132242
|
+
}
|
|
132243
|
+
}
|
|
132189
132244
|
function resolveTaskProject(project) {
|
|
132190
132245
|
return resolveProjectRef(project, " Use -p default for the shared organization board if you have access.");
|
|
132191
132246
|
}
|
|
132192
132247
|
function registerTasks(program2) {
|
|
132193
|
-
const tasks = program2.command("tasks").description("List, read, create, update, delete, and restore platform tasks").addHelpText("after", `
|
|
132248
|
+
const tasks = program2.command("tasks").description("List, read, create, update, answer, delete, and restore platform tasks").addHelpText("after", `
|
|
132194
132249
|
Shared organization board (requires access): ${cliInvocation()} tasks list -p default`);
|
|
132195
132250
|
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) => {
|
|
132196
132251
|
const args = compactRecord([
|
|
@@ -132246,7 +132301,29 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
|
|
|
132246
132301
|
["limit", numberOption(opts.limit)]
|
|
132247
132302
|
]), opts.json, (value) => printJson(unwrapPlatformData(value)));
|
|
132248
132303
|
});
|
|
132249
|
-
tasks.command("
|
|
132304
|
+
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) => {
|
|
132305
|
+
const args = compactRecord([
|
|
132306
|
+
["waiting", "me"],
|
|
132307
|
+
["project_id", opts.project ? resolveTaskProject(opts.project) : void 0],
|
|
132308
|
+
["cursor", opts.cursor]
|
|
132309
|
+
]);
|
|
132310
|
+
await runTaskTool("tasks_list", args, opts.json, printWaiting);
|
|
132311
|
+
});
|
|
132312
|
+
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) => {
|
|
132313
|
+
if ([opts.done, opts.cannot, opts.notNeeded].filter(Boolean).length !== 1) {
|
|
132314
|
+
error("Say which one: --done, --cannot or --not-needed.");
|
|
132315
|
+
process.exitCode = 1;
|
|
132316
|
+
return;
|
|
132317
|
+
}
|
|
132318
|
+
const args = compactRecord([
|
|
132319
|
+
["project_id", resolveTaskProject(opts.project)],
|
|
132320
|
+
["task_id", taskId],
|
|
132321
|
+
["answer", opts.done ? "done" : opts.cannot ? "cannot" : "not_needed"],
|
|
132322
|
+
["note", opts.note]
|
|
132323
|
+
]);
|
|
132324
|
+
await runTaskTool("tasks_update", args, opts.json, printTaskMutation);
|
|
132325
|
+
});
|
|
132326
|
+
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) => {
|
|
132250
132327
|
const args = compactRecord([
|
|
132251
132328
|
["project_id", resolveTaskProject(opts.project)],
|
|
132252
132329
|
["title", title],
|
|
@@ -132258,11 +132335,15 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
|
|
|
132258
132335
|
["labels", parseCommaList(opts.labels)],
|
|
132259
132336
|
["area", opts.area],
|
|
132260
132337
|
["parent_id", opts.parent],
|
|
132261
|
-
["due_at", numberOption(opts.dueAt)]
|
|
132338
|
+
["due_at", numberOption(opts.dueAt)],
|
|
132339
|
+
["waiting_on", opts.waitingOn],
|
|
132340
|
+
["status_note", opts.statusNote],
|
|
132341
|
+
["author", opts.author],
|
|
132342
|
+
["supersedes", opts.supersedes]
|
|
132262
132343
|
]);
|
|
132263
132344
|
await runTaskTool("tasks_create", args, opts.json, printTaskMutation);
|
|
132264
132345
|
});
|
|
132265
|
-
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) => {
|
|
132346
|
+
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) => {
|
|
132266
132347
|
const args = compactRecord([
|
|
132267
132348
|
["project_id", resolveTaskProject(opts.project)],
|
|
132268
132349
|
["task_id", taskId],
|
|
@@ -132277,6 +132358,9 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
|
|
|
132277
132358
|
["parent_id", opts.parent],
|
|
132278
132359
|
["due_at", numberOption(opts.dueAt)],
|
|
132279
132360
|
["status_note", opts.statusNote],
|
|
132361
|
+
["waiting_on", opts.waitingOn],
|
|
132362
|
+
["superseded_by", opts.supersededBy],
|
|
132363
|
+
["author", opts.author],
|
|
132280
132364
|
["health", opts.health],
|
|
132281
132365
|
["comment", opts.comment],
|
|
132282
132366
|
["resolution_note", opts.resolutionNote],
|
|
@@ -132285,7 +132369,7 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
|
|
|
132285
132369
|
["deployment_version", numberOption(opts.deploymentVersion)]
|
|
132286
132370
|
]);
|
|
132287
132371
|
if (Object.keys(args).length === 2) {
|
|
132288
|
-
error("No update supplied. Pass a field such as --status, --status-note, or --comment.");
|
|
132372
|
+
error("No update supplied. Pass a field such as --status, --status-note, --waiting-on, or --comment.");
|
|
132289
132373
|
process.exitCode = 1;
|
|
132290
132374
|
return;
|
|
132291
132375
|
}
|
|
@@ -132357,6 +132441,7 @@ var init_tasks = __esm({
|
|
|
132357
132441
|
__name(taskRows, "taskRows");
|
|
132358
132442
|
__name(printTaskMutation, "printTaskMutation");
|
|
132359
132443
|
__name(runTaskTool, "runTaskTool");
|
|
132444
|
+
__name(printWaiting, "printWaiting");
|
|
132360
132445
|
__name(resolveTaskProject, "resolveTaskProject");
|
|
132361
132446
|
__name(registerTasks, "registerTasks");
|
|
132362
132447
|
}
|