@wirecat/drive-cli 0.58.0 → 0.60.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 (191) 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-ANDWOJDL.js → all-profiles-537I27Z4.js} +14 -13
  4. package/dist/bundle/{anthropic-EZPZUWGS.js → anthropic-X4NWVHDF.js} +9 -9
  5. package/dist/bundle/{app-server-67WL423B.js → app-server-KSHJKKS7.js} +53 -51
  6. package/dist/bundle/{bun-NIIYUR5F.js → bun-WTBGGCUC.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-A5ZKTIYC.js → bun-sqlite-T7Y3JFFD.js} +8 -8
  8. package/dist/bundle/{chunk-5NPFHWLP.js → chunk-22ATLSNK.js} +5 -5
  9. package/dist/bundle/{chunk-ALTG7BZQ.js → chunk-246P2DCT.js} +19 -19
  10. package/dist/bundle/{chunk-NYINLKWT.js → chunk-2AXA5SKP.js} +1 -1
  11. package/dist/bundle/{chunk-BAEIAQWH.js → chunk-3TQHIHZI.js} +2 -2
  12. package/dist/bundle/{chunk-MBNKNWOG.js → chunk-4CBZEAQ7.js} +35 -34
  13. package/dist/bundle/{chunk-SWFA36F3.js → chunk-4VHBDVY2.js} +20 -14
  14. package/dist/bundle/{chunk-Z5GDNCTJ.js → chunk-4XZXH2NM.js} +2 -2
  15. package/dist/bundle/{chunk-A4DHPOFQ.js → chunk-57QVQGBE.js} +53 -39
  16. package/dist/bundle/{chunk-SPVPKHBQ.js → chunk-5AMRCBMP.js} +78 -40
  17. package/dist/bundle/{chunk-ED5JNYN5.js → chunk-5XHLQZAG.js} +30 -28
  18. package/dist/bundle/{chunk-BLJVCJZU.js → chunk-67QXMO2G.js} +26 -26
  19. package/dist/bundle/{chunk-EFEI724Z.js → chunk-6HTKB4WC.js} +1 -1
  20. package/dist/bundle/{chunk-U2RSVKR5.js → chunk-73MNUSP3.js} +1 -1
  21. package/dist/bundle/{chunk-4UU4ONKY.js → chunk-73TTP6ET.js} +5326 -636
  22. package/dist/bundle/{chunk-4ICWGMHN.js → chunk-77C5XRH3.js} +7 -7
  23. package/dist/bundle/{chunk-W6KMNO3C.js → chunk-77YTRBL6.js} +11 -11
  24. package/dist/bundle/{chunk-YHRJUZ3O.js → chunk-ALWTUDZF.js} +6 -4
  25. package/dist/bundle/{chunk-ESF2B22R.js → chunk-AXWXQNTC.js} +14 -11
  26. package/dist/bundle/{chunk-FD7A6745.js → chunk-CKGHRWVR.js} +4 -4
  27. package/dist/bundle/{chunk-X4F3M6L6.js → chunk-D6WIWOQC.js} +4 -4
  28. package/dist/bundle/{chunk-TCJRJ3TE.js → chunk-DMHGWL5D.js} +13 -13
  29. package/dist/bundle/{chunk-AFZ33AC7.js → chunk-DQDKLZAK.js} +179 -50
  30. package/dist/bundle/{chunk-ITD7WI23.js → chunk-EBLA7GXY.js} +1 -1
  31. package/dist/bundle/{chunk-UTDL7MKT.js → chunk-EHAI773E.js} +2 -2
  32. package/dist/bundle/{chunk-RRHC5SBB.js → chunk-FO4TCH6P.js} +2 -2
  33. package/dist/bundle/{chunk-7VFD3UJQ.js → chunk-FTZNUZO7.js} +3 -3
  34. package/dist/bundle/{chunk-JEMKSWVI.js → chunk-FZOCQQ66.js} +12 -12
  35. package/dist/bundle/{chunk-P5MCZ635.js → chunk-GD6TQ6U4.js} +11 -88
  36. package/dist/bundle/{chunk-PYPLD7JO.js → chunk-GVRS5AIH.js} +2 -2
  37. package/dist/bundle/{chunk-2TASMYGM.js → chunk-HCJG7ENG.js} +3 -3
  38. package/dist/bundle/{chunk-TIXIB32T.js → chunk-HFGR33KD.js} +153 -101
  39. package/dist/bundle/{chunk-ASPIEEXN.js → chunk-HIP43OGZ.js} +1 -1
  40. package/dist/bundle/{chunk-IBJOO5FG.js → chunk-HQVIK6PM.js} +37 -19
  41. package/dist/bundle/{chunk-AL7MY7MW.js → chunk-IRZ7OF3F.js} +1 -1
  42. package/dist/bundle/{chunk-OOR6PEHV.js → chunk-IXN7Y6JA.js} +1 -1
  43. package/dist/bundle/{chunk-4EEOJ54H.js → chunk-JGUJJNGZ.js} +5930 -3061
  44. package/dist/bundle/{chunk-6THTUYPT.js → chunk-JQLIM6BH.js} +5 -5
  45. package/dist/bundle/{chunk-LSSIVBQI.js → chunk-K6XVRA6U.js} +1 -1
  46. package/dist/bundle/chunk-KEXTTZJM.js +35 -0
  47. package/dist/bundle/{chunk-3RG27IWA.js → chunk-LJ77Y3TK.js} +5 -5
  48. package/dist/bundle/{chunk-I4VUHZSD.js → chunk-LQSRVQ3V.js} +4 -3
  49. package/dist/bundle/{chunk-NKL5XXOM.js → chunk-MVNPE5FZ.js} +8 -8
  50. package/dist/bundle/{chunk-6SARLV3Z.js → chunk-MXP35VPO.js} +4 -4
  51. package/dist/bundle/{chunk-J36Z6BDZ.js → chunk-N7S2UPF3.js} +652 -373
  52. package/dist/bundle/{chunk-4GZLX2ME.js → chunk-O37ESNAP.js} +40 -33
  53. package/dist/bundle/{chunk-OZEJA67C.js → chunk-OMKUBCNN.js} +8 -8
  54. package/dist/bundle/{chunk-XQMMB6ST.js → chunk-OYNUBWD2.js} +2 -22
  55. package/dist/bundle/{chunk-OUQVZTF5.js → chunk-PDYHEWKG.js} +7 -42
  56. package/dist/bundle/{chunk-QVIJMV22.js → chunk-PETFPXLU.js} +3 -3
  57. package/dist/bundle/{chunk-TNX77VPM.js → chunk-PPL5ASW2.js} +4908 -1588
  58. package/dist/bundle/{chunk-GDRO4YMH.js → chunk-QIJWSKZL.js} +4 -4
  59. package/dist/bundle/{chunk-EFX6FIDM.js → chunk-S36HRPNS.js} +1 -1
  60. package/dist/bundle/{chunk-WICYDOVL.js → chunk-SBHSNOU4.js} +91 -23
  61. package/dist/bundle/{chunk-7YUZAEBG.js → chunk-SZXI4OXX.js} +2 -2
  62. package/dist/bundle/{chunk-O3K46QRL.js → chunk-TKW4QWCY.js} +20 -6
  63. package/dist/bundle/{chunk-UBZ2LH7N.js → chunk-TVQDMP2F.js} +1533 -602
  64. package/dist/bundle/{chunk-7AL57FCK.js → chunk-TXMTMEHW.js} +4 -4
  65. package/dist/bundle/{chunk-X5XWUQNU.js → chunk-UNJE63JK.js} +2 -2
  66. package/dist/bundle/chunk-UTFATA4K.js +93 -0
  67. package/dist/bundle/{chunk-34XHR5FL.js → chunk-UVLSWLPZ.js} +16 -16
  68. package/dist/bundle/chunk-UVYVIHEA.js +34 -0
  69. package/dist/bundle/{chunk-IH4UCM5K.js → chunk-V2VMBM7O.js} +2 -2
  70. package/dist/bundle/{chunk-KCBHOYNZ.js → chunk-V7QMHMR3.js} +8 -13
  71. package/dist/bundle/{chunk-IXXQZCNK.js → chunk-VRW6ZDTH.js} +32 -19
  72. package/dist/bundle/{chunk-VXI67T7U.js → chunk-VVCZS42A.js} +1 -1
  73. package/dist/bundle/{chunk-A7FMNTCK.js → chunk-W62CON5K.js} +4 -4
  74. package/dist/bundle/{chunk-BKM2CGG2.js → chunk-XDIEQ2CE.js} +3 -3
  75. package/dist/bundle/{chunk-OG5ERX4S.js → chunk-XFXRGQXJ.js} +2 -2
  76. package/dist/bundle/{chunk-UMJLXAJI.js → chunk-YDN2RH5S.js} +2 -2
  77. package/dist/bundle/{chunk-TMW526H3.js → chunk-YGG7UA3C.js} +5 -5
  78. package/dist/bundle/{chunk-D72FL3L3.js → chunk-YYHKVOVK.js} +35 -35
  79. package/dist/bundle/{chunk-3GXNODTB.js → chunk-ZPQS7XJA.js} +4 -4
  80. package/dist/bundle/{chunk-JZ67M3HR.js → chunk-ZYCLPJ7U.js} +1 -1
  81. package/dist/bundle/command-contract-NUIWUVYB.js +39 -0
  82. package/dist/bundle/{decode-2R6DTGRX.js → decode-35N57AFW.js} +8 -8
  83. package/dist/bundle/{dispatch-DEXAEMIN.js → dispatch-CWXZW3PL.js} +9 -9
  84. package/dist/bundle/drive.js +12 -12
  85. package/dist/bundle/{echarts-CLB22SZS.js → echarts-3P3QZWMU.js} +2 -2
  86. package/dist/bundle/{embed-RJJWOLKN.js → embed-Q6Q5IOJQ.js} +9 -9
  87. package/dist/bundle/{embedder-DWYS5JYJ.js → embedder-D44JDTAA.js} +12 -12
  88. package/dist/bundle/entry-ZHCNI7XO.js +22 -0
  89. package/dist/bundle/{failure-GBZ4L5QO.js → failure-GRMMSDCZ.js} +4 -4
  90. package/dist/bundle/first-run-3DC2SDWM.js +30 -0
  91. package/dist/bundle/first-screen-YJF4YODC.js +37 -0
  92. package/dist/bundle/{google-L776ETP4.js → google-6ZZDKFBN.js} +13 -13
  93. package/dist/bundle/{google-api-AI5ZJJ2M.js → google-api-E6MOJ4ZD.js} +57 -56
  94. package/dist/bundle/grants-GWXDH5GM.js +105 -0
  95. package/dist/bundle/{identity-MDLWK2TX.js → identity-TID7S5NE.js} +6 -6
  96. package/dist/bundle/{instructions-BXZZNAMS.js → instructions-ANJN4HV3.js} +1 -1
  97. package/dist/bundle/{login-6HHQLRHY.js → login-BGMK2ABH.js} +65 -66
  98. package/dist/bundle/{mcp-ZZUYI44D.js → mcp-WBHKX5E3.js} +2 -2
  99. package/dist/bundle/{node-R6ZNQ3NT.js → node-VOB45ES2.js} +2 -2
  100. package/dist/bundle/{node-sqlite-AVNHGMVL.js → node-sqlite-TSX6XQY2.js} +14 -8
  101. package/dist/bundle/oauth-CEOYXW6C.js +22 -0
  102. package/dist/bundle/{open-BXPLXJC2.js → open-3USWHGNR.js} +8 -7
  103. package/dist/bundle/{openai-CRO5GDBY.js → openai-YZ5VGPIP.js} +17 -17
  104. package/dist/bundle/{process-P36JP33R.js → process-44JS2W7L.js} +1 -1
  105. package/dist/bundle/{program-4DWVWSGQ.js → program-TZLAFKJV.js} +158 -103
  106. package/dist/bundle/prompt-SG7LAOXW.js +17 -0
  107. package/dist/bundle/{reasons-IHPNUP5W.js → reasons-ZK3U3CIN.js} +5 -5
  108. package/dist/bundle/{recognize-NAISVA56.js → recognize-OFW7HWTM.js} +7 -7
  109. package/dist/bundle/{remote-KCUHG5HV.js → remote-YBDRZQZ5.js} +10 -10
  110. package/dist/bundle/{rerank-Q3POCDSK.js → rerank-TQQNS5FJ.js} +10 -10
  111. package/dist/bundle/{serve-5CUOYLSG.js → serve-OPZXMVLH.js} +14 -13
  112. package/dist/bundle/{server-FXW3GARV.js → server-2D6DDIK5.js} +44 -43
  113. package/dist/bundle/server-R6G2O772.js +70 -0
  114. package/dist/bundle/{services-PEYBXZ3R.js → services-34WKT3NN.js} +101 -31
  115. package/dist/bundle/{sqlite-runtime-YMPWN5PM.js → sqlite-runtime-WPUMKLUV.js} +9 -8
  116. package/dist/bundle/{start-PFWEF44R.js → start-ZXUJZ4JV.js} +7 -7
  117. package/dist/bundle/{state-5TQ7IOJH.js → state-AV2RB3AQ.js} +9 -9
  118. package/dist/bundle/{store-P4OYYFW5.js → store-3M7N2Q5T.js} +20 -16
  119. package/dist/bundle/{store-E2VWY4O6.js → store-YKV4GAMS.js} +49 -22
  120. package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +60 -0
  121. package/dist/bundle/tokens-F63RXXEF.js +103 -0
  122. package/dist/commands/config.d.ts.map +1 -1
  123. package/dist/commands/config.js +14 -5
  124. package/dist/commands/config.js.map +1 -1
  125. package/dist/commands/context.d.ts +4 -2
  126. package/dist/commands/context.d.ts.map +1 -1
  127. package/dist/commands/context.js.map +1 -1
  128. package/dist/commands/documents.d.ts +1 -0
  129. package/dist/commands/documents.d.ts.map +1 -1
  130. package/dist/commands/documents.js +14 -1
  131. package/dist/commands/documents.js.map +1 -1
  132. package/dist/commands/knowledge.d.ts +4 -0
  133. package/dist/commands/knowledge.d.ts.map +1 -1
  134. package/dist/commands/knowledge.js +8 -7
  135. package/dist/commands/knowledge.js.map +1 -1
  136. package/dist/commands/session.d.ts.map +1 -1
  137. package/dist/commands/session.js +5 -2
  138. package/dist/commands/session.js.map +1 -1
  139. package/dist/config.d.ts +7 -0
  140. package/dist/config.d.ts.map +1 -1
  141. package/dist/config.js +22 -3
  142. package/dist/config.js.map +1 -1
  143. package/dist/contract-overrides.js +5 -5
  144. package/dist/contract-overrides.js.map +1 -1
  145. package/dist/errors.js +4 -4
  146. package/dist/errors.js.map +1 -1
  147. package/dist/knowledge-query.d.ts +2 -0
  148. package/dist/knowledge-query.d.ts.map +1 -1
  149. package/dist/login.d.ts.map +1 -1
  150. package/dist/login.js +3 -5
  151. package/dist/login.js.map +1 -1
  152. package/dist/program.d.ts.map +1 -1
  153. package/dist/program.js +13 -4
  154. package/dist/program.js.map +1 -1
  155. package/dist/provider-json.d.ts +2 -0
  156. package/dist/provider-json.d.ts.map +1 -1
  157. package/dist/provider-json.js +13 -0
  158. package/dist/provider-json.js.map +1 -1
  159. package/dist/reasons.d.ts +1 -1
  160. package/dist/reasons.d.ts.map +1 -1
  161. package/dist/reasons.js +2 -22
  162. package/dist/reasons.js.map +1 -1
  163. package/dist/registry.d.ts +1 -1
  164. package/dist/registry.d.ts.map +1 -1
  165. package/dist/registry.js +2 -1
  166. package/dist/registry.js.map +1 -1
  167. package/dist/store.d.ts +2 -0
  168. package/dist/store.d.ts.map +1 -1
  169. package/dist/store.js +9 -0
  170. package/dist/store.js.map +1 -1
  171. package/dist/tokens.js +5 -5
  172. package/dist/tokens.js.map +1 -1
  173. package/dist/upload.js +1 -1
  174. package/dist/upload.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +3 -3
  178. package/skills/drive-cli/SKILL.md +2 -1
  179. package/dist/bundle/chunk-7VUHY5LP.js +0 -18
  180. package/dist/bundle/chunk-Y6M2G7JK.js +0 -3609
  181. package/dist/bundle/command-contract-ZCXFT764.js +0 -39
  182. package/dist/bundle/entry-E6H7IUPV.js +0 -21
  183. package/dist/bundle/first-run-DI2JIG44.js +0 -30
  184. package/dist/bundle/first-screen-X5N4TCKD.js +0 -37
  185. package/dist/bundle/grants-HKGYAWL6.js +0 -104
  186. package/dist/bundle/oauth-UVU52X57.js +0 -22
  187. package/dist/bundle/prompt-AFWVGRDG.js +0 -17
  188. package/dist/bundle/server-FTLPSLRU.js +0 -69
  189. package/dist/bundle/store-maintenance-command-MWVERNK7.js +0 -58
  190. package/dist/bundle/tokens-OVG4CJO4.js +0 -102
  191. /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
@@ -7,20 +7,18 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-WICYDOVL.js";
10
+ } from "./chunk-SBHSNOU4.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-PYPLD7JO.js";
13
+ } from "./chunk-GVRS5AIH.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
17
17
  refuseLacking
18
- } from "./chunk-IXXQZCNK.js";
19
- import {
20
- ENTITIES
21
- } from "./chunk-Y6M2G7JK.js";
18
+ } from "./chunk-VRW6ZDTH.js";
22
19
  import {
23
20
  DEFAULT_OUTPUT_BYTES,
21
+ ENTITIES,
24
22
  LOCAL_WRITE,
25
23
  REMOTE_WRITE,
26
24
  answerSchema,
@@ -32,18 +30,18 @@ import {
32
30
  refuseStoreChange,
33
31
  sealed,
34
32
  startRecording
35
- } from "./chunk-4UU4ONKY.js";
33
+ } from "./chunk-73TTP6ET.js";
36
34
  import {
37
35
  currentCaller,
38
36
  keepsSuccess,
39
37
  runContextOf,
40
38
  withCaller
41
- } from "./chunk-P5MCZ635.js";
39
+ } from "./chunk-GD6TQ6U4.js";
42
40
  import {
43
41
  onlineDeps,
44
42
  servicesFor,
45
43
  storeModeDeps
46
- } from "./chunk-4EEOJ54H.js";
44
+ } from "./chunk-JGUJJNGZ.js";
47
45
  import {
48
46
  authorityAllowed,
49
47
  botApiAllowed,
@@ -54,24 +52,25 @@ import {
54
52
  newRunId,
55
53
  readKeysForCommand,
56
54
  traceOf
57
- } from "./chunk-TIXIB32T.js";
55
+ } from "./chunk-HFGR33KD.js";
58
56
  import {
59
57
  queryDescription
60
- } from "./chunk-SWFA36F3.js";
58
+ } from "./chunk-4VHBDVY2.js";
61
59
  import {
62
60
  MAX_BUFFERED_INPUT
63
- } from "./chunk-7YUZAEBG.js";
61
+ } from "./chunk-SZXI4OXX.js";
64
62
  import {
65
63
  captureStreams
66
- } from "./chunk-ALTG7BZQ.js";
64
+ } from "./chunk-246P2DCT.js";
67
65
  import {
68
66
  errorObjectOf,
69
67
  mcpErrorResult
70
- } from "./chunk-3RG27IWA.js";
68
+ } from "./chunk-LJ77Y3TK.js";
71
69
  import {
72
70
  traceIdOf
73
- } from "./chunk-RRHC5SBB.js";
71
+ } from "./chunk-FO4TCH6P.js";
74
72
  import {
73
+ COMPACT_FLAG,
75
74
  SNAKE_CASE,
76
75
  array,
77
76
  boolean,
@@ -106,19 +105,19 @@ import {
106
105
  unknown,
107
106
  word,
108
107
  writes
109
- } from "./chunk-O3K46QRL.js";
108
+ } from "./chunk-TKW4QWCY.js";
110
109
  import {
111
110
  CliError,
112
111
  errorCodes
113
- } from "./chunk-ITD7WI23.js";
112
+ } from "./chunk-EBLA7GXY.js";
114
113
  import {
115
114
  __name
116
115
  } from "./chunk-ZVVMGPBJ.js";
117
116
 
118
- // 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/agent.js
117
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/agent.js
119
118
  import { Readable } from "node:stream";
120
119
 
121
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
120
+ // 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/standards/lint.js
122
121
  var LINT_SEVERITIES = ["high", "medium", "low"];
123
122
  var lintRuleSchema = strictObject({
124
123
  id: word,
@@ -236,16 +235,17 @@ var LINT_RULES = defineLintRules([
236
235
  }
237
236
  ]);
238
237
  var baselineSchema = array(text);
239
- var overridesSchema = array(strictObject({
238
+ var overrideSchema = strictObject({
240
239
  rule: word,
241
240
  target: text,
242
241
  reason: pipe(text, minLength(10, "say why, in a sentence")),
243
242
  /** A GitHub handle or a team, `@octocat`. */
244
243
  owner: pipe(string(), regex(/^@[\w.-]+(\/[\w.-]+)?$/, "a GitHub handle or team, such as @octocat")),
245
244
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
246
- }));
245
+ });
246
+ var overridesSchema = array(overrideSchema);
247
247
 
248
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
248
+ // 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/standards/audit.js
249
249
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
250
250
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
251
251
  var AUDIT_RULES = defineAuditRules([
@@ -354,7 +354,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
354
354
  { path: ["upgrade"], meaning: "updates the CLI" }
355
355
  ]);
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
357
+ // 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/standards/fields.js
358
358
  var fieldRuleSchema = strictObject({ id: word, rule: text });
359
359
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
360
360
  var FIELD_RULES = defineFieldRules([
@@ -370,7 +370,7 @@ var FIELD_RULES = defineFieldRules([
370
370
  }
371
371
  ]);
372
372
 
373
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
373
+ // 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/standards/identifiers.js
374
374
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
375
375
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
376
376
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -392,7 +392,7 @@ var IDENTIFIERS = defineIdentifiers([
392
392
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
393
393
  ]);
394
394
 
395
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
395
+ // 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/standards/flags-calendar.js
396
396
  var CALENDAR_FLAGS = [
397
397
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
398
398
  {
@@ -466,7 +466,7 @@ var CALENDAR_FLAGS = [
466
466
  }
467
467
  ];
468
468
 
469
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
469
+ // 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/standards/flags-how.js
470
470
  var HOW_FLAGS = [
471
471
  {
472
472
  name: "--limit",
@@ -553,6 +553,12 @@ var HOW_FLAGS = [
553
553
  type: "switch",
554
554
  meaning: "each item as its reference, title, time and excerpt only"
555
555
  },
556
+ {
557
+ name: COMPACT_FLAG,
558
+ role: "output",
559
+ type: "switch",
560
+ meaning: "one line per item, built from the same answer as --json, with its paging and next steps as # lines"
561
+ },
556
562
  {
557
563
  name: "--chart-kind",
558
564
  value: "<messages|active|membership>",
@@ -744,6 +750,7 @@ var HOW_FLAGS = [
744
750
  meaning: "refuse if what it names has changed since it was read",
745
751
  replaces: ["--expected"]
746
752
  },
753
+ { name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
747
754
  {
748
755
  name: "--for-everyone",
749
756
  role: "mode",
@@ -1453,7 +1460,7 @@ var HOW_FLAGS = [
1453
1460
  }
1454
1461
  ];
1455
1462
 
1456
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1463
+ // 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/standards/flags-mail.js
1457
1464
  var MAIL_FLAGS = [
1458
1465
  {
1459
1466
  name: "--cc",
@@ -1477,7 +1484,7 @@ var MAIL_FLAGS = [
1477
1484
  }
1478
1485
  ];
1479
1486
 
1480
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1487
+ // 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/standards/flags-what.js
1481
1488
  var WHAT_FLAGS = [
1482
1489
  {
1483
1490
  name: "--analysis-provider",
@@ -2475,7 +2482,7 @@ var WHAT_FLAGS = [
2475
2482
  }
2476
2483
  ];
2477
2484
 
2478
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2485
+ // 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/standards/vocabulary.js
2479
2486
  var FLAG_TYPES = [
2480
2487
  "switch",
2481
2488
  "count",
@@ -2836,7 +2843,7 @@ var VOCABULARY = defineVocabulary({
2836
2843
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2837
2844
  });
2838
2845
 
2839
- // 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/agent.js
2846
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2840
2847
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2841
2848
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2842
2849
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3059,7 +3066,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3059
3066
  }
3060
3067
  }, "runCommandForAgent");
3061
3068
 
3062
- // 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/tool.js
3069
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3063
3070
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3064
3071
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3065
3072
  var message = pipe(
@@ -3318,7 +3325,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3318
3325
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3319
3326
  }, "failed");
3320
3327
 
3321
- // 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/surface.js
3328
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3322
3329
  import { randomUUID } from "node:crypto";
3323
3330
  var MATCHES = 8;
3324
3331
  var ANSWER = answerSchema();
@@ -3341,7 +3348,7 @@ var runnableOnly = /* @__PURE__ */ __name((result, offered) => {
3341
3348
  const body = result.structuredContent;
3342
3349
  if (result.isError || !Array.isArray(body?.next))
3343
3350
  return result;
3344
- const next = body.next.filter((step) => offered(step.command));
3351
+ const next = body.next.filter((step) => step.command === void 0 || offered(step.command));
3345
3352
  const { next: _, ...rest } = body;
3346
3353
  const kept = next.length > 0 ? { ...rest, next } : rest;
3347
3354
  return {
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-OUQVZTF5.js";
10
+ } from "./chunk-PDYHEWKG.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,18 +18,18 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-4UU4ONKY.js";
21
+ } from "./chunk-73TTP6ET.js";
22
22
  import {
23
23
  writes
24
- } from "./chunk-O3K46QRL.js";
24
+ } from "./chunk-TKW4QWCY.js";
25
25
  import {
26
26
  CliError
27
- } from "./chunk-ITD7WI23.js";
27
+ } from "./chunk-EBLA7GXY.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // 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/cli/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
94
94
  upgrade: "setup"
95
95
  };
96
96
 
97
- // 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/cli/help/commands-text.js
97
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
98
98
  var DESCRIPTION = 90;
99
99
  var COLUMN = 52;
100
100
  var short = /* @__PURE__ */ __name((text) => {
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
133
133
  `;
134
134
  }, "commandsText");
135
135
 
136
- // 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/cli/help/command-help.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
137
137
  var ARGUMENT_KINDS = {
138
138
  chat: "chat",
139
139
  chats: "chat",
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
325
325
  command.addHelpText("after", () => commandHelpText(command));
326
326
  }, "installCommandHelp");
327
327
 
328
- // 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/cli/help/first-screen.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
329
329
  var WIRECAT_TOOLS = [
330
330
  {
331
331
  command: "tg",
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  defineReasons
5
- } from "./chunk-O3K46QRL.js";
5
+ } from "./chunk-TKW4QWCY.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var ENTRIES = [
@@ -11,7 +11,6 @@ var ENTRIES = [
11
11
  ["catalog.depth-invalid", "validation_error", "tree depth must be between 0 and 50"],
12
12
  ["catalog.cycle", "invalid_response", "local folder ancestry contains a cycle"],
13
13
  ["catalog.tree-limit", "validation_error", "tree output exceeds 10000 nodes; choose a smaller folder"],
14
- ["api.unknown-method", "validation_error", "the Google method is not known; run drive api list"],
15
14
  ["mirror.none", "not_found", "the profile has no mirrors; add one with drive <profile> mirrors add"],
16
15
  ["mirror.not-folder", "validation_error", "the path to mirror is not a folder"],
17
16
  ["mirror.not-found", "not_found", "no such mirror in this profile; see drive <profile> mirrors list"],
@@ -24,19 +23,12 @@ var ENTRIES = [
24
23
  "the text is over {text_limit} characters; it was not imported",
25
24
  ["text_limit"]
26
25
  ],
26
+ ["ref.bare-number", "validation_error", "a bare number names no document; give its document:<n> ref"],
27
27
  ["download.exists", "validation_error", "the output file already exists; pass --overwrite to replace it"],
28
28
  ["export.exists", "validation_error", "the output file already exists"],
29
29
  ["export.too-large", "validation_error", "Google exports at most 10 MB of a native file"],
30
- ["file.not-file", "validation_error", "upload takes one file, not a folder"],
31
30
  ["file.unreadable", "validation_error", "the file to upload could not be read"],
32
- [
33
- "google-api.disabled",
34
- "configuration_error",
35
- "Google API is disabled for this OAuth project; its owner must enable it in Google Cloud API Library"
36
- ],
37
31
  ["listing.too-large", "provider_error", "the listing is over its bound; the checkpoint was kept"],
38
- ["oauth-client.rejected", "configuration_error", "Google rejected the OAuth client"],
39
- ["offline.refused", "permission_error", "this command needs Google; --offline was given"],
40
32
  ["policy.confirm", "confirmation_required", "the profile policy asks to confirm {permission}", ["permission"]],
41
33
  ["policy.denied", "permission_error", "the profile policy refuses {permission}", ["permission"]],
42
34
  [
@@ -48,19 +40,7 @@ var ENTRIES = [
48
40
  ["policy.unknown-key", "configuration_error", "permission {permission} names no drive command", ["permission"]],
49
41
  ["profile.busy", "provider_unavailable", "another drive command holds this profile; retry later"],
50
42
  ["profile.unknown", "validation_error", "no such profile here; see the profiles listed", ["profiles"]],
51
- ["profile.lock-refused", "permission_error", "this process is locked to another profile (DRIVE_PROFILE_LOCK)"],
52
43
  ["profile.required", "validation_error", "choose a profile: drive <profile> <command>", ["profiles"]],
53
- ["sign-in.declined", "authentication_error", "the Google sign-in was declined"],
54
- [
55
- "sign-in.expired",
56
- "authentication_error",
57
- "the Google sign-in is no longer valid; run drive <profile> session start",
58
- [],
59
- "owner.sign-in"
60
- ],
61
- ["sign-in.failed", "authentication_error", "the Google sign-in did not finish; run drive <profile> session start"],
62
- ["sign-in.not-saved", "configuration_error", "the sign-in could not be saved: its private file cannot be read"],
63
- ["sign-in.scope-missing", "permission_error", "the sign-in lacks the Google permission this command needs"],
64
44
  ["source.changed", "provider_error", "the document changed during export; retry the sync"],
65
45
  [
66
46
  "store.annotations-present",
@@ -1,58 +1,26 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- ENTITIES
5
- } from "./chunk-Y6M2G7JK.js";
6
- import {
7
- annotate,
4
+ answerEntitySchema,
5
+ answerProjectionSchema,
8
6
  answerSchema,
9
7
  describeOptions,
10
8
  metaOf
11
- } from "./chunk-4UU4ONKY.js";
9
+ } from "./chunk-73TTP6ET.js";
12
10
  import {
13
11
  keyForCommand
14
- } from "./chunk-TIXIB32T.js";
12
+ } from "./chunk-HFGR33KD.js";
15
13
  import {
16
14
  jsonSchemaOf
17
- } from "./chunk-O3K46QRL.js";
15
+ } from "./chunk-TKW4QWCY.js";
18
16
  import {
19
17
  CliError
20
- } from "./chunk-ITD7WI23.js";
18
+ } from "./chunk-EBLA7GXY.js";
21
19
  import {
22
20
  __name
23
21
  } from "./chunk-ZVVMGPBJ.js";
24
22
 
25
- // 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/cli/answer-entity.js
26
- var schemas = /* @__PURE__ */ new WeakMap();
27
- var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
28
- if (Object.hasOwn(ENTITIES, name))
29
- throw new Error(`${name} is a shared entity; use its existing schema`);
30
- if (!/^[a-z][a-z0-9_]*$/.test(name))
31
- throw new Error("an answer entity needs a lowercase name");
32
- if (!("entries" in schema) && schema.type !== "union")
33
- throw new Error("an answer entity needs an object schema or a union of object schemas");
34
- if (options.project && !("entries" in options.project) && options.project.type !== "union")
35
- throw new Error("projection needs an object schema or a union of object schemas");
36
- schemas.set(command, { name, schema, ...options });
37
- return annotate(command, { output: { entity: name } });
38
- }, "answerEntity");
39
- var answerEntitySchema = /* @__PURE__ */ __name((command) => {
40
- const output = command && metaOf(command).output;
41
- if (!output)
42
- return void 0;
43
- const name = output.view ? `${output.entity}.${output.view}` : output.entity;
44
- const shared = ENTITIES[name];
45
- if (shared)
46
- return shared;
47
- const own = schemas.get(command);
48
- return own?.name === name ? own.schema : void 0;
49
- }, "answerEntitySchema");
50
- var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
51
- const own = command && schemas.get(command);
52
- return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
53
- }, "answerProjectionSchema");
54
-
55
- // 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/cli/command-contract.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
56
24
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
57
25
  var outputOf = /* @__PURE__ */ __name((command) => {
58
26
  const entity = answerEntitySchema(command);
@@ -157,9 +125,6 @@ var commandContract = /* @__PURE__ */ __name((command) => {
157
125
  }, "commandContract");
158
126
 
159
127
  export {
160
- answerEntity,
161
- answerEntitySchema,
162
- answerProjectionSchema,
163
128
  SCHEMA_DIALECT,
164
129
  outputOf,
165
130
  commandPathOf,
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-TMW526H3.js";
5
+ } from "./chunk-YGG7UA3C.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-ITD7WI23.js";
8
+ } from "./chunk-EBLA7GXY.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {