@wirecat/cli-template 0.17.0 → 0.18.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/bin/release +10 -3
  3. package/dist/bin/clidev.js +2 -2
  4. package/dist/bundle/{all-profiles-CCT2XPJL.js → all-profiles-I2I5Y47S.js} +7 -7
  5. package/dist/bundle/{anthropic-QLLP7EE4.js → anthropic-6KWLOH3O.js} +4 -4
  6. package/dist/bundle/{app-server-ELI5TGL7.js → app-server-WDHIM77I.js} +42 -39
  7. package/dist/bundle/{bun-C7JS2V7G.js → bun-NQS22GBW.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-OM72TCYT.js → bun-sqlite-ZHYZDAFU.js} +3 -3
  9. package/dist/bundle/{chunk-6VCFDEHT.js → chunk-43KXTQB6.js} +1 -1
  10. package/dist/bundle/{chunk-RGKXMVOZ.js → chunk-4DHYD37E.js} +3 -3
  11. package/dist/bundle/{chunk-2Y5NBD7U.js → chunk-64DNKCG6.js} +4 -4
  12. package/dist/bundle/{chunk-XKL5FRH3.js → chunk-6HV2ZUJ7.js} +3 -3
  13. package/dist/bundle/{chunk-ASO23RNM.js → chunk-6K7LOCZA.js} +76 -24
  14. package/dist/bundle/{chunk-LN53L2V5.js → chunk-ALOTPATU.js} +11 -11
  15. package/dist/bundle/{chunk-EQDVQN4E.js → chunk-AQGUIORH.js} +224 -223
  16. package/dist/bundle/{chunk-QLBS6OC2.js → chunk-CAX65NS4.js} +400 -295
  17. package/dist/bundle/{chunk-RUHNHEAF.js → chunk-CZB5RLXN.js} +3 -3
  18. package/dist/bundle/{chunk-SQOXYNKF.js → chunk-E5O6R3NL.js} +1 -1
  19. package/dist/bundle/{chunk-GG5PXNMH.js → chunk-EMPBFRAG.js} +28 -25
  20. package/dist/bundle/{chunk-FF3AGTHY.js → chunk-ERHKHYWL.js} +6 -6
  21. package/dist/bundle/{chunk-S465TCR3.js → chunk-F2KGCZQP.js} +8 -8
  22. package/dist/bundle/{chunk-QJS4WWYK.js → chunk-FGQC6DQK.js} +63 -63
  23. package/dist/bundle/{chunk-AUVPTFUS.js → chunk-FPC4ESDC.js} +1 -1
  24. package/dist/bundle/{chunk-BXZRTMXA.js → chunk-G7JA7YXK.js} +5 -5
  25. package/dist/bundle/{chunk-BOCIYBBO.js → chunk-GBXTIWAE.js} +20 -20
  26. package/dist/bundle/{chunk-O6PBO4BU.js → chunk-HMP5CI4F.js} +4 -2
  27. package/dist/bundle/{chunk-R5IY4O25.js → chunk-I5HN34YA.js} +4 -4
  28. package/dist/bundle/{chunk-WRLOK7XC.js → chunk-IKFNRGSZ.js} +3 -3
  29. package/dist/bundle/{chunk-KRXN3FV3.js → chunk-IKGARE4J.js} +1 -1
  30. package/dist/bundle/{chunk-YIH3PYWJ.js → chunk-JECGG4TM.js} +1 -1
  31. package/dist/bundle/{chunk-MLSN3UP4.js → chunk-KMYKWHFH.js} +26 -26
  32. package/dist/bundle/{chunk-WKUJCPSP.js → chunk-KSABL7M2.js} +43 -43
  33. package/dist/bundle/{chunk-GUCMIUNB.js → chunk-KWQSDU3D.js} +2 -2
  34. package/dist/bundle/{chunk-6PHTRAZA.js → chunk-L4U3V7OU.js} +1 -1
  35. package/dist/bundle/{chunk-UW4PJZVJ.js → chunk-MJSZEF7M.js} +167 -156
  36. package/dist/bundle/{chunk-R5CPFSPI.js → chunk-MVWHCXYA.js} +7 -7
  37. package/dist/bundle/{chunk-XS56LIQ7.js → chunk-NVALUKZU.js} +4 -4
  38. package/dist/bundle/{chunk-AKUMR7PE.js → chunk-Q5J3LKRL.js} +2 -2
  39. package/dist/bundle/{chunk-33JGD2CR.js → chunk-QHXHJ3BK.js} +3 -3
  40. package/dist/bundle/{chunk-7OQF5ZMN.js → chunk-RKZJ7ZKU.js} +1 -1
  41. package/dist/bundle/{chunk-3VVIEZRY.js → chunk-RQPDYAHW.js} +2 -2
  42. package/dist/bundle/{chunk-HVAEHUSZ.js → chunk-RSCHWXF5.js} +2 -2
  43. package/dist/bundle/{chunk-WQBBSVZM.js → chunk-RYBCV3CX.js} +2 -2
  44. package/dist/bundle/{chunk-RT46AWIH.js → chunk-T6ZLWN7E.js} +1 -1
  45. package/dist/bundle/{chunk-QVPTZDRA.js → chunk-T7657XL5.js} +2 -2
  46. package/dist/bundle/{chunk-DVLM23HB.js → chunk-TH6AVNNH.js} +2 -2
  47. package/dist/bundle/{chunk-X44ZT64I.js → chunk-TMFSNTR2.js} +3 -3
  48. package/dist/bundle/{chunk-J2RUBXCI.js → chunk-UESBF7HN.js} +6 -6
  49. package/dist/bundle/{chunk-ZRNBKTPP.js → chunk-UGPJDNVX.js} +26 -26
  50. package/dist/bundle/{chunk-LFLN6PVS.js → chunk-UXLB5I2B.js} +4 -4
  51. package/dist/bundle/{chunk-ITPFCKCL.js → chunk-VDV3WS4O.js} +13 -13
  52. package/dist/bundle/{chunk-URPKIONS.js → chunk-VDXS7GR7.js} +8 -8
  53. package/dist/bundle/{chunk-E4KQOKQ5.js → chunk-YLN6DBJV.js} +1 -1
  54. package/dist/bundle/{chunk-SQKP6V4S.js → chunk-YMGJJG3W.js} +17 -13
  55. package/dist/bundle/clidev.js +3 -3
  56. package/dist/bundle/{command-contract-RV5ZOEAT.js → command-contract-JGOS34WS.js} +11 -11
  57. package/dist/bundle/{decode-V7HNHZBC.js → decode-HHZMCEZF.js} +3 -3
  58. package/dist/bundle/{echarts-Y42YP2OL.js → echarts-LYV2DLKU.js} +2 -2
  59. package/dist/bundle/{embed-JSQZL7JF.js → embed-BPN3SCZ7.js} +4 -4
  60. package/dist/bundle/{embedder-7BHRCXWL.js → embedder-NZAL7DVD.js} +7 -7
  61. package/dist/bundle/{first-run-BJ36KGST.js → first-run-OKN7MVLP.js} +8 -8
  62. package/dist/bundle/first-screen-6XGF2AKF.js +26 -0
  63. package/dist/bundle/{instructions-UWERND54.js → instructions-N2HYCEWN.js} +1 -1
  64. package/dist/bundle/{mcp-P4FSBSRS.js → mcp-OGWFYUDR.js} +2 -2
  65. package/dist/bundle/{node-PZDNPKN7.js → node-MIHFH7T4.js} +2 -2
  66. package/dist/bundle/{node-sqlite-4F5NLRNT.js → node-sqlite-FF2SFXPZ.js} +4 -4
  67. package/dist/bundle/{oauth-VDXNA3DK.js → oauth-72XUHG3K.js} +5 -5
  68. package/dist/bundle/{open-EUJRQQNS.js → open-HL6SSRKY.js} +3 -3
  69. package/dist/bundle/{openai-EIBV2K72.js → openai-DSWDZHQA.js} +12 -12
  70. package/dist/bundle/{process-XD5ZIFIL.js → process-5EQF2SZN.js} +1 -1
  71. package/dist/bundle/{program-TJTVMIOX.js → program-QPXFRATG.js} +386 -290
  72. package/dist/bundle/{prompt-LYUZNHDK.js → prompt-VVRJDKQK.js} +3 -3
  73. package/dist/bundle/{recognize-LQMHLOD5.js → recognize-T6RIVTQL.js} +2 -2
  74. package/dist/bundle/{remote-34HUWSZI.js → remote-7Z3C3FOG.js} +5 -5
  75. package/dist/bundle/{rerank-ONBASQ5Z.js → rerank-RUFDP7NP.js} +5 -5
  76. package/dist/bundle/{serve-UJ7FDYAM.js → serve-YZQDRGZW.js} +7 -7
  77. package/dist/bundle/server-NDSKEME6.js +52 -0
  78. package/dist/bundle/{server-GNT76BXM.js → server-WSFS656N.js} +28 -28
  79. package/dist/bundle/{state-IW5OO6IZ.js → state-GOQ4J5RS.js} +4 -4
  80. package/dist/bundle/{store-55UB27H2.js → store-KRGXTPKQ.js} +10 -10
  81. package/dist/bundle/store-maintenance-command-FNNZ5YCX.js +42 -0
  82. package/dist/version.d.ts +1 -1
  83. package/dist/version.js +1 -1
  84. package/docs/dev/skills/release/SKILL.md +3 -2
  85. package/kit/dist/new.js +2 -2
  86. package/package.json +4 -4
  87. package/pnpm-workspace.yaml +2 -0
  88. package/src/run-scope.test.ts +31 -0
  89. package/src/version.ts +1 -1
  90. package/dist/bundle/first-screen-5YHQVNY4.js +0 -26
  91. package/dist/bundle/server-J4YIXKMI.js +0 -52
  92. package/dist/bundle/store-maintenance-command-BLDKUZ3L.js +0 -42
package/CHANGELOG.md CHANGED
@@ -5,6 +5,31 @@ Notable changes to `@wirecat/cli-template`. One section per version, newest firs
5
5
 
6
6
  <!-- cspell:words clawhub gcal katex openclaw smol whatsapp -->
7
7
 
8
+ ## 0.18.0 — 07.11.2026
9
+
10
+ ### Added
11
+
12
+ - **A run-scope test, `src/run-scope.test.ts`.** cli-core's `runScopeCases` runs each remote command against the fake
13
+ with `--record`, which must keep a run named after it, and against a service that never answers, which `--timeout`
14
+ must end. A new remote command fails it until it is given words or a reason to skip. cli-core 0.598.0.
15
+
16
+ ### Fixed
17
+
18
+ - **markdownlint's re2js is overridden to 2.8.7.** markdownlint 0.42.0, its latest, pins re2js 2.8.6 exactly, which
19
+ has GHSA-gg6h-894w-4m9c (high, development path only: the docs lint). Every CLI made from the template carried an
20
+ open Dependabot alert that Dependabot could not fix. A CLI gets the override from `upgrade`; tg-cli has the same.
21
+ - **cli-base 0.80.8.** `repo-check` now fails unless main's ruleset requires the template's checks, `conformance` and
22
+ `validation / repo-setup` among them, and unless only `main` can deploy to the GitHub `npm` environment (skipped
23
+ while there is none). `new` prints the environment limit in step 2. `cli-dev live record` hashes the checked files,
24
+ so `bin/release` in a fresh clone passes after the squash merge dropped the branch commit; record the live check
25
+ again to get the new line.
26
+ - **`bin/release` checks the live record in a CLI made from the template again.** 0.17.0 skipped `cli-dev live
27
+ check` when `template.json` existed, and `new` writes one into every CLI, so the WC-REL-17 gate ran nowhere. It now
28
+ skips only where `kit/` exists, which is the template alone. A CLI gets it from `upgrade`.
29
+ - **cli-base 0.80.4 and cli-testing 0.6.1.** `repo-check` skips the ruleset of a private repository on GitHub's free
30
+ plan, which cannot have one, and the contract `deny` check fails instead of passing when it could call no MCP tool
31
+ or a command's `--dry-run` failed.
32
+
8
33
  ## 0.17.0 — 07.11.2026
9
34
 
10
35
  ### Added
package/bin/release CHANGED
@@ -52,9 +52,9 @@ git fetch -q origin
52
52
  pnpm install --frozen-lockfile
53
53
  package=$(node -p 'require("./package.json").name')
54
54
  version=$(node -p 'require("./package.json").version')
55
- # The code released is the code a person checked against the real service (WC-REL-17). template.json is the
56
- # template's own file, never copied: the template has no service.
57
- [ -f template.json ] || pnpm exec cli-dev live check --version "$version"
55
+ # The code released is the code a person checked against the real service (WC-REL-17). Only the template has kit/,
56
+ # and no service to check; every CLI made from it has a template.json too, so that file cannot tell them apart.
57
+ [ -d kit ] || pnpm exec cli-dev live check --version "$version"
58
58
  # A 404 for a package npm has never seen is "not published", like any other failure of `npm view`.
59
59
  published() {
60
60
  npm view "$package@$version" version --prefer-online >/dev/null 2>&1
@@ -87,6 +87,13 @@ land() {
87
87
  git fetch -q origin
88
88
  [ "$(git rev-parse HEAD)" = "$(git rev-parse origin/main)" ] ||
89
89
  { echo "main advanced while $pr was being prepared — stop and review the current version before merging" >&2; exit 1; }
90
+ for _ in $(seq 180); do
91
+ state=$(gh pr view "$pr" --json mergeStateStatus -q .mergeStateStatus)
92
+ case "$state" in CLEAN|HAS_HOOKS|UNSTABLE) break ;; esac
93
+ [ "$(gh pr view "$pr" --json state -q .state)" = CLOSED ] && { echo "$pr was closed without merging" >&2; exit 1; }
94
+ sleep 10
95
+ done
96
+ case "$state" in CLEAN|HAS_HOOKS|UNSTABLE) ;; *) echo "$pr is $state after 30 minutes" >&2; exit 1 ;; esac
90
97
  gh pr merge "$pr" --squash --delete-branch --subject "$title (#${pr##*/})"
91
98
  git fetch -q origin
92
99
  git merge -q --ff-only origin/main
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.17.0\n")
12
+ process.stdout.write("0.18.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -28,7 +28,7 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
- const chunks = ["../bundle/all-profiles-CCT2XPJL.js","../bundle/anthropic-QLLP7EE4.js","../bundle/app-server-ELI5TGL7.js","../bundle/bun-C7JS2V7G.js","../bundle/bun-sqlite-OM72TCYT.js","../bundle/decode-V7HNHZBC.js","../bundle/dist-ESHIQU4M.js","../bundle/echarts-Y42YP2OL.js","../bundle/embed-JSQZL7JF.js","../bundle/embedder-7BHRCXWL.js","../bundle/first-screen-5YHQVNY4.js","../bundle/instructions-UWERND54.js","../bundle/mcp-P4FSBSRS.js","../bundle/node-P4E63KXA.js","../bundle/node-PZDNPKN7.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-4F5NLRNT.js","../bundle/oauth-VDXNA3DK.js","../bundle/open-EUJRQQNS.js","../bundle/openai-EIBV2K72.js","../bundle/process-XD5ZIFIL.js","../bundle/program-TJTVMIOX.js","../bundle/prompt-LYUZNHDK.js","../bundle/recognize-LQMHLOD5.js","../bundle/remote-34HUWSZI.js","../bundle/rerank-ONBASQ5Z.js","../bundle/serve-UJ7FDYAM.js","../bundle/server-GNT76BXM.js","../bundle/server-J4YIXKMI.js","../bundle/state-IW5OO6IZ.js","../bundle/store-55UB27H2.js","../bundle/store-maintenance-command-BLDKUZ3L.js"]
31
+ const chunks = ["../bundle/all-profiles-I2I5Y47S.js","../bundle/anthropic-6KWLOH3O.js","../bundle/app-server-WDHIM77I.js","../bundle/bun-NQS22GBW.js","../bundle/bun-sqlite-ZHYZDAFU.js","../bundle/decode-HHZMCEZF.js","../bundle/dist-ESHIQU4M.js","../bundle/echarts-LYV2DLKU.js","../bundle/embed-BPN3SCZ7.js","../bundle/embedder-NZAL7DVD.js","../bundle/first-screen-6XGF2AKF.js","../bundle/instructions-N2HYCEWN.js","../bundle/mcp-OGWFYUDR.js","../bundle/node-MIHFH7T4.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-FF2SFXPZ.js","../bundle/oauth-72XUHG3K.js","../bundle/open-HL6SSRKY.js","../bundle/openai-DSWDZHQA.js","../bundle/process-5EQF2SZN.js","../bundle/program-QPXFRATG.js","../bundle/prompt-VVRJDKQK.js","../bundle/recognize-T6RIVTQL.js","../bundle/remote-7Z3C3FOG.js","../bundle/rerank-RUFDP7NP.js","../bundle/serve-YZQDRGZW.js","../bundle/server-NDSKEME6.js","../bundle/server-WSFS656N.js","../bundle/state-GOQ4J5RS.js","../bundle/store-KRGXTPKQ.js","../bundle/store-maintenance-command-FNNZ5YCX.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-6VCFDEHT.js";
5
+ } from "./chunk-43KXTQB6.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  StdioServerTransport,
10
10
  callerOf,
11
11
  serveStdio
12
- } from "./chunk-3VVIEZRY.js";
12
+ } from "./chunk-RQPDYAHW.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-S465TCR3.js";
17
- import "./chunk-YIH3PYWJ.js";
18
- import "./chunk-MLSN3UP4.js";
16
+ import "./chunk-F2KGCZQP.js";
17
+ import "./chunk-JECGG4TM.js";
18
+ import "./chunk-KMYKWHFH.js";
19
19
  import "./chunk-Y5E2WNWB.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
25
25
  import { spawn } from "node:child_process";
26
26
  import { randomUUID } from "node:crypto";
27
27
  var PROTOCOL = "2025-06-18";
@@ -255,7 +255,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
255
255
  }, "serveAllProfilesOverStdio");
256
256
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
257
257
  const { build, close } = allProfilesServer(options);
258
- const { serveOverHttp } = await import("./serve-UJ7FDYAM.js");
258
+ const { serveOverHttp } = await import("./serve-YZQDRGZW.js");
259
259
  const listening = await serveOverHttp(build, {
260
260
  ...http,
261
261
  appName: options.command,
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkedOptions
5
- } from "./chunk-HVAEHUSZ.js";
5
+ } from "./chunk-RSCHWXF5.js";
6
6
  import {
7
7
  messagesFor,
8
8
  systemFor
9
- } from "./chunk-WQBBSVZM.js";
9
+ } from "./chunk-RYBCV3CX.js";
10
10
  import {
11
11
  Anthropic
12
12
  } from "./chunk-ADLS6FVG.js";
@@ -15,13 +15,13 @@ import {
15
15
  optional,
16
16
  strictObject,
17
17
  string
18
- } from "./chunk-MLSN3UP4.js";
18
+ } from "./chunk-KMYKWHFH.js";
19
19
  import "./chunk-Y5E2WNWB.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/models/anthropic.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/models/anthropic.js
