@wirecat/notion-cli 0.6.0 → 0.7.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 (186) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/bin/notion.js +2 -2
  3. package/dist/bundle/agent-AILW4JPO.js +42 -0
  4. package/dist/bundle/{all-profiles-AELHUTFU.js → all-profiles-CKOACXTW.js} +11 -11
  5. package/dist/bundle/{anthropic-3CCYAGO3.js → anthropic-DWBBVTU3.js} +5 -5
  6. package/dist/bundle/{app-server-DJ6P4NY4.js → app-server-BHFYNCDE.js} +72 -72
  7. package/dist/bundle/{bun-2FLR4IV4.js → bun-ICK2XT7J.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-QB6CU6TH.js → bun-sqlite-LU5V5Y4A.js} +6 -6
  9. package/dist/bundle/{chunk-4RFR4J2O.js → chunk-2OZVCNU5.js} +2 -2
  10. package/dist/bundle/{chunk-6EJCI47L.js → chunk-2RNJ2JP3.js} +4 -4
  11. package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-364ET7LV.js} +1 -1
  12. package/dist/bundle/{chunk-WAGADES3.js → chunk-3AKMIKND.js} +17 -17
  13. package/dist/bundle/{chunk-HVXOA4FO.js → chunk-3DGHBXH2.js} +1 -1
  14. package/dist/bundle/{chunk-VH7526NL.js → chunk-3KOJNZH3.js} +3 -3
  15. package/dist/bundle/{chunk-T37TAXVL.js → chunk-3T3OAYL4.js} +2 -2
  16. package/dist/bundle/{chunk-XYQVVW4R.js → chunk-3YXYA6HB.js} +1 -1
  17. package/dist/bundle/{chunk-3MYN2RMG.js → chunk-3ZSUVFR7.js} +8 -8
  18. package/dist/bundle/{chunk-STTO2MSY.js → chunk-46JBCXLI.js} +6 -6
  19. package/dist/bundle/{chunk-HM6AMYHR.js → chunk-4FHKSSXQ.js} +2 -2
  20. package/dist/bundle/{chunk-RD7BKTWV.js → chunk-5NFIUY2P.js} +4 -4
  21. package/dist/bundle/{chunk-3UX4VJWD.js → chunk-63SW4UXG.js} +3 -4
  22. package/dist/bundle/{chunk-2XUV7HNE.js → chunk-64IK7JFO.js} +2 -2
  23. package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-6MQSBWWF.js} +1 -1
  24. package/dist/bundle/{chunk-SAPP2LEH.js → chunk-6UZ5D2WP.js} +7 -7
  25. package/dist/bundle/{chunk-CL3YNUCC.js → chunk-7COTHS6G.js} +6 -6
  26. package/dist/bundle/{chunk-3LMW7U7F.js → chunk-A3RJ6FD5.js} +21 -8
  27. package/dist/bundle/{chunk-ZDYEOE7L.js → chunk-ADCAWRRX.js} +48 -48
  28. package/dist/bundle/{chunk-IJVTN5L3.js → chunk-ALAPDLCP.js} +2 -2
  29. package/dist/bundle/{chunk-DGMTSDKB.js → chunk-B6DJQBZI.js} +5 -5
  30. package/dist/bundle/{chunk-BAXNAOOL.js → chunk-BFCRGLOF.js} +3 -3
  31. package/dist/bundle/{chunk-YYQ5GKAI.js → chunk-BFHPT67P.js} +655 -565
  32. package/dist/bundle/{chunk-6YOMPW7Y.js → chunk-BQ6CXCLP.js} +8 -8
  33. package/dist/bundle/{chunk-BEV5LO4D.js → chunk-BXXHUO7Y.js} +13 -13
  34. package/dist/bundle/{chunk-W2VQDIU5.js → chunk-DCSPCOPB.js} +9 -9
  35. package/dist/bundle/{chunk-KB35BVTG.js → chunk-EMIJVLOA.js} +2 -2
  36. package/dist/bundle/{chunk-FMMYBVCH.js → chunk-EUF5JNPG.js} +1 -1
  37. package/dist/bundle/{chunk-Q7EIL6VU.js → chunk-EWXMIKZN.js} +28 -28
  38. package/dist/bundle/{chunk-LC6WE6JS.js → chunk-FHYV4VWY.js} +14 -7
  39. package/dist/bundle/{chunk-GPRJXJC7.js → chunk-FNESLLZS.js} +15 -1
  40. package/dist/bundle/{chunk-JFSVAOA7.js → chunk-FO3XY2Y2.js} +2 -2
  41. package/dist/bundle/{chunk-7L2XOKDZ.js → chunk-HJDQTM3T.js} +8 -8
  42. package/dist/bundle/{chunk-FV4WTZCU.js → chunk-HOO53OYK.js} +16 -16
  43. package/dist/bundle/{chunk-T6XIBULH.js → chunk-HSVKU4OJ.js} +45 -31
  44. package/dist/bundle/{chunk-OEQNP56V.js → chunk-IEY7KS6Q.js} +1 -1
  45. package/dist/bundle/{chunk-QGGRFRMP.js → chunk-ITW26OBI.js} +38 -38
  46. package/dist/bundle/{chunk-IURYZSG3.js → chunk-ITWINZ6R.js} +12 -12
  47. package/dist/bundle/{chunk-WAU5LSHP.js → chunk-IYZWHCZJ.js} +90 -11
  48. package/dist/bundle/{chunk-YUDVRFXN.js → chunk-J3DZVB67.js} +1 -1
  49. package/dist/bundle/{chunk-GCAJW4SR.js → chunk-JEZJFQQW.js} +1 -1
  50. package/dist/bundle/{chunk-AE4VW4NB.js → chunk-JPGN473W.js} +3 -3
  51. package/dist/bundle/{chunk-NSR43UEW.js → chunk-JVRBW5LH.js} +5 -5
  52. package/dist/bundle/{chunk-DIU2QJJF.js → chunk-KBY42GKW.js} +23 -23
  53. package/dist/bundle/{chunk-WGZH2M64.js → chunk-KWBLDSRV.js} +16 -3
  54. package/dist/bundle/{chunk-P27NDZQR.js → chunk-LBRTLZHI.js} +171 -157
  55. package/dist/bundle/{chunk-WB2KSQIP.js → chunk-LEPPRULN.js} +20 -6
  56. package/dist/bundle/{chunk-ERN53B3Z.js → chunk-LVAFTQ45.js} +18 -18
  57. package/dist/bundle/{chunk-PHKED7AG.js → chunk-MB4HXDBT.js} +5 -5
  58. package/dist/bundle/{chunk-BQBC2WIG.js → chunk-N3NJPHZB.js} +1 -1
  59. package/dist/bundle/{chunk-DHVVXQEL.js → chunk-NCCRLAAI.js} +3 -3
  60. package/dist/bundle/{chunk-HOVHE3A3.js → chunk-NV7NNL5T.js} +7 -7
  61. package/dist/bundle/{chunk-TFT4FVRU.js → chunk-OALFRUMI.js} +2 -2
  62. package/dist/bundle/{chunk-CFQQTDSA.js → chunk-OCGNOJYD.js} +1 -1
  63. package/dist/bundle/{chunk-2CMLY2X3.js → chunk-OFMCU3BH.js} +5 -5
  64. package/dist/bundle/{chunk-FRB2L7OE.js → chunk-OP2BH55P.js} +3 -3
  65. package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-OS4WPXPZ.js} +4 -4
  66. package/dist/bundle/{chunk-ESZHGC4Q.js → chunk-OW5HW3TD.js} +6 -6
  67. package/dist/bundle/{chunk-5OJLUUOJ.js → chunk-PDVXG3T3.js} +6 -6
  68. package/dist/bundle/{chunk-4VXXOJ2F.js → chunk-PSMRUOII.js} +3 -3
  69. package/dist/bundle/{chunk-EHW45LLT.js → chunk-QK52ARAU.js} +3 -3
  70. package/dist/bundle/{chunk-AZLDR36U.js → chunk-QMNEDK7Z.js} +3 -3
  71. package/dist/bundle/{chunk-RXU5T5NM.js → chunk-R4JV3VLU.js} +12 -12
  72. package/dist/bundle/{chunk-5XPHFV7H.js → chunk-REOBWSGV.js} +8 -8
  73. package/dist/bundle/{chunk-LECMHK2F.js → chunk-RNVYNPXT.js} +1 -1
  74. package/dist/bundle/{chunk-JVESLS7B.js → chunk-RXGX2CZX.js} +63 -63
  75. package/dist/bundle/{chunk-KNCPBX5P.js → chunk-S35UJBFZ.js} +19 -19
  76. package/dist/bundle/{chunk-LQVDFD65.js → chunk-S5P7THM5.js} +2 -2
  77. package/dist/bundle/{chunk-A42T4YX7.js → chunk-SRVTGI3M.js} +2 -2
  78. package/dist/bundle/{chunk-CHPWBQUK.js → chunk-TWY543BS.js} +1 -1
  79. package/dist/bundle/{chunk-EZMG5QXB.js → chunk-UO4O6WQ4.js} +8 -8
  80. package/dist/bundle/{chunk-KGAUINBO.js → chunk-UQVUXG7H.js} +10 -10
  81. package/dist/bundle/{chunk-GUIQJUJV.js → chunk-UYEDQGMI.js} +6 -6
  82. package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-VRBEYOJL.js} +1 -1
  83. package/dist/bundle/{chunk-YDDI4QIT.js → chunk-VXKD533R.js} +575 -447
  84. package/dist/bundle/{chunk-KZJQPJK5.js → chunk-VYZ2J7DT.js} +4 -4
  85. package/dist/bundle/{chunk-G4ZU73SD.js → chunk-WJFQMOVM.js} +75 -60
  86. package/dist/bundle/{chunk-YXYZAWWW.js → chunk-WUNEJRLJ.js} +6 -6
  87. package/dist/bundle/{chunk-HHEWTLAT.js → chunk-X5LUHN62.js} +2 -2
  88. package/dist/bundle/{chunk-UOC52GCB.js → chunk-X737FHZP.js} +4 -4
  89. package/dist/bundle/{chunk-K5IC4FZN.js → chunk-YSF5JBRA.js} +1 -1
  90. package/dist/bundle/{chunk-SEAGUFBX.js → chunk-ZGUUP2T3.js} +12 -12
  91. package/dist/bundle/{chunk-QEJFBORC.js → chunk-ZMKAI3F3.js} +3 -3
  92. package/dist/bundle/command-contract-C2CF4QAH.js +41 -0
  93. package/dist/bundle/{command-server-entry-VUR6WL77.js → command-server-entry-F3B2KSPO.js} +29 -29
  94. package/dist/bundle/{decode-I64PF2RM.js → decode-FDHFF7GC.js} +5 -5
  95. package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-IXKG5Z5Y.js} +8 -8
  96. package/dist/bundle/{echarts-YRRVLEX3.js → echarts-PGJPVPA4.js} +2 -2
  97. package/dist/bundle/{embed-BLXLKMK2.js → embed-U6X7CNNK.js} +6 -6
  98. package/dist/bundle/{embedder-JYGF6R7I.js → embedder-3ROL6ROQ.js} +9 -9
  99. package/dist/bundle/{failure-I6AAF5R5.js → failure-IYMRXM2X.js} +2 -2
  100. package/dist/bundle/{first-run-YLDOZGY6.js → first-run-PNVNHGR7.js} +12 -12
  101. package/dist/bundle/first-screen-DEDD64YH.js +41 -0
  102. package/dist/bundle/{instructions-AG7SRWTR.js → instructions-MJQWRI2D.js} +1 -1
  103. package/dist/bundle/{mcp-YGOAUNC3.js → mcp-JNHOSK4L.js} +2 -2
  104. package/dist/bundle/meeting-combined-HEC25QPY.js +25 -0
  105. package/dist/bundle/meeting-model-R7QPDNZZ.js +27 -0
  106. package/dist/bundle/{meeting-semantic-3DZPHM7L.js → meeting-semantic-7WPLMBNT.js} +6 -6
  107. package/dist/bundle/{node-GJQYN4FT.js → node-3UXNV3CD.js} +2 -2
  108. package/dist/bundle/{node-sqlite-7VXIRQPH.js → node-sqlite-ULWDWM3I.js} +7 -7
  109. package/dist/bundle/notes-search-7PE3E3C7.js +64 -0
  110. package/dist/bundle/notion.js +13 -13
  111. package/dist/bundle/{oauth-N67CH2TK.js → oauth-LNUZMA72.js} +7 -7
  112. package/dist/bundle/{open-JGXVHIKO.js → open-HGHC35M4.js} +5 -5
  113. package/dist/bundle/{openai-PFQJTF4H.js → openai-ISSP57MV.js} +18 -18
  114. package/dist/bundle/{process-MEKCZMX3.js → process-PB2WCOR2.js} +1 -1
  115. package/dist/bundle/{program-DUJYLJH5.js → program-GASBJRMG.js} +1987 -1245
  116. package/dist/bundle/{prompt-FW44QDHD.js → prompt-3VGQVX2B.js} +5 -5
  117. package/dist/bundle/{recognize-62TDQ6A7.js → recognize-7Q2P3NME.js} +4 -4
  118. package/dist/bundle/{remote-7ONFD7GG.js → remote-BBAWKVIT.js} +11 -11
  119. package/dist/bundle/{rerank-YOHQQJS4.js → rerank-H4PUS4HV.js} +7 -7
  120. package/dist/bundle/{schemas-IIGJ7DOP.js → schemas-TTVUADHT.js} +1 -1
  121. package/dist/bundle/{serve-ZCXGT5RB.js → serve-FZNSKY7R.js} +9 -9
  122. package/dist/bundle/{server-RQ74M637.js → server-BRRNDW6L.js} +64 -64
  123. package/dist/bundle/server-CQJ4LKAZ.js +90 -0
  124. package/dist/bundle/{services-FWBRZ57M.js → services-PEU557KZ.js} +51 -51
  125. package/dist/bundle/{sqlite-runtime-ZZBNGV5L.js → sqlite-runtime-4IZJ4YUM.js} +6 -6
  126. package/dist/bundle/{state-GDDFO62Y.js → state-MX3JVT5Q.js} +6 -6
  127. package/dist/bundle/{store-D2LRIWEI.js → store-JUT34REM.js} +23 -23
  128. package/dist/bundle/{store-KQCLR57N.js → store-PP4BPADZ.js} +21 -21
  129. package/dist/bundle/store-maintenance-command-GRFTJBSB.js +77 -0
  130. package/dist/bundle/surface-FPWES3NY.js +76 -0
  131. package/dist/commands/api.d.ts.map +1 -1
  132. package/dist/commands/api.js +3 -25
  133. package/dist/commands/api.js.map +1 -1
  134. package/dist/commands/library.d.ts.map +1 -1
  135. package/dist/commands/library.js +8 -6
  136. package/dist/commands/library.js.map +1 -1
  137. package/dist/context.d.ts +11 -3
  138. package/dist/context.d.ts.map +1 -1
  139. package/dist/context.js +20 -7
  140. package/dist/context.js.map +1 -1
  141. package/dist/generated/wirecat-config.d.ts +13 -0
  142. package/dist/generated/wirecat-config.d.ts.map +1 -0
  143. package/dist/generated/wirecat-config.js +82 -0
  144. package/dist/generated/wirecat-config.js.map +1 -0
  145. package/dist/library.d.ts +0 -5
  146. package/dist/library.d.ts.map +1 -1
  147. package/dist/library.js +0 -13
  148. package/dist/library.js.map +1 -1
  149. package/dist/notion/client.d.ts +2 -6
  150. package/dist/notion/client.d.ts.map +1 -1
  151. package/dist/notion/client.js +7 -8
  152. package/dist/notion/client.js.map +1 -1
  153. package/dist/notion/errors.d.ts +5 -0
  154. package/dist/notion/errors.d.ts.map +1 -1
  155. package/dist/notion/errors.js +21 -1
  156. package/dist/notion/errors.js.map +1 -1
  157. package/dist/notion/port.d.ts +10 -0
  158. package/dist/notion/port.d.ts.map +1 -1
  159. package/dist/notion/port.js +19 -0
  160. package/dist/notion/port.js.map +1 -1
  161. package/dist/sync/files.d.ts +3 -3
  162. package/dist/sync/files.d.ts.map +1 -1
  163. package/dist/sync/from-config.d.ts +13 -0
  164. package/dist/sync/from-config.d.ts.map +1 -0
  165. package/dist/sync/from-config.js +32 -0
  166. package/dist/sync/from-config.js.map +1 -0
  167. package/dist/sync/source.d.ts +2 -1
  168. package/dist/sync/source.d.ts.map +1 -1
  169. package/dist/sync/source.js +4 -20
  170. package/dist/sync/source.js.map +1 -1
  171. package/dist/sync/users.d.ts +1 -11
  172. package/dist/sync/users.d.ts.map +1 -1
  173. package/dist/sync/users.js +0 -33
  174. package/dist/sync/users.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +7 -7
  178. package/dist/bundle/agent-ILG6AH7S.js +0 -42
  179. package/dist/bundle/command-contract-L2FASWD6.js +0 -41
  180. package/dist/bundle/first-screen-GZH3LMLZ.js +0 -41
  181. package/dist/bundle/meeting-combined-OFQSGKBG.js +0 -25
  182. package/dist/bundle/meeting-model-K6NSX3O5.js +0 -27
  183. package/dist/bundle/notes-search-ACDOPTNH.js +0 -64
  184. package/dist/bundle/server-XMZF57WM.js +0 -90
  185. package/dist/bundle/store-maintenance-command-CK2MU5M6.js +0 -77
  186. package/dist/bundle/surface-K4TPIQW7.js +0 -76
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-HM6AMYHR.js";
8
+ } from "./chunk-4FHKSSXQ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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,22 +3,22 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-ERN53B3Z.js";
6
+ } from "./chunk-LVAFTQ45.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
10
10
  pollVoteAnswer
11
- } from "./chunk-7L2XOKDZ.js";
11
+ } from "./chunk-HJDQTM3T.js";
12
12
  import {
13
13
  readSecret
14
- } from "./chunk-EHW45LLT.js";
14
+ } from "./chunk-QK52ARAU.js";
15
15
  import {
16
16
  stringWidth,
17
17
  wrapAnsi
18
18
  } from "./chunk-EH6ZEJGT.js";
19
19
  import {
20
20
  serveRelay
21
- } from "./chunk-GUIQJUJV.js";
21
+ } from "./chunk-UYEDQGMI.js";
22
22
  import {
23
23
  FETCHING,
24
24
  RULES_VERSION,
@@ -29,12 +29,12 @@ import {
29
29
  refuseLockedOutput,
30
30
  servicesFor,
31
31
  syncsOneChat
32
- } from "./chunk-YYQ5GKAI.js";
32
+ } from "./chunk-BFHPT67P.js";
33
33
  import {
34
34
  queryTerms,
35
35
  typedQuery,
36
36
  withQuery
37
- } from "./chunk-RXU5T5NM.js";
37
+ } from "./chunk-R4JV3VLU.js";
38
38
  import {
39
39
  Command,
40
40
  LOCAL_READ,
@@ -60,7 +60,7 @@ import {
60
60
  snakeKeys,
61
61
  storeTable,
62
62
  withoutProviderRefs
63
- } from "./chunk-P27NDZQR.js";
63
+ } from "./chunk-LBRTLZHI.js";
64
64
  import {
65
65
  embeddingKeys,
66
66
  endpointKeyName,
@@ -68,24 +68,25 @@ import {
68
68
  onlineDeps,
69
69
  senderIsMe,
70
70
  withTimeLimit
71
- } from "./chunk-ZDYEOE7L.js";
71
+ } from "./chunk-ADCAWRRX.js";
72
72
  import {
73
73
  capability
74
- } from "./chunk-KB35BVTG.js";
74
+ } from "./chunk-EMIJVLOA.js";
75
75
  import {
76
76
  codeOf,
77
77
  modelTarget
78
- } from "./chunk-3MYN2RMG.js";
78
+ } from "./chunk-3ZSUVFR7.js";
79
79
  import {
80
80
  holdLock,
81
81
  lockPath,
82
+ markCurrent,
82
83
  releaseLock,
83
84
  servingProfiles,
84
85
  takeLock
85
- } from "./chunk-WGZH2M64.js";
86
+ } from "./chunk-KWBLDSRV.js";
86
87
  import {
87
88
  holdersOf
88
- } from "./chunk-YUDVRFXN.js";
89
+ } from "./chunk-J3DZVB67.js";
89
90
  import {
90
91
  QUICK_HEALTH_CHECKS,
91
92
  fts5Tables,
@@ -93,7 +94,7 @@ import {
93
94
  lossUnknown,
94
95
  storeDamageReport,
95
96
  storeHealth
96
- } from "./chunk-WAGADES3.js";
97
+ } from "./chunk-3AKMIKND.js";
97
98
  import {
98
99
  CORPORA,
99
100
  MIGRATIONS,
@@ -131,46 +132,46 @@ import {
131
132
  storeClients,
132
133
  storeContents,
133
134
  vectorIndexCounts
134
- } from "./chunk-YDDI4QIT.js";
135
+ } from "./chunk-VXKD533R.js";
135
136
  import {
136
137
  readDamageMark,
137
138
  readHealthMark,
138
139
  readJournalMark,
139
140
  recordDeepCheck
140
- } from "./chunk-DIU2QJJF.js";
141
+ } from "./chunk-KBY42GKW.js";
141
142
  import {
142
143
  currentRun,
143
144
  formatLocator,
144
145
  parseLocator
145
- } from "./chunk-BEV5LO4D.js";
146
+ } from "./chunk-BXXHUO7Y.js";
146
147
  import {
147
148
  failureKey,
148
149
  isStoreDamage
149
- } from "./chunk-LQVDFD65.js";
150
+ } from "./chunk-S5P7THM5.js";
150
151
  import {
151
152
  queryFieldsOf
152
- } from "./chunk-JVESLS7B.js";
153
+ } from "./chunk-RXGX2CZX.js";
153
154
  import {
154
155
  modelAddressAllowed,
155
156
  onThisComputer
156
- } from "./chunk-FRB2L7OE.js";
157
+ } from "./chunk-OP2BH55P.js";
157
158
  import {
158
159
  readSharedSection,
159
160
  sharedConfigPath,
160
161
  writeSharedSection
161
- } from "./chunk-HOVHE3A3.js";
162
+ } from "./chunk-NV7NNL5T.js";
162
163
  import {
163
164
  storePath
164
- } from "./chunk-HHEWTLAT.js";
165
+ } from "./chunk-X5LUHN62.js";
165
166
  import {
166
167
  openCache
167
- } from "./chunk-YXYZAWWW.js";
168
+ } from "./chunk-WUNEJRLJ.js";
168
169
  import {
169
170
  Credentials,
170
171
  isMovedRun,
171
172
  resolvePaths,
172
173
  writeSecurely
173
- } from "./chunk-KNCPBX5P.js";
174
+ } from "./chunk-S35UJBFZ.js";
174
175
  import {
175
176
  array,
176
177
  boolean,
@@ -197,7 +198,7 @@ import {
197
198
  CliError,
198
199
  singleLine,
199
200
  visibleControls
200
- } from "./chunk-HM6AMYHR.js";
201
+ } from "./chunk-4FHKSSXQ.js";
201
202
  import {
202
203
  __commonJS,
203
204
  __name,
@@ -5537,11 +5538,11 @@ var require_liquid_node = __commonJS({
5537
5538
  }
5538
5539
  });
