@wirecat/drive-cli 0.72.0 → 0.73.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 (205) hide show
  1. package/README.md +4 -0
  2. package/contracts/wirecat.json +82 -18
  3. package/dist/bin/drive.js +2 -2
  4. package/dist/bundle/agent-ZOHMLVWI.js +46 -0
  5. package/dist/bundle/{all-profiles-GXGDVNQJ.js → all-profiles-HGQGKCKQ.js} +14 -14
  6. package/dist/bundle/{anthropic-H5C4GQHC.js → anthropic-2L5DN3HF.js} +8 -8
  7. package/dist/bundle/{app-server-EQ3UK4C7.js → app-server-TRSOKYYF.js} +79 -79
  8. package/dist/bundle/{bun-DTJVSRY3.js → bun-AFA5HULK.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-JIFY7MAE.js → bun-sqlite-5MW2BWV4.js} +9 -9
  10. package/dist/bundle/{chunk-FRCJHGZM.js → chunk-2G24DYSZ.js} +2 -2
  11. package/dist/bundle/{chunk-FUDUXIVG.js → chunk-2MCMUZCE.js} +1 -1
  12. package/dist/bundle/{chunk-COJTCEZP.js → chunk-2NAMKBBV.js} +31 -23
  13. package/dist/bundle/{chunk-CIFE4KPX.js → chunk-2WAGRBQT.js} +50 -47
  14. package/dist/bundle/{chunk-ZKWT6HXT.js → chunk-33RQ3YVC.js} +1 -1
  15. package/dist/bundle/{chunk-E3VWZC3K.js → chunk-36256UTA.js} +12 -12
  16. package/dist/bundle/{chunk-KP2XMCNT.js → chunk-4FTGSEBR.js} +6 -6
  17. package/dist/bundle/{chunk-MUFF2YTH.js → chunk-4KOMZRN6.js} +2 -2
  18. package/dist/bundle/{chunk-J4NUHSM7.js → chunk-4LLO4USI.js} +1 -1
  19. package/dist/bundle/{chunk-CWPYDT73.js → chunk-4VTAPSZE.js} +4 -4
  20. package/dist/bundle/{chunk-OLDQLEPA.js → chunk-4ZP3IK5I.js} +6 -6
  21. package/dist/bundle/{chunk-M2ZWYVWO.js → chunk-5CYWWYIG.js} +6 -1
  22. package/dist/bundle/{chunk-AA4LKC6W.js → chunk-5EZCDENA.js} +78 -35
  23. package/dist/bundle/{chunk-GWCDOYSC.js → chunk-5R2VPXVT.js} +1 -1
  24. package/dist/bundle/{chunk-KF3ZBQJV.js → chunk-5SQHQRNO.js} +4 -4
  25. package/dist/bundle/{chunk-77OBW43F.js → chunk-6AVHD6WB.js} +6 -6
  26. package/dist/bundle/{chunk-K652FYCO.js → chunk-6EC3LAVC.js} +2 -2
  27. package/dist/bundle/{chunk-ST35FIUG.js → chunk-6HZKX65K.js} +3 -3
  28. package/dist/bundle/{chunk-VAR3MJU6.js → chunk-6TGZCOYR.js} +3 -3
  29. package/dist/bundle/{chunk-D4JNCXS7.js → chunk-6V5556NF.js} +7 -7
  30. package/dist/bundle/{chunk-BM6V7456.js → chunk-6WZLP4CI.js} +5 -5
  31. package/dist/bundle/{chunk-ML2QIWX2.js → chunk-77SAHCDZ.js} +4 -4
  32. package/dist/bundle/{chunk-NNGA4QDR.js → chunk-AGATODLO.js} +12 -12
  33. package/dist/bundle/{chunk-OLCU7Q2B.js → chunk-B6YBN6VK.js} +1 -1
  34. package/dist/bundle/{chunk-TTPWKTVR.js → chunk-BAG4KIN5.js} +1 -1
  35. package/dist/bundle/{chunk-U7VEJ3CW.js → chunk-BAHWXDWN.js} +29 -190
  36. package/dist/bundle/{chunk-4HPXWYTE.js → chunk-BFESDJPU.js} +1 -1
  37. package/dist/bundle/{chunk-QSLOACDT.js → chunk-BOHC2GPY.js} +36 -36
  38. package/dist/bundle/{chunk-BO6EDBYJ.js → chunk-BY5D2LXE.js} +3 -3
  39. package/dist/bundle/{chunk-FBEZSA76.js → chunk-CMB6URN7.js} +5 -5
  40. package/dist/bundle/{chunk-4JS32SRX.js → chunk-CY2MNN3I.js} +5 -5
  41. package/dist/bundle/{chunk-PRYMT3OG.js → chunk-DAYHLKTM.js} +2 -2
  42. package/dist/bundle/{chunk-YWOLQEDV.js → chunk-DOUFW7RK.js} +3 -3
  43. package/dist/bundle/{chunk-CKB4XZZJ.js → chunk-DZG5SAO6.js} +14 -14
  44. package/dist/bundle/{chunk-FTG5QBSD.js → chunk-E3UFICXC.js} +35 -31
  45. package/dist/bundle/{chunk-QDUIVMEW.js → chunk-EBGI3Z6U.js} +1 -1
  46. package/dist/bundle/{chunk-ZJKXSMXK.js → chunk-EQGVNLUN.js} +42 -42
  47. package/dist/bundle/{chunk-WMG3H2VK.js → chunk-F5XMZDR5.js} +2 -2
  48. package/dist/bundle/{chunk-6ZW2ZJYC.js → chunk-FITKBN46.js} +2 -2
  49. package/dist/bundle/{chunk-ZFDSJ5YJ.js → chunk-FRQBKAPV.js} +6 -6
  50. package/dist/bundle/{chunk-DHMNCOQI.js → chunk-GW7L2G4I.js} +57 -57
  51. package/dist/bundle/{chunk-FIZOPJYY.js → chunk-HGXFOXSA.js} +1 -1
  52. package/dist/bundle/{chunk-N24YSLED.js → chunk-HYJEBBFK.js} +1892 -588
  53. package/dist/bundle/{chunk-SQHDSIFL.js → chunk-I2KGZ6XQ.js} +6 -6
  54. package/dist/bundle/{chunk-XZ7MO6EU.js → chunk-I3DZHZHM.js} +7 -7
  55. package/dist/bundle/{chunk-ZFUZEFU6.js → chunk-I3MLLVPE.js} +3 -3
  56. package/dist/bundle/{chunk-5BNMWSU2.js → chunk-IDJKYHVG.js} +2246 -2047
  57. package/dist/bundle/{chunk-SPNPJ3FZ.js → chunk-IEGU6GG7.js} +1 -1
  58. package/dist/bundle/{chunk-ZPUY3COZ.js → chunk-IKW3PRNG.js} +13 -13
  59. package/dist/bundle/{chunk-R57QUYBG.js → chunk-J3I4WOBI.js} +3 -3
  60. package/dist/bundle/{chunk-DCPWZIOV.js → chunk-JA37PJL4.js} +11 -11
  61. package/dist/bundle/{chunk-OAONP6KI.js → chunk-JJGKHGBX.js} +8 -8
  62. package/dist/bundle/{chunk-UIQ35CA5.js → chunk-JWNM6FCC.js} +1 -1
  63. package/dist/bundle/{chunk-R32DHS6J.js → chunk-JZYNXTMH.js} +51 -15
  64. package/dist/bundle/{chunk-QKBPCX7Y.js → chunk-K34B37AP.js} +1 -1
  65. package/dist/bundle/{chunk-HAGXTGJC.js → chunk-KERX3BQL.js} +4 -4
  66. package/dist/bundle/{chunk-QUZFDU4K.js → chunk-KV232TIK.js} +4 -4
  67. package/dist/bundle/{chunk-RSPBVKOC.js → chunk-KXETGAU4.js} +8 -8
  68. package/dist/bundle/{chunk-VPQSI5IU.js → chunk-L5ZZ6RLL.js} +2 -2
  69. package/dist/bundle/{chunk-OPIPG6AP.js → chunk-LGRZNEMA.js} +8 -8
  70. package/dist/bundle/{chunk-X5BGAZC5.js → chunk-M3VJTLFM.js} +6 -6
  71. package/dist/bundle/{chunk-5H747A76.js → chunk-MTH76YSQ.js} +500 -1428
  72. package/dist/bundle/{chunk-75DAHQOV.js → chunk-NA4HEM4Z.js} +3 -3
  73. package/dist/bundle/{chunk-5KWCO56H.js → chunk-OCZWU2H4.js} +2 -2
  74. package/dist/bundle/{chunk-GUMKKRE6.js → chunk-OHKAL25R.js} +63 -63
  75. package/dist/bundle/{chunk-O7CZZ36M.js → chunk-P2FOF6RR.js} +3 -3
  76. package/dist/bundle/{chunk-OHR6IZNH.js → chunk-PMYTDTT4.js} +8 -1
  77. package/dist/bundle/{chunk-XQZEMRCU.js → chunk-PQSCABAC.js} +10 -10
  78. package/dist/bundle/{chunk-GU6ICH53.js → chunk-PSFACXOC.js} +2 -2
  79. package/dist/bundle/{chunk-NBMGDRP4.js → chunk-PSWVHX53.js} +1 -1
  80. package/dist/bundle/{chunk-KFZCHJRT.js → chunk-Q2L3W7PS.js} +2 -2
  81. package/dist/bundle/{chunk-VQPT3Y7W.js → chunk-QMDVQ4AN.js} +12 -12
  82. package/dist/bundle/{chunk-GXGSC622.js → chunk-QZXFWDTX.js} +6 -6
  83. package/dist/bundle/{chunk-R64OSDOD.js → chunk-R2GLRHNK.js} +5 -5
  84. package/dist/bundle/{chunk-FNAYSZWK.js → chunk-R6K36FZ7.js} +23 -23
  85. package/dist/bundle/{chunk-7EFM6AW3.js → chunk-RHS3OBO5.js} +4 -4
  86. package/dist/bundle/{chunk-UJY26HW4.js → chunk-RNLLWYPV.js} +1 -1
  87. package/dist/bundle/{chunk-6CCO3JCM.js → chunk-RX6D64YA.js} +20 -20
  88. package/dist/bundle/{chunk-FBQJN74J.js → chunk-S7EQIYNF.js} +1 -1
  89. package/dist/bundle/{chunk-DWRUOLBF.js → chunk-SIC2CGYE.js} +4 -4
  90. package/dist/bundle/{chunk-55FH6IEL.js → chunk-SNY4WYPH.js} +5 -5
  91. package/dist/bundle/{chunk-A3S7QM5L.js → chunk-SQODI3DH.js} +2 -2
  92. package/dist/bundle/{chunk-EVG3AA5M.js → chunk-SRRNRQSQ.js} +2 -2
  93. package/dist/bundle/{chunk-IVGVVSPW.js → chunk-SYQKLEP3.js} +4 -4
  94. package/dist/bundle/{chunk-5U3NCE5R.js → chunk-TAQUEQ5B.js} +8 -8
  95. package/dist/bundle/{chunk-GIEZYBRC.js → chunk-TPIGO4JJ.js} +1 -1
  96. package/dist/bundle/{chunk-DOQMH4DC.js → chunk-U5SB2WDG.js} +12 -10
  97. package/dist/bundle/{chunk-KWDZ3KVH.js → chunk-UDP7EQNY.js} +4 -4
  98. package/dist/bundle/{chunk-4IUNYYYL.js → chunk-UZAOKKGK.js} +753 -494
  99. package/dist/bundle/{chunk-K6ZWNTXY.js → chunk-V5GIK53Z.js} +17 -17
  100. package/dist/bundle/{chunk-2Q325BBD.js → chunk-VENGEFU4.js} +8 -8
  101. package/dist/bundle/{chunk-N4GTCPML.js → chunk-VHPNTMJJ.js} +1 -1
  102. package/dist/bundle/{chunk-UWG3PRY7.js → chunk-VM3IERRK.js} +7 -7
  103. package/dist/bundle/{chunk-KLPFDFLI.js → chunk-VQ7K2EAW.js} +9 -9
  104. package/dist/bundle/{chunk-3FRQ6V4T.js → chunk-VQC4GYIQ.js} +3 -3
  105. package/dist/bundle/{chunk-XC6TRWLZ.js → chunk-VZTDELYM.js} +3 -3
  106. package/dist/bundle/{chunk-ASTKHB6B.js → chunk-W3OKRT6L.js} +179 -135
  107. package/dist/bundle/{chunk-KX4C32WD.js → chunk-WB46DJSK.js} +2 -2
  108. package/dist/bundle/{chunk-BPA3R4KN.js → chunk-WITO2RZO.js} +1 -1
  109. package/dist/bundle/{chunk-OESP4PHB.js → chunk-WJ7E6TPR.js} +17 -17
  110. package/dist/bundle/{chunk-YAIOEPKU.js → chunk-WUVNBZWC.js} +191 -160
  111. package/dist/bundle/{chunk-47L262VI.js → chunk-ZDYWRT3X.js} +7 -7
  112. package/dist/bundle/{chunk-IMAWQC5K.js → chunk-ZQMURHTL.js} +6 -6
  113. package/dist/bundle/{cli-2P5FW2RL.js → cli-A7MMBLGR.js} +107 -107
  114. package/dist/bundle/command-contract-WCGIIXYM.js +45 -0
  115. package/dist/bundle/{command-server-entry-KP2UDGLA.js → command-server-entry-557ZCX63.js} +35 -35
  116. package/dist/bundle/{decode-K2JZ5D6V.js → decode-3IPZIY2P.js} +8 -8
  117. package/dist/bundle/{dispatch-KOQZA74A.js → dispatch-UWS7A35Q.js} +9 -9
  118. package/dist/bundle/drive.js +11 -11
  119. package/dist/bundle/{echarts-URO3QGCG.js → echarts-JLCV6NKC.js} +2 -2
  120. package/dist/bundle/{embed-JLIPWTNN.js → embed-Q6H3QSMC.js} +9 -9
  121. package/dist/bundle/{embedder-LUTDO3HS.js → embedder-536EI65E.js} +12 -12
  122. package/dist/bundle/entry-3PKJTP5E.js +25 -0
  123. package/dist/bundle/{failure-GJMQLM7O.js → failure-W3VT5D3H.js} +4 -4
  124. package/dist/bundle/first-run-XTLP6VXF.js +31 -0
  125. package/dist/bundle/first-screen-3GQGULPE.js +45 -0
  126. package/dist/bundle/google-MEPVU4EP.js +46 -0
  127. package/dist/bundle/{google-api-RFXKRLL4.js → google-api-SY25TRXJ.js} +85 -85
  128. package/dist/bundle/grants-77W5MSWQ.js +133 -0
  129. package/dist/bundle/{identity-FXPB5EMT.js → identity-ZBMVHXUY.js} +6 -6
  130. package/dist/bundle/{instructions-IROIUVZI.js → instructions-XQOWVU6J.js} +1 -1
  131. package/dist/bundle/{login-WIY5VQU7.js → login-LXXYFMD3.js} +91 -91
  132. package/dist/bundle/{mcp-NJIOKW3E.js → mcp-VNOYBWW2.js} +2 -2
  133. package/dist/bundle/meeting-combined-NWWZCYN4.js +28 -0
  134. package/dist/bundle/meeting-model-K7UQ7TO5.js +29 -0
  135. package/dist/bundle/{meeting-semantic-62QNQMOM.js → meeting-semantic-Z7FAOSLQ.js} +10 -10
  136. package/dist/bundle/{node-IACCI2CW.js → node-MPZ3SVB4.js} +2 -2
  137. package/dist/bundle/{node-sqlite-WYIRC7C7.js → node-sqlite-VL5BMY34.js} +10 -10
  138. package/dist/bundle/notes-search-MF7QKFQD.js +74 -0
  139. package/dist/bundle/oauth-EYJXUTXZ.js +22 -0
  140. package/dist/bundle/{open-H32B6BCT.js → open-SERV3YXC.js} +8 -8
  141. package/dist/bundle/{openai-VHMPJJUG.js → openai-HUXETQVC.js} +20 -20
  142. package/dist/bundle/{process-RNHPF5OK.js → process-RFIII6TW.js} +1 -1
  143. package/dist/bundle/{program-GYMJ3DDH.js → program-VQ6IKDBJ.js} +353 -131
  144. package/dist/bundle/{prompt-TOG2CRCE.js → prompt-LCD5ZR7Q.js} +8 -8
  145. package/dist/bundle/{reasons-TLFQ45YX.js → reasons-GDQIXGWT.js} +5 -5
  146. package/dist/bundle/{recognize-GYGY45EY.js → recognize-GWKRFWHF.js} +7 -7
  147. package/dist/bundle/{remote-6XN2QLI5.js → remote-XM2CRZJY.js} +13 -13
  148. package/dist/bundle/{rerank-HJO3O4TW.js → rerank-HR5J35V6.js} +10 -10
  149. package/dist/bundle/{serve-XPCNLHCR.js → serve-PP3XR3GA.js} +12 -12
  150. package/dist/bundle/{server-WPT3NC5B.js → server-DD3DE536.js} +71 -71
  151. package/dist/bundle/server-NB4RGNYM.js +97 -0
  152. package/dist/bundle/{services-253KKKVU.js → services-4Y7R425J.js} +62 -58
  153. package/dist/bundle/{sqlite-runtime-EZASGJXW.js → sqlite-runtime-CVYBPVKO.js} +9 -9
  154. package/dist/bundle/{start-UHI35JFL.js → start-2KFZDMWM.js} +7 -7
  155. package/dist/bundle/{state-KJTSPFGK.js → state-AUXW4REW.js} +9 -9
  156. package/dist/bundle/{store-62J2H2A3.js → store-B7X6UN75.js} +28 -28
  157. package/dist/bundle/{store-G5B7T7M7.js → store-RADARFIH.js} +26 -26
  158. package/dist/bundle/store-maintenance-command-UTZWPNUF.js +85 -0
  159. package/dist/bundle/surface-4MUNDC3D.js +83 -0
  160. package/dist/bundle/tokens-AIKNGAOI.js +133 -0
  161. package/dist/commands/file-edit.d.ts +18 -0
  162. package/dist/commands/file-edit.d.ts.map +1 -0
  163. package/dist/commands/file-edit.js +39 -0
  164. package/dist/commands/file-edit.js.map +1 -0
  165. package/dist/commands/remote.d.ts +4 -0
  166. package/dist/commands/remote.d.ts.map +1 -1
  167. package/dist/commands/remote.js +59 -17
  168. package/dist/commands/remote.js.map +1 -1
  169. package/dist/config.d.ts +2 -0
  170. package/dist/config.d.ts.map +1 -1
  171. package/dist/config.js +17 -1
  172. package/dist/config.js.map +1 -1
  173. package/dist/drive-files.d.ts +26 -0
  174. package/dist/drive-files.d.ts.map +1 -0
  175. package/dist/drive-files.js +127 -0
  176. package/dist/drive-files.js.map +1 -0
  177. package/dist/program.d.ts.map +1 -1
  178. package/dist/program.js +52 -1
  179. package/dist/program.js.map +1 -1
  180. package/dist/reasons.d.ts.map +1 -1
  181. package/dist/reasons.js +5 -0
  182. package/dist/reasons.js.map +1 -1
  183. package/dist/upload.d.ts +3 -1
  184. package/dist/upload.d.ts.map +1 -1
  185. package/dist/upload.js +5 -4
  186. package/dist/upload.js.map +1 -1
  187. package/dist/version.d.ts +1 -1
  188. package/dist/version.js +1 -1
  189. package/package.json +3 -3
  190. package/skills/drive-cli/SKILL.md +4 -0
  191. package/dist/bundle/agent-23OB2NZP.js +0 -46
  192. package/dist/bundle/command-contract-BMQT2G5X.js +0 -45
  193. package/dist/bundle/entry-AVF6LMG7.js +0 -25
  194. package/dist/bundle/first-run-VYTIEUDA.js +0 -31
  195. package/dist/bundle/first-screen-QVZPF7KL.js +0 -45
  196. package/dist/bundle/google-VX7IPACN.js +0 -46
  197. package/dist/bundle/grants-4XWJFVD6.js +0 -133
  198. package/dist/bundle/meeting-combined-JUNV35GM.js +0 -28
  199. package/dist/bundle/meeting-model-XY4UNWWK.js +0 -29
  200. package/dist/bundle/notes-search-DEDUJKSN.js +0 -70
  201. package/dist/bundle/oauth-HXBXF4VI.js +0 -22
  202. package/dist/bundle/server-UBJZ66XE.js +0 -97
  203. package/dist/bundle/store-maintenance-command-C6T4YLVF.js +0 -85
  204. package/dist/bundle/surface-3OT64BHS.js +0 -83
  205. package/dist/bundle/tokens-EHYO6D2X.js +0 -133
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  MESSAGE_PARSING
5
- } from "./chunk-OPIPG6AP.js";
5
+ } from "./chunk-LGRZNEMA.js";
6
6
  import {
7
7
  normalize
8
- } from "./chunk-TTPWKTVR.js";
8
+ } from "./chunk-BAG4KIN5.js";
9
9
  import {
10
10
  implicitTextTerms,
11
11
  parseLucene,
12
12
  walkQuery
13
- } from "./chunk-XQZEMRCU.js";
13
+ } from "./chunk-PQSCABAC.js";
14
14
  import {
15
15
  CliError
16
- } from "./chunk-OLCU7Q2B.js";
16
+ } from "./chunk-B6YBN6VK.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/question-plan.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/search/question-plan.js
22
22
  var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
23
23
  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");
24
24
  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"));
@@ -9,15 +9,15 @@ import {
9
9
  optional,
10
10
  pipe,
11
11
  safeParse
12
- } from "./chunk-GXGSC622.js";
12
+ } from "./chunk-QZXFWDTX.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-OLCU7Q2B.js";
15
+ } from "./chunk-B6YBN6VK.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/models/options.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/models/options.js
21
21
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
22
22
  const parsed = safeParse(schema, options);
23
23
  if (!parsed.success) {
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
27
27
  }, "checkedOptions");
28
28
  var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/models/types.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/models/types.js
31
31
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
32
32
  var validateImages = /* @__PURE__ */ __name((images) => {
33
33
  if (images === void 0)
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-OLCU7Q2B.js";
5
+ } from "./chunk-B6YBN6VK.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
11
11
  import { randomUUID } from "node:crypto";
12
12
  import { constants } from "node:fs";
13
13
  import { link, open, realpath, rename, unlink } from "node:fs/promises";
@@ -45,7 +45,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
45
45
  }
46
46
  }, "writeFileAtomic");
47
47
 
48
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
48
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
49
49
  import { constants as constants2 } from "node:fs";
50
50
  import { lstat, open as open2 } from "node:fs/promises";
51
51
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -111,21 +111,21 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
111
111
  }
112
112
  }, "syncDirectory");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/lock.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/lock.js
115
115
  import { mkdir as mkdir2 } from "node:fs/promises";
116
116
  import { basename as basename2, dirname as dirname2 } from "node:path";
117
117
 
118
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
118
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
119
119
  import { randomUUID as randomUUID2 } from "node:crypto";
120
120
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
121
121
  import { hostname as hostname2 } from "node:os";
122
122
  import { join as join3 } from "node:path";
123
123
 
124
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
124
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
125
125
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
126
126
  import { join as join2 } from "node:path";
127
127
 
128
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
128
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
129
129
  import { hostname } from "node:os";
130
130
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
131
131
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -170,7 +170,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
170
170
  }
171
171
  }, "leaseOwnerStatus");
172
172
 
173
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
173
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
174
174
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
175
175
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
176
176
  options.signal?.throwIfAborted();
@@ -229,7 +229,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
229
229
  return { inspect, recover };
230
230
  }, "leaseInspection");
231
231
 
232
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
232
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
233
233
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
234
234
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
235
235
  let releasing;
@@ -254,7 +254,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
254
254
  };
255
255
  }, "ownedNativeLease");
256
256
 
257
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
257
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
258
258
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
259
259
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
260
260
  const { markerDirectory, legacyMarker } = layout;
