@wirecat/drive-cli 0.57.0 → 0.59.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 (167) hide show
  1. package/dist/bin/drive.js +6 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{all-profiles-7LSZ3CC3.js → all-profiles-CVISDGMF.js} +14 -9
  4. package/dist/bundle/{anthropic-3QRM4QXB.js → anthropic-WLNQC23G.js} +11 -7
  5. package/dist/bundle/{app-server-WWNMUHID.js → app-server-P2VOONXF.js} +61 -53
  6. package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-GSLSN3OT.js → bun-sqlite-MNZICITP.js} +8 -4
  8. package/dist/bundle/chunk-2AXA5SKP.js +23 -0
  9. package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
  10. package/dist/bundle/{chunk-Q3TMNETS.js → chunk-3KJTJDDT.js} +52 -39
  11. package/dist/bundle/{chunk-4F2VRJZE.js → chunk-3KNZADHJ.js} +5080 -626
  12. package/dist/bundle/{chunk-GIQFBXQN.js → chunk-3U22QTU6.js} +12 -125
  13. package/dist/bundle/chunk-3VSUT6BD.js +35 -0
  14. package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
  15. package/dist/bundle/{chunk-6CFSDU56.js → chunk-6C6255U6.js} +16 -14
  16. package/dist/bundle/{chunk-EE7R457T.js → chunk-6CQO2FIN.js} +1569 -739
  17. package/dist/bundle/{chunk-KHNDZNQA.js → chunk-7QTVIZII.js} +5410 -3002
  18. package/dist/bundle/{chunk-HNUSPNUQ.js → chunk-A6EG7ZDS.js} +13 -13
  19. package/dist/bundle/{chunk-WBYCUBYM.js → chunk-A6SLYOP2.js} +49 -42
  20. package/dist/bundle/{chunk-TR5656OS.js → chunk-AD62XJKO.js} +162 -106
  21. package/dist/bundle/{chunk-TKVSJV5P.js → chunk-B5GBJ35N.js} +6 -4
  22. package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
  23. package/dist/bundle/{chunk-XGNADVIA.js → chunk-CBM2XAEZ.js} +28 -229
  24. package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
  25. package/dist/bundle/{chunk-L4BBK7UX.js → chunk-DI5Z4SH5.js} +5 -3
  26. package/dist/bundle/chunk-EBLA7GXY.js +45 -0
  27. package/dist/bundle/{chunk-4UQLL6RJ.js → chunk-EHEZSV6I.js} +11 -88
  28. package/dist/bundle/{chunk-6ZA4NR5H.js → chunk-EORMZCVF.js} +3 -3
  29. package/dist/bundle/{chunk-W5FOPSJZ.js → chunk-EVETU3TF.js} +10 -8
  30. package/dist/bundle/{chunk-TZHCS5MG.js → chunk-F3FOL42A.js} +2 -2
  31. package/dist/bundle/{chunk-2QLLKDE5.js → chunk-FICVPYE4.js} +206 -73
  32. package/dist/bundle/{chunk-AKPFH3KC.js → chunk-FVQCM7IQ.js} +1 -1
  33. package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
  34. package/dist/bundle/{chunk-WAVJWGUC.js → chunk-GI5JBGXH.js} +4611 -1530
  35. package/dist/bundle/{chunk-SRNXTXJN.js → chunk-GJ4ZCIOP.js} +3 -3
  36. package/dist/bundle/{chunk-GKHUHRSL.js → chunk-GT5KTGCN.js} +4 -4
  37. package/dist/bundle/{chunk-WJOKTIOJ.js → chunk-H2BKXPBL.js} +2 -2
  38. package/dist/bundle/chunk-HIOJRPCT.js +93 -0
  39. package/dist/bundle/chunk-HIP43OGZ.js +34 -0
  40. package/dist/bundle/{chunk-2ULJW5BA.js → chunk-HMZAMHKN.js} +2 -2
  41. package/dist/bundle/{chunk-64E6QXXQ.js → chunk-HWLLVLAB.js} +10 -10
  42. package/dist/bundle/{chunk-373WJIHE.js → chunk-IADOBOKB.js} +2 -2
  43. package/dist/bundle/{chunk-B3TPS7BW.js → chunk-IBZ3IBO4.js} +9 -7
  44. package/dist/bundle/{chunk-QAT6UXZZ.js → chunk-IGF6EXBR.js} +53 -48
  45. package/dist/bundle/{chunk-KYNTSA6K.js → chunk-II7LST64.js} +5 -5
  46. package/dist/bundle/{chunk-JLKNUFL2.js → chunk-IIP43FQJ.js} +2 -2
  47. package/dist/bundle/{chunk-ELIYJXIY.js → chunk-JSDVK3JA.js} +2 -2
  48. package/dist/bundle/{chunk-UKMFPBAO.js → chunk-JW2CVCUH.js} +4 -4
  49. package/dist/bundle/{chunk-O5KDIVGE.js → chunk-K4LXGZTE.js} +23 -21
  50. package/dist/bundle/{chunk-RB674T6L.js → chunk-KFZUODXB.js} +76 -20
  51. package/dist/bundle/chunk-KPRGTTJH.js +34 -0
  52. package/dist/bundle/{chunk-XJVK7ETL.js → chunk-L5SE2XZP.js} +23 -15
  53. package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
  54. package/dist/bundle/{chunk-VTJF2L5E.js → chunk-LPHMAQJQ.js} +16 -16
  55. package/dist/bundle/{chunk-566W4Q6L.js → chunk-M6I2SQN7.js} +4 -4
  56. package/dist/bundle/{chunk-NLLWLCUZ.js → chunk-MEAPA4EZ.js} +2 -2
  57. package/dist/bundle/{chunk-J2HGHSLX.js → chunk-MKCNUI72.js} +4 -4
  58. package/dist/bundle/{chunk-CD736BG3.js → chunk-MUUHUHWC.js} +2 -1
  59. package/dist/bundle/{chunk-AHBUTDS7.js → chunk-OKXSTWKW.js} +8 -8
  60. package/dist/bundle/{chunk-W6FYYQ2J.js → chunk-OMMEQJOB.js} +3 -3
  61. package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
  62. package/dist/bundle/{chunk-KM4Y55ZE.js → chunk-P3ZTW2ZM.js} +7 -7
  63. package/dist/bundle/{chunk-5KNIVHP6.js → chunk-P7WPYKSB.js} +7 -20
  64. package/dist/bundle/{chunk-RAEKC6TV.js → chunk-PAEVBAM3.js} +9 -42
  65. package/dist/bundle/{chunk-LBFFI6FE.js → chunk-PGKIOSN3.js} +9 -7
  66. package/dist/bundle/{chunk-WJPVGXKA.js → chunk-QTM7USFA.js} +8 -13
  67. package/dist/bundle/{chunk-EN7OZ5JH.js → chunk-TFH5X46A.js} +37 -22
  68. package/dist/bundle/{chunk-OZJMZSFB.js → chunk-TI55J3BA.js} +6 -4
  69. package/dist/bundle/{chunk-R5GJZPRF.js → chunk-TJXPJ3A5.js} +572 -366
  70. package/dist/bundle/chunk-UQPKAY6I.js +106 -0
  71. package/dist/bundle/{chunk-JUKVJ7M2.js → chunk-UWVNRPT7.js} +56 -40
  72. package/dist/bundle/chunk-V36RIXFA.js +201 -0
  73. package/dist/bundle/{chunk-JIGMCW4C.js → chunk-V42KAPU3.js} +6 -6
  74. package/dist/bundle/{chunk-7SNS443B.js → chunk-VT6GZAF4.js} +35 -35
  75. package/dist/bundle/{chunk-ISK4K7UE.js → chunk-VVCZS42A.js} +1 -1
  76. package/dist/bundle/chunk-W62CON5K.js +166 -0
  77. package/dist/bundle/{chunk-YZ6SYLDC.js → chunk-XCOCPXCM.js} +2 -2
  78. package/dist/bundle/{chunk-G34Y5RAC.js → chunk-YADXWQHV.js} +29 -29
  79. package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
  80. package/dist/bundle/{chunk-IJ2S53WJ.js → chunk-YV4ABH6J.js} +7 -7
  81. package/dist/bundle/{chunk-B64EY2SC.js → chunk-ZSMCJKGP.js} +42 -41
  82. package/dist/bundle/chunk-ZYCLPJ7U.js +46 -0
  83. package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
  84. package/dist/bundle/{decode-5MHMPYKE.js → decode-XTOMXMGN.js} +10 -6
  85. package/dist/bundle/dispatch-T6TW2JJB.js +412 -0
  86. package/dist/bundle/drive.js +40 -22
  87. package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
  88. package/dist/bundle/{embed-TF66ODAR.js → embed-STHKKA6G.js} +9 -5
  89. package/dist/bundle/{embedder-EDWOIAC2.js → embedder-3XZEWHRO.js} +14 -10
  90. package/dist/bundle/entry-CNOYSSSD.js +22 -0
  91. package/dist/bundle/failure-DNQYXP2T.js +26 -0
  92. package/dist/bundle/first-run-F2SI24PK.js +30 -0
  93. package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
  94. package/dist/bundle/{google-A4F2WFO4.js → google-BYNSAIQI.js} +13 -9
  95. package/dist/bundle/{google-api-ZXGQOJUI.js → google-api-4VTZH7OP.js} +59 -52
  96. package/dist/bundle/grants-EUQXSICG.js +105 -0
  97. package/dist/bundle/{identity-4IO7WGG4.js → identity-ARDPFYV5.js} +6 -4
  98. package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
  99. package/dist/bundle/{login-A4QHJ5DA.js → login-4VQEC7VI.js} +65 -58
  100. package/dist/bundle/{mcp-VVMPUDSL.js → mcp-WBHKX5E3.js} +5 -3
  101. package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
  102. package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
  103. package/dist/bundle/{node-sqlite-AFQTE4XZ.js → node-sqlite-3C6PSBIW.js} +14 -4
  104. package/dist/bundle/oauth-D6NJFPYU.js +22 -0
  105. package/dist/bundle/{open-WJCRBIP7.js → open-M2V2VYXO.js} +8 -3
  106. package/dist/bundle/{openai-3TIBDWZA.js → openai-ST2IWNUX.js} +18 -14
  107. package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
  108. package/dist/bundle/{program-AHZH65IT.js → program-Q4VWV2MR.js} +193 -147
  109. package/dist/bundle/prompt-MFIOJMAF.js +17 -0
  110. package/dist/bundle/{reasons-VHCVYH54.js → reasons-LOQ5J73F.js} +5 -3
  111. package/dist/bundle/{recognize-4EAKIMON.js → recognize-FBLMWXNE.js} +7 -3
  112. package/dist/bundle/{remote-HX3JP4EH.js → remote-XC3OXE4T.js} +10 -6
  113. package/dist/bundle/{rerank-BW3A4PUU.js → rerank-2XMKKF4S.js} +10 -6
  114. package/dist/bundle/{serve-YYOOLIBS.js → serve-Q2BQHNZB.js} +15 -10
  115. package/dist/bundle/{server-G6XTEEFI.js → server-42HPV3AH.js} +46 -39
  116. package/dist/bundle/server-EWZYN323.js +70 -0
  117. package/dist/bundle/{services-OAPILZOW.js → services-WU22S2MU.js} +100 -26
  118. package/dist/bundle/{sqlite-runtime-GTXDK4PE.js → sqlite-runtime-CSO6K6B2.js} +9 -4
  119. package/dist/bundle/start-TZWKM4AH.js +138 -0
  120. package/dist/bundle/{state-XG335LGZ.js → state-FLUT7U7R.js} +9 -5
  121. package/dist/bundle/{store-N53SJOPS.js → store-HDWMJ44E.js} +42 -17
  122. package/dist/bundle/{store-7KOXJNQP.js → store-TG6622NG.js} +20 -12
  123. package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
  124. package/dist/bundle/tokens-TXYURU4S.js +103 -0
  125. package/dist/commands/documents.d.ts +1 -0
  126. package/dist/commands/documents.d.ts.map +1 -1
  127. package/dist/commands/documents.js +14 -1
  128. package/dist/commands/documents.js.map +1 -1
  129. package/dist/commands/knowledge.d.ts +4 -0
  130. package/dist/commands/knowledge.d.ts.map +1 -1
  131. package/dist/commands/knowledge.js +8 -7
  132. package/dist/commands/knowledge.js.map +1 -1
  133. package/dist/contract-overrides.js +5 -5
  134. package/dist/contract-overrides.js.map +1 -1
  135. package/dist/knowledge-query.d.ts +2 -0
  136. package/dist/knowledge-query.d.ts.map +1 -1
  137. package/dist/program.d.ts.map +1 -1
  138. package/dist/program.js +8 -3
  139. package/dist/program.js.map +1 -1
  140. package/dist/provider-json.d.ts +2 -0
  141. package/dist/provider-json.d.ts.map +1 -1
  142. package/dist/provider-json.js +13 -0
  143. package/dist/provider-json.js.map +1 -1
  144. package/dist/reasons.d.ts.map +1 -1
  145. package/dist/reasons.js +1 -0
  146. package/dist/reasons.js.map +1 -1
  147. package/dist/store.d.ts +2 -0
  148. package/dist/store.d.ts.map +1 -1
  149. package/dist/store.js +9 -0
  150. package/dist/store.js.map +1 -1
  151. package/dist/version.d.ts +1 -1
  152. package/dist/version.js +1 -1
  153. package/package.json +5 -4
  154. package/skills/drive-cli/SKILL.md +2 -1
  155. package/dist/bundle/chunk-3BXSLNWW.js +0 -3607
  156. package/dist/bundle/chunk-CGCQNYB3.js +0 -18
  157. package/dist/bundle/command-contract-XIACCAZL.js +0 -35
  158. package/dist/bundle/entry-CWYCQ53A.js +0 -17
  159. package/dist/bundle/first-run-YIH7EHJI.js +0 -24
  160. package/dist/bundle/first-screen-THH3XD5Y.js +0 -33
  161. package/dist/bundle/grants-3Z7DG3W3.js +0 -98
  162. package/dist/bundle/oauth-46XBJBML.js +0 -18
  163. package/dist/bundle/prompt-FFGBIT4A.js +0 -13
  164. package/dist/bundle/server-YKYEUIJT.js +0 -63
  165. package/dist/bundle/store-maintenance-command-W3TI52X2.js +0 -52
  166. package/dist/bundle/tokens-P7TEHKDD.js +0 -96
  167. /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
@@ -18,9 +18,9 @@ import {
18
18
  strictObject,
19
19
  string,
20
20
  unknown
21
- } from "./chunk-GIQFBXQN.js";
21
+ } from "./chunk-3U22QTU6.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/entities/fields.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/fields.js
24
24
  var text = string();
25
25
  var id = pipe(string(), minLength(1));
26
26
  var time = isoTime;
@@ -44,7 +44,37 @@ var author = strictObject({
44
44
  name: nullable(text)
45
45
  });
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/entities/note.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
48
+ var organization = strictObject({
49
+ id,
50
+ ref: reference,
51
+ kind: picklist(["company", "team", "family", "community"]),
52
+ name: text,
53
+ scope: picklist(["personal", "work"]),
54
+ created_at: time
55
+ });
56
+ var project = strictObject({
57
+ id,
58
+ ref: reference,
59
+ key: text,
60
+ name: text,
61
+ kind: picklist(["project", "inbox"]),
62
+ type: picklist(["work", "client", "personal", "oss", "other"]),
63
+ organization_id: nullable(id),
64
+ scope: picklist(["personal", "work"]),
65
+ created_at: time
66
+ });
67
+ var reminder = strictObject({
68
+ id,
69
+ task: text,
70
+ due_at: time,
71
+ timezone: text,
72
+ state: picklist(["pending", "leased", "delivered", "cancelled"]),
73
+ revision: number(),
74
+ receipt: nullable(text)
75
+ });
76
+
77
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/note.js
48
78
  var link = {
49
79
  target_text: nullable(text),
50
80
  kind: text,
@@ -85,36 +115,6 @@ var note = strictObject({
85
115
  backlinks: optional(array(strictObject({ from: reference, ...link })))
86
116
  });
87
117
 
88
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
89
- var organization = strictObject({
90
- id,
91
- ref: reference,
92
- kind: picklist(["company", "team", "family", "community"]),
93
- name: text,
94
- scope: picklist(["personal", "work"]),
95
- created_at: time
96
- });
97
- var project = strictObject({
98
- id,
99
- ref: reference,
100
- key: text,
101
- name: text,
102
- kind: picklist(["project", "inbox"]),
103
- type: picklist(["work", "client", "personal", "oss", "other"]),
104
- organization_id: nullable(id),
105
- scope: picklist(["personal", "work"]),
106
- created_at: time
107
- });
108
- var reminder = strictObject({
109
- id,
110
- task: text,
111
- due_at: time,
112
- timezone: text,
113
- state: picklist(["pending", "leased", "delivered", "cancelled"]),
114
- revision: number(),
115
- receipt: nullable(text)
116
- });
117
-
118
118
  export {
119
119
  text,
120
120
  id,
@@ -125,8 +125,8 @@ export {
125
125
  providerMetadata,
126
126
  evidenceSource,
127
127
  author,
128
- note,
129
128
  organization,
130
129
  project,
131
- reminder
130
+ reminder,
131
+ note
132
132
  };
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-GIQFBXQN.js";
5
+ } from "./chunk-EBLA7GXY.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -0,0 +1,166 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ singleLine
5
+ } from "./chunk-HIP43OGZ.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-ZVVMGPBJ.js";
9
+
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
11
+ var DESCRIBE_FORMAT = 1;
12
+ var describeAnswer = /* @__PURE__ */ __name((tool) => ({
13
+ wcat_describe: DESCRIBE_FORMAT,
14
+ name: tool.command,
15
+ version: tool.version,
16
+ description: tool.description,
17
+ ...tool.docs ? { docs_url: tool.docs } : {}
18
+ }), "describeAnswer");
19
+ var MAX_TEXT = 200;
20
+ var clean = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() !== "" ? singleLine(value.trim()).slice(0, MAX_TEXT) : void 0, "clean");
21
+ var parseDescribe = /* @__PURE__ */ __name((text) => {
22
+ let answer;
23
+ try {
24
+ answer = JSON.parse(text);
25
+ } catch {
26
+ return void 0;
27
+ }
28
+ if (typeof answer !== "object" || answer === null || !("wcat_describe" in answer))
29
+ return void 0;
30
+ const { version, description, docs_url: docs } = answer;
31
+ const url = clean(docs);
32
+ return {
33
+ version: clean(version) ?? "",
34
+ description: clean(description) ?? "",
35
+ ...url && /^https?:\/\//.test(url) ? { docs: url } : {}
36
+ };
37
+ }, "parseDescribe");
38
+
39
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
40
+ var FIRST_PARTY_TOOLS = [
41
+ { name: "tg", package: "@wirecat/tg-cli" },
42
+ { name: "max", package: "@wirecat/max-cli" },
43
+ { name: "wa", package: "@wirecat/whatsapp-cli" },
44
+ { name: "zm", package: "@wirecat/zoom-cli" },
45
+ { name: "drive", package: "@wirecat/drive-cli" },
46
+ { name: "memo", package: "@wirecat/cli-memo" },
47
+ { name: "mail", package: "@wirecat/mail-cli" },
48
+ // memo reads email today; the name is held for a tool of its own.
49
+ { name: "email" }
50
+ ];
51
+ var BUILT_IN_COMMANDS = ["help", "version", "shortcuts", "doctor", "update", "upgrade", "app"];
52
+ var RESERVED_NAMES = [
53
+ ...FIRST_PARTY_TOOLS.map((tool) => tool.name),
54
+ ...BUILT_IN_COMMANDS,
55
+ "wcat"
56
+ ];
57
+ var TOOL_NAME = /^[a-z][a-z0-9-]{0,39}$/;
58
+ var PROGRAM_PREFIX = "wcat-";
59
+ var DESCRIBE_FLAG = "--wcat-describe";
60
+ var DISPATCH_FLAG = "--wcat-dispatch";
61
+
62
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
63
+ import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
64
+ import { join } from "node:path";
65
+ var SHIM_FORMAT = 1;
66
+ var MARK = /^(?:#|REM) wirecat-shim (\d+) (launcher|shortcut) (\S+)\r?$/m;
67
+ var NOTE = {
68
+ launcher: "Written by @wirecat/cli-base. Any WireCat tool rewrites it when it breaks; it is safe to delete.",
69
+ shortcut: "Made by `wcat shortcuts add`; `wcat shortcuts remove` takes it out."
70
+ };
71
+ var shellQuote = /* @__PURE__ */ __name((text) => `'${text.replaceAll("'", `'\\''`)}'`, "shellQuote");
72
+ var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) => {
73
+ const mark = `wirecat-shim ${SHIM_FORMAT} ${kind} ${target}`;
74
+ const extra = kind === "launcher" ? ` ${DISPATCH_FLAG}` : "";
75
+ if (platform !== "win32")
76
+ return [
77
+ {
78
+ path: join(dir, name),
79
+ text: `#!/bin/sh
80
+ # ${mark}
81
+ # ${NOTE[kind]}
82
+ exec ${shellQuote(join(dir, target))}${extra} "$@"
83
+ `
84
+ }
85
+ ];
86
+ return [
87
+ {
88
+ path: join(dir, `${name}.cmd`),
89
+ text: ["@ECHO off", `REM ${mark}`, `REM ${NOTE[kind]}`, `"%~dp0${target}"${extra} %*`, ""].join("\r\n")
90
+ },
91
+ {
92
+ path: join(dir, `${name}.ps1`),
93
+ text: [
94
+ `# ${mark}`,
95
+ `# ${NOTE[kind]}`,
96
+ // PowerShell hands a .cmd its arguments unquoted, so `a&b` would run `b`; npm and pnpm write a .ps1 beside
97
+ // their .cmd, and it is started instead whenever it is there.
98
+ `$stem = Join-Path $PSScriptRoot "${target.replace(/\.(cmd|exe|bat)$/i, "")}"`,
99
+ `$target = if (Test-Path -LiteralPath "$stem.ps1") { "$stem.ps1" } else { Join-Path $PSScriptRoot "${target}" }`,
100
+ "if ($MyInvocation.ExpectingInput) {",
101
+ ` $input | & $target${extra} @args`,
102
+ "} else {",
103
+ ` & $target${extra} @args`,
104
+ "}",
105
+ "exit $LASTEXITCODE",
106
+ ""
107
+ ].join("\r\n")
108
+ }
109
+ ];
110
+ }, "shimFiles");
111
+ var parseShim = /* @__PURE__ */ __name((text) => {
112
+ const found = MARK.exec(text.split("\n", 3).join("\n"));
113
+ if (!found)
114
+ return void 0;
115
+ return { format: Number(found[1]), kind: found[2], target: found[3] };
116
+ }, "parseShim");
117
+ var MAX_SHIM_BYTES = 4096;
118
+ var fileState = /* @__PURE__ */ __name((path) => {
119
+ let stat;
120
+ try {
121
+ stat = lstatSync(path);
122
+ } catch (error) {
123
+ return error.code === "ENOENT" ? { state: "missing" } : { state: "foreign" };
124
+ }
125
+ if (!stat.isFile() || stat.size > MAX_SHIM_BYTES)
126
+ return { state: "foreign" };
127
+ try {
128
+ const text = readFileSync(path, "utf8");
129
+ const mark = parseShim(text);
130
+ return mark ? { state: "ours", mark, text } : { state: "foreign" };
131
+ } catch {
132
+ return { state: "foreign" };
133
+ }
134
+ }, "fileState");
135
+ var exists = /* @__PURE__ */ __name((path) => {
136
+ try {
137
+ return statSync(path).isFile();
138
+ } catch {
139
+ return false;
140
+ }
141
+ }, "exists");
142
+ var writeShim = /* @__PURE__ */ __name(({ path, text }) => {
143
+ const temporary = `${path}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
144
+ try {
145
+ writeFileSync(temporary, text, { mode: 493 });
146
+ renameSync(temporary, path);
147
+ } finally {
148
+ rmSync(temporary, { force: true });
149
+ }
150
+ }, "writeShim");
151
+
152
+ export {
153
+ describeAnswer,
154
+ parseDescribe,
155
+ FIRST_PARTY_TOOLS,
156
+ BUILT_IN_COMMANDS,
157
+ TOOL_NAME,
158
+ PROGRAM_PREFIX,
159
+ DESCRIBE_FLAG,
160
+ DISPATCH_FLAG,
161
+ SHIM_FORMAT,
162
+ shimFiles,
163
+ fileState,
164
+ exists,
165
+ writeShim
166
+ };
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-4UQLL6RJ.js";
32
+ } from "./chunk-EHEZSV6I.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -8,15 +8,15 @@ import {
8
8
  MAX_FILE_BYTES,
9
9
  MAX_TEXT_CHARS,
10
10
  attachmentMaxBytes
11
- } from "./chunk-373WJIHE.js";
12
- import {
13
- CliError,
14
- isCliError
15
- } from "./chunk-GIQFBXQN.js";
11
+ } from "./chunk-IADOBOKB.js";
16
12
  import {
17
13
  importFrom,
18
14
  resolveFrom
19
15
  } from "./chunk-Y5E2WNWB.js";
16
+ import {
17
+ CliError,
18
+ isCliError
19
+ } from "./chunk-EBLA7GXY.js";
20
20
  import {
21
21
  __commonJS,
22
22
  __name,
@@ -16632,20 +16632,20 @@ var require_lib3 = __commonJS({
16632
16632
  }
16633
16633
  });
16634
16634
 
16635
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16635
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16636
16636
  import { extname as extname2 } from "node:path";
16637
16637
 
16638
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/engine.js
16638
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/engine.js
16639
16639
  import { readFileSync } from "node:fs";
16640
16640
  import { dirname, extname, join } from "node:path";
16641
16641
  import { fileURLToPath } from "node:url";
16642
16642
 
16643
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/container.js
16643
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/container.js
16644
16644
  import { setImmediate as tick } from "node:timers/promises";
16645
16645
  import { crc32 } from "node:zlib";
16646
16646
  var import_xmldom = __toESM(require_lib(), 1);
16647
16647
 
16648
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16648
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16649
16649
  var import_chardet = __toESM(require_lib2(), 1);
16650
16650
  var import_iconv_lite = __toESM(require_lib3(), 1);
16651
16651
  var SAMPLE = 65536;
@@ -16747,7 +16747,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes) => {
16747
16747
  return result.text;
16748
16748
  }, "decodeXml");
16749
16749
 
16750
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/container.js
16750
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/container.js
16751
16751
  var MAX_PART = 10 * 1024 * 1024;
16752
16752
  var MAX_ENTRIES = 1e3;
16753
16753
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -16962,7 +16962,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
16962
16962
  return found;
16963
16963
  }, "elements");
16964
16964
 
16965
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/engine.js
16965
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/engine.js
16966
16966
  var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
16967
16967
  var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
16968
16968
  var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
@@ -17020,7 +17020,7 @@ var derived = /* @__PURE__ */ __name((bytes, extractor, read) => {
17020
17020
  }
17021
17021
  }, "derived");
17022
17022
 
17023
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17023
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17024
17024
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
17025
17025
  var image = {
17026
17026
  id: "image",
@@ -17029,7 +17029,7 @@ var image = {
17029
17029
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
17030
17030
  };
17031
17031
 
17032
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17032
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17033
17033
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
17034
17034
  var doc = {
17035
17035
  id: "doc",
@@ -17041,7 +17041,7 @@ var doc = {
17041
17041
  }), "read")
17042
17042
  };
17043
17043
 
17044
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17044
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17045
17045
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
17046
17046
  var docx = {
17047
17047
  id: "docx",
@@ -17054,7 +17054,7 @@ var docx = {
17054
17054
  }), "read")
17055
17055
  };
17056
17056
 
17057
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17057
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17058
17058
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
17059
17059
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
17060
17060
  "fonttbl",
@@ -17230,7 +17230,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
17230
17230
  }, "htmlText");
17231
17231
  var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
17232
17232
 
17233
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17233
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17234
17234
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
17235
17235
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
17236
17236
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -17286,7 +17286,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
17286
17286
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
17287
17287
  }, "markdownSections");
17288
17288
 
17289
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17289
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17290
17290
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
17291
17291
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
17292
17292
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -17357,10 +17357,10 @@ var html = {
17357
17357
  }, "read")
17358
17358
  };
17359
17359
 
17360
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17360
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17361
17361
  import { posix } from "node:path";
17362
17362
 
17363
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17363
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17364
17364
  var columnName = /* @__PURE__ */ __name((column) => {
17365
17365
  let name = "";
17366
17366
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -17415,7 +17415,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
17415
17415
  return { text: parts.join("").trim(), truncated: false };
17416
17416
  }, "sheetText");
17417
17417
 
17418
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17418
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17419
17419
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
17420
17420
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
17421
17421
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -17830,7 +17830,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
17830
17830
  }
17831
17831
  }, "readDocument");
17832
17832
 
17833
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17833
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17834
17834
  var office = {
17835
17835
  id: "office",
17836
17836
  version: documentExtractor("odt"),
@@ -17841,7 +17841,7 @@ var office = {
17841
17841
  }, "read")
17842
17842
  };
17843
17843
 
17844
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17844
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17845
17845
  var pdf = {
17846
17846
  id: "pdf",
17847
17847
  version: "unpdf",
@@ -17908,7 +17908,7 @@ var pdf = {
17908
17908
  }), "read")
17909
17909
  };
17910
17910
 
17911
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
17911
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
17912
17912
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
17913
17913
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
17914
17914
  var readPlain = /* @__PURE__ */ __name((bytes) => {
@@ -17928,7 +17928,7 @@ var plain = {
17928
17928
  read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
17929
17929
  };
17930
17930
 
17931
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
17931
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
17932
17932
  var rtf = {
17933
17933
  id: "rtf",
17934
17934
  version: "v1",
@@ -17936,10 +17936,10 @@ var rtf = {
17936
17936
  read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
17937
17937
  };
17938
17938
 
17939
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17939
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17940
17940
  import { basename } from "node:path";
17941
17941
 
17942
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
17942
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
17943
17943
  var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
17944
17944
  const cells = [];
17945
17945
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -17977,7 +17977,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
17977
17977
  return { cells, truncated };
17978
17978
  }, "delimitedSpans");
17979
17979
 
17980
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17980
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17981
17981
  var DELIMITED = {
17982
17982
  ".csv": ",",
17983
17983
  ".tsv": " ",
@@ -18016,7 +18016,7 @@ var sheets = {
18016
18016
  }, "read")
18017
18017
  };
18018
18018
 
18019
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/readers/registry.js
18019
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/readers/registry.js
18020
18020
  var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
18021
18021
  var HEAD_BYTES = 1024;
18022
18022
  var readers = [...BUILT_INS];
@@ -18026,7 +18026,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
18026
18026
  return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
18027
18027
  }, "readWithRegistry");
18028
18028
 
18029
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18029
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18030
18030
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
18031
18031
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
18032
18032
  var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -8,22 +8,22 @@ import {
8
8
  XLSX,
9
9
  supported,
10
10
  tooManyEntries
11
- } from "./chunk-ISK4K7UE.js";
11
+ } from "./chunk-VVCZS42A.js";
12
12
  import {
13
13
  googleError
14
- } from "./chunk-AKPFH3KC.js";
14
+ } from "./chunk-FVQCM7IQ.js";
15
15
  import {
16
16
  extractText
17
- } from "./chunk-G34Y5RAC.js";
17
+ } from "./chunk-YADXWQHV.js";
18
18
  import {
19
19
  MAX_TEXT_CHARS
20
- } from "./chunk-373WJIHE.js";
21
- import {
22
- CliError
23
- } from "./chunk-GIQFBXQN.js";
20
+ } from "./chunk-IADOBOKB.js";
24
21
  import {
25
22
  importFrom
26
23
  } from "./chunk-Y5E2WNWB.js";
24
+ import {
25
+ CliError
26
+ } from "./chunk-EBLA7GXY.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";