5539
5540
 
5540
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5541
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5541
5542
  import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
5542
5543
  import { dirname as dirname3, resolve } from "node:path";
5543
5544
 
5544
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/sealed.js
5545
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/sealed.js
5545
5546
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5546
5547
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5547
5548
  import { Transform } from "node:stream";
@@ -5648,7 +5649,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5648
5649
  renameSync(pending, to);
5649
5650
  }, "unsealFile");
5650
5651
 
5651
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5652
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5652
5653
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5653
5654
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5654
5655
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5672,7 +5673,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5672
5673
  };
5673
5674
  }, "compatibilityOf");
5674
5675
 
5675
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/repair.js
5676
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/repair.js
5676
5677
  import { createHash as createHash2 } from "node:crypto";
5677
5678
  var COPY_MARK = "__repair_";
5678
5679
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5926,19 +5927,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5926
5927
  return found;
5927
5928
  }, "deleteCopy");
5928
5929
 
5929
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5930
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5930
5931
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5931
5932
 
5932
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5933
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5933
5934
  import { existsSync as existsSync3 } from "node:fs";
5934
5935
 
5935
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/recover.js
5936
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/recover.js
5936
5937
  import { execFileSync, spawn } from "node:child_process";
5937
5938
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5938
5939
  import { basename, dirname, join } from "node:path";
5939
5940
  import { Transform as Transform2 } from "node:stream";
5940
5941
 
5941
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/refill.js
5942
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/refill.js
5942
5943
  var REFILL_MARGIN_MS = 864e5;
5943
5944
  var TIME_KEYS = 1e12;
5944
5945
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6018,7 +6019,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6018
6019
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6019
6020
  }, "forgetMail");
6020
6021
 
6021
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/recover.js
6022
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/recover.js
6022
6023
  var SQLITE3_MINIMUM = [3, 43, 0];
6023
6024
  var STORE_PARTS = ["", "-wal", "-shm"];
6024
6025
  var RECOVER_LOCK = ".recover-lock";
@@ -6549,7 +6550,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6549
6550
  }
6550
6551
  }, "recoverLocked");
6551
6552
 
6552
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6553
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6553
6554
  var COUNTED = [
6554
6555
  "accounts",
6555
6556
  "chats",
@@ -6705,7 +6706,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6705
6706
  return recover;
6706
6707
  }, "storeRecoverCommand");
6707
6708
 
6708
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6709
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6709
6710
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6710
6711
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6711
6712
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6751,7 +6752,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6751
6752
  renderAnswer(this, outputFor(this), itemOf(answer));
6752
6753
  }), "storeInfoCommand");
6753
6754
 
6754
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6755
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6755
6756
  var ENCRYPT_OPTION = [
6756
6757
  "--encrypt",
6757
6758
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -6770,7 +6771,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6770
6771
  return password;
6771
6772
  }, "passwordOf");
6772
6773
 
6773
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/rules.js
6774
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/rules.js
6774
6775
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6775
6776
  import { join as join2 } from "node:path";
6776
6777
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6941,7 +6942,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6941
6942
  }, "problem");
6942
6943
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6943
6944
 
6944
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/state.js
6945
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/state.js
6945
6946
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6946
6947
  import { join as join3 } from "node:path";
6947
6948
  var ANSWERED_KEPT = 1e3;
@@ -6994,7 +6995,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6994
6995
  }, "recordReply");
6995
6996
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6996
6997
 
6997
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/decide.js
6998
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/decide.js
6998
6999
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6999
7000
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
7000
7001
  const { message, chat, owner, sender } = incoming;
@@ -7100,10 +7101,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7100
7101
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7101
7102
  }, "filled");
7102
7103
 
7103
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/template.js
7104
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/template.js
7104
7105
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7105
7106
 
7106
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/render/liquid.js
7107
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/render/liquid.js
7107
7108
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7108
7109
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7109
7110
  const engine = new import_liquidjs.Liquid({
@@ -7130,7 +7131,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7130
7131
  return engine;
7131
7132
  }, "safeLiquid");