@@ -325,7 +325,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
325
325
  };
326
326
  }, "nativeWriterLeaseStore");
327
327
 
328
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/lock.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/lock.js
329
329
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
330
330
  const folder = dirname2(path);
331
331
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -340,7 +340,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
340
340
  });
341
341
  }, "acquireLock");
342
342
 
343
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
343
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
344
344
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
345
345
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
346
346
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
8
8
  var errorCodes = [
9
9
  "validation_error",
10
10
  "configuration_error",
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/normalize.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/store/normalize.js
8
8
  var NORMALIZER_VERSION = 1;
9
9
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
10
10
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  servingProfiles
5
- } from "./chunk-YWOLQEDV.js";
5
+ } from "./chunk-DOUFW7RK.js";
6
6
  import {
7
7
  refuseLacking
8
- } from "./chunk-KFZCHJRT.js";
8
+ } from "./chunk-Q2L3W7PS.js";
9
9
  import {
10
10
  DEFAULT_PACE,
11
11
  FloodMemory,
@@ -17,211 +17,61 @@ import {
17
17
  holdEnd,
18
18
  pacePathFor,
19
19
  recipientsPathFor,
20
+ refuseUnknownPermissionKeys,
20
21
  servicesFor,
22
+ terminalAsker,
21
23
  waitForTurn
22
- } from "./chunk-N24YSLED.js";
24
+ } from "./chunk-HYJEBBFK.js";
23
25
  import {
24
26
  OFFLINE,
25
27
  chatIdIn,
26
28
  profilesOnAccount
27
- } from "./chunk-CIFE4KPX.js";
29
+ } from "./chunk-2WAGRBQT.js";
28
30
  import {
29
31
  capability,
30
32
  throughWrapper
31
- } from "./chunk-PRYMT3OG.js";
33
+ } from "./chunk-DAYHLKTM.js";
32
34
  import {
33
- AUTHORITY_KEY,
34
35
  CEILING_KEY,
35
- DEFAULT_PERMISSIONS,
36
- KEYED_UNDER_HOUSEKEEPING,
37
- WRITE_KEYS,
38
36
  asFirstWord,
39
37
  baseContext,
40
38
  environmentOf,
41
39
  fetchesUnder,
42
- issueMessage,
43
- keyForCommand,
44
40
  levelFor,
45
41
  limitBatch,
46
- permissionIssues,
47
- publicIssue,
48
42
  readKeysForCommand,
49
43
  recalledAccount,
50
44
  rememberAccount,
51
- rootOf2 as rootOf,
52
- skipFlagFor
53
- } from "./chunk-YAIOEPKU.js";
45
+ rootOf2 as rootOf
46
+ } from "./chunk-WUVNBZWC.js";
54
47
  import {
55
48
  providerErrorKey
56
- } from "./chunk-XZ7MO6EU.js";
49
+ } from "./chunk-I3DZHZHM.js";
57
50
  import {
58
51
  codeOf,
59
52
  currentOperation
60
- } from "./chunk-HAGXTGJC.js";
53
+ } from "./chunk-KERX3BQL.js";
61
54
  import {
62
55
  openStore
63
- } from "./chunk-4IUNYYYL.js";
56
+ } from "./chunk-UZAOKKGK.js";
64
57
  import {
65
58
  chatReferenceOf,
66
59
  ensureAccount,
67
60
  foldName,
68
61
  isId,
69
62
  pickPerson
70
- } from "./chunk-DCPWZIOV.js";
63
+ } from "./chunk-JA37PJL4.js";
71
64
  import {
72
65
  isCliFailure
73
- } from "./chunk-6ZW2ZJYC.js";
66
+ } from "./chunk-FITKBN46.js";
74
67
  import {
75
68
  CliError
76
- } from "./chunk-OLCU7Q2B.js";
69
+ } from "./chunk-B6YBN6VK.js";
77
70
  import {
78
71
  __name
79
72
  } from "./chunk-ZVVMGPBJ.js";
80
73
 
81
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
82
- import { openSync } from "node:fs";
83
- import { createInterface } from "node:readline";
84
- import { ReadStream } from "node:tty";
85
- var fromTerminal = /* @__PURE__ */ __name(async (question) => {
86
- if (!process.stdin.isTTY || !process.stderr.isTTY)
87
- return null;
88
- let input;
89
- try {
90
- input = new ReadStream(openSync("/dev/tty", "r"));
91
- } catch {
92
- return null;
93
- }
94
- const reader = createInterface({ input, output: process.stderr, terminal: true });
95
- try {
96
- return await new Promise((resolve, reject) => {
97
- const cancel = /* @__PURE__ */ __name(() => reject(new CliError("cancelled", "cancelled \u2014 nothing was done")), "cancel");
98
- reader.once("SIGINT", cancel);
99
- reader.once("close", cancel);
100
- reader.question(question, resolve);
101
- });
102
- } finally {
103
- reader.close();
104
- input.destroy();
105
- }
106
- }, "fromTerminal");
107
- var what = /* @__PURE__ */ __name((key, { chatId, count, personIds, forEveryone }) => [
108
- key,
109
- forEveryone ? "for everyone" : void 0,
110
- count !== void 0 ? `${count} ${count === 1 ? "item" : "items"}` : void 0,
111
- personIds?.length ? `${personIds.length} ${personIds.length === 1 ? "person" : "people"}` : void 0,
112
- chatId !== null ? `in chat ${chatId}` : void 0
113
- ].filter(Boolean).join(", "), "what");
114
- var answerOf = /* @__PURE__ */ __name(async (command, question) => {
115
- const given = command.optsWithGlobals();
116
- if (given.json === true || given.jsonl === true)
117
- return null;
118
- return (environmentOf(command).answer ?? fromTerminal)(question);
119
- }, "answerOf");
120
- var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) => {
121
- if (environmentOf(command).agent)
122
- return;
123
- const flag = skipFlagFor(key);
124
- const given = command.optsWithGlobals();
125
- if (flag === "--yes" ? given.yes === true : given.allowDangerous === true)
126
- return;
127
- const machine = given.json === true || given.jsonl === true;
128
- const answer = machine ? null : await (environmentOf(command).answer ?? fromTerminal)(`${what(key, request)} \u2014 go ahead? [y/N] `);
129
- if (answer === null) {
130
- throw new CliError("confirmation_required", `${key} asks before it acts (its permission level is ask), and nobody is at a terminal to answer \u2014 add ${flag} to go ahead`, { permission: key });
131
- }
132
- if (!/^\s*y(es)?\s*$/i.test(answer))
133
- throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
134
- }, "terminalAsker");
135
-
136
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
137
- var HOUSEKEEPING = /* @__PURE__ */ new Set([
138
- "help",
139
- "guide",
140
- "config",
141
- "session",
142
- "doctor",
143
- "commands",
144
- "complete",
145
- "upgrade",
146
- "skill",
147
- "mcp",
148
- "runs"
149
- ]);
150
- var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
151
- var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
152
- keyOf,
153
- extra: [AUTHORITY_KEY, ...extra],
154
- defaults: { ...DEFAULT_PERMISSIONS, ...defaults },
155
- ...alsoChecks ? { alsoChecks } : {}
156
- }), "commandPermissions");
157
- var pathOf = /* @__PURE__ */ __name((command) => {
158
- const words = [];
159
- for (let at = command; at?.parent; at = at.parent)
160
- words.unshift(at.name());
161
- return words;
162
- }, "pathOf");
163
- var rootOf2 = /* @__PURE__ */ __name((command) => {
164
- let at = command;
165
- while (at.parent)
166
- at = at.parent;
167
- return at;
168
- }, "rootOf");
169
- var everyCommand = /* @__PURE__ */ __name((command) => [command, ...command.commands.flatMap(everyCommand)], "everyCommand");
170
- var knownPermissionKeys = /* @__PURE__ */ __name((command, keyOf = (one) => keyForCommand(pathOf(one)), extra = []) => {
171
- const known = /* @__PURE__ */ new Set();
172
- const add = /* @__PURE__ */ __name((key) => {
173
- for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1))
174
- known.add(parts.join("."));
175
- }, "add");
176
- if (typeof keyOf !== "function") {
177
- for (const one of everyCommand(rootOf2(command))) {
178
- const key = keyOf.keyOf(pathOf(one));
179
- if (key)
180
- add(key);
181
- }
182
- for (const key of [...keyOf.extra, ...extra])
183
- add(key);
184
- return known;
185
- }
186
- for (const one of everyCommand(rootOf2(command))) {
187
- const own = keyOf(one);
188
- const key = own === void 0 ? keyForCommand(pathOf(one)) : own;
189
- if (key)
190
- add(key);
191
- }
192
- for (const key of [...WRITE_KEYS, ...extra])
193
- add(key);
194
- return known;
195
- }, "knownPermissionKeys");
196
- var RENAMED = /* @__PURE__ */ new WeakMap();
197
- var markRenamedPermissionKeys = /* @__PURE__ */ __name((command, renamed) => {
198
- if (renamed.size > 0)
199
- RENAMED.set(command, renamed);
200
- }, "markRenamedPermissionKeys");
201
- var renamedPermissionKeys = /* @__PURE__ */ __name((command) => new Map(everyCommand(rootOf2(command)).flatMap((one) => [...RENAMED.get(one) ?? []])), "renamedPermissionKeys");
202
- var knownBeside = /* @__PURE__ */ __name((key, known) => {
203
- const parent = key.split(".").slice(0, -1).join(".");
204
- const depth = parent === "" ? 1 : parent.split(".").length + 1;
205
- return [...known].filter((one) => one.split(".").length === depth && (parent === "" || one.startsWith(`${parent}.`))).sort();
206
- }, "knownBeside");
207
- var unknownPermissionKeys = /* @__PURE__ */ __name((levels, known) => Object.keys(levels).filter((key) => key !== CEILING_KEY && !known.has(key)), "unknownPermissionKeys");
208
- var unknownPermissionIssues = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
209
- const saved = settings.savedPermissions ?? Object.keys(settings.permissions).filter((key) => key !== CEILING_KEY && settings.permissionSources[key] !== "flag").map((key) => ({ key, at: ["profiles", settings.profile, "permissions", key] }));
210
- return permissionIssues(saved, knownPermissionKeys(command, keyOf), { file: settings.configPath, tool }, renamedPermissionKeys(command)).map(publicIssue);
211
- }, "unknownPermissionIssues");
212
- var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
213
- const issues = unknownPermissionIssues(command, settings, tool, keyOf);
214
- if (issues.length > 0)
215
- throw new CliError("configuration_error", issueMessage(issues), { permission: issues[0]?.key });
216
- const flagged = Object.keys(settings.permissions).filter((key2) => settings.permissionSources[key2] === "flag");
217
- const [key] = unknownPermissionKeys(Object.fromEntries(flagged.map((one) => [one, true])), knownPermissionKeys(command, keyOf));
218
- if (key === void 0)
219
- return;
220
- const now = renamedPermissionKeys(command).get(key);
221
- throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
222
- }, "refuseUnknownPermissionKeys");
223
-
224
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
225
75
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
226
76
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
227
77
  let warned = false;
@@ -797,15 +647,15 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
797
647
  }
798
648
  }, "keep");
799
649
 
800
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
650
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
801
651
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
802
652
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
803
653
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
804
654
  var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
805
655
  var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
806
- const kept = /* @__PURE__ */ __name(async (operation, what2) => {
656
+ const kept = /* @__PURE__ */ __name(async (operation, what) => {
807
657
  try {
808
- await what2();
658
+ await what();
809
659
  } catch (error) {
810
660
  warn(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
811
661
  event: "warning",
@@ -894,7 +744,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
894
744
  });
895
745
  }, "flooded");
896
746
 
897
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
747
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
898
748
  var observed = /* @__PURE__ */ __name((messenger, events) => {
899
749
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
900
750
  const write = currentOperation();
@@ -993,7 +843,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
993
843
  counts[part] = (counts[part] ?? 0) + items.length;
994
844
  }, "byPart");
995
845
 
996
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
846
+ // node_modules/.pnpm/@wirecat+cli-core@0.735.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_7fb22530c6bf05ba7be1bbee4c3f13e5/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
997
847
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
998
848
  let opened;
999
849
  return {
@@ -1087,7 +937,7 @@ var settled = /* @__PURE__ */ __name(async (pending, ms) => {
1087
937
  clearTimeout(timer);
1088
938
  }
1089
939
  }, "settled");
1090
- var listened = /* @__PURE__ */ __name(({ run, operation, what: what2 }, events, warn, waitMs) => {
940
+ var listened = /* @__PURE__ */ __name(({ run, operation, what }, events, warn, waitMs) => {
1091
941
  const abort = new AbortController();
1092
942
  let closing = false;
1093
943
  const ended = Promise.resolve().then(() => run(abort.signal)).catch((error) => {
@@ -1095,11 +945,11 @@ var listened = /* @__PURE__ */ __name(({ run, operation, what: what2 }, events,
1095
945
  return;
1096
946
  const warning = { event: "warning", code: "listen_failed", operation };
1097
947
  events(warning);
1098
- warn(`${what2} arriving during this command are not saved: ${error instanceof Error ? error.message : String(error)}`, warning);
948
+ warn(`${what} arriving during this command are not saved: ${error instanceof Error ? error.message : String(error)}`, warning);
1099
949
  });
1100
950
  return {
1101
951
  operation,
1102
- what: what2,
952
+ what,
1103
953
  closing: /* @__PURE__ */ __name(() => {
1104
954
  closing = true;
1105
955
  }, "closing"),
@@ -1190,10 +1040,10 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
1190
1040
  events(warning);
1191
1041
  warn(text, warning);
1192
1042
  }, "warned");
1193
- passives.forEach(({ operation, what: what2 }, at) => {
1043
+ passives.forEach(({ operation, what }, at) => {
1194
1044
  if (ended[at])
1195
1045
  return;
1196
- warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${what2} at exit`);
1046
+ warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${what} at exit`);
1197
1047
  });
1198
1048
  await settled(/* @__PURE__ */ new Set([...pending, ...announcing]), closeWaitMs);
1199
1049
  closing.abort();
@@ -1252,14 +1102,14 @@ var warnUnserved = /* @__PURE__ */ __name(async (messenger, profile, { env, rend
1252
1102
  const newest = (await store.chats.chatStats(account)).map((one) => one.newestAt).reduce((latest, at) => at !== null && (latest === null || at > latest) ? at : latest, null);
1253
1103
  renderer.warn(`no \`${messenger.app.command} ${profile} serve\` keeps profile "${profile}" up to date \u2014 ` + (newest === null ? "the local store holds no messages yet" : `the newest stored message is from ${newest}`));
1254
1104
  }, "warnUnserved");
1255
- var pathOf2 = /* @__PURE__ */ __name((command) => {
1105
+ var pathOf = /* @__PURE__ */ __name((command) => {
1256
1106
  const words = [];
1257
1107
  for (let at = command; at?.parent; at = at.parent)
1258
1108
  words.unshift(at.name());
1259
1109
  return words;
1260
1110
  }, "pathOf");
1261
1111
  var refuseDenied = /* @__PURE__ */ __name((command, settings) => {
1262
- for (const key of readKeysForCommand(pathOf2(command))) {
1112
+ for (const key of readKeysForCommand(pathOf(command))) {
1263
1113
  const { level, key: named } = levelFor(settings.permissions, key);
1264
1114
  if (level !== "deny")
1265
1115
  continue;
@@ -1282,7 +1132,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
1282
1132
  const base = baseContext(command, (flags, options) => messenger.resolveSettings(flags, { ...options, ...resolving }));
1283
1133
  const { profile } = base.settings;
1284
1134
  refuseDenied(command, base.settings);
1285
- refuseLacking(messenger, pathOf2(command));
1135
+ refuseLacking(messenger, pathOf(command));
1286
1136
  refuseUnknownPermissionKeys(command, base.settings, app.command, messenger.permissionKey);
1287
1137
  const warn = /* @__PURE__ */ __name((text, warning) => base.renderer.warn(text, warning), "warn");
1288
1138
  const accountFor = /* @__PURE__ */ __name(() => {
@@ -1394,17 +1244,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
1394
1244
  }, "messengerContext");
1395
1245
 
1396
1246
  export {
1397
- answerOf,
1398
- terminalAsker,
1399
- commandPathKey,
1400
- commandPermissions,
1401
- knownPermissionKeys,
1402
- markRenamedPermissionKeys,
1403
- renamedPermissionKeys,
1404
- knownBeside,
1405
- unknownPermissionKeys,
1406
- unknownPermissionIssues,
1407
- refuseUnknownPermissionKeys,
1408
1247
  stored,
1409
1248
  fill,
1410
1249
  connectFor,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
8
8
  import { existsSync } from "node:fs";
9
9
  import { win32 } from "node:path";
10
10
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");