@wirecat/drive-cli 0.49.0 → 0.50.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 (144) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-WK2XXGPU.js → all-profiles-WQTVOCIS.js} +8 -8
  3. package/dist/bundle/{anthropic-R354D7GT.js → anthropic-YCA2AWIJ.js} +5 -5
  4. package/dist/bundle/{app-server-3YHJ757G.js → app-server-ZQOYUQJH.js} +52 -52
  5. package/dist/bundle/{bun-JVDJVDHL.js → bun-5NFIDHGM.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-KZCZWSRZ.js → bun-sqlite-OAQE4M2E.js} +4 -4
  7. package/dist/bundle/{chunk-2BADVV4A.js → chunk-24TOKSZE.js} +2 -2
  8. package/dist/bundle/{chunk-CCLDCM7J.js → chunk-2M5XEGVE.js} +290 -208
  9. package/dist/bundle/{chunk-HBYE4EP2.js → chunk-3CQNJKJT.js} +1 -1
  10. package/dist/bundle/{chunk-MC77UZVA.js → chunk-3HNUH632.js} +6 -6
  11. package/dist/bundle/{chunk-U77RLMOK.js → chunk-3XX52F42.js} +2 -2
  12. package/dist/bundle/{chunk-5KR7BKDV.js → chunk-4J7UGHPK.js} +5 -5
  13. package/dist/bundle/{chunk-IRDGH7DV.js → chunk-4OLWMHS6.js} +3 -3
  14. package/dist/bundle/{chunk-7WEISHFA.js → chunk-4SSUKRO4.js} +2 -2
  15. package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-4VLUX3V5.js} +1 -1
  16. package/dist/bundle/{chunk-W5EUHV3J.js → chunk-53UWCVSU.js} +1 -1
  17. package/dist/bundle/{chunk-PPXNEHYX.js → chunk-5OMLYNYB.js} +8 -8
  18. package/dist/bundle/{chunk-NXFEZQDL.js → chunk-5WN7JHQE.js} +26 -26
  19. package/dist/bundle/{chunk-FB7I5JWC.js → chunk-5Z63NTC7.js} +6 -6
  20. package/dist/bundle/{chunk-2ZFR67KY.js → chunk-5ZJHQ4TN.js} +2 -2
  21. package/dist/bundle/{chunk-75VCGSNB.js → chunk-652YTDT5.js} +15 -15
  22. package/dist/bundle/{chunk-YYMHFXHK.js → chunk-6DDXB5WB.js} +2 -2
  23. package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-6E4PFCQ4.js} +1 -1
  24. package/dist/bundle/{chunk-P4NOTS3U.js → chunk-7SYSC7KX.js} +2 -2
  25. package/dist/bundle/{chunk-6Z3W7LTD.js → chunk-AO3NCZNT.js} +8 -8
  26. package/dist/bundle/{chunk-LF7ACSTK.js → chunk-BUALWXBT.js} +1 -1
  27. package/dist/bundle/{chunk-FZQSGLHU.js → chunk-C4PNAHI4.js} +11 -11
  28. package/dist/bundle/{chunk-XVXXWNAA.js → chunk-CCEVICWU.js} +4 -4
  29. package/dist/bundle/{chunk-Y2AUB4TJ.js → chunk-CEUEXMIR.js} +80 -33
  30. package/dist/bundle/{chunk-254VYUWN.js → chunk-CTIQ77AB.js} +17 -17
  31. package/dist/bundle/{chunk-JZ3SUK2M.js → chunk-DTHWL5YU.js} +5 -5
  32. package/dist/bundle/{chunk-JMOX454R.js → chunk-E656DAZT.js} +1 -1
  33. package/dist/bundle/{chunk-KKZYZ32J.js → chunk-EXYEDKTX.js} +2 -2
  34. package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
  35. package/dist/bundle/{chunk-YOF5BC4G.js → chunk-FABKIQ24.js} +2 -2
  36. package/dist/bundle/{chunk-QEM3MOSB.js → chunk-FSAM4Y2S.js} +8 -8
  37. package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
  38. package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
  39. package/dist/bundle/{chunk-45TPBTR3.js → chunk-HURI56SB.js} +21 -21
  40. package/dist/bundle/{chunk-624B6G64.js → chunk-IA6LNKCF.js} +5 -5
  41. package/dist/bundle/{chunk-ITZI7T2X.js → chunk-IFM2APQB.js} +2 -2
  42. package/dist/bundle/{chunk-AN7HENGZ.js → chunk-IGG4RBIZ.js} +108 -96
  43. package/dist/bundle/{chunk-FUJZ5S2Q.js → chunk-INVF3GXW.js} +10 -10
  44. package/dist/bundle/{chunk-R235IRSJ.js → chunk-IUZ4PT2V.js} +2 -2
  45. package/dist/bundle/{chunk-3UHJC6HH.js → chunk-JA2YY7D4.js} +7 -7
  46. package/dist/bundle/{chunk-7BA3HL7N.js → chunk-JHBX53SK.js} +35 -35
  47. package/dist/bundle/{chunk-RAAI3JLI.js → chunk-JSMPSOEM.js} +3 -3
  48. package/dist/bundle/{chunk-HVM5LS5Z.js → chunk-KEQ35HQQ.js} +3 -3
  49. package/dist/bundle/{chunk-HIAO4MPA.js → chunk-KYMGVMOS.js} +1 -1
  50. package/dist/bundle/{chunk-467AQO7E.js → chunk-KZEOWOZV.js} +7 -7
  51. package/dist/bundle/{chunk-KYJYOZYG.js → chunk-LNWRRK2H.js} +6 -6
  52. package/dist/bundle/{chunk-P7INAZIT.js → chunk-M2D4FXKY.js} +5 -5
  53. package/dist/bundle/{chunk-SSD2V4HR.js → chunk-M6FQOGUW.js} +279 -258
  54. package/dist/bundle/{chunk-5ISHP4TK.js → chunk-MMOG7ZVF.js} +2 -2
  55. package/dist/bundle/{chunk-KK3BA4IS.js → chunk-NHRJW3PH.js} +2 -2
  56. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
  57. package/dist/bundle/{chunk-E2Y6GJZX.js → chunk-OL22OOIW.js} +4 -4
  58. package/dist/bundle/{chunk-DKJGYYCP.js → chunk-OQEBGY74.js} +46 -46
  59. package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
  60. package/dist/bundle/{chunk-NFU3OBCC.js → chunk-P6VN5UB4.js} +4 -4
  61. package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
  62. package/dist/bundle/{chunk-L5RZI2M5.js → chunk-POD2GHQB.js} +19 -19
  63. package/dist/bundle/{chunk-46X7Z4FD.js → chunk-Q27HCATD.js} +324 -278
  64. package/dist/bundle/{chunk-HQ2PGEOK.js → chunk-Q3VG3UYV.js} +11 -11
  65. package/dist/bundle/{chunk-JMRHDZMV.js → chunk-QBECV7NO.js} +33 -32
  66. package/dist/bundle/{chunk-EOZPMJJP.js → chunk-QNLD7Y6Z.js} +7 -7
  67. package/dist/bundle/{chunk-NVHB2MHX.js → chunk-QSDXVUJG.js} +4 -4
  68. package/dist/bundle/{chunk-ABVFH76X.js → chunk-QY3LK3OT.js} +5 -5
  69. package/dist/bundle/{chunk-BQV3WYXW.js → chunk-R7XMCREL.js} +31 -21
  70. package/dist/bundle/{chunk-463NMG57.js → chunk-RTIMGPLN.js} +3 -3
  71. package/dist/bundle/{chunk-CB5NGX6E.js → chunk-T7UZHKAS.js} +2 -2
  72. package/dist/bundle/{chunk-4ORK4UAY.js → chunk-TATRMMOG.js} +3 -3
  73. package/dist/bundle/{chunk-MP2UCK3Z.js → chunk-UVPKSZSC.js} +4 -4
  74. package/dist/bundle/{chunk-IEAZAPC3.js → chunk-VAETCXRI.js} +42 -17
  75. package/dist/bundle/{chunk-P4OU3OVF.js → chunk-VAK2Q2XG.js} +14 -14
  76. package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-XEETGCOC.js} +1 -1
  77. package/dist/bundle/{chunk-IRNX4CO5.js → chunk-XGJUEH5C.js} +27 -27
  78. package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
  79. package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
  80. package/dist/bundle/{chunk-65AW2AEQ.js → chunk-YROVFHPJ.js} +2 -2
  81. package/dist/bundle/{chunk-HD3TFIT4.js → chunk-Z54E5LKF.js} +6 -6
  82. package/dist/bundle/{chunk-W5IDHD6C.js → chunk-ZJBRKR42.js} +27 -27
  83. package/dist/bundle/{chunk-22LTNYO2.js → chunk-ZKGYW63J.js} +9 -9
  84. package/dist/bundle/{chunk-2CKGGIWF.js → chunk-ZP735UUT.js} +3 -3
  85. package/dist/bundle/{chunk-HF2T7E67.js → chunk-ZXD2I5ZQ.js} +49 -49
  86. package/dist/bundle/command-contract-TAWVO2G3.js +38 -0
  87. package/dist/bundle/{decode-BE3VDYTJ.js → decode-YZRTP54O.js} +4 -4
  88. package/dist/bundle/drive.js +7 -7
  89. package/dist/bundle/{echarts-4OQHS575.js → echarts-C6HUK2FL.js} +2 -2
  90. package/dist/bundle/{embed-QR76SJDI.js → embed-QRQ7ITFC.js} +5 -5
  91. package/dist/bundle/{embedder-EMIDKBYV.js → embedder-EZDB3JPA.js} +8 -8
  92. package/dist/bundle/{entry-FE4REJDO.js → entry-4WQQKSYG.js} +6 -6
  93. package/dist/bundle/failure-EEJGMWEP.js +37 -0
  94. package/dist/bundle/{first-run-ALPI62PX.js → first-run-ZAS4OV3T.js} +9 -9
  95. package/dist/bundle/first-screen-6ICWD2N3.js +36 -0
  96. package/dist/bundle/{google-NV75VSCD.js → google-KNILTIDW.js} +9 -9
  97. package/dist/bundle/google-api-CZACYX5T.js +82 -0
  98. package/dist/bundle/{identity-NZ7SP6OL.js → identity-VBCGUXT5.js} +2 -2
  99. package/dist/bundle/{instructions-3QZBKKPF.js → instructions-II4M2WL3.js} +1 -1
  100. package/dist/bundle/{login-KNBM6XUX.js → login-4JACQVMD.js} +62 -62
  101. package/dist/bundle/mcp-2BR2EX7L.js +95 -0
  102. package/dist/bundle/{mcp-XY2FGGUM.js → mcp-6ZIAWU3N.js} +76 -76
  103. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
  104. package/dist/bundle/{node-R2BLYUSB.js → node-LIN7L4VQ.js} +2 -2
  105. package/dist/bundle/{node-sqlite-PMRVP442.js → node-sqlite-VAH4KZN3.js} +4 -4
  106. package/dist/bundle/{oauth-NM2AKRRT.js → oauth-QUE3VCTU.js} +6 -6
  107. package/dist/bundle/{open-XZH5ZNDA.js → open-DQ3EVYPB.js} +3 -3
  108. package/dist/bundle/{process-IX5YWGDP.js → process-46XDWPVW.js} +1 -1
  109. package/dist/bundle/{program-MDWQHGBY.js → program-X3CZ4XDN.js} +93 -86
  110. package/dist/bundle/{prompt-5K6XGWSK.js → prompt-SAZYCZV3.js} +4 -4
  111. package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
  112. package/dist/bundle/{recognize-U7GDD6T2.js → recognize-SSBOHOTW.js} +3 -3
  113. package/dist/bundle/{remote-ZWXOGNQX.js → remote-EL3FWCQE.js} +6 -6
  114. package/dist/bundle/{rerank-YRQBCS63.js → rerank-RPIQRJIW.js} +6 -6
  115. package/dist/bundle/{serve-6PQ7K5RK.js → serve-AX44DIKK.js} +8 -8
  116. package/dist/bundle/server-DCJIGUW2.js +56 -0
  117. package/dist/bundle/server-WWQSQBFT.js +69 -0
  118. package/dist/bundle/{services-QBIQX236.js → services-K4UOEMQD.js} +28 -28
  119. package/dist/bundle/{sqlite-runtime-7Q5UD2VR.js → sqlite-runtime-N7N3EYGH.js} +4 -4
  120. package/dist/bundle/{state-U72TC26L.js → state-C3S5FD7V.js} +5 -5
  121. package/dist/bundle/{store-B4RAJ63G.js → store-4N3NBUGX.js} +14 -14
  122. package/dist/bundle/{store-FYABCSIH.js → store-QV4ZNEQ3.js} +16 -16
  123. package/dist/bundle/store-maintenance-command-QL4AECBD.js +57 -0
  124. package/dist/bundle/tokens-Y7HCOXOA.js +103 -0
  125. package/dist/commands/session.d.ts.map +1 -1
  126. package/dist/commands/session.js +10 -2
  127. package/dist/commands/session.js.map +1 -1
  128. package/dist/tokens.d.ts.map +1 -1
  129. package/dist/tokens.js +2 -2
  130. package/dist/tokens.js.map +1 -1
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +3 -3
  134. package/dist/bundle/command-contract-AEA45IX7.js +0 -38
  135. package/dist/bundle/failure-GYOTW6NN.js +0 -37
  136. package/dist/bundle/first-screen-JLS57PIT.js +0 -36
  137. package/dist/bundle/google-api-6623OUF2.js +0 -82
  138. package/dist/bundle/mcp-4NPK6BM3.js +0 -95
  139. package/dist/bundle/server-O7SS6NAY.js +0 -56
  140. package/dist/bundle/server-WT57TF6S.js +0 -69
  141. package/dist/bundle/store-maintenance-command-DAF5NI3T.js +0 -57
  142. package/dist/bundle/tokens-DISQJKDM.js +0 -103
  143. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
  144. /package/dist/bundle/{chunk-YLBNPI7H.js → chunk-VDZZ46RT.js} +0 -0