25
25
  var options = strictObject({
26
26
  stop_sequences: optional(array(string()))
27
27
  });
@@ -3,47 +3,47 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-ZRNBKTPP.js";
6
+ } from "./chunk-UGPJDNVX.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-GG5PXNMH.js";
9
+ } from "./chunk-EMPBFRAG.js";
10
10
  import {
11
11
  answeredWire
12
- } from "./chunk-6VCFDEHT.js";
12
+ } from "./chunk-43KXTQB6.js";
13
13
  import {
14
14
  answered,
15
15
  failed,
16
16
  registerCommands,
17
17
  runCommandForAgent,
18
18
  toolsFromCommands
19
- } from "./chunk-ASO23RNM.js";
19
+ } from "./chunk-6K7LOCZA.js";
20
20
  import {
21
21
  agentJson,
22
22
  skillResource
23
- } from "./chunk-SQKP6V4S.js";
23
+ } from "./chunk-YMGJJG3W.js";
24
24
  import {
25
25
  StdioServerTransport,
26
26
  serveStdio
27
- } from "./chunk-3VVIEZRY.js";
28
- import "./chunk-BOCIYBBO.js";
29
- import "./chunk-EQDVQN4E.js";
30
- import "./chunk-ITPFCKCL.js";
31
- import "./chunk-QVPTZDRA.js";
32
- import "./chunk-R5IY4O25.js";
33
- import "./chunk-KRXN3FV3.js";
27
+ } from "./chunk-RQPDYAHW.js";
28
+ import "./chunk-GBXTIWAE.js";
29
+ import "./chunk-AQGUIORH.js";
30
+ import "./chunk-VDV3WS4O.js";
31
+ import "./chunk-T7657XL5.js";
32
+ import "./chunk-I5HN34YA.js";
33
+ import "./chunk-IKGARE4J.js";
34
34
  import {
35
35
  appInstructions
36
- } from "./chunk-RT46AWIH.js";
36
+ } from "./chunk-T6ZLWN7E.js";
37
37
  import {
38
38
  McpServer
39
39
  } from "./chunk-5D4AEUVA.js";
40
40
  import {
41
41
  mcpHttpMarker
42
- } from "./chunk-XS56LIQ7.js";
43
- import "./chunk-RGKXMVOZ.js";
44
- import "./chunk-X44ZT64I.js";
45
- import "./chunk-WQBBSVZM.js";
46
- import "./chunk-RUHNHEAF.js";
42
+ } from "./chunk-NVALUKZU.js";
43
+ import "./chunk-4DHYD37E.js";
44
+ import "./chunk-TMFSNTR2.js";
45
+ import "./chunk-RYBCV3CX.js";
46
+ import "./chunk-CZB5RLXN.js";
47
47
  import {
48
48
  DEFAULT_OUTPUT_BYTES,
49
49
  changesAuthorityAt,
@@ -53,31 +53,31 @@ import {
53
53
  readOnlyLockOf,
54
54
  readsOverMcpAt,
55
55
  rootOf2 as rootOf
56
- } from "./chunk-UW4PJZVJ.js";
57
- import "./chunk-S465TCR3.js";
58
- import "./chunk-XKL5FRH3.js";
59
- import "./chunk-AUVPTFUS.js";
60
- import "./chunk-QLBS6OC2.js";
61
- import "./chunk-URPKIONS.js";
62
- import "./chunk-QJS4WWYK.js";
63
- import "./chunk-YIH3PYWJ.js";
64
- import "./chunk-BXZRTMXA.js";
65
- import "./chunk-FF3AGTHY.js";
66
- import "./chunk-O6PBO4BU.js";
67
- import "./chunk-6PHTRAZA.js";
68
- import "./chunk-J2RUBXCI.js";
69
- import "./chunk-LFLN6PVS.js";
70
- import "./chunk-AKUMR7PE.js";
56
+ } from "./chunk-MJSZEF7M.js";
57
+ import "./chunk-F2KGCZQP.js";
58
+ import "./chunk-6HV2ZUJ7.js";
59
+ import "./chunk-FPC4ESDC.js";
60
+ import "./chunk-CAX65NS4.js";
61
+ import "./chunk-VDXS7GR7.js";
62
+ import "./chunk-FGQC6DQK.js";
63
+ import "./chunk-JECGG4TM.js";
64
+ import "./chunk-G7JA7YXK.js";
65
+ import "./chunk-ERHKHYWL.js";
66
+ import "./chunk-HMP5CI4F.js";
67
+ import "./chunk-L4U3V7OU.js";
68
+ import "./chunk-UESBF7HN.js";
69
+ import "./chunk-UXLB5I2B.js";
70
+ import "./chunk-Q5J3LKRL.js";
71
71
  import {
72
72
  CliError,
73
73
  mcpErrorResult
74
- } from "./chunk-MLSN3UP4.js";
74
+ } from "./chunk-KMYKWHFH.js";
75
75
  import "./chunk-Y5E2WNWB.js";
76
76
  import {
77
77
  __name
78
78
  } from "./chunk-ZVVMGPBJ.js";
79
79
 
80
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
80
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
81
81
  var EXCLUDED = [["mcp"]];
82
82
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
83
83
  const { app } = options;
@@ -177,9 +177,12 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
177
177
  });
178
178
  const ended = await new Promise((resolve) => {
179
179
  wire.ended.then(() => resolve("input"));
180
- if (own)
181
- signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
182
- else {
180
+ if (own) {
181
+ if (signal?.aborted)
182
+ resolve("stopped");
183
+ else
184
+ signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
185
+ } else {
183
186
  process.once("SIGINT", () => resolve("stopped"));
184
187
  process.once("SIGTERM", () => resolve("stopped"));
185
188
  }
@@ -192,7 +195,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
192
195
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
193
196
  const { app } = options;
194
197
  const { build } = createAppServer(command, context, options);
195
- const { serveOverHttp } = await import("./serve-UJ7FDYAM.js");
198
+ const { serveOverHttp } = await import("./serve-YZQDRGZW.js");
196
199
  const listening = await serveOverHttp(build, {
197
200
  ...http,
198
201
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-6PHTRAZA.js";
21
+ } from "./chunk-L4U3V7OU.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,8 +3,8 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-GUCMIUNB.js";
7
- import "./chunk-MLSN3UP4.js";
6
+ } from "./chunk-KWQSDU3D.js";
7
+ import "./chunk-KMYKWHFH.js";
8
8
  import {
9
9
  importFrom
10
10
  } from "./chunk-Y5E2WNWB.js";
@@ -12,7 +12,7 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
16
16
  var customised = false;
17
17
  var ownLibrary = /* @__PURE__ */ __name(async () => {
18
18
  try {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
8
8
  import { PassThrough, Writable } from "node:stream";
9
9
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
10
10
  let rest = "";
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-AUVPTFUS.js";
5
+ } from "./chunk-FPC4ESDC.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-MLSN3UP4.js";
9
+ } from "./chunk-KMYKWHFH.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-MLSN3UP4.js";
5
+ } from "./chunk-KMYKWHFH.js";
6
6
  import {
7
7
  importFrom
8
8
  } from "./chunk-Y5E2WNWB.js";
@@ -10,10 +10,10 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-BXZRTMXA.js";
6
+ } from "./chunk-G7JA7YXK.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-MLSN3UP4.js";
9
+ } from "./chunk-KMYKWHFH.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";