7132
7133
 
7133
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/template.js
7134
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/template.js
7134
7135
  var TEMPLATE_LIMITS = {
7135
7136
  parse: 32768,
7136
7137
  renders: 2e3,
@@ -7269,7 +7270,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7269
7270
  }
7270
7271
  }, "renderReplyTemplate");
7271
7272
 
7272
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7273
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7273
7274
  var DRY_RUN_DAYS = 7;
7274
7275
  var PAGE = 500;
7275
7276
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7383,7 +7384,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7383
7384
  }
7384
7385
  }, "storedSince");
7385
7386
 
7386
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/models/ai.js
7387
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/models/ai.js
7387
7388
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7388
7389
  var DEFAULT_BASE_URL = {
7389
7390
  anthropic: "https://api.anthropic.com",
@@ -7533,7 +7534,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7533
7534
  }
7534
7535
  }, "checkAi");
7535
7536
 
7536
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/models/purpose.js
7537
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/models/purpose.js
7537
7538
  var HOSTED = {
7538
7539
  openai: "https://api.openai.com/v1",
7539
7540
  anthropic: "https://api.anthropic.com"
@@ -7554,7 +7555,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7554
7555
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7555
7556
  }, "purposeModel");
7556
7557
 
7557
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/consents.js
7558
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/consents.js
7558
7559
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7559
7560
  import { join as join4 } from "node:path";
7560
7561
  var shape = strictObject({
@@ -7579,7 +7580,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7579
7580
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7580
7581
  }, "mayModelReply");
7581
7582
 
7582
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7583
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7583
7584
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7584
7585
  ai: true
7585
7586
  }) => async (rule2, message, chat, now) => {
@@ -7627,7 +7628,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7627
7628
  return result2;
7628
7629
  }, "replyRenderer");
7629
7630
 
7630
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/replies/serve.js
7631
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/replies/serve.js
7631
7632
  var NOT_ALLOWED = "replies.send is not allow";
7632
7633
  var NO_RULES = "no rules";
7633
7634
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7720,7 +7721,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7720
7721
  return { skip: why };
7721
7722
  }, "replyTo");
7722
7723
 
7723
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7724
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7724
7725
  var START_SYNC_DELAY_MS = 3e4;
7725
7726
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7726
7727
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7797,7 +7798,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7797
7798
  };
7798
7799
  }, "startSync");
7799
7800
 
7800
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7801
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7801
7802
  var FIRST_FETCH_MS = 6e4;
7802
7803
  var DAY_MS = 864e5;
7803
7804
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7851,7 +7852,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7851
7852
  };
7852
7853
  }, "memberFetches");
7853
7854
 
7854
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7855
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7855
7856
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7856
7857
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7857
7858
  if (context.format === "pretty") {
@@ -7884,7 +7885,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7884
7885
  return context;
7885
7886
  }, "recordDiagnostics");
7886
7887
 
7887
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7888
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7888
7889
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7889
7890
  import { dirname as dirname2, join as join5 } from "node:path";
7890
7891
  var OUTDATED_CHECK_MS = 6e4;
@@ -7970,7 +7971,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7970
7971
  };
7971
7972
  }, "watchOutdated");
7972
7973
 
7973
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7974
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7974
7975
  var STEMS_EVERY_MS = 3e4;
7975
7976
  var STEMS_SLICE_MS = 2e3;
7976
7977
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -8010,7 +8011,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
8010
8011
  };
8011
8012
  }, "stemFills");
8012
8013
 
8013
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/render/messages.js
8014
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/render/messages.js
8014
8015
  import { styleText } from "node:util";
8015
8016
  var TIME_WIDTH = 8;
8016
8017
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -8186,7 +8187,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
8186
8187
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
8187
8188
  }, "editedAt");
8188
8189
 
8189
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8190
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8190
8191
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
8191
8192
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
8192
8193
  kind: attachment.kind,
@@ -8282,7 +8283,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8282
8283
  locale: messenger.app.locale
8283
8284
  }), "viewOf");
8284
8285
 
8285
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8286
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8286
8287
  var observed = /* @__PURE__ */ __name((value) => ({
8287
8288
  value: value.value,
8288
8289
  observed_at: value.observedAt,
@@ -8349,7 +8350,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8349
8350
  }
8350
8351
  }, "watchEventItem");
8351
8352
 
8352
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8353
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8353
8354
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8354
8355
  output: { entity: "watch_item" },
8355
8356
  effects: REMOTE_READ,
@@ -8504,7 +8505,8 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8504
8505
  }
8505
8506
  }, "describe");
8506
8507
 
8507
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8508
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8509
+ var CURRENT_EVERY_MS = 6e4;
8508
8510
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8509
8511
  const command = annotate(new Command("serve"), {
8510
8512
  output: { entity: "serve_summary" },
@@ -8527,9 +8529,18 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
8527
8529
  throw new CliError("validation_error", `${messenger.app.command} serve is already running for profile ${context.profile} (PID ${held.pid}, since ${held.startedAt})`);
8528
8530
  }
8529
8531
  let relaying;
8532
+ let current;
8533
+ const stamp = /* @__PURE__ */ __name(() => {
8534
+ try {
8535
+ markCurrent(path);
8536
+ } catch {
8537
+ }
8538
+ }, "stamp");
8530
8539
  const onReady = /* @__PURE__ */ __name(() => {
8531
8540
  const listening2 = { pid: process.pid, startedAt, version, listeningAt: (/* @__PURE__ */ new Date()).toISOString() };
8532
8541
  holdLock(path, listening2);
8542
+ stamp();
8543
+ current ??= setInterval(stamp, CURRENT_EVERY_MS).unref();
8533
8544
  note({
8534
8545
  code: "listening",
8535
8546
  text: `listening for profile ${context.profile}, catching up on what arrived while it was down`
@@ -8650,6 +8661,10 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
8650
8661
  }, "connected")
8651
8662
  });
8652
8663
  } finally {
8664
+ if (current) {
8665
+ clearInterval(current);
8666
+ stamp();
8667
+ }
8653
8668
  watch.stop();
8654
8669
  await relaying;
8655
8670
  await relay?.close();
@@ -8790,7 +8805,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8790
8805
  };
8791
8806
  }, "tasking");
8792
8807
 
8793
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8808
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8794
8809
  import { existsSync as existsSync9 } from "node:fs";
8795
8810
  var PATH = "store tables list";
8796
8811
  var STORE_TABLES_QUERY = {
@@ -8833,7 +8848,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8833
8848
  return tables;
8834
8849
  }, "storeTablesCommand");
8835
8850
 
8836
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8851
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8837
8852
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8838
8853
  var WORD_INDEX = "message_words";
8839
8854
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -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-FMMYBVCH.js";
5
+ } from "./chunk-EUF5JNPG.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-HM6AMYHR.js";
8
+ } from "./chunk-4FHKSSXQ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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-QB6CU6TH.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-LU5V5Y4A.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-7VXIRQPH.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-ULWDWM3I.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-KNCPBX5P.js";
5
+ } from "./chunk-S35UJBFZ.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { realpathSync } from "node:fs";
12
12
  import { userInfo } from "node:os";
13
13
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-WGZH2M64.js";
8
+ } from "./chunk-KWBLDSRV.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/files/safe-name.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/files/safe-name.js
8
8
  import { basename, extname } from "node:path";
9
9
  var MOST_NAME_BYTES = 200;
10
10
  var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");