@treeseed/cli 0.8.9 → 0.8.10
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/cli/handlers/dev.js
CHANGED
|
@@ -42,7 +42,8 @@ function resolveCoreDevEntrypoint(cwd) {
|
|
|
42
42
|
}
|
|
43
43
|
const handleDev = async (invocation, context) => {
|
|
44
44
|
try {
|
|
45
|
-
const
|
|
45
|
+
const feedback = typeof invocation.args.feedback === "string" ? invocation.args.feedback : void 0;
|
|
46
|
+
const watch = feedback !== "off";
|
|
46
47
|
const passthroughArgs = [];
|
|
47
48
|
const forwardStringOption = (name, flag) => {
|
|
48
49
|
const value = invocation.args[name];
|
|
@@ -21,7 +21,7 @@ function related(name, why) {
|
|
|
21
21
|
return { name, why };
|
|
22
22
|
}
|
|
23
23
|
const DEV_RUNTIME_OPTIONS = [
|
|
24
|
-
{ name: "surface", flags: "--surface <surface>", description: "Select the local dev surface to run.", kind: "enum", values: ["integrated", "web", "api", "manager", "worker", "services"] },
|
|
24
|
+
{ name: "surface", flags: "--surface <surface>", description: "Select the local dev surface to run.", kind: "enum", values: ["integrated", "web", "api", "manager", "worker", "agents", "services"] },
|
|
25
25
|
{ name: "host", flags: "--host <host>", description: "Host for the web dev server.", kind: "string" },
|
|
26
26
|
{ name: "port", flags: "--port <port>", description: "Port for the web dev server.", kind: "string" },
|
|
27
27
|
{ name: "apiHost", flags: "--api-host <host>", description: "Host used to construct the local API URL.", kind: "string" },
|
|
@@ -1162,15 +1162,15 @@ const CLI_COMMAND_OVERLAYS = /* @__PURE__ */ new Map([
|
|
|
1162
1162
|
})],
|
|
1163
1163
|
["dev", command({
|
|
1164
1164
|
options: DEV_RUNTIME_OPTIONS,
|
|
1165
|
-
examples: ["treeseed dev", "treeseed dev --reset", "treeseed dev --reset --plan --json", "treeseed dev --surface web --port 4322 --open off"],
|
|
1165
|
+
examples: ["treeseed dev", "treeseed dev --reset", "treeseed dev --reset --plan --json", "treeseed dev --surface api --plan --json", "treeseed dev --surface web --port 4322 --open off"],
|
|
1166
1166
|
help: {
|
|
1167
1167
|
longSummary: [
|
|
1168
1168
|
"Dev starts the unified local Treeseed runtime as a foreground supervisor so you can work against the integrated web, API, and supporting local surfaces.",
|
|
1169
|
-
"The command keeps streaming logs and dev events until you press Ctrl+C
|
|
1169
|
+
"The command keeps streaming logs and dev events until you press Ctrl+C or receive SIGTERM. Required surface failures are restarted with backoff instead of ending the supervisor."
|
|
1170
1170
|
],
|
|
1171
1171
|
beforeYouRun: [
|
|
1172
1172
|
"Run from the tenant or workspace root you want to develop.",
|
|
1173
|
-
"Use `--plan --json` when you want to inspect commands, setup steps, readiness checks,
|
|
1173
|
+
"Use `--plan --json` when you want to inspect selected surfaces, commands, setup steps, readiness checks, watched paths, and restart policy without starting services.",
|
|
1174
1174
|
"Use `--reset` when you want a fresh local D1 database, Mailpit inbox, generated worker bundle, and Wrangler temp output without deleting configuration.",
|
|
1175
1175
|
"Keep the foreground process running while you test. Press Ctrl+C to stop the supervised stack and free the local ports."
|
|
1176
1176
|
],
|
|
@@ -1179,12 +1179,15 @@ const CLI_COMMAND_OVERLAYS = /* @__PURE__ */ new Map([
|
|
|
1179
1179
|
example("treeseed dev --reset", "Start from a fresh local runtime", "Clear disposable local dev state, rerun setup and D1 migrations, then start the dev supervisor."),
|
|
1180
1180
|
example("treeseed dev --reset --plan --json", "Inspect reset actions", "Emit the reset, setup, readiness, command, and watch plan without deleting local state or starting services."),
|
|
1181
1181
|
example("treeseed dev --plan --json", "Inspect the runtime plan", "Emit a structured plan with setup steps, commands, ports, URLs, readiness checks, and watch entries."),
|
|
1182
|
+
example("treeseed dev --surface api --plan --json", "Inspect the API surface", "Plan the local API runtime without the web UI."),
|
|
1183
|
+
example("treeseed dev --surface services", "Run processing services explicitly", "Start the API, manager, worker, and agents loop for local service development."),
|
|
1182
1184
|
example("treeseed dev --surface web --port 4322 --open off", "Run only the web surface", "Start the Astro UI on a specific port without opening a browser."),
|
|
1183
1185
|
example("trsd dev", "Use the short alias", "Start the same local runtime through the shorter entrypoint."),
|
|
1184
1186
|
example("treeseed dev --json", "Stream dev events", "Emit newline-delimited events while the long-running dev process supervises local services.")
|
|
1185
1187
|
],
|
|
1186
1188
|
outcomes: [
|
|
1187
1189
|
"Starts the selected local surfaces, waits for readiness, and then remains attached as the live supervisor.",
|
|
1190
|
+
"Restarts required crashed surfaces with capped exponential backoff and keeps setup/readiness failures alive for retry.",
|
|
1188
1191
|
"Stops watchers first and then terminates service process groups when the foreground command exits."
|
|
1189
1192
|
]
|
|
1190
1193
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treeseed/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
4
4
|
"description": "Operator-facing Treeseed CLI package.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"release:publish": "node ./scripts/run-ts.mjs ./scripts/publish-package.ts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@treeseed/sdk": "0.8.
|
|
48
|
+
"@treeseed/sdk": "0.8.10",
|
|
49
49
|
"ink": "^7.0.0",
|
|
50
50
|
"react": "^19.2.5"
|
|
51
51
|
},
|