@@ -2,51 +2,51 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  botInstructions
5
- } from "./chunk-HBYE4EP2.js";
5
+ } from "./chunk-3CQNJKJT.js";
6
6
  import {
7
7
  answered,
8
8
  normal,
9
9
  registerCommands,
10
10
  runCommandForAgent,
11
11
  toolsFromCommands
12
- } from "./chunk-IRNX4CO5.js";
12
+ } from "./chunk-XGJUEH5C.js";
13
13
  import {
14
14
  agentJson,
15
15
  skillResource
16
- } from "./chunk-75VCGSNB.js";
16
+ } from "./chunk-652YTDT5.js";
17
17
  import {
18
18
  callerOf,
19
19
  serveStdio
20
- } from "./chunk-P4NOTS3U.js";
20
+ } from "./chunk-7SYSC7KX.js";
21
21
  import {
22
22
  McpServer
23
23
  } from "./chunk-5FONRUG6.js";
24
24
  import {
25
25
  wholeList
26
- } from "./chunk-L5RZI2M5.js";
26
+ } from "./chunk-POD2GHQB.js";
27
27
  import {
28
28
  changesMessenger,
29
29
  itemOf
30
- } from "./chunk-JMRHDZMV.js";
30
+ } from "./chunk-QBECV7NO.js";
31
31
  import {
32
32
  flatten
33
- } from "./chunk-22LTNYO2.js";
33
+ } from "./chunk-ZKGYW63J.js";
34
34
  import {
35
35
  MESSENGER_CHANGE_REFUSAL,
36
36
  readOnlyLockOf,
37
37
  readOnlyRefusal
38
- } from "./chunk-KK3BA4IS.js";
38
+ } from "./chunk-NHRJW3PH.js";
39
39
  import {
40
40
  mcpErrorResult
41
- } from "./chunk-VHT2WI4I.js";
41
+ } from "./chunk-HGWMX7BM.js";
42
42
  import {
43
43
  object
44
- } from "./chunk-BJ3JRO34.js";
44
+ } from "./chunk-EY4CUQW2.js";
45
45
  import {
46
46
  __name
47
47
  } from "./chunk-ZVVMGPBJ.js";
48
48
 
49
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
49
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
50
50
  import { randomUUID } from "node:crypto";
51
51
  var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
52
52
  var createBotServer = /* @__PURE__ */ __name((options) => {
@@ -9,7 +9,7 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-PPXNEHYX.js";
12
+ } from "./chunk-5OMLYNYB.js";
13
13
  import {
14
14
  Option,
15
15
  annotate,
@@ -17,7 +17,7 @@ import {
17
17
  metaOf,
18
18
  resolveOutput,
19
19
  stepTargets
20
- } from "./chunk-22LTNYO2.js";
20
+ } from "./chunk-ZKGYW63J.js";
21
21
  import {
22
22
  DEFAULT_RERANK_MODEL,
23
23
  KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
@@ -38,10 +38,10 @@ import {
38
38
  typedCommand,
39
39
  useAsProcessRun,
40
40
  withWriteScope
41
- } from "./chunk-BQV3WYXW.js";
41
+ } from "./chunk-R7XMCREL.js";
42
42
  import {
43
43
  isCliFailure
44
- } from "./chunk-5ISHP4TK.js";
44
+ } from "./chunk-MMOG7ZVF.js";
45
45
  import {
46
46
  CEILING_KEY,
47
47
  COMMAND_PATH_KEY,
@@ -52,25 +52,25 @@ import {
52
52
  keyForCommand,
53
53
  layerPermissions,
54
54
  permissionOverrides
55
- } from "./chunk-YYMHFXHK.js";
55
+ } from "./chunk-6DDXB5WB.js";
56
56
  import {
57
57
  count,
58
58
  text
59
- } from "./chunk-E2Y6GJZX.js";
59
+ } from "./chunk-OL22OOIW.js";
60
60
  import {
61
61
  permissionCeiling
62
- } from "./chunk-NFU3OBCC.js";
62
+ } from "./chunk-P6VN5UB4.js";
63
63
  import {
64
64
  envName,
65
65
  readOnlyLockOf,
66
66
  readOnlyRefusal
67
- } from "./chunk-KK3BA4IS.js";
67
+ } from "./chunk-NHRJW3PH.js";
68
68
  import {
69
69
  sharedConfigPath
70
- } from "./chunk-FB7I5JWC.js";
70
+ } from "./chunk-5Z63NTC7.js";
71
71
  import {
72
72
  storePath
73
- } from "./chunk-65AW2AEQ.js";
73
+ } from "./chunk-YROVFHPJ.js";
74
74
  import {
75
75
  configFilePath,
76
76
  createRecordLog,
@@ -79,7 +79,7 @@ import {
79
79
  resolvePaths,
80
80
  saveConfigFile,
81
81
  writeSecurely
82
- } from "./chunk-VHT2WI4I.js";
82
+ } from "./chunk-HGWMX7BM.js";
83
83
  import {
84
84
  CliError,
85
85
  MAX_NEXT_STEPS,
@@ -114,12 +114,12 @@ import {
114
114
  union,
115
115
  unknown,
116
116
  writes
117
- } from "./chunk-BJ3JRO34.js";
117
+ } from "./chunk-EY4CUQW2.js";
118
118
  import {
119
119
  __name
120
120
  } from "./chunk-ZVVMGPBJ.js";
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/execution.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/execution.js
123
123
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
124
124
  var DEFAULT_SYNC_MS = 15 * 6e4;
125
125
  var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
@@ -141,7 +141,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
141
141
  }
142
142
  }, "withAbort");
143
143
 
144
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/profile.js
144
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/profile.js
145
145
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
146
146
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
147
147
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -188,7 +188,7 @@ var rootOf = /* @__PURE__ */ __name((command) => {
188
188
  return root;
189
189
  }, "rootOf");
190
190
 
191
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
191
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
192
192
  import { existsSync, readdirSync, readFileSync } from "node:fs";
193
193
  import { join } from "node:path";
194
194
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -210,7 +210,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
210
210
  }, "profilesWithAccounts");
211
211
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
212
212
 
213
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/log-events.js
213
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/log-events.js
214
214
  var CORE_LOG_EVENTS = defineLogEvents([
215
215
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
216
216
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -244,7 +244,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
244
244
  cache: "cache.answered"
245
245
  };
246
246
 
247
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/recording.js
247
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/recording.js
248
248
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
249
249
  const recording = startRecording(options);
250
250
  try {
@@ -429,7 +429,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
429
429
  return void 0;
430
430
  }, "partialOutcome");
431
431
 
432
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/deadline.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/deadline.js
433
433
  var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
434
434
  if (ms === void 0)
435
435
  return body();
@@ -455,10 +455,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
455
455
  }
456
456
  }, "withDeadline");
457
457
 
458
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/settings.js
458
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/settings.js
459
459
  import { existsSync as existsSync3 } from "node:fs";
460
460
 
461
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/endpoint.js
461
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/models/endpoint.js
462
462
  var endpoint = /* @__PURE__ */ __name((value) => {
463
463
  try {
464
464
  const url2 = new URL(value);
@@ -468,7 +468,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
468
468
  }
469
469
  }, "endpoint");
470
470
 
471
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/settings.js
471
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/models/settings.js
472
472
  var MODEL_FIELDS = ["provider", "model", "base_url"];
473
473
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
474
474
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -537,7 +537,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
537
537
  };
538
538
  }, "modelTarget");
539
539
 
540
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/analysis/settings.js
540
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/analysis/settings.js
541
541
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
542
542
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
543
543
  var AI_FIELDS = {
@@ -581,7 +581,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
581
581
  };
582
582
  }, "resolveAISettings");
583
583
 
584
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
584
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
585
585
  import { readFileSync as readFileSync2 } from "node:fs";
586
586
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
587
587
  var SECTIONS = ["personal", "bot"];
@@ -871,7 +871,7 @@ var readConfigFile = /* @__PURE__ */ __name((path) => {
871
871
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
872
872
  }, "readConfigFile");
873
873
 
874
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/default-config.js
874
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/default-config.js
875
875
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
876
876
  import { dirname, join as join2 } from "node:path";
877
877
  var DEFAULT_CONFIG = {
@@ -900,7 +900,7 @@ function ensureDefaultConfig(path, config = DEFAULT_CONFIG) {
900
900
  }
901
901
  __name(ensureDefaultConfig, "ensureDefaultConfig");
902
902
 
903
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/settings.js
903
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/settings.js
904
904
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
905
905
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
906
906
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -1290,7 +1290,7 @@ var given = /* @__PURE__ */ __name((value) => {
1290
1290
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
1291
1291
  }, "given");
1292
1292
 
1293
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/context.js
1293
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/context.js
1294
1294
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
1295
1295
  const slot = environmentOf(command).exit;
1296
1296
  if (slot)
@@ -1397,7 +1397,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
1397
1397
  return words.join(" ");
1398
1398
  }, "commandPath");
1399
1399
 
1400
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/effects.js
1400
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/effects.js
1401
1401
  var REMOTE_READ = { remote: "read", local: "read" };
1402
1402
  var FETCH = { remote: "read", local: "write" };
1403
1403
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -1482,7 +1482,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
1482
1482
  throw readOnlyRefusal(lock, what);
1483
1483
  }, "refuseUnderReadOnly");
1484
1484
 
1485
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/steps.js
1485
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/steps.js
1486
1486
  var STEPS2 = defineSteps([
1487
1487
  ...STEPS,
1488
1488
  {
@@ -1491,6 +1491,7 @@ var STEPS2 = defineSteps([
1491
1491
  args: [
1492
1492
  { name: "chat", required: false },
1493
1493
  { name: "all", required: false },
1494
+ { name: "since_time", required: false },
1494
1495
  { name: "background", required: false }
1495
1496
  ],
1496
1497
  why: "the local copy is missing messages; syncing brings them in"
@@ -1739,7 +1740,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
1739
1740
  ].join(" ");
1740
1741
  }, "stepLine");
1741
1742
 
1742
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
1743
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
1743
1744
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
1744
1745
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
1745
1746
  var strip = /* @__PURE__ */ __name((value) => {
@@ -1753,7 +1754,7 @@ var strip = /* @__PURE__ */ __name((value) => {
1753
1754
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
1754
1755
  }, "strip");
1755
1756
 
1756
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/envelope.js
1757
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/envelope.js
1757
1758
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
1758
1759
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
1759
1760
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -1875,7 +1876,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
1875
1876
  renderer.result(item);
1876
1877
  }, "printItem");
1877
1878
 
1878
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/store-table.js
1879
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/entities/store-table.js
1879
1880
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
1880
1881
  var storeTable = strictObject({
1881
1882
  name: text,
@@ -1884,7 +1885,7 @@ var storeTable = strictObject({
1884
1885
  bytes: optional(nullable(count))
1885
1886
  });
1886
1887
 
1887
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/record-log.js
1888
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/record-log.js
1888
1889
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
1889
1890
  const run = currentRun();
1890
1891
  const trace = traceId ?? run.traceId;
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-YYMHFXHK.js";
5
+ } from "./chunk-6DDXB5WB.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine,
9
9
  visibleControls,
10
10
  writeSecurely
11
- } from "./chunk-VHT2WI4I.js";
11
+ } from "./chunk-HGWMX7BM.js";
12
12
  import {
13
13
  CliError,
14
14
  array,
@@ -28,12 +28,12 @@ import {
28
28
  string,
29
29
  transform,
30
30
  unknown
31
- } from "./chunk-BJ3JRO34.js";
31
+ } from "./chunk-EY4CUQW2.js";
32
32
  import {
33
33
  __name
34
34
  } from "./chunk-ZVVMGPBJ.js";
35
35
 
36
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/resolve.js
36
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/resolve.js
37
37
  var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
38
38
  var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
39
39
  var pickChat = /* @__PURE__ */ __name((reference, chats) => {
@@ -71,7 +71,7 @@ ${lines}`, { candidates });
71
71
  }, "ambiguous");
72
72
  var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
73
73
 
74
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/formatting.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/formatting.js
75
75
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
76
76
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
77
77
  const { text, spans } = formatted;
@@ -131,7 +131,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
131
131
  };
132
132
  }, "visibleFormattedText");
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/moderation/check.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/moderation/check.js
135
135
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
136
136
  var LINK = /https?:\/\/\S+/i;
137
137
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -319,7 +319,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
319
319
  }, "nextPoint");
320
320
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
321
321
 
322
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/moderation/rules.js
322
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/moderation/rules.js
323
323
  import { existsSync, readFileSync } from "node:fs";
324
324
  import { join } from "node:path";
325
325
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-463NMG57.js";
8
+ } from "./chunk-RTIMGPLN.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-65AW2AEQ.js";
5
+ } from "./chunk-YROVFHPJ.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-BJ3JRO34.js";
8
+ } from "./chunk-EY4CUQW2.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/install.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/speech/install.js
14
14
  import { createHash, randomUUID } from "node:crypto";
15
15
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
16
16
  import { rename, rm } from "node:fs/promises";
@@ -18,7 +18,7 @@ import { dirname, join } from "node:path";
18
18
  import { Readable, Transform } from "node:stream";
19
19
  import { pipeline } from "node:stream/promises";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/models.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/speech/models.js
22
22
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
23
23
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
24
24
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -142,7 +142,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
142
142
  return model;
143
143
  }, "speechModel");
144
144
 
145
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/install.js
145
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/speech/install.js
146
146
  var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
147
147
  var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
148
148
  var STALL_MS = 6e4;
@@ -5,24 +5,24 @@ import {
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-E2Y6GJZX.js";
8
+ } from "./chunk-OL22OOIW.js";
9
9
  import {
10
10
  filesPresent,
11
11
  sharedModelsDirectory
12
- } from "./chunk-ABVFH76X.js";
12
+ } from "./chunk-QY3LK3OT.js";
13
13
  import {
14
14
  TASK_ORIGINS,
15
15
  TASK_STATES,
16
16
  TASK_TYPES
17
- } from "./chunk-HD3TFIT4.js";
17
+ } from "./chunk-Z54E5LKF.js";
18
18
  import {
19
19
  TAG_TYPES
20
- } from "./chunk-DKJGYYCP.js";
20
+ } from "./chunk-OQEBGY74.js";
21
21
  import {
22
22
  createRecordLog,
23
23
  resolvePaths,
24
24
  writeSecurely
25
- } from "./chunk-VHT2WI4I.js";
25
+ } from "./chunk-HGWMX7BM.js";
26
26
  import {
27
27
  CliError,
28
28
  array,
@@ -35,12 +35,12 @@ import {
35
35
  reference,
36
36
  strictObject,
37
37
  traceIdOf
38
- } from "./chunk-BJ3JRO34.js";
38
+ } from "./chunk-EY4CUQW2.js";
39
39
  import {
40
40
  __name
41
41
  } from "./chunk-ZVVMGPBJ.js";
42
42
 
43
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/duration.js
43
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/duration.js
44
44
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
45
45
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
46
46
  var parseDuration = /* @__PURE__ */ __name((value, source) => {
@@ -54,7 +54,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
54
54
  return ms;
55
55
  }, "parseDuration");
56
56
 
57
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
57
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
58
58
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
59
59
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
60
60
  var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
@@ -67,7 +67,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
67
67
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
68
68
  }), "snakeLogger");
69
69
 
70
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
70
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
71
71
  var diagnostic = {
72
72
  event: true,
73
73
  operation: true,
@@ -137,7 +137,7 @@ var LOG_ATTRIBUTES = [
137
137
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
138
138
  ].sort();
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/run.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/run.js
141
141
  import { randomUUID } from "node:crypto";
142
142
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
143
143
  import { userInfo } from "node:os";
@@ -494,7 +494,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
494
494
  };
495
495
  }, "metadataOf");
496
496
 
497
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/runs/scope.js
497
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/scope.js
498
498
  import { AsyncLocalStorage } from "node:async_hooks";
499
499
  import { randomBytes } from "node:crypto";
500
500
  var scopes = new AsyncLocalStorage();
@@ -531,7 +531,7 @@ var attempts = new AsyncLocalStorage();
531
531
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
532
532
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
533
533
 
534
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/guarded.js
534
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/sends/guarded.js
535
535
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
536
536
  var sentIds = /* @__PURE__ */ __name((typed, message) => ({
537
537
  messageId: message.id,
@@ -637,7 +637,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
637
637
  }, "guardedWrite");
638
638
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
639
639
 
640
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/models.js
640
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/embeddings/models.js
641
641
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
642
642
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
643
643
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -796,7 +796,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
796
796
  var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
797
797
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
798
798
 
799
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/images/picture/models.js
799
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/images/picture/models.js
800
800
  import { join as join2 } from "node:path";
801
801
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
802
802
  var IMAGE_MODELS = [
@@ -850,7 +850,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
850
850
  var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
851
851
  var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
852
852
 
853
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/task.js
853
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/entities/task.js
854
854
  var closeSuggestion = strictObject({
855
855
  as: picklist(["done", "dismissed"]),
856
856
  /** The agent's name. */
@@ -892,7 +892,7 @@ var task = strictObject({
892
892
  updated_at: optional(time)
893
893
  });
894
894
 
895
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/agenda.js
895
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/entities/agenda.js
896
896
  var agendaChat = strictObject({
897
897
  chat: reference,
898
898
  title: nullable(text),
@@ -903,7 +903,17 @@ var agendaChat = strictObject({
903
903
  /** `null` when the newest message is not stored, or the messenger did not say who sent it. */
904
904
  last_from_owner: nullable(boolean()),
905
905
  /** Open tasks whose source is in this chat. */
906
- open_tasks: array(id)
906
+ open_tasks: array(id),
907
+ /** `unknown` means nothing ever fetched the chat's history; `partial` that the store holds only part of it. */
908
+ completeness: strictObject({
909
+ state: picklist(["complete", "partial", "unknown"]),
910
+ up_to_date: nullable(boolean()),
911
+ gaps: boolean(),
912
+ reaches_start: boolean(),
913
+ fetched_at: nullable(time)
914
+ }),
915
+ /** What the store holds of the chat: the count and the span, never the text. */
916
+ held: strictObject({ messages: number(), oldest_at: nullable(time), newest_at: nullable(time) })
907
917
  });
908
918
  var agenda = strictObject({
909
919
  at: time,
@@ -952,7 +962,7 @@ var agenda = strictObject({
952
962
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
953
963
  });
954
964
 
955
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/conversation.js
965
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/entities/conversation.js
956
966
  var conversation = strictObject({
957
967
  id,
958
968
  chat: reference,
@@ -967,7 +977,7 @@ var conversation = strictObject({
967
977
  rules_version: count
968
978
  });
969
979
 
970
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/attachment.js
980
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/entities/attachment.js
971
981
  var attachment = strictObject({
972
982
  /** The message it came with, as a locator; absent inside that message. */
973
983
  message: optional(reference),
@@ -1004,7 +1014,7 @@ var attachment = strictObject({
1004
1014
  }))))
1005
1015
  });
1006
1016
 
1007
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1017
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/entities/tagging.js
1008
1018
  var tagging = strictObject({
1009
1019
  tag: text,
1010
1020
  type: picklist(TAG_TYPES),
@@ -1017,7 +1027,7 @@ var tagging = strictObject({
1017
1027
  created_at: time
1018
1028
  });
1019
1029
 
1020
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1030
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
1021
1031
  var WEIGHTS = {
1022
1032
  bot: 3,
1023
1033
  scam: 3,