@wirecat/zoom-cli 0.78.0 → 0.80.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 (182) hide show
  1. package/README.md +5 -4
  2. package/dist/answer-output.d.ts +1 -1
  3. package/dist/answer-output.js +1 -1
  4. package/dist/bin/zm.js +2 -2
  5. package/dist/bundle/{all-profiles-7JN3N3E6.js → all-profiles-5GOKWOT4.js} +11 -11
  6. package/dist/bundle/answer-policy-7PYXHK2I.js +122 -0
  7. package/dist/bundle/{anthropic-U6O7UYGZ.js → anthropic-NHXMOFYS.js} +6 -6
  8. package/dist/bundle/{app-server-G7BTC6CE.js → app-server-HFW5Z5PI.js} +68 -68
  9. package/dist/bundle/{bun-VLROVUFK.js → bun-M5IGY2TG.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-C5JLANDE.js → bun-sqlite-MTP5JJQ2.js} +7 -7
  11. package/dist/bundle/{chunk-7HEZQCHL.js → chunk-2P6MQH4V.js} +6 -6
  12. package/dist/bundle/{chunk-HGBZBQAE.js → chunk-2XZ2YKW4.js} +3 -3
  13. package/dist/bundle/{chunk-3NZJKY7A.js → chunk-3AOESMW6.js} +34 -24
  14. package/dist/bundle/{chunk-HI4QICF7.js → chunk-3BTRJYIT.js} +12 -12
  15. package/dist/bundle/{chunk-GQ6EJDMV.js → chunk-3UONR5HW.js} +1 -1
  16. package/dist/bundle/{chunk-NS5XSCHC.js → chunk-3Z7CFQTI.js} +1 -1
  17. package/dist/bundle/{chunk-RJIJR6KH.js → chunk-475P3LWG.js} +1 -1
  18. package/dist/bundle/{chunk-MVLLWSV7.js → chunk-4F7Q5CET.js} +16 -16
  19. package/dist/bundle/{chunk-7K5O2VWO.js → chunk-4OAR7BGU.js} +1 -1
  20. package/dist/bundle/{chunk-ZZJ5IWNT.js → chunk-5CJ6AAUI.js} +4 -4
  21. package/dist/bundle/{chunk-4XPVRZXE.js → chunk-5K54M6RD.js} +1 -1
  22. package/dist/bundle/{chunk-LX532BXO.js → chunk-5QXQIZJY.js} +1 -1
  23. package/dist/bundle/{chunk-WJTXO2EI.js → chunk-5RVXXDN7.js} +1 -1
  24. package/dist/bundle/{chunk-M5R2DURM.js → chunk-5XO2AY6D.js} +10 -10
  25. package/dist/bundle/{chunk-MSMFYW6N.js → chunk-6CDMGT6Q.js} +2 -2
  26. package/dist/bundle/{chunk-AEVSVVTP.js → chunk-6I4C4ZFT.js} +2 -2
  27. package/dist/bundle/{chunk-YNYQGZUW.js → chunk-6LY4LBSD.js} +7 -7
  28. package/dist/bundle/{chunk-OOLNK3Y5.js → chunk-6MDL2LZA.js} +8 -8
  29. package/dist/bundle/{chunk-532FNLON.js → chunk-6PIXP5IH.js} +20 -20
  30. package/dist/bundle/{chunk-VMA7SILL.js → chunk-6QCBTBDA.js} +1 -1
  31. package/dist/bundle/{chunk-BIUHLXL2.js → chunk-75JW7X2W.js} +33 -33
  32. package/dist/bundle/{chunk-FXHZHQKU.js → chunk-7U5X37TE.js} +6 -6
  33. package/dist/bundle/{chunk-VW36ZSAE.js → chunk-A3TUG2DP.js} +1 -1
  34. package/dist/bundle/{chunk-FCGRXUAU.js → chunk-ARL2TTPZ.js} +9 -9
  35. package/dist/bundle/{chunk-TXDCIM5D.js → chunk-BIKHHFD2.js} +1162 -771
  36. package/dist/bundle/{chunk-OAYAGQ7C.js → chunk-BNEJKGG7.js} +31 -22
  37. package/dist/bundle/{chunk-P5QO7Y3H.js → chunk-BPSURRAD.js} +6 -6
  38. package/dist/bundle/{chunk-6MFEWAK4.js → chunk-BRMV33MO.js} +4 -4
  39. package/dist/bundle/{chunk-HOJOVUO6.js → chunk-BW5JEOBE.js} +12 -12
  40. package/dist/bundle/{chunk-HUSIS3XO.js → chunk-CHEHK6IW.js} +64 -61
  41. package/dist/bundle/{chunk-XCOGI4JE.js → chunk-CW6CPQHI.js} +4 -4
  42. package/dist/bundle/{chunk-BAHXR4PA.js → chunk-CWCDCNXA.js} +6 -6
  43. package/dist/bundle/{chunk-NO2LIHWA.js → chunk-CWXOXIWS.js} +1 -1
  44. package/dist/bundle/{chunk-F7IDYQLM.js → chunk-D4HKTC2T.js} +2 -2
  45. package/dist/bundle/{chunk-YZKVCTZI.js → chunk-DYRISFHZ.js} +8 -8
  46. package/dist/bundle/{chunk-OI4563JI.js → chunk-DZ6H3YJH.js} +13 -13
  47. package/dist/bundle/{chunk-YHQ3TEGB.js → chunk-E3JVLVVB.js} +29 -27
  48. package/dist/bundle/{chunk-MJMHUU3J.js → chunk-EI37UXDR.js} +1 -1
  49. package/dist/bundle/{chunk-3A3B3JX4.js → chunk-EMYRUJCV.js} +35 -12
  50. package/dist/bundle/{chunk-B4V4DRVO.js → chunk-EPIA2UUM.js} +12 -12
  51. package/dist/bundle/{chunk-H74NENWA.js → chunk-FIJREKLA.js} +3 -3
  52. package/dist/bundle/chunk-FPUGMDJV.js +7 -0
  53. package/dist/bundle/{chunk-JOIAE3NO.js → chunk-FSLR2YGR.js} +7 -7
  54. package/dist/bundle/{chunk-2LMD3JUD.js → chunk-G5VH4WUF.js} +2 -2
  55. package/dist/bundle/{chunk-LERF2FIK.js → chunk-GCPO7T2X.js} +3 -3
  56. package/dist/bundle/{chunk-IBINGDYF.js → chunk-GCUOZ2OA.js} +6 -6
  57. package/dist/bundle/{chunk-XSF5OBVZ.js → chunk-GGKEQQME.js} +8 -8
  58. package/dist/bundle/{chunk-H34KEXTN.js → chunk-GRYXOSN6.js} +10 -10
  59. package/dist/bundle/{chunk-DLJPN47R.js → chunk-GVKZZT7E.js} +6 -5
  60. package/dist/bundle/{chunk-M2M3U4UU.js → chunk-HGSBLY6M.js} +12 -12
  61. package/dist/bundle/{chunk-7AMKSXMB.js → chunk-HH7GR6TN.js} +6 -6
  62. package/dist/bundle/{chunk-WOYPWXZK.js → chunk-IQWBGMCR.js} +4 -4
  63. package/dist/bundle/{chunk-F2KZNAFF.js → chunk-JGSVWLL2.js} +2 -2
  64. package/dist/bundle/{chunk-XOG7B7K5.js → chunk-JJX4HKDV.js} +4 -4
  65. package/dist/bundle/{chunk-C56OYYFG.js → chunk-JXSEH64A.js} +3 -3
  66. package/dist/bundle/{chunk-Q4AKIAIA.js → chunk-K672XJ2P.js} +12 -12
  67. package/dist/bundle/{chunk-LBV4673S.js → chunk-L2TURFT6.js} +3 -3
  68. package/dist/bundle/{chunk-H7SRM26V.js → chunk-L6FM5RQY.js} +3 -3
  69. package/dist/bundle/{chunk-EV7QCFQR.js → chunk-M4LAF627.js} +45 -23
  70. package/dist/bundle/{chunk-B6TUEQ4O.js → chunk-MH4L5LL6.js} +3 -3
  71. package/dist/bundle/{chunk-5SM2IOAS.js → chunk-N5YUHN6S.js} +14 -29
  72. package/dist/bundle/{chunk-TEFHNXXX.js → chunk-NMETTKCV.js} +31 -16
  73. package/dist/bundle/{chunk-6NTNAEZF.js → chunk-NRVMK5H3.js} +1390 -1039
  74. package/dist/bundle/{chunk-53TV72JG.js → chunk-NXFKZFTC.js} +2 -2
  75. package/dist/bundle/{chunk-YAPDU3SV.js → chunk-O3DYRCIT.js} +1 -1
  76. package/dist/bundle/{chunk-XXD4YPHQ.js → chunk-O4ZBFATF.js} +12 -12
  77. package/dist/bundle/{chunk-UKYO3HNO.js → chunk-ONJPUFLX.js} +1 -1
  78. package/dist/bundle/{chunk-WEAMGNST.js → chunk-OXPHJEJ2.js} +3 -3
  79. package/dist/bundle/{chunk-ZDZASHSQ.js → chunk-P2JTVRGU.js} +17 -17
  80. package/dist/bundle/{chunk-U2Z35B3W.js → chunk-PCPOO5FS.js} +2 -2
  81. package/dist/bundle/{chunk-7IIQU5RA.js → chunk-PKW3TPNP.js} +13 -13
  82. package/dist/bundle/{chunk-5DLK4OXF.js → chunk-PMO2Z6DQ.js} +3 -3
  83. package/dist/bundle/{chunk-3QWYRZME.js → chunk-Q5LUGY2V.js} +8 -8
  84. package/dist/bundle/{chunk-KBTINKQF.js → chunk-Q6MISDKJ.js} +3 -3
  85. package/dist/bundle/{chunk-BGO7IEHY.js → chunk-QIK2IBJ4.js} +21 -7
  86. package/dist/bundle/{chunk-2AWWMROP.js → chunk-RFXJLG5V.js} +7495 -7138
  87. package/dist/bundle/{chunk-UHBQM54J.js → chunk-RMX2WPWS.js} +4 -4
  88. package/dist/bundle/{chunk-2USGT7LE.js → chunk-RT7C3SSJ.js} +1 -1
  89. package/dist/bundle/{chunk-FNLXFQN6.js → chunk-ST3ZB7LS.js} +1 -1
  90. package/dist/bundle/{chunk-INJK7FNM.js → chunk-SUG6YGAF.js} +201 -175
  91. package/dist/bundle/{chunk-FURKMNC2.js → chunk-TDBVM2SS.js} +3 -3
  92. package/dist/bundle/{chunk-FHOQWPQ6.js → chunk-TMYZKDQ7.js} +307 -268
  93. package/dist/bundle/{chunk-LBTANUUH.js → chunk-TNL3YQ33.js} +2 -2
  94. package/dist/bundle/{chunk-V53TIJLY.js → chunk-U5N2PKKM.js} +2 -2
  95. package/dist/bundle/{chunk-FMMCGQNT.js → chunk-UX4JZMA4.js} +28 -4
  96. package/dist/bundle/{chunk-ZCVO6GAT.js → chunk-VN7TKMOW.js} +1 -1
  97. package/dist/bundle/{chunk-OAE6XR7E.js → chunk-W2QDYMAM.js} +7 -7
  98. package/dist/bundle/{chunk-2O66KMOR.js → chunk-W32HK7KG.js} +2 -2
  99. package/dist/bundle/{chunk-UIBKGH5P.js → chunk-W3GZ7JUO.js} +1 -1
  100. package/dist/bundle/{chunk-ORSTSBWU.js → chunk-W7M4JYEE.js} +1 -1
  101. package/dist/bundle/{chunk-KEAKNNXU.js → chunk-XIHENZW6.js} +4 -4
  102. package/dist/bundle/{chunk-C26V2XNV.js → chunk-XKLU5KV2.js} +1 -1
  103. package/dist/bundle/{chunk-Q4CNLEAY.js → chunk-XL4ND7CZ.js} +26 -26
  104. package/dist/bundle/{chunk-7EVB4UV7.js → chunk-XTCAWNBP.js} +4 -4
  105. package/dist/bundle/{chunk-4QCLPSJ7.js → chunk-YAA2D6RP.js} +5 -5
  106. package/dist/bundle/{chunk-YLNUKNGD.js → chunk-YR5TRWT2.js} +35 -34
  107. package/dist/bundle/{chunk-TFDD4Q5Z.js → chunk-Z3CPZ4I4.js} +10 -10
  108. package/dist/bundle/{chunk-PJMQE4PW.js → chunk-ZPZT46O6.js} +15 -9
  109. package/dist/bundle/{cli-YALONJ4V.js → cli-QNBYDOKV.js} +91 -77
  110. package/dist/bundle/command-contract-CT6MV6YG.js +45 -0
  111. package/dist/bundle/{command-server-entry-W4XTBUZE.js → command-server-entry-WMA4SWJ5.js} +35 -35
  112. package/dist/bundle/config-ZFQFDEVL.js +109 -0
  113. package/dist/bundle/{decode-IFQHVCFX.js → decode-7PXUXNIP.js} +6 -6
  114. package/dist/bundle/{dispatch-GOJB4TDK.js → dispatch-AWDROXWN.js} +9 -9
  115. package/dist/bundle/{dist-H7XFUMRX.js → dist-TSBH4FOU.js} +21 -21
  116. package/dist/bundle/{echarts-HPUHPJCO.js → echarts-WIDIUEO6.js} +2 -2
  117. package/dist/bundle/{embed-ESU3WZYW.js → embed-EIRVQF5E.js} +7 -7
  118. package/dist/bundle/{embedder-BV6O76B3.js → embedder-MXPM6OXK.js} +10 -10
  119. package/dist/bundle/{failure-SWVCYFQX.js → failure-JZW73RP7.js} +3 -3
  120. package/dist/bundle/first-run-K6EHRAIM.js +29 -0
  121. package/dist/bundle/first-screen-C6AF4KT4.js +45 -0
  122. package/dist/bundle/{folders-VQGKBM3P.js → folders-TGFOE7DY.js} +5 -5
  123. package/dist/bundle/{instructions-UUX57I3V.js → instructions-D5LNE6NJ.js} +1 -1
  124. package/dist/bundle/{main-UIKADOFB.js → main-OHW5Z56X.js} +24 -24
  125. package/dist/bundle/{mcp-VMS6PBCU.js → mcp-RGNRW77S.js} +2 -2
  126. package/dist/bundle/meeting-combined-3OKFXZNA.js +26 -0
  127. package/dist/bundle/meeting-model-4XNF725D.js +26 -0
  128. package/dist/bundle/{meeting-semantic-F6GUICB7.js → meeting-semantic-FYOVY4S2.js} +8 -8
  129. package/dist/bundle/{meetings-KIBUPLPW.js → meetings-WI4SXPBJ.js} +9 -7
  130. package/dist/bundle/{node-AM3JCAWB.js → node-UEWUFR7N.js} +2 -2
  131. package/dist/bundle/{node-sqlite-VM6VS3RU.js → node-sqlite-FJWKJHYU.js} +8 -8
  132. package/dist/bundle/{oauth-AX5Z32H6.js → oauth-KOONTGLW.js} +8 -8
  133. package/dist/bundle/{open-SSGOOOZG.js → open-EFYTWUGC.js} +6 -6
  134. package/dist/bundle/openai-6Y2JRDNY.js +28 -0
  135. package/dist/bundle/{output-file-FR226A64.js → output-file-J4SU6X4I.js} +6 -6
  136. package/dist/bundle/{process-5ZEK2VFY.js → process-U5PLNIDC.js} +1 -1
  137. package/dist/bundle/{program-ROJAJHCB.js → program-3JICCSA6.js} +98 -95
  138. package/dist/bundle/{prompt-6Y7A4453.js → prompt-YPDMSOKC.js} +6 -6
  139. package/dist/bundle/{recognize-R5W25WKH.js → recognize-Z2SSWUKH.js} +5 -5
  140. package/dist/bundle/{remote-PA4FQUZK.js → remote-R5HMDHOG.js} +11 -11
  141. package/dist/bundle/{rerank-CYX3UFTM.js → rerank-6NGBEMQ2.js} +8 -8
  142. package/dist/bundle/run-log-LG3TI3WI.js +136 -0
  143. package/dist/bundle/{serve-MM5QEZJW.js → serve-CU3RMWU7.js} +10 -10
  144. package/dist/bundle/{server-JQQAH7E5.js → server-SOQSVX2Q.js} +60 -60
  145. package/dist/bundle/server-X7JYRMKX.js +85 -0
  146. package/dist/bundle/{services-Y2DOQONM.js → services-LROZ3RDT.js} +54 -54
  147. package/dist/bundle/{speech-O6WLX34V.js → speech-AS77HFIF.js} +25 -25
  148. package/dist/bundle/{sqlite-runtime-LQTBZMFH.js → sqlite-runtime-U25NS6BK.js} +7 -7
  149. package/dist/bundle/{state-AIDPZLVH.js → state-CPEVKK66.js} +7 -7
  150. package/dist/bundle/{store-BA4FQS5V.js → store-6CHRMJM7.js} +28 -24
  151. package/dist/bundle/{store-UNDS2TBG.js → store-QKHCZOYR.js} +26 -26
  152. package/dist/bundle/store-connection-FCDVOPWB.js +102 -0
  153. package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +77 -0
  154. package/dist/bundle/{streaming-UFHT5MR2.js → streaming-VDJOYGMO.js} +7 -7
  155. package/dist/bundle/{tokens-Z32UKGQB.js → tokens-JBN2OHQB.js} +10 -10
  156. package/dist/bundle/zm.js +9 -9
  157. package/dist/bundle/{zoom-app-6U46XBTG.js → zoom-app-Q4IKYNG3.js} +8 -8
  158. package/dist/program-bindings.d.ts.map +1 -1
  159. package/dist/program-bindings.js +3 -2
  160. package/dist/program-bindings.js.map +1 -1
  161. package/dist/store-commands.d.ts.map +1 -1
  162. package/dist/store-commands.js +2 -2
  163. package/dist/store-commands.js.map +1 -1
  164. package/dist/tokens.d.ts.map +1 -1
  165. package/dist/tokens.js +3 -0
  166. package/dist/tokens.js.map +1 -1
  167. package/dist/version.d.ts +1 -1
  168. package/dist/version.js +1 -1
  169. package/package.json +4 -3
  170. package/dist/bundle/answer-policy-G2BNMPEX.js +0 -122
  171. package/dist/bundle/chunk-SHTHNBHG.js +0 -2
  172. package/dist/bundle/command-contract-DMR5EOIN.js +0 -45
  173. package/dist/bundle/config-4TLDRXRL.js +0 -109
  174. package/dist/bundle/first-run-OEJGAQAE.js +0 -29
  175. package/dist/bundle/first-screen-QLM4IABL.js +0 -45
  176. package/dist/bundle/meeting-combined-SKJISCC7.js +0 -26
  177. package/dist/bundle/meeting-model-YG3Z5KCB.js +0 -26
  178. package/dist/bundle/openai-YIP73X2B.js +0 -28
  179. package/dist/bundle/run-log-FHERL3H6.js +0 -136
  180. package/dist/bundle/server-W2BBONCQ.js +0 -85
  181. package/dist/bundle/store-connection-ADBJ36T4.js +0 -102
  182. package/dist/bundle/store-maintenance-command-IB6ML4UI.js +0 -77
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure,
5
5
  isStoreDamage
6
- } from "./chunk-AEVSVVTP.js";
6
+ } from "./chunk-6I4C4ZFT.js";
7
7
  import {
8
8
  ADDED_PROVIDER,
9
9
  INTERNAL_NOTES,
@@ -17,10 +17,10 @@ import {
17
17
  kindsIn,
18
18
  providerNamed,
19
19
  providers
20
- } from "./chunk-7IIQU5RA.js";
20
+ } from "./chunk-PKW3TPNP.js";
21
21
  import {
22
22
  refuseOwnerStoreInTests
23
- } from "./chunk-LBTANUUH.js";
23
+ } from "./chunk-TNL3YQ33.js";
24
24
  import {
25
25
  array,
26
26
  boolean,
@@ -40,22 +40,22 @@ import {
40
40
  strictObject,
41
41
  string,
42
42
  unknown
43
- } from "./chunk-PJMQE4PW.js";
43
+ } from "./chunk-ZPZT46O6.js";
44
44
  import {
45
45
  CliError
46
- } from "./chunk-FNLXFQN6.js";
46
+ } from "./chunk-ST3ZB7LS.js";
47
47
  import {
48
48
  __name
49
49
  } from "./chunk-ZVVMGPBJ.js";
50
50
 
51
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/source-review.js
51
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/source-review.js
52
52
  var SOURCE_REVIEW_KIND = "memory_source_review";
53
53
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
54
54
  var ERASED_TEXT = "[source erased]";
55
55
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
56
56
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
57
57
 
58
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/tasks/model.js
58
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/model.js
59
59
  var TASK_KINDS = ["question", "request", "mention", "promise"];
60
60
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
61
61
  var CLOSED_STATES = ["done", "dismissed"];
@@ -70,7 +70,7 @@ function closeTask(task, state, by, at, reason) {
70
70
  }
71
71
  __name(closeTask, "closeTask");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/tasks/priority.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/priority.js
74
74
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
75
75
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
76
76
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -99,7 +99,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
99
99
  }, "priorityOf");
100
100
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
101
101
 
102
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/tasks/service.js
102
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/service.js
103
103
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
104
104
  async function find(id2) {
105
105
  const task = await store.get(id2);
@@ -159,13 +159,13 @@ function median(values) {
159
159
  }
160
160
  __name(median, "median");
161
161
 
162
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/tasks/store.js
162
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/tasks/store.js
163
163
  function matches(task, filter) {
164
164
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
165
165
  }
166
166
  __name(matches, "matches");
167
167
 
168
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
168
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
169
169
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
170
170
  var MEMORY_KINDS = ["summary", "digest", "preference"];
171
171
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -173,10 +173,10 @@ var MEMORY_SCOPES = ["personal", "work"];
173
173
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
174
174
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
175
175
 
176
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/domain/categories.js
176
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/domain/categories.js
177
177
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
178
178
 
179
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/entities/fields.js
179
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/entities/fields.js
180
180
  var text = string();
181
181
  var id = pipe(string(), minLength(1));
182
182
  var time = isoTime;
@@ -201,7 +201,7 @@ var author = strictObject({
201
201
  name: nullable(text)
202
202
  });
203
203
 
204
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
204
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
205
205
  var organization = strictObject({
206
206
  id,
207
207
  ref: reference,
@@ -231,7 +231,7 @@ var reminder = strictObject({
231
231
  receipt: nullable(text)
232
232
  });
233
233
 
234
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/marks.js
234
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/marks.js
235
235
  import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
236
236
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
237
237
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
@@ -352,7 +352,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
352
352
  return { previous, cleared };
353
353
  }, "recordDeepCheck");
354
354
 
355
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/search/query.js
355
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/search/query.js
356
356
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
357
357
  var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
358
358
  var fail = /* @__PURE__ */ __name((message) => {
@@ -375,7 +375,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
375
375
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
376
376
  }, "sourceOf");
377
377
 
378
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/search/account-list.js
378
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/search/account-list.js
379
379
  var ACCOUNT_GROUPS = "accountGroups";
380
380
  var ACCOUNT_GROUPS_SETTING = "account_groups";
381
381
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -486,6 +486,8 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
486
486
  return [...held];
487
487
  if (wanted === "personal" || wanted === "bots")
488
488
  return held.filter((one) => listedHolds(one, "messages") && isBotProvider(one.provider) === (wanted === "bots"));
489
+ if (wanted === "documents")
490
+ return held.filter((one) => listedHolds(one, "documents") || isDocumentAccount(one));
489
491
  if (isKind(wanted))
490
492
  return held.filter((one) => listedHolds(one, wanted));
491
493
  const recorded = context.profiles[wanted];
@@ -496,6 +498,22 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
496
498
  return storedAs(held, { provider, account: "" });
497
499
  return held.filter((one) => one.provider === provider);
498
500
  }, "accountsOfWord");
501
+ var isDocumentAccount = /* @__PURE__ */ __name(({ stored }) => stored !== void 0 && isDocumentAccountProvider(stored.provider), "isDocumentAccount");
502
+ var choices = /* @__PURE__ */ __name((held) => {
503
+ const kinds = held.flatMap((one) => one.kinds ?? (one.kind ? [one.kind] : []));
504
+ const messengers = held.filter((one) => listedHolds(one, "messages"));
505
+ const providers2 = held.flatMap(({ stored, provider }) => stored?.provider === ADDED_PROVIDER ? [] : [stored?.provider ?? provider]);
506
+ return [
507
+ .../* @__PURE__ */ new Set([
508
+ "all",
509
+ ...messengers.some((one) => !isBotProvider(one.provider)) ? ["personal"] : [],
510
+ ...messengers.some((one) => isBotProvider(one.provider)) ? ["bots"] : [],
511
+ ...kinds,
512
+ ...held.some(isDocumentAccount) ? ["documents"] : [],
513
+ ...providers2
514
+ ])
515
+ ].join(", ");
516
+ }, "choices");
499
517
  var keyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "keyOf");
500
518
  var sourceOf2 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "sourceOf");
501
519
  var sameAs = /* @__PURE__ */ __name((key) => (one) => one.provider === key.provider && one.account === key.account, "sameAs");
@@ -506,7 +524,8 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
506
524
  const colon = item.indexOf(":");
507
525
  if (colon === -1) {
508
526
  try {
509
- entries.push({ entry: item, accounts: accountsOfWord(item, held, context) });
527
+ const accounts = accountsOfWord(item, held, context);
528
+ entries.push({ entry: item, accounts, ...accounts.length === 0 && !group ? { holds: choices(held) } : {} });
510
529
  } catch (error) {
511
530
  if (!group || !(error instanceof CliError))
512
531
  throw error;
@@ -535,8 +554,9 @@ var entriesOfList = /* @__PURE__ */ __name((value, context) => {
535
554
  for (const item of itemsOf(value))
536
555
  entry(item);
537
556
  const { only } = context;
538
- return entries.map(({ entry: entry2, accounts }) => ({
557
+ return entries.map(({ entry: entry2, accounts, holds }) => ({
539
558
  entry: entry2,
559
+ ...holds === void 0 ? {} : { holds },
540
560
  accounts: accounts.filter((one) => only === void 0 || only.has(keyOf(one))).map(({ provider, account, kind, kinds }) => ({
541
561
  provider,
542
562
  account,
@@ -580,12 +600,14 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
580
600
  const other = known[0];
581
601
  skipped.push(other?.kind ? { source: entry, code: "validation_error", reason: reasonOf(other.kind) } : unknown2.length ? { source: entry, code: "not_found", reason: UNKNOWN_PROVIDER } : { source: entry, code: "not_found", reason: "no account in the store" });
582
602
  }
583
- if (chosen.size === 0)
584
- fail2(`--source names nothing ${what} reads: ${skipped.map(({ source, reason }) => `${source} (${reason})`).join(", ")}`);
603
+ if (chosen.size === 0) {
604
+ const words = entries.length === 1 ? entries[0]?.holds : void 0;
605
+ fail2(`--source names nothing ${what} reads: ${skipped.map(({ source, reason }) => `${source} (${reason})`).join(", ")}` + (words === void 0 ? "" : ` \u2014 the store holds ${words}`));
606
+ }
585
607
  return { accounts: [...chosen.values()], skipped };
586
608
  }, "fitting");
587
609
 
588
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
610
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
589
611
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
590
612
  var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
591
613
  const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
@@ -595,7 +617,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
595
617
  };
596
618
  }, "sourceOf");
597
619
 
598
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
620
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
599
621
  var LINK_KINDS = [
600
622
  "links-to",
601
623
  "blocked-by",
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-ZCVO6GAT.js";
5
+ } from "./chunk-VN7TKMOW.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-OAYAGQ7C.js";
9
+ } from "./chunk-BNEJKGG7.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -2,42 +2,43 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateVector
5
- } from "./chunk-C56OYYFG.js";
5
+ } from "./chunk-JXSEH64A.js";
6
6
  import {
7
7
  meaningFloor
8
- } from "./chunk-IBINGDYF.js";
8
+ } from "./chunk-GCUOZ2OA.js";
9
9
  import {
10
10
  RRF_K,
11
11
  plainQuery
12
- } from "./chunk-3QWYRZME.js";
12
+ } from "./chunk-Q5LUGY2V.js";
13
13
  import {
14
14
  MESSAGE_PARSING
15
- } from "./chunk-LBV4673S.js";
15
+ } from "./chunk-L2TURFT6.js";
16
16
  import {
17
17
  normalize
18
- } from "./chunk-7K5O2VWO.js";
18
+ } from "./chunk-4OAR7BGU.js";
19
19
  import {
20
20
  MEETING_FIELD_NAMES,
21
21
  formatMeetingReference,
22
22
  liftMeetingFields,
23
- parseMeetingReference
24
- } from "./chunk-FHOQWPQ6.js";
23
+ parseMeetingReference,
24
+ refreshMeetingIndex
25
+ } from "./chunk-TMYZKDQ7.js";
25
26
  import {
26
27
  implicitTextTerms,
27
28
  parseLucene,
28
29
  walkQuery
29
- } from "./chunk-TFDD4Q5Z.js";
30
+ } from "./chunk-Z3CPZ4I4.js";
30
31
  import {
31
32
  CliError
32
- } from "./chunk-FNLXFQN6.js";
33
+ } from "./chunk-ST3ZB7LS.js";
33
34
  import {
34
35
  __name
35
36
  } from "./chunk-ZVVMGPBJ.js";
36
37
 
37
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
38
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
38
39
  import { createHash } from "node:crypto";
39
40
 
40
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/search/question-plan.js
41
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/search/question-plan.js
41
42
  var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
42
43
  var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
43
44
  var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
@@ -174,22 +175,7 @@ var questionLookup = /* @__PURE__ */ __name((text) => {
174
175
  return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
175
176
  }, "questionLookup");
176
177
 
177
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
178
- var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
179
- let before = Number.POSITIVE_INFINITY;
180
- for (; ; ) {
181
- signal?.throwIfAborted();
182
- const { indexed, remaining } = await meetings.indexSearch({
183
- accountId,
184
- limit: 1e3,
185
- maxReadBytes: 64 * 1024 ** 2,
186
- signal
187
- });
188
- if (remaining === 0 || indexed === 0 || remaining >= before)
189
- return;
190
- before = remaining;
191
- }
192
- }, "refreshMeetingIndex");
178
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
193
179
  var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
194
180
  const { project, tag, topic, ...input } = request;
195
181
  input.signal?.throwIfAborted();
@@ -236,7 +222,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
236
222
  return { ...result, selection };
237
223
  }, "searchMeetingHits");
238
224
 
239
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
225
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
240
226
  var DEPTH = 200;
241
227
  var cursorOf = /* @__PURE__ */ __name((value, key) => {
242
228
  if (value === void 0)
@@ -382,7 +368,6 @@ export {
382
368
  lookupTerms,
383
369
  anyOfTerms,
384
370
  questionLookup,
385
- refreshMeetingIndex,
386
371
  resolveMeetingSelection,
387
372
  searchMeetingHits,
388
373
  searchMeetingsCombined
@@ -2,29 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-FNLXFQN6.js";
5
+ } from "./chunk-ST3ZB7LS.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/lock.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/lock.js
11
11
  import { mkdir as mkdir2 } from "node:fs/promises";
12
12
  import { basename, dirname } from "node:path";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
15
15
  import { randomUUID } from "node:crypto";
16
16
  import { lstat as lstat3, mkdir, open as open2, realpath as realpath2, rmdir as rmdir2, unlink as unlink3 } from "node:fs/promises";
17
17
  import { hostname as hostname2 } from "node:os";
18
18
  import { join as join2 } from "node:path";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
21
21
  import { lstat as lstat2, readdir, realpath, unlink } from "node:fs/promises";
22
22
  import { join } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
25
25
  import { hostname } from "node:os";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
28
28
  import { constants } from "node:fs";
29
29
  import { lstat, open } from "node:fs/promises";
30
30
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -90,7 +90,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
90
90
  }
91
91
  }, "syncDirectory");
92
92
 
93
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
93
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
94
94
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
95
95
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
96
96
  signal?.throwIfAborted();
@@ -134,7 +134,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
134
134
  }
135
135
  }, "leaseOwnerStatus");
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
138
138
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
139
139
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
140
140
  options.signal?.throwIfAborted();
@@ -193,7 +193,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
193
193
  return { inspect, recover };
194
194
  }, "leaseInspection");
195
195
 
196
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
196
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
197
197
  import { rmdir, unlink as unlink2 } from "node:fs/promises";
198
198
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
199
199
  let releasing;
@@ -218,7 +218,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
218
218
  };
219
219
  }, "ownedNativeLease");
220
220
 
221
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
222
222
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
223
223
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
224
224
  const { markerDirectory, legacyMarker } = layout;
@@ -289,7 +289,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  };
290
290
  }, "nativeWriterLeaseStore");
291
291
 
292
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/lock.js
292
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/lock.js
293
293
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
294
294
  const folder = dirname(path);
295
295
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -304,7 +304,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
304
304
  });
305
305
  }, "acquireLock");
306
306
 
307
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
307
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
308
308
  import { randomUUID as randomUUID2 } from "node:crypto";
309
309
  import { constants as constants2 } from "node:fs";
310
310
  import { link, open as open3, realpath as realpath3, rename, unlink as unlink4 } from "node:fs/promises";
@@ -342,7 +342,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
342
342
  }
343
343
  }, "writeFileAtomic");
344
344
 
345
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
345
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
346
346
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
347
347
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
348
348
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -371,8 +371,23 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
371
371
  }
372
372
  }, "readBoundedUtf8File");
373
373
 
374
- // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/files/safe-name.js
375
- import { basename as basename3 } from "node:path";
374
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/files/safe-name.js
375
+ import { basename as basename3, extname } from "node:path";
376
+ var MOST_NAME_BYTES = 200;
377
+ var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
378
+ var shortened = /* @__PURE__ */ __name((name, most) => {
379
+ if (bytesOf(name) <= most)
380
+ return name;
381
+ const extension = extname(name);
382
+ const kept = bytesOf(extension) <= 32 ? extension : "";
383
+ let stem = "";
384
+ for (const character of name.slice(0, name.length - kept.length)) {
385
+ if (bytesOf(stem + character) + bytesOf(kept) > most)
386
+ break;
387
+ stem += character;
388
+ }
389
+ return stem + kept;
390
+ }, "shortened");
376
391
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
377
392
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
378
393
  if (platform === "win32") {
@@ -380,7 +395,7 @@ var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
380
395
  if (/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(plain))
381
396
  return void 0;
382
397
  }
383
- return plain === "" ? void 0 : plain;
398
+ return plain === "" ? void 0 : shortened(plain, MOST_NAME_BYTES);
384
399
  }, "safeName");
385
400
 
386
401
  export {