@treeseed/cli 0.8.9 → 0.8.11

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.
@@ -42,7 +42,8 @@ function resolveCoreDevEntrypoint(cwd) {
42
42
  }
43
43
  const handleDev = async (invocation, context) => {
44
44
  try {
45
- const watch = invocation.commandName === "dev:watch" || invocation.args.watch === true;
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];
@@ -56,6 +57,7 @@ const handleDev = async (invocation, context) => {
56
57
  }
57
58
  };
58
59
  forwardStringOption("surface", "--surface");
60
+ forwardStringOption("surfaces", "--surfaces");
59
61
  forwardStringOption("host", "--host");
60
62
  forwardStringOption("port", "--port");
61
63
  forwardStringOption("apiHost", "--api-host");
@@ -21,7 +21,8 @@ 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 one local dev surface to run. Compatibility alias for --surfaces.", kind: "enum", values: ["integrated", "web", "api", "manager", "worker", "agents", "services"] },
25
+ { name: "surfaces", flags: "--surfaces <surfaces>", description: "Select comma-separated local dev surfaces to run.", kind: "string" },
25
26
  { name: "host", flags: "--host <host>", description: "Host for the web dev server.", kind: "string" },
26
27
  { name: "port", flags: "--port <port>", description: "Port for the web dev server.", kind: "string" },
27
28
  { name: "apiHost", flags: "--api-host <host>", description: "Host used to construct the local API URL.", kind: "string" },
@@ -1162,29 +1163,33 @@ const CLI_COMMAND_OVERLAYS = /* @__PURE__ */ new Map([
1162
1163
  })],
1163
1164
  ["dev", command({
1164
1165
  options: DEV_RUNTIME_OPTIONS,
1165
- examples: ["treeseed dev", "treeseed dev --reset", "treeseed dev --reset --plan --json", "treeseed dev --surface web --port 4322 --open off"],
1166
+ examples: ["treeseed dev", "treeseed dev --reset", "treeseed dev --reset --plan --json", "treeseed dev --surfaces web,api --plan --json", "treeseed dev --surface web --port 4322 --open off"],
1166
1167
  help: {
1167
1168
  longSummary: [
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, receive SIGTERM, or a required surface fails; shutdown stops every service process group it started."
1169
+ "Dev starts the unified local Treeseed runtime as a foreground supervisor so you can work against the integrated web, API, manager, worker, and supporting local surfaces.",
1170
+ "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
1171
  ],
1171
1172
  beforeYouRun: [
1172
1173
  "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, and watched paths without starting services.",
1174
+ "Use `--plan --json` when you want to inspect selected surfaces, commands, setup steps, readiness checks, watched paths, and restart policy without starting services.",
1174
1175
  "Use `--reset` when you want a fresh local D1 database, Mailpit inbox, generated worker bundle, and Wrangler temp output without deleting configuration.",
1175
1176
  "Keep the foreground process running while you test. Press Ctrl+C to stop the supervised stack and free the local ports."
1176
1177
  ],
1177
1178
  examples: [
1178
- example("treeseed dev", "Start integrated local development", "Run the default integrated local runtime and keep supervising it in the foreground."),
1179
+ example("treeseed dev", "Start integrated local development", "Run web, API, manager, and worker locally and keep supervising them in the foreground."),
1179
1180
  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
1181
  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
1182
  example("treeseed dev --plan --json", "Inspect the runtime plan", "Emit a structured plan with setup steps, commands, ports, URLs, readiness checks, and watch entries."),
1183
+ example("treeseed dev --surfaces web,api,worker --plan --json", "Inspect selected surfaces", "Plan a comma-separated set of local surfaces without starting the supervisor."),
1184
+ example("treeseed dev --surface api --plan --json", "Inspect the API surface", "Plan the local API runtime without the web UI."),
1185
+ example("treeseed dev --surfaces integrated,agents", "Opt into agents diagnostics", "Start the integrated local platform plus the agents diagnostic loop."),
1182
1186
  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
1187
  example("trsd dev", "Use the short alias", "Start the same local runtime through the shorter entrypoint."),
1184
1188
  example("treeseed dev --json", "Stream dev events", "Emit newline-delimited events while the long-running dev process supervises local services.")
1185
1189
  ],
1186
1190
  outcomes: [
1187
1191
  "Starts the selected local surfaces, waits for readiness, and then remains attached as the live supervisor.",
1192
+ "Restarts required crashed surfaces with capped exponential backoff and keeps setup/readiness failures alive for retry.",
1188
1193
  "Stops watchers first and then terminates service process groups when the foreground command exits."
1189
1194
  ]
1190
1195
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/cli",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
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.9",
48
+ "@treeseed/sdk": "0.8.11",
49
49
  "ink": "^7.0.0",
50
50
  "react": "^19.2.5"
51
51
  },