@wirecat/cli-memo 0.131.76 → 0.131.78

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 (163) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bin/memo.js.map +1 -1
  3. package/dist/bundle/{all-profiles-CGQTLFDM.js → all-profiles-ZEUEPNFD.js} +10 -8
  4. package/dist/bundle/{anthropic-C744EPRR.js → anthropic-VF75LSDZ.js} +7 -5
  5. package/dist/bundle/{app-server-LOH7WXAB.js → app-server-Z4TY5VP5.js} +42 -40
  6. package/dist/bundle/auto-SA667UAT.js +91 -0
  7. package/dist/bundle/{bun-SQWZDSWT.js → bun-OUR5UZAI.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-YVBFXNWB.js → bun-sqlite-26ZGEVH3.js} +7 -5
  9. package/dist/bundle/{chunk-2KGYREGD.js → chunk-22RYCAAO.js} +1604 -1114
  10. package/dist/bundle/{chunk-W46O6RJ5.js → chunk-2IQWMWMC.js} +42 -130
  11. package/dist/bundle/{chunk-4O2MYFYC.js → chunk-3EPBPSP6.js} +1 -1
  12. package/dist/bundle/{chunk-KEBL3PY4.js → chunk-3QBRLN6T.js} +2 -2
  13. package/dist/bundle/{chunk-Y7YXXWQI.js → chunk-3QV5JWFN.js} +3 -3
  14. package/dist/bundle/{chunk-LLBZDBPT.js → chunk-4LZLU2V3.js} +4 -4
  15. package/dist/bundle/{chunk-6RPLAGAL.js → chunk-5NBQOU5V.js} +22 -22
  16. package/dist/bundle/{chunk-AUCXJVUI.js → chunk-5PCPPT43.js} +34 -32
  17. package/dist/bundle/{chunk-VYCLOFPC.js → chunk-6A37YXAL.js} +6 -184
  18. package/dist/bundle/{chunk-3PLYUZAR.js → chunk-6ABWVQ4T.js} +1 -1
  19. package/dist/bundle/{chunk-NM4QMIOQ.js → chunk-6GHBGGN7.js} +3 -3
  20. package/dist/bundle/{chunk-RTSRESGX.js → chunk-7DKS4GIW.js} +6 -6
  21. package/dist/bundle/{chunk-RLRKBPLJ.js → chunk-7ENXMVT5.js} +25 -13
  22. package/dist/bundle/{chunk-KA5MDFLU.js → chunk-A3QZXQI3.js} +1 -1
  23. package/dist/bundle/{chunk-ZHAHSVQO.js → chunk-AZIXZIXT.js} +7 -7
  24. package/dist/bundle/{chunk-NE3UIK5P.js → chunk-B2ZAEF5Z.js} +2 -2
  25. package/dist/bundle/{chunk-2EZFUIL4.js → chunk-BA6GHX5B.js} +27 -27
  26. package/dist/bundle/{chunk-V6CRCAWN.js → chunk-D67YDJ35.js} +505 -305
  27. package/dist/bundle/{chunk-C7OOLF5J.js → chunk-DAEPTQ6N.js} +6 -6
  28. package/dist/bundle/{chunk-MODHP5VA.js → chunk-DDPZY27T.js} +22 -18
  29. package/dist/bundle/{chunk-YSOTOUHJ.js → chunk-E5JVYVRX.js} +15 -15
  30. package/dist/bundle/{chunk-HAMGOLFU.js → chunk-EF33DKMR.js} +1 -1
  31. package/dist/bundle/{chunk-N2FIIVJV.js → chunk-EI7LYQQA.js} +4 -4
  32. package/dist/bundle/{chunk-4DTJF6E7.js → chunk-EIQ6HCIB.js} +8 -8
  33. package/dist/bundle/{chunk-OEH5JUAL.js → chunk-ELKRFQ5Y.js} +13 -13
  34. package/dist/bundle/chunk-EXFRC4OT.js +106 -0
  35. package/dist/bundle/{chunk-EVLOYNXC.js → chunk-F7MKFYYP.js} +4 -4
  36. package/dist/bundle/{chunk-YRJ2576I.js → chunk-GXHPPHGB.js} +11 -11
  37. package/dist/bundle/{chunk-YNXQAB4X.js → chunk-H2AQV772.js} +11 -11
  38. package/dist/bundle/{chunk-KYLKZKQ7.js → chunk-I6CZU7X7.js} +2 -2
  39. package/dist/bundle/{chunk-TGURQ4YH.js → chunk-IFANDP3T.js} +8 -2
  40. package/dist/bundle/{chunk-MFQTOOHR.js → chunk-JHW2ARPA.js} +35 -35
  41. package/dist/bundle/{chunk-DUON3SRD.js → chunk-KUY35N7Q.js} +8 -8
  42. package/dist/bundle/{chunk-SF2OLWBU.js → chunk-LJRXD44C.js} +7 -7
  43. package/dist/bundle/{chunk-VFJAGY3L.js → chunk-MUFU4LNS.js} +3 -3
  44. package/dist/bundle/{chunk-3NCRQMEN.js → chunk-MW6IAMUI.js} +1 -1
  45. package/dist/bundle/{chunk-PFNEOHCY.js → chunk-N7CHOWDF.js} +3 -3
  46. package/dist/bundle/{chunk-S54Z74G2.js → chunk-NGWKI3E6.js} +2 -2
  47. package/dist/bundle/{chunk-ODCHYVTW.js → chunk-NXQFVHG4.js} +163 -154
  48. package/dist/bundle/{chunk-AI6PMW7L.js → chunk-OHMF7LWW.js} +6 -6
  49. package/dist/bundle/{chunk-XGPSFPLH.js → chunk-OMCET4QP.js} +48 -48
  50. package/dist/bundle/{chunk-YU7KZW5I.js → chunk-OMGNXKSH.js} +5 -5
  51. package/dist/bundle/{chunk-4IWOPJL4.js → chunk-OUATPEPP.js} +7 -7
  52. package/dist/bundle/{chunk-5NY7U6CM.js → chunk-P3UQGKGY.js} +12 -10
  53. package/dist/bundle/{chunk-DDSKTPU7.js → chunk-PTKJIA7M.js} +4 -4
  54. package/dist/bundle/{chunk-TD4HM7XL.js → chunk-Q2CQNT3A.js} +1 -1
  55. package/dist/bundle/{chunk-GB64N6DP.js → chunk-QEJHNTCX.js} +298 -297
  56. package/dist/bundle/{chunk-FUATAPSB.js → chunk-QU7UPCW2.js} +83 -81
  57. package/dist/bundle/{chunk-TPWAXJUQ.js → chunk-T37LLOZR.js} +1 -1
  58. package/dist/bundle/{chunk-OJU774SG.js → chunk-T6LXUBXY.js} +4 -4
  59. package/dist/bundle/{chunk-TXVXEE7L.js → chunk-TT5RMHM6.js} +6 -6
  60. package/dist/bundle/{chunk-Z3NRIW4M.js → chunk-TWWYDJBW.js} +1 -1
  61. package/dist/bundle/{chunk-ZIA7AU7L.js → chunk-UIJBGS6K.js} +2 -2
  62. package/dist/bundle/{chunk-7PSGKP3R.js → chunk-UWF6WXM7.js} +8 -8
  63. package/dist/bundle/{chunk-FH753LZS.js → chunk-VHA3LJQT.js} +2 -2
  64. package/dist/bundle/{chunk-GBU4U55M.js → chunk-VJLJFLKZ.js} +1 -1
  65. package/dist/bundle/{chunk-H3WELZYK.js → chunk-WETWQO6X.js} +3 -3
  66. package/dist/bundle/{chunk-7OZEQIK7.js → chunk-WHMKYJZR.js} +1 -1
  67. package/dist/bundle/{chunk-7XFJRX6F.js → chunk-WHZJHUK6.js} +3 -3
  68. package/dist/bundle/{chunk-W5ARY4U2.js → chunk-WYSFOL74.js} +4 -4
  69. package/dist/bundle/chunk-X2SA73EE.js +200 -0
  70. package/dist/bundle/{chunk-47WS4BML.js → chunk-XC26CUGL.js} +12 -10
  71. package/dist/bundle/{chunk-6YRVBXFH.js → chunk-XTCN3VUP.js} +10 -10
  72. package/dist/bundle/{chunk-O3KNZVDZ.js → chunk-Y2J52Y3A.js} +4 -4
  73. package/dist/bundle/{chunk-42UNPXTC.js → chunk-YOM4PA3A.js} +2 -2
  74. package/dist/bundle/{chunk-YD7XTYEC.js → chunk-Z4TPRASF.js} +6 -6
  75. package/dist/bundle/{chunk-5AQIET5P.js → chunk-ZKCAR2OL.js} +2 -2
  76. package/dist/bundle/command-contract-L5GTW74N.js +34 -0
  77. package/dist/bundle/{command-server-entry-472XWNSN.js → command-server-entry-A7ZCZWHH.js} +22 -20
  78. package/dist/bundle/{decode-SFZ67QJN.js → decode-FO2ELPW6.js} +7 -5
  79. package/dist/bundle/{dispatch-PHB2Y6ZL.js → dispatch-N73TJNYM.js} +3 -3
  80. package/dist/bundle/{echarts-3U34KH7O.js → echarts-HTY3OB2X.js} +2 -2
  81. package/dist/bundle/{embed-ZEZXJ45Q.js → embed-2DTGMR7Z.js} +8 -6
  82. package/dist/bundle/{embedder-AASO2I4Z.js → embedder-N3IGQ2M6.js} +11 -9
  83. package/dist/bundle/entry-Q7CIJ3TU.js +23 -0
  84. package/dist/bundle/entry-YDEKGRCA.js +78 -0
  85. package/dist/bundle/{failure-OBT7CUVW.js → failure-IPHFR3KW.js} +3 -2
  86. package/dist/bundle/failure-QL3RJILP.js +71 -0
  87. package/dist/bundle/{first-run-YL3TIUU3.js → first-run-SAADMYEA.js} +11 -9
  88. package/dist/bundle/first-screen-WXKAIMY6.js +32 -0
  89. package/dist/bundle/{instructions-HG2ZZ7AP.js → instructions-XB5Y5DFA.js} +1 -1
  90. package/dist/bundle/mcp-IRJS472M.js +92 -0
  91. package/dist/bundle/memo.js +9 -56
  92. package/dist/bundle/{node-7AQN6OTR.js → node-4ZOD7X75.js} +2 -2
  93. package/dist/bundle/{node-sqlite-55KMFPGI.js → node-sqlite-DWXKYFW6.js} +8 -6
  94. package/dist/bundle/{oauth-S2GLD4PY.js → oauth-GMIBNJQB.js} +9 -7
  95. package/dist/bundle/{open-6R4UPST5.js → open-3DBI3MHV.js} +7 -5
  96. package/dist/bundle/openai-HFJAR7W5.js +26 -0
  97. package/dist/bundle/{process-C7J3IT7Q.js → process-2H5HNPHH.js} +1 -1
  98. package/dist/bundle/{program-KWI6M5IB.js → program-VXKN6DLP.js} +300 -149
  99. package/dist/bundle/{prompt-EEFKVWSA.js → prompt-WETKFAQS.js} +7 -5
  100. package/dist/bundle/{recognize-STYHVWQ6.js → recognize-5LC3DQ2W.js} +6 -4
  101. package/dist/bundle/{remote-6MXZXHYY.js → remote-FURTWZ25.js} +9 -7
  102. package/dist/bundle/{rerank-IMX2ONZG.js → rerank-CMQWT3WC.js} +9 -7
  103. package/dist/bundle/serve-LEF3PX34.js +24 -0
  104. package/dist/bundle/server-C2EVLJLW.js +64 -0
  105. package/dist/bundle/{server-L6OS2MJ5.js → server-GYLFN6Y7.js} +62 -59
  106. package/dist/bundle/server-L7GHFXJF.js +50 -0
  107. package/dist/bundle/{state-7MP4KKPG.js → state-OVZT24JF.js} +8 -6
  108. package/dist/bundle/{store-EMAKEEYI.js → store-SV46T732.js} +14 -12
  109. package/dist/bundle/store-maintenance-command-TZYC5HVL.js +49 -0
  110. package/dist/bundle/update-PRBIV3RG.js +74 -0
  111. package/dist/people/command.d.ts.map +1 -1
  112. package/dist/people/command.js +3 -2
  113. package/dist/people/command.js.map +1 -1
  114. package/dist/people/identities-command.d.ts.map +1 -1
  115. package/dist/people/identities-command.js +2 -0
  116. package/dist/people/identities-command.js.map +1 -1
  117. package/dist/reasons.d.ts.map +1 -1
  118. package/dist/reasons.js +6 -0
  119. package/dist/reasons.js.map +1 -1
  120. package/dist/run/entry.d.ts +7 -0
  121. package/dist/run/entry.d.ts.map +1 -0
  122. package/dist/run/entry.js +62 -0
  123. package/dist/run/entry.js.map +1 -0
  124. package/dist/sources/command.d.ts.map +1 -1
  125. package/dist/sources/command.js +29 -3
  126. package/dist/sources/command.js.map +1 -1
  127. package/dist/sources/read.d.ts +16 -2
  128. package/dist/sources/read.d.ts.map +1 -1
  129. package/dist/sources/read.js +40 -4
  130. package/dist/sources/read.js.map +1 -1
  131. package/dist/sources/readers/ai-model.d.ts +4 -0
  132. package/dist/sources/readers/ai-model.d.ts.map +1 -0
  133. package/dist/sources/readers/ai-model.js +74 -0
  134. package/dist/sources/readers/ai-model.js.map +1 -0
  135. package/dist/sources/readers/index.d.ts +1 -0
  136. package/dist/sources/readers/index.d.ts.map +1 -1
  137. package/dist/sources/readers/index.js +3 -1
  138. package/dist/sources/readers/index.js.map +1 -1
  139. package/dist/sources/readers/keys.js +1 -1
  140. package/dist/sources/readers/keys.js.map +1 -1
  141. package/dist/sources/readers/types.d.ts +5 -2
  142. package/dist/sources/readers/types.d.ts.map +1 -1
  143. package/dist/sources/readers/types.js +1 -1
  144. package/dist/sources/readers/types.js.map +1 -1
  145. package/dist/sources/suggest-command.d.ts.map +1 -1
  146. package/dist/sources/suggest-command.js +16 -5
  147. package/dist/sources/suggest-command.js.map +1 -1
  148. package/dist/version.d.ts +1 -1
  149. package/dist/version.js +1 -1
  150. package/package.json +2 -2
  151. package/dist/bundle/auto-R3ABUML7.js +0 -89
  152. package/dist/bundle/command-contract-IEUSFI3B.js +0 -32
  153. package/dist/bundle/entry-7VHMR3LD.js +0 -21
  154. package/dist/bundle/failure-DJSK3LGN.js +0 -69
  155. package/dist/bundle/first-screen-OQVOWRYM.js +0 -30
  156. package/dist/bundle/mcp-EUFDOVMI.js +0 -90
  157. package/dist/bundle/openai-JK5GCSDK.js +0 -24
  158. package/dist/bundle/serve-ZNN464BH.js +0 -22
  159. package/dist/bundle/server-4CHUUMVI.js +0 -48
  160. package/dist/bundle/server-VCZCAQOB.js +0 -62
  161. package/dist/bundle/store-maintenance-command-LWN6OUFA.js +0 -47
  162. package/dist/bundle/update-I4X2UO6J.js +0 -72
  163. /package/dist/bundle/{chunk-IKIYW7FW.js → chunk-DK3W4FPW.js} +0 -0
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-3NCRQMEN.js";
5
+ } from "./chunk-MW6IAMUI.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-2EZFUIL4.js";
8
+ } from "./chunk-BA6GHX5B.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/store/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-YVBFXNWB.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-26ZGEVH3.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-55KMFPGI.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-DWXKYFW6.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  callerOf
5
- } from "./chunk-NE3UIK5P.js";
5
+ } from "./chunk-B2ZAEF5Z.js";
6
6
  import {
7
7
  UNTRUSTED,
8
8
  UNTRUSTED_NEUTRAL,
@@ -10,7 +10,7 @@ import {
10
10
  agentJson,
11
11
  commandAvailability,
12
12
  failureContext
13
- } from "./chunk-RLRKBPLJ.js";
13
+ } from "./chunk-7ENXMVT5.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
@@ -18,10 +18,10 @@ import {
18
18
  refuseLacking,
19
19
  servicesFor,
20
20
  storeModeDeps
21
- } from "./chunk-GB64N6DP.js";
21
+ } from "./chunk-QEJHNTCX.js";
22
22
  import {
23
23
  MAX_BUFFERED_INPUT
24
- } from "./chunk-5AQIET5P.js";
24
+ } from "./chunk-ZKCAR2OL.js";
25
25
  import {
26
26
  DEFAULT_OUTPUT_BYTES,
27
27
  ENTITIES,
@@ -41,27 +41,33 @@ import {
41
41
  refuseStoreChange,
42
42
  sealed,
43
43
  startRecording
44
- } from "./chunk-ODCHYVTW.js";
44
+ } from "./chunk-NXQFVHG4.js";
45
45
  import {
46
46
  currentCaller,
47
47
  keepsSuccess,
48
48
  runContextOf,
49
49
  withCaller
50
- } from "./chunk-SF2OLWBU.js";
50
+ } from "./chunk-LJRXD44C.js";
51
51
  import {
52
52
  enclosingTraceId,
53
53
  inRun,
54
54
  newRunId,
55
55
  queryDescription,
56
56
  traceOf
57
- } from "./chunk-FUATAPSB.js";
57
+ } from "./chunk-QU7UPCW2.js";
58
58
  import {
59
59
  storeDamaged
60
- } from "./chunk-7XFJRX6F.js";
60
+ } from "./chunk-WHZJHUK6.js";
61
+ import {
62
+ captureStreams
63
+ } from "./chunk-2IQWMWMC.js";
61
64
  import {
62
- captureStreams,
63
65
  traceIdOf
64
- } from "./chunk-W46O6RJ5.js";
66
+ } from "./chunk-EXFRC4OT.js";
67
+ import {
68
+ errorObjectOf,
69
+ mcpErrorResult
70
+ } from "./chunk-X2SA73EE.js";
65
71
  import {
66
72
  COMPACT_FLAG,
67
73
  SNAKE_CASE,
@@ -69,7 +75,6 @@ import {
69
75
  boolean,
70
76
  description,
71
77
  duplicates,
72
- errorObjectOf,
73
78
  integer,
74
79
  isoDate,
75
80
  itemEnvelopeSchema,
@@ -78,7 +83,6 @@ import {
78
83
  looseObject,
79
84
  maxLength,
80
85
  maxValue,
81
- mcpErrorResult,
82
86
  minLength,
83
87
  minValue,
84
88
  number,
@@ -100,16 +104,16 @@ import {
100
104
  unknown,
101
105
  word,
102
106
  writes
103
- } from "./chunk-VYCLOFPC.js";
107
+ } from "./chunk-6A37YXAL.js";
104
108
  import {
105
109
  CliError,
106
110
  errorCodes
107
- } from "./chunk-2EZFUIL4.js";
111
+ } from "./chunk-BA6GHX5B.js";
108
112
  import {
109
113
  __name
110
114
  } from "./chunk-ZVVMGPBJ.js";
111
115
 
112
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/agent.js
116
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
117
  import { Readable } from "node:stream";
114
118
 
115
119
  // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
@@ -3206,7 +3210,7 @@ var VOCABULARY = defineVocabulary({
3206
3210
  ]
3207
3211
  });
3208
3212
 
3209
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3213
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3210
3214
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3211
3215
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3212
3216
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3429,7 +3433,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3429
3433
  }
3430
3434
  }, "runCommandForAgent");
3431
3435
 
3432
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3436
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3433
3437
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3434
3438
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3435
3439
  var message = pipe(
@@ -3688,7 +3692,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3688
3692
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3689
3693
  }, "failed");
3690
3694
 
3691
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3695
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3692
3696
  import { randomUUID } from "node:crypto";
3693
3697
  var MATCHES = 8;
3694
3698
  var ANSWER = answerSchema();
@@ -16,10 +16,10 @@ import {
16
16
  servicesFor,
17
17
  throughWrapper,
18
18
  withFileLockAsync
19
- } from "./chunk-GB64N6DP.js";
19
+ } from "./chunk-QEJHNTCX.js";
20
20
  import {
21
21
  servingProfiles
22
- } from "./chunk-PFNEOHCY.js";
22
+ } from "./chunk-N7CHOWDF.js";
23
23
  import {
24
24
  chatReferenceOf,
25
25
  ensureAccount,
@@ -27,7 +27,7 @@ import {
27
27
  isId,
28
28
  openStore,
29
29
  pickPerson
30
- } from "./chunk-2KGYREGD.js";
30
+ } from "./chunk-22RYCAAO.js";
31
31
  import {
32
32
  CEILING_KEY,
33
33
  WRITE_KEYS,
@@ -47,24 +47,24 @@ import {
47
47
  rememberAccount,
48
48
  rootOf2 as rootOf,
49
49
  skipFlagFor
50
- } from "./chunk-ODCHYVTW.js";
50
+ } from "./chunk-NXQFVHG4.js";
51
51
  import {
52
52
  providerErrorKey
53
- } from "./chunk-SF2OLWBU.js";
53
+ } from "./chunk-LJRXD44C.js";
54
54
  import {
55
55
  isCliFailure
56
- } from "./chunk-7XFJRX6F.js";
56
+ } from "./chunk-WHZJHUK6.js";
57
57
  import {
58
58
  resolvePaths
59
- } from "./chunk-W46O6RJ5.js";
59
+ } from "./chunk-2IQWMWMC.js";
60
60
  import {
61
61
  CliError
62
- } from "./chunk-2EZFUIL4.js";
62
+ } from "./chunk-BA6GHX5B.js";
63
63
  import {
64
64
  __name
65
65
  } from "./chunk-ZVVMGPBJ.js";
66
66
 
67
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
67
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
68
68
  import { openSync } from "node:fs";
69
69
  import { createInterface } from "node:readline";
70
70
  import { ReadStream } from "node:tty";
@@ -119,7 +119,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
119
119
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
120
120
  }, "terminalAsker");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/sends/pace.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/sends/pace.js
123
123
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
124
124
  import { join } from "node:path";
125
125
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -209,7 +209,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
209
209
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
210
210
  }, "waitForTurn");
211
211
 
212
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
213
213
  var pathOf = /* @__PURE__ */ __name((command) => {
214
214
  const words = [];
215
215
  for (let at = command; at?.parent; at = at.parent)
@@ -269,7 +269,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
269
269
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
270
270
  }, "refuseUnknownPermissionKeys");
271
271
 
272
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
272
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
273
273
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
274
274
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
275
275
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -366,7 +366,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
366
366
  });
367
367
  }, "flooded");
368
368
 
369
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
369
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
370
370
  var observed = /* @__PURE__ */ __name((messenger, events) => {
371
371
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
372
372
  const write = currentOperation();
@@ -465,7 +465,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
465
465
  counts[part] = (counts[part] ?? 0) + items.length;
466
466
  }, "byPart");
467
467
 
468
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
468
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
469
469
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
470
470
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
471
471
  let warned = false;
@@ -1041,7 +1041,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1041
1041
  }
1042
1042
  }, "keep");
1043
1043
 
1044
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1044
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1045
1045
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1046
1046
  let opened;
1047
1047
  return {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-PFNEOHCY.js";
8
+ } from "./chunk-N7CHOWDF.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  decisionPolicy
5
- } from "./chunk-MFQTOOHR.js";
5
+ } from "./chunk-JHW2ARPA.js";
6
6
  import {
7
7
  openStore
8
- } from "./chunk-2KGYREGD.js";
8
+ } from "./chunk-22RYCAAO.js";
9
9
  import {
10
10
  STORE_CLIENT
11
- } from "./chunk-TGURQ4YH.js";
11
+ } from "./chunk-IFANDP3T.js";
12
12
  import {
13
13
  compactText,
14
14
  itemOf,
@@ -20,19 +20,19 @@ import {
20
20
  rowsOfEntity,
21
21
  sealed,
22
22
  snakeKeysKeeping
23
- } from "./chunk-ODCHYVTW.js";
23
+ } from "./chunk-NXQFVHG4.js";
24
24
  import {
25
25
  currentRun
26
- } from "./chunk-FUATAPSB.js";
26
+ } from "./chunk-QU7UPCW2.js";
27
27
  import {
28
28
  createRenderer
29
- } from "./chunk-W46O6RJ5.js";
29
+ } from "./chunk-2IQWMWMC.js";
30
30
  import {
31
31
  COMPACT_FLAG
32
- } from "./chunk-VYCLOFPC.js";
32
+ } from "./chunk-6A37YXAL.js";
33
33
  import {
34
34
  CliError
35
- } from "./chunk-2EZFUIL4.js";
35
+ } from "./chunk-BA6GHX5B.js";
36
36
  import {
37
37
  __name
38
38
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-2EZFUIL4.js";
5
+ } from "./chunk-BA6GHX5B.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -0,0 +1,106 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ array,
5
+ dottedId,
6
+ duplicates,
7
+ isoTime,
8
+ optional,
9
+ parseRegistry,
10
+ picklist,
11
+ pipe,
12
+ record,
13
+ regex,
14
+ strictObject,
15
+ string,
16
+ text,
17
+ unknown
18
+ } from "./chunk-6A37YXAL.js";
19
+ import {
20
+ __name
21
+ } from "./chunk-ZVVMGPBJ.js";
22
+
23
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
24
+ var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
25
+ var logRecordSchema = strictObject({
26
+ time: isoTime,
27
+ severity: picklist(LOG_SEVERITIES),
28
+ /** The registered event id, `provider.request.failed`: never a sentence, so never content. */
29
+ body: string(),
30
+ run_id: text,
31
+ /** From an MCP caller's `_meta.traceparent`, when it sent one. */
32
+ trace_id: optional(pipe(string(), regex(/^[0-9a-f]{32}$/, "32 lower-case hex digits"))),
33
+ command: string(),
34
+ attributes: record(string(), unknown()),
35
+ resource: strictObject({ service: text, version: text })
36
+ });
37
+ var logEventSchema = strictObject({
38
+ id: dottedId,
39
+ meaning: text,
40
+ /** Attribute keys every record of this event carries. */
41
+ keys: array(string())
42
+ });
43
+ var defineLogEvents = /* @__PURE__ */ __name((input) => parseRegistry("log events", array(logEventSchema), input, (events) => [
44
+ ...duplicates(events.map((event) => event.id)).map((id) => `"${id}" is listed twice`),
45
+ ...events.flatMap((event) => duplicates(event.keys).map((key) => `${event.id}: key "${key}" is listed twice`))
46
+ ]), "defineLogEvents");
47
+ var LOG_EVENTS = defineLogEvents([
48
+ { id: "command.failed", meaning: "a command ended with an error", keys: ["code", "reason"] }
49
+ ]);
50
+ var LOG_ATTRIBUTE_KEYS = [
51
+ "code",
52
+ "count",
53
+ "durationMs",
54
+ "errorClass",
55
+ "errorCode",
56
+ "event",
57
+ "frames",
58
+ "operation",
59
+ "outcome",
60
+ "reason",
61
+ "status"
62
+ ];
63
+ var CONTENT_WORDS = /* @__PURE__ */ new Set([
64
+ "authorization",
65
+ "body",
66
+ "caption",
67
+ "content",
68
+ "cookie",
69
+ "credential",
70
+ "credentials",
71
+ "email",
72
+ "password",
73
+ "phone",
74
+ "query",
75
+ "secret",
76
+ "text",
77
+ "title",
78
+ "token"
79
+ ]);
80
+ var CONTENT_LAST_WORDS = /* @__PURE__ */ new Set(["message", "name"]);
81
+ var wordsOf = /* @__PURE__ */ __name((key) => key.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).filter(Boolean).map((word) => word.toLowerCase()), "wordsOf");
82
+ var isContentKey = /* @__PURE__ */ __name((key) => {
83
+ const words = wordsOf(key);
84
+ return words.some((word) => CONTENT_WORDS.has(word)) || CONTENT_LAST_WORDS.has(words.at(-1) ?? "");
85
+ }, "isContentKey");
86
+ var TRACEPARENT = /^([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})(-.*)?$/;
87
+ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
88
+ if (typeof traceparent !== "string")
89
+ return void 0;
90
+ const match = TRACEPARENT.exec(traceparent.trim());
91
+ if (!match)
92
+ return void 0;
93
+ const [, version, traceId = "", parentId = "", , rest] = match;
94
+ if (version === "ff" || version === "00" && rest !== void 0)
95
+ return void 0;
96
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentId))
97
+ return void 0;
98
+ return traceId;
99
+ }, "traceIdOf");
100
+
101
+ export {
102
+ defineLogEvents,
103
+ LOG_ATTRIBUTE_KEYS,
104
+ isContentKey,
105
+ traceIdOf
106
+ };
@@ -4,18 +4,18 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-TXVXEE7L.js";
7
+ } from "./chunk-TT5RMHM6.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-FH753LZS.js";
10
+ } from "./chunk-VHA3LJQT.js";
11
11
  import {
12
12
  CliError
13
- } from "./chunk-2EZFUIL4.js";
13
+ } from "./chunk-BA6GHX5B.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";