@wirecat/cli-memo 0.131.50 → 0.131.52

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 (144) hide show
  1. package/dist/author.d.ts +6 -3
  2. package/dist/author.d.ts.map +1 -1
  3. package/dist/author.js +9 -4
  4. package/dist/author.js.map +1 -1
  5. package/dist/bin/memo.js +2 -2
  6. package/dist/bundle/{all-profiles-3HADTQZA.js → all-profiles-ZFVBLT2D.js} +9 -9
  7. package/dist/bundle/{anthropic-RI4DWC3G.js → anthropic-UG2YHOT7.js} +6 -6
  8. package/dist/bundle/{app-server-6EKWAYJI.js → app-server-AQYA4TB6.js} +42 -42
  9. package/dist/bundle/auto-2AY6K6DI.js +86 -0
  10. package/dist/bundle/{bun-HUHQD76Z.js → bun-QJUFWKEZ.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-RPSKGB4O.js → bun-sqlite-GWVRHYF4.js} +5 -5
  12. package/dist/bundle/{chunk-N6IHOYMT.js → chunk-2CBOPOC7.js} +165 -37
  13. package/dist/bundle/{chunk-6N6BVPVX.js → chunk-2GEV2TXW.js} +4 -4
  14. package/dist/bundle/{chunk-2OIGV355.js → chunk-3O46NA2H.js} +105 -63
  15. package/dist/bundle/{chunk-UDJTRFRV.js → chunk-4ISZPK6D.js} +1 -1
  16. package/dist/bundle/{chunk-BXTDAGM4.js → chunk-4ZW6ZJ2V.js} +2 -2
  17. package/dist/bundle/{chunk-ZDHNEYKO.js → chunk-55GFDV24.js} +8 -8
  18. package/dist/bundle/{chunk-NJDGZRF5.js → chunk-5WT6SEXS.js} +30 -14
  19. package/dist/bundle/{chunk-EBNNONF5.js → chunk-64JCY7XJ.js} +8 -8
  20. package/dist/bundle/{chunk-LZWXGO3G.js → chunk-65576OCE.js} +2 -2
  21. package/dist/bundle/{chunk-57LMWEDK.js → chunk-6BVWU2UM.js} +3 -3
  22. package/dist/bundle/{chunk-VW6BF6M7.js → chunk-6G53ZFUT.js} +1 -1
  23. package/dist/bundle/{chunk-DVA6MQWK.js → chunk-6GF4TIVM.js} +1 -1
  24. package/dist/bundle/{chunk-LUPJB7ZD.js → chunk-6PQIXQFD.js} +9 -9
  25. package/dist/bundle/{chunk-S7F4ZDFU.js → chunk-6ZQK3L35.js} +3 -3
  26. package/dist/bundle/{chunk-SSPSNSC5.js → chunk-7SVHEGRO.js} +1 -1
  27. package/dist/bundle/{chunk-PUTGTW6W.js → chunk-A36ASW3I.js} +1 -1
  28. package/dist/bundle/{chunk-5TWUUDKP.js → chunk-A7DXLOMS.js} +2 -2
  29. package/dist/bundle/{chunk-UAR6UMFL.js → chunk-AGOUP5AH.js} +5 -5
  30. package/dist/bundle/{chunk-P2LMXIHL.js → chunk-AU5GAMGM.js} +415 -359
  31. package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-EBDX6DNB.js} +61 -21
  32. package/dist/bundle/{chunk-ND6D4A6H.js → chunk-EEEZGK2J.js} +3 -3
  33. package/dist/bundle/{chunk-XZZFHQGM.js → chunk-EKQNL6VJ.js} +25 -23
  34. package/dist/bundle/{chunk-7ZLOZGIC.js → chunk-EQUPZVV6.js} +6 -6
  35. package/dist/bundle/{chunk-RKFKRCOH.js → chunk-ERZBEQAY.js} +276 -268
  36. package/dist/bundle/{chunk-D5KGXYG6.js → chunk-ETYAJPIT.js} +22 -22
  37. package/dist/bundle/{chunk-PYRHU35W.js → chunk-FWCFEJWD.js} +179 -159
  38. package/dist/bundle/{chunk-IXXBPSXO.js → chunk-G4Z4WSIG.js} +2 -2
  39. package/dist/bundle/{chunk-OT23U5LT.js → chunk-G52Y3KOO.js} +2 -2
  40. package/dist/bundle/{chunk-KVOHC4ZM.js → chunk-G7K4J3NS.js} +4 -4
  41. package/dist/bundle/{chunk-UJLYVXP6.js → chunk-GJWNHWG7.js} +34 -34
  42. package/dist/bundle/{chunk-2HPYP3ZT.js → chunk-I4LXP4HQ.js} +4 -4
  43. package/dist/bundle/{chunk-PEYCLVIO.js → chunk-IALGFO44.js} +2 -2
  44. package/dist/bundle/{chunk-P3ASN72F.js → chunk-IK6KH3RE.js} +1 -1
  45. package/dist/bundle/{chunk-FOM7WE2C.js → chunk-IKG2OPHU.js} +8 -16
  46. package/dist/bundle/{chunk-HCMXUHHF.js → chunk-KGPD3OCD.js} +180 -67
  47. package/dist/bundle/{chunk-2MFBZ2UM.js → chunk-LUHMRW3P.js} +9 -6
  48. package/dist/bundle/{chunk-SLIF5EMS.js → chunk-LX65W7IK.js} +7 -7
  49. package/dist/bundle/{chunk-DJRBSOWH.js → chunk-M64NVDB4.js} +4 -4
  50. package/dist/bundle/{chunk-QCPUC3HW.js → chunk-MICF3K6S.js} +13 -13
  51. package/dist/bundle/{chunk-7RNHFNHX.js → chunk-MZMJALJT.js} +4 -4
  52. package/dist/bundle/{chunk-PJMGQJAX.js → chunk-N5J6GT7C.js} +7 -7
  53. package/dist/bundle/{chunk-Y6VH7IRN.js → chunk-NIUWQP7F.js} +32 -30
  54. package/dist/bundle/{chunk-355PHJYX.js → chunk-NNUP36UQ.js} +1 -1
  55. package/dist/bundle/{chunk-GV6XJMUW.js → chunk-NOEXRGYH.js} +12 -12
  56. package/dist/bundle/{chunk-RYMYE5PF.js → chunk-NUQ3N3V3.js} +8 -8
  57. package/dist/bundle/{chunk-O3KOW7RG.js → chunk-NZKDNBYE.js} +8 -8
  58. package/dist/bundle/{chunk-AKD62EUH.js → chunk-OIPJYDLZ.js} +2 -2
  59. package/dist/bundle/{chunk-ZA7FKGB7.js → chunk-OWS67HTV.js} +2 -2
  60. package/dist/bundle/{chunk-GIDZGGAD.js → chunk-PBM5GH7S.js} +4 -4
  61. package/dist/bundle/{chunk-EJDV5IIF.js → chunk-PKVXZZTM.js} +58 -1
  62. package/dist/bundle/{chunk-5JVA43HX.js → chunk-RYY4YRKQ.js} +6 -6
  63. package/dist/bundle/{chunk-W6JQNNJ5.js → chunk-S7X5ZMQN.js} +3 -3
  64. package/dist/bundle/{chunk-P2TISY3R.js → chunk-TM6R3Z45.js} +1 -1
  65. package/dist/bundle/{chunk-4VQPPX47.js → chunk-TQS6ZKC3.js} +487 -406
  66. package/dist/bundle/{chunk-TSUNLSIN.js → chunk-U4ZD5SYO.js} +2 -2
  67. package/dist/bundle/{chunk-XXGBXCBQ.js → chunk-U6E3BGHO.js} +11 -11
  68. package/dist/bundle/{chunk-HXOAPH47.js → chunk-VOWEZBOJ.js} +1 -1
  69. package/dist/bundle/{chunk-O3ZOYXH3.js → chunk-WLKDS65F.js} +20 -20
  70. package/dist/bundle/{chunk-NTQUBSIJ.js → chunk-X6XIW76O.js} +6 -6
  71. package/dist/bundle/{chunk-5RVL7GYA.js → chunk-XIHQOSCT.js} +2 -2
  72. package/dist/bundle/{chunk-XH6K2B5L.js → chunk-ZKXIZD4C.js} +4 -4
  73. package/dist/bundle/{chunk-V2DMJ6ES.js → chunk-ZVJAZXME.js} +6 -6
  74. package/dist/bundle/{chunk-3BG5VYMV.js → chunk-ZVR6S4XB.js} +10 -10
  75. package/dist/bundle/{chunk-QCRJNWJZ.js → chunk-ZYQEWB6P.js} +3 -3
  76. package/dist/bundle/command-contract-7AADJ3UC.js +32 -0
  77. package/dist/bundle/{decode-IYWZ3X7X.js → decode-XMIBTI5O.js} +5 -5
  78. package/dist/bundle/{dispatch-HCRXCPCF.js → dispatch-W4ZVXTJT.js} +10 -10
  79. package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-W7DPDJA5.js} +2 -2
  80. package/dist/bundle/{embed-EGY2R4FN.js → embed-EP3KKO6Y.js} +6 -6
  81. package/dist/bundle/{embedder-K2BGPWNX.js → embedder-ENGCALJ7.js} +9 -9
  82. package/dist/bundle/{entry-NMAZNDNU.js → entry-BGSKREOS.js} +7 -7
  83. package/dist/bundle/{failure-G4DCTWFD.js → failure-GQHAQVGH.js} +2 -2
  84. package/dist/bundle/failure-ZKQVXWAB.js +66 -0
  85. package/dist/bundle/{first-run-QDCSWX3N.js → first-run-4EBMV2EM.js} +11 -11
  86. package/dist/bundle/first-screen-2TM3BF2Y.js +30 -0
  87. package/dist/bundle/{instructions-P72XX4AK.js → instructions-A42XETMK.js} +1 -1
  88. package/dist/bundle/mcp-5LAWRSJK.js +90 -0
  89. package/dist/bundle/{mcp-M4QN2E7R.js → mcp-RKJG22KM.js} +2 -2
  90. package/dist/bundle/memo.js +41 -17
  91. package/dist/bundle/{node-ZB4RNICS.js → node-IRL66JK2.js} +2 -2
  92. package/dist/bundle/{node-sqlite-7XJ4J4E5.js → node-sqlite-SOGTH72B.js} +6 -6
  93. package/dist/bundle/{oauth-FMH3JIPT.js → oauth-RB5W3AC7.js} +7 -7
  94. package/dist/bundle/{open-PRCTOHHL.js → open-552EJ4JC.js} +5 -5
  95. package/dist/bundle/{openai-VW4W6SIO.js → openai-ZLOHEEDH.js} +10 -10
  96. package/dist/bundle/{process-XNN4WG6N.js → process-46SUXGWW.js} +1 -1
  97. package/dist/bundle/{program-TVT22XUQ.js → program-ZLWKMT65.js} +72 -65
  98. package/dist/bundle/{prompt-RT55UZGB.js → prompt-2NHJSYKX.js} +5 -5
  99. package/dist/bundle/{recognize-AQ2UXUC2.js → recognize-2LDM6KHL.js} +4 -4
  100. package/dist/bundle/{remote-T3P5OWRR.js → remote-DBYHHENF.js} +7 -7
  101. package/dist/bundle/{rerank-743T3675.js → rerank-N5T2TIIY.js} +7 -7
  102. package/dist/bundle/{serve-BSKOU4FJ.js → serve-S6B54R2F.js} +9 -9
  103. package/dist/bundle/server-KZZHFPTZ.js +61 -0
  104. package/dist/bundle/{server-ECOTCYJ3.js → server-QH6AKPRV.js} +58 -58
  105. package/dist/bundle/server-WAIPBBM7.js +48 -0
  106. package/dist/bundle/{state-MDMI3I2Z.js → state-ZXZGIIJW.js} +6 -6
  107. package/dist/bundle/{store-I3DIZALN.js → store-PNJNDMQ4.js} +13 -13
  108. package/dist/bundle/store-maintenance-command-2ZVV3DGA.js +48 -0
  109. package/dist/bundle/update-6HXLLGTQ.js +69 -0
  110. package/dist/doctor/command.d.ts +30 -0
  111. package/dist/doctor/command.d.ts.map +1 -1
  112. package/dist/doctor/command.js +1 -1
  113. package/dist/doctor/command.js.map +1 -1
  114. package/dist/failure.js +2 -2
  115. package/dist/failure.js.map +1 -1
  116. package/dist/knowledge/relationships-scan.d.ts.map +1 -1
  117. package/dist/knowledge/relationships-scan.js +4 -3
  118. package/dist/knowledge/relationships-scan.js.map +1 -1
  119. package/dist/mcp/catalogue.js +1 -1
  120. package/dist/mcp/catalogue.js.map +1 -1
  121. package/dist/people/command.d.ts.map +1 -1
  122. package/dist/people/command.js +3 -1
  123. package/dist/people/command.js.map +1 -1
  124. package/dist/run/import.d.ts.map +1 -1
  125. package/dist/run/import.js +3 -2
  126. package/dist/run/import.js.map +1 -1
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +4 -4
  130. package/skills/cli-memo/SKILL.md +1 -1
  131. package/skills/cli-memo/topics/proposals.md +2 -2
  132. package/skills/mail-triage/SKILL.md +1 -1
  133. package/skills/morning-digest/SKILL.md +1 -1
  134. package/dist/bundle/auto-C7G3WVRU.js +0 -86
  135. package/dist/bundle/command-contract-MRLLZQ4M.js +0 -32
  136. package/dist/bundle/failure-FW4NJI7G.js +0 -66
  137. package/dist/bundle/first-screen-YABO6OZ7.js +0 -30
  138. package/dist/bundle/mcp-QRZ2HSON.js +0 -90
  139. package/dist/bundle/server-VMWVYGK7.js +0 -48
  140. package/dist/bundle/server-ZFHSK6TT.js +0 -61
  141. package/dist/bundle/store-maintenance-command-HZPQPOK7.js +0 -48
  142. package/dist/bundle/update-ZIZAU5RE.js +0 -69
  143. /package/dist/bundle/{chunk-CDFNOKPG.js → chunk-DPRGC5YX.js} +0 -0
  144. /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-SW6C6WH5.js} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-GIDZGGAD.js";
10
+ } from "./chunk-PBM5GH7S.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,18 +18,18 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-PYRHU35W.js";
21
+ } from "./chunk-FWCFEJWD.js";
22
22
  import {
23
23
  writes
24
- } from "./chunk-EBNNONF5.js";
24
+ } from "./chunk-64JCY7XJ.js";
25
25
  import {
26
26
  CliError
27
- } from "./chunk-BXTDAGM4.js";
27
+ } from "./chunk-4ZW6ZJ2V.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
94
94
  upgrade: "setup"
95
95
  };
96
96
 
97
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
97
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
98
98
  var DESCRIPTION = 90;
99
99
  var COLUMN = 52;
100
100
  var short = /* @__PURE__ */ __name((text) => {
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
133
133
  `;
134
134
  }, "commandsText");
135
135
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
137
137
  var ARGUMENT_KINDS = {
138
138
  chat: "chat",
139
139
  chats: "chat",
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
325
325
  command.addHelpText("after", () => commandHelpText(command));
326
326
  }, "installCommandHelp");
327
327
 
328
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
329
329
  var WIRECAT_TOOLS = [
330
330
  {
331
331
  command: "tg",
@@ -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-BXTDAGM4.js";
5
+ } from "./chunk-4ZW6ZJ2V.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-2HPYP3ZT.js";
11
+ } from "./chunk-I4LXP4HQ.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -7,18 +7,18 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-PYRHU35W.js";
10
+ } from "./chunk-FWCFEJWD.js";
11
11
  import {
12
12
  jsonSchemaOf
13
- } from "./chunk-EBNNONF5.js";
13
+ } from "./chunk-64JCY7XJ.js";
14
14
  import {
15
15
  CliError
16
- } from "./chunk-BXTDAGM4.js";
16
+ } from "./chunk-4ZW6ZJ2V.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);
@@ -1,10 +1,61 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CliError,
5
+ errorCodes
6
+ } from "./chunk-4ZW6ZJ2V.js";
3
7
  import {
4
8
  __name
5
9
  } from "./chunk-ZVVMGPBJ.js";
6
10
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/secrets.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
+ var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
+ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
+ const { code, exitCode } = value ?? {};
15
+ return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
16
+ }, "isCommanderFailure");
17
+ var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
18
+ var SQLITE_CORRUPT = 11;
19
+ var SQLITE_NOTADB = 26;
20
+ var DAMAGED_TEXT = /database disk image is malformed|file is not a database|fts5: corruption/i;
21
+ var sqliteCode = /* @__PURE__ */ __name((error) => {
22
+ const { errcode, errno, name } = error ?? {};
23
+ const code = typeof errcode === "number" ? errcode : name === "SQLiteError" && typeof errno === "number" ? errno : null;
24
+ return code === null ? void 0 : code & 255;
25
+ }, "sqliteCode");
26
+ var damageIn = /* @__PURE__ */ __name((error) => {
27
+ if (isCliFailure(error) || isCommanderFailure(error))
28
+ return void 0;
29
+ let at = error;
30
+ for (let depth = 0; depth < 5 && at instanceof Error; depth += 1) {
31
+ const code = sqliteCode(at);
32
+ if (code !== void 0 && [SQLITE_CORRUPT, SQLITE_NOTADB].includes(code) || DAMAGED_TEXT.test(at.message))
33
+ return at;
34
+ at = at.cause;
35
+ }
36
+ return void 0;
37
+ }, "damageIn");
38
+ var wrapping = /* @__PURE__ */ __name((error, original) => {
39
+ Object.defineProperty(error, "cause", { value: original, configurable: true, writable: true });
40
+ if (original instanceof Error && original.stack)
41
+ error.stack = original.stack;
42
+ return error;
43
+ }, "wrapping");
44
+ var storeDamaged = /* @__PURE__ */ __name((error, next) => damageIn(error) ? wrapping(new CliError("configuration_error", `the store file is damaged${next ? `; \`${next}\` says what is damaged and what to do` : ""}`, { reason: "store.damaged" }), error) : error, "storeDamaged");
45
+ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
46
+ try {
47
+ return await work();
48
+ } catch (error) {
49
+ if (!damageIn(error))
50
+ throw error;
51
+ throw wrapping(new CliError("validation_error", `${files.join(" or ")} is damaged or not a database`, {
52
+ reason: "store.file-damaged"
53
+ }), error);
54
+ }
55
+ }, "damagedFile");
56
+ var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
57
+
58
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
59
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
60
  "authorization",
10
61
  "cookie",
@@ -87,6 +138,12 @@ var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
87
138
  var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
88
139
 
89
140
  export {
141
+ isCliFailure,
142
+ failureKey,
143
+ sqliteCode,
144
+ storeDamaged,
145
+ damagedFile,
146
+ isStoreDamage,
90
147
  secretNamed,
91
148
  holdsCredential,
92
149
  withoutSecrets
@@ -5,23 +5,23 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-KVOHC4ZM.js";
8
+ } from "./chunk-G7K4J3NS.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-BXTDAGM4.js";
14
+ } from "./chunk-4ZW6ZJ2V.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
678
  return Unzip2;
679
679
  })();
680
680
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
684
684
  name,
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
858
858
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
859
859
  }, "openSession");
860
860
 
861
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
862
862
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
863
863
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
864
864
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -4,15 +4,15 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-AKD62EUH.js";
7
+ } from "./chunk-OIPJYDLZ.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-BXTDAGM4.js";
10
+ } from "./chunk-4ZW6ZJ2V.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {