@wirecat/drive-cli 0.56.0 → 0.58.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 (127) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{all-profiles-7LSZ3CC3.js → all-profiles-ANDWOJDL.js} +10 -6
  4. package/dist/bundle/{anthropic-3QRM4QXB.js → anthropic-EZPZUWGS.js} +10 -6
  5. package/dist/bundle/{app-server-WWNMUHID.js → app-server-67WL423B.js} +57 -51
  6. package/dist/bundle/{bun-sqlite-GSLSN3OT.js → bun-sqlite-A5ZKTIYC.js} +7 -3
  7. package/dist/bundle/{chunk-L4BBK7UX.js → chunk-2TASMYGM.js} +4 -2
  8. package/dist/bundle/{chunk-VTJF2L5E.js → chunk-34XHR5FL.js} +5 -5
  9. package/dist/bundle/{chunk-JIGMCW4C.js → chunk-3GXNODTB.js} +3 -3
  10. package/dist/bundle/chunk-3RG27IWA.js +201 -0
  11. package/dist/bundle/{chunk-KHNDZNQA.js → chunk-4EEOJ54H.js} +40 -36
  12. package/dist/bundle/{chunk-Q3TMNETS.js → chunk-4GZLX2ME.js} +27 -21
  13. package/dist/bundle/{chunk-B3TPS7BW.js → chunk-4ICWGMHN.js} +6 -4
  14. package/dist/bundle/{chunk-4F2VRJZE.js → chunk-4UU4ONKY.js} +31 -23
  15. package/dist/bundle/{chunk-IJ2S53WJ.js → chunk-5NPFHWLP.js} +7 -7
  16. package/dist/bundle/{chunk-566W4Q6L.js → chunk-6SARLV3Z.js} +1 -1
  17. package/dist/bundle/{chunk-AKPFH3KC.js → chunk-6THTUYPT.js} +1 -1
  18. package/dist/bundle/{chunk-GKHUHRSL.js → chunk-7AL57FCK.js} +1 -1
  19. package/dist/bundle/{chunk-SRNXTXJN.js → chunk-7VFD3UJQ.js} +1 -1
  20. package/dist/bundle/{chunk-CGCQNYB3.js → chunk-7VUHY5LP.js} +1 -1
  21. package/dist/bundle/{chunk-TZHCS5MG.js → chunk-7YUZAEBG.js} +1 -1
  22. package/dist/bundle/{chunk-JUKVJ7M2.js → chunk-A4DHPOFQ.js} +7 -5
  23. package/dist/bundle/chunk-A7FMNTCK.js +166 -0
  24. package/dist/bundle/{chunk-2QLLKDE5.js → chunk-AFZ33AC7.js} +47 -43
  25. package/dist/bundle/{chunk-XGNADVIA.js → chunk-ALTG7BZQ.js} +14 -215
  26. package/dist/bundle/chunk-ASPIEEXN.js +34 -0
  27. package/dist/bundle/{chunk-WJOKTIOJ.js → chunk-BAEIAQWH.js} +1 -1
  28. package/dist/bundle/{chunk-W6FYYQ2J.js → chunk-BKM2CGG2.js} +2 -2
  29. package/dist/bundle/{chunk-G34Y5RAC.js → chunk-BLJVCJZU.js} +5 -5
  30. package/dist/bundle/{chunk-7SNS443B.js → chunk-D72FL3L3.js} +1 -1
  31. package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
  32. package/dist/bundle/{chunk-B64EY2SC.js → chunk-ED5JNYN5.js} +27 -27
  33. package/dist/bundle/{chunk-64E6QXXQ.js → chunk-ESF2B22R.js} +7 -7
  34. package/dist/bundle/{chunk-5KNIVHP6.js → chunk-FD7A6745.js} +6 -19
  35. package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
  36. package/dist/bundle/{chunk-TKVSJV5P.js → chunk-GDRO4YMH.js} +5 -3
  37. package/dist/bundle/{chunk-4MJA4MLV.js → chunk-I4VUHZSD.js} +5 -5
  38. package/dist/bundle/{chunk-NL2KXCFT.js → chunk-IBJOO5FG.js} +18 -16
  39. package/dist/bundle/{chunk-J2HGHSLX.js → chunk-IH4UCM5K.js} +3 -3
  40. package/dist/bundle/chunk-ITD7WI23.js +45 -0
  41. package/dist/bundle/{chunk-EN7OZ5JH.js → chunk-IXXQZCNK.js} +13 -11
  42. package/dist/bundle/{chunk-R5GJZPRF.js → chunk-J36Z6BDZ.js} +6 -4
  43. package/dist/bundle/{chunk-6CFSDU56.js → chunk-JEMKSWVI.js} +15 -13
  44. package/dist/bundle/chunk-JZ67M3HR.js +46 -0
  45. package/dist/bundle/{chunk-WJPVGXKA.js → chunk-KCBHOYNZ.js} +3 -3
  46. package/dist/bundle/{chunk-QAT6UXZZ.js → chunk-MBNKNWOG.js} +43 -39
  47. package/dist/bundle/{chunk-AHBUTDS7.js → chunk-NKL5XXOM.js} +1 -1
  48. package/dist/bundle/chunk-NYINLKWT.js +23 -0
  49. package/dist/bundle/{chunk-GIQFBXQN.js → chunk-O3K46QRL.js} +5 -120
  50. package/dist/bundle/{chunk-DJ75AG3K.js → chunk-OG5ERX4S.js} +2 -2
  51. package/dist/bundle/{chunk-RAEKC6TV.js → chunk-OUQVZTF5.js} +7 -5
  52. package/dist/bundle/{chunk-W5FOPSJZ.js → chunk-OZEJA67C.js} +6 -4
  53. package/dist/bundle/{chunk-4UQLL6RJ.js → chunk-P5MCZ635.js} +2 -2
  54. package/dist/bundle/{chunk-YZ6SYLDC.js → chunk-PYPLD7JO.js} +1 -1
  55. package/dist/bundle/{chunk-6ZA4NR5H.js → chunk-QVIJMV22.js} +2 -2
  56. package/dist/bundle/chunk-RRHC5SBB.js +106 -0
  57. package/dist/bundle/{chunk-WBYCUBYM.js → chunk-SPVPKHBQ.js} +25 -23
  58. package/dist/bundle/{chunk-XJVK7ETL.js → chunk-SWFA36F3.js} +5 -3
  59. package/dist/bundle/{chunk-HNUSPNUQ.js → chunk-TCJRJ3TE.js} +1 -1
  60. package/dist/bundle/{chunk-TR5656OS.js → chunk-TIXIB32T.js} +16 -12
  61. package/dist/bundle/{chunk-KM4Y55ZE.js → chunk-TMW526H3.js} +4 -4
  62. package/dist/bundle/{chunk-WAVJWGUC.js → chunk-TNX77VPM.js} +35 -33
  63. package/dist/bundle/{chunk-EE7R457T.js → chunk-UBZ2LH7N.js} +229 -221
  64. package/dist/bundle/{chunk-2ULJW5BA.js → chunk-UMJLXAJI.js} +1 -1
  65. package/dist/bundle/{chunk-ELIYJXIY.js → chunk-UTDL7MKT.js} +1 -1
  66. package/dist/bundle/{chunk-ISK4K7UE.js → chunk-VXI67T7U.js} +1 -1
  67. package/dist/bundle/{chunk-5E67RIXD.js → chunk-W6KMNO3C.js} +9 -7
  68. package/dist/bundle/{chunk-RB674T6L.js → chunk-WICYDOVL.js} +15 -11
  69. package/dist/bundle/{chunk-UKMFPBAO.js → chunk-X4F3M6L6.js} +3 -3
  70. package/dist/bundle/{chunk-373WJIHE.js → chunk-X5XWUQNU.js} +1 -1
  71. package/dist/bundle/{chunk-CD736BG3.js → chunk-XQMMB6ST.js} +1 -1
  72. package/dist/bundle/{chunk-3BXSLNWW.js → chunk-Y6M2G7JK.js} +12 -10
  73. package/dist/bundle/{chunk-OZJMZSFB.js → chunk-YHRJUZ3O.js} +2 -2
  74. package/dist/bundle/{chunk-JLKNUFL2.js → chunk-Z5GDNCTJ.js} +1 -1
  75. package/dist/bundle/command-contract-ZCXFT764.js +39 -0
  76. package/dist/bundle/{decode-5MHMPYKE.js → decode-2R6DTGRX.js} +9 -5
  77. package/dist/bundle/dispatch-DEXAEMIN.js +412 -0
  78. package/dist/bundle/drive.js +40 -22
  79. package/dist/bundle/{embed-TF66ODAR.js → embed-RJJWOLKN.js} +9 -5
  80. package/dist/bundle/{embedder-EDWOIAC2.js → embedder-DWYS5JYJ.js} +11 -7
  81. package/dist/bundle/entry-E6H7IUPV.js +21 -0
  82. package/dist/bundle/failure-GBZ4L5QO.js +26 -0
  83. package/dist/bundle/first-run-DI2JIG44.js +30 -0
  84. package/dist/bundle/first-screen-X5N4TCKD.js +37 -0
  85. package/dist/bundle/{google-A4F2WFO4.js → google-L776ETP4.js} +13 -9
  86. package/dist/bundle/{google-api-ZXGQOJUI.js → google-api-AI5ZJJ2M.js} +54 -48
  87. package/dist/bundle/grants-HKGYAWL6.js +104 -0
  88. package/dist/bundle/{identity-6DGQA6DX.js → identity-MDLWK2TX.js} +5 -3
  89. package/dist/bundle/{login-OUOGSTPH.js → login-6HHQLRHY.js} +60 -54
  90. package/dist/bundle/{mcp-VVMPUDSL.js → mcp-ZZUYI44D.js} +4 -2
  91. package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
  92. package/dist/bundle/{node-sqlite-AFQTE4XZ.js → node-sqlite-AVNHGMVL.js} +7 -3
  93. package/dist/bundle/{oauth-46XBJBML.js → oauth-UVU52X57.js} +9 -5
  94. package/dist/bundle/{open-WJCRBIP7.js → open-BXPLXJC2.js} +7 -3
  95. package/dist/bundle/{openai-3TIBDWZA.js → openai-CRO5GDBY.js} +14 -10
  96. package/dist/bundle/{program-7FRXMZNK.js → program-4DWVWSGQ.js} +135 -127
  97. package/dist/bundle/prompt-AFWVGRDG.js +17 -0
  98. package/dist/bundle/{reasons-VHCVYH54.js → reasons-IHPNUP5W.js} +4 -2
  99. package/dist/bundle/{recognize-4EAKIMON.js → recognize-NAISVA56.js} +7 -3
  100. package/dist/bundle/{remote-HX3JP4EH.js → remote-KCUHG5HV.js} +10 -6
  101. package/dist/bundle/{rerank-BW3A4PUU.js → rerank-Q3POCDSK.js} +9 -5
  102. package/dist/bundle/{serve-YYOOLIBS.js → serve-5CUOYLSG.js} +10 -6
  103. package/dist/bundle/server-FTLPSLRU.js +69 -0
  104. package/dist/bundle/{server-G6XTEEFI.js → server-FXW3GARV.js} +42 -36
  105. package/dist/bundle/{services-OAPILZOW.js → services-PEYBXZ3R.js} +30 -24
  106. package/dist/bundle/{sqlite-runtime-GTXDK4PE.js → sqlite-runtime-YMPWN5PM.js} +8 -4
  107. package/dist/bundle/start-PFWEF44R.js +138 -0
  108. package/dist/bundle/{state-XG335LGZ.js → state-5TQ7IOJH.js} +8 -4
  109. package/dist/bundle/{store-N53SJOPS.js → store-E2VWY4O6.js} +18 -14
  110. package/dist/bundle/{store-7KOXJNQP.js → store-P4OYYFW5.js} +15 -11
  111. package/dist/bundle/store-maintenance-command-MWVERNK7.js +58 -0
  112. package/dist/bundle/tokens-OVG4CJO4.js +102 -0
  113. package/dist/config.d.ts.map +1 -1
  114. package/dist/config.js +1 -1
  115. package/dist/config.js.map +1 -1
  116. package/dist/version.d.ts +1 -1
  117. package/dist/version.js +1 -1
  118. package/package.json +3 -2
  119. package/dist/bundle/command-contract-XIACCAZL.js +0 -35
  120. package/dist/bundle/entry-CWYCQ53A.js +0 -17
  121. package/dist/bundle/first-run-YIH7EHJI.js +0 -24
  122. package/dist/bundle/first-screen-THH3XD5Y.js +0 -33
  123. package/dist/bundle/grants-B3HZRRAQ.js +0 -98
  124. package/dist/bundle/prompt-FFGBIT4A.js +0 -13
  125. package/dist/bundle/server-YKYEUIJT.js +0 -63
  126. package/dist/bundle/store-maintenance-command-W3TI52X2.js +0 -52
  127. package/dist/bundle/tokens-CG3A5KS4.js +0 -96
@@ -13,10 +13,7 @@ import {
13
13
  registerPrompts,
14
14
  stdinFieldOf,
15
15
  syncsFirst
16
- } from "./chunk-WBYCUBYM.js";
17
- import {
18
- answeredWire
19
- } from "./chunk-EFX6FIDM.js";
16
+ } from "./chunk-SPVPKHBQ.js";
20
17
  import {
21
18
  BinaryResource,
22
19
  Picture,
@@ -37,45 +34,35 @@ import {
37
34
  tool,
38
35
  toolKey,
39
36
  toolsFromCommands
40
- } from "./chunk-Q3TMNETS.js";
37
+ } from "./chunk-4GZLX2ME.js";
41
38
  import {
42
39
  agentJson,
43
40
  skillResource
44
- } from "./chunk-RB674T6L.js";
41
+ } from "./chunk-WICYDOVL.js";
42
+ import {
43
+ answeredWire
44
+ } from "./chunk-EFX6FIDM.js";
45
45
  import {
46
46
  StdioServerTransport,
47
47
  callerOf,
48
48
  callingAgent,
49
49
  serveStdio
50
- } from "./chunk-YZ6SYLDC.js";
51
- import {
52
- instructions
53
- } from "./chunk-EFEI724Z.js";
50
+ } from "./chunk-PYPLD7JO.js";
54
51
  import {
55
52
  McpServer,
56
53
  ResourceTemplate
57
54
  } from "./chunk-5D4AEUVA.js";
58
- import {
59
- mcpHttpMarker
60
- } from "./chunk-GKHUHRSL.js";
61
55
  import {
62
56
  connectedFor,
63
57
  guardFor
64
- } from "./chunk-B64EY2SC.js";
58
+ } from "./chunk-ED5JNYN5.js";
65
59
  import {
66
60
  lackedNeed,
67
61
  wholeList
68
- } from "./chunk-EN7OZ5JH.js";
69
- import {
70
- capability,
71
- dateWindow,
72
- imageSize,
73
- servicesFor,
74
- storedDeps
75
- } from "./chunk-KHNDZNQA.js";
62
+ } from "./chunk-IXXQZCNK.js";
76
63
  import {
77
64
  findCommand
78
- } from "./chunk-RAEKC6TV.js";
65
+ } from "./chunk-OUQVZTF5.js";
79
66
  import {
80
67
  DEFAULT_OUTPUT_BYTES,
81
68
  changesAuthorityAt,
@@ -88,39 +75,53 @@ import {
88
75
  rootOf2 as rootOf,
89
76
  sealed,
90
77
  snakeKeys
91
- } from "./chunk-4F2VRJZE.js";
78
+ } from "./chunk-4UU4ONKY.js";
92
79
  import {
93
80
  withCaller
94
- } from "./chunk-4UQLL6RJ.js";
81
+ } from "./chunk-P5MCZ635.js";
82
+ import {
83
+ readOnlyLockOf
84
+ } from "./chunk-Z5GDNCTJ.js";
85
+ import {
86
+ mcpHttpMarker
87
+ } from "./chunk-7AL57FCK.js";
88
+ import {
89
+ instructions
90
+ } from "./chunk-EFEI724Z.js";
91
+ import {
92
+ capability,
93
+ dateWindow,
94
+ imageSize,
95
+ servicesFor,
96
+ storedDeps
97
+ } from "./chunk-4EEOJ54H.js";
95
98
  import {
96
99
  levelFor,
97
100
  readKeysForCommand,
98
101
  typedCommand
99
- } from "./chunk-TR5656OS.js";
102
+ } from "./chunk-TIXIB32T.js";
100
103
  import {
101
104
  isCliFailure
102
- } from "./chunk-2ULJW5BA.js";
103
- import {
104
- readOnlyLockOf
105
- } from "./chunk-JLKNUFL2.js";
105
+ } from "./chunk-UMJLXAJI.js";
106
106
  import {
107
107
  warmEmbedders
108
- } from "./chunk-KM4Y55ZE.js";
108
+ } from "./chunk-TMW526H3.js";
109
109
  import {
110
110
  openStore
111
- } from "./chunk-WAVJWGUC.js";
111
+ } from "./chunk-TNX77VPM.js";
112
112
  import {
113
113
  pdfPreviewLimits
114
- } from "./chunk-373WJIHE.js";
114
+ } from "./chunk-X5XWUQNU.js";
115
115
  import {
116
116
  timezoneOf
117
- } from "./chunk-XJVK7ETL.js";
117
+ } from "./chunk-SWFA36F3.js";
118
+ import {
119
+ mcpErrorResult
120
+ } from "./chunk-3RG27IWA.js";
118
121
  import {
119
- mcpErrorResult,
120
122
  visibleControls
121
- } from "./chunk-XGNADVIA.js";
123
+ } from "./chunk-ASPIEEXN.js";
122
124
  import {
123
- CliError,
124
125
  description,
125
126
  integer,
126
127
  maxValue,
@@ -134,7 +135,10 @@ import {
134
135
  regex,
135
136
  strictObject,
136
137
  string
137
- } from "./chunk-GIQFBXQN.js";
138
+ } from "./chunk-O3K46QRL.js";
139
+ import {
140
+ CliError
141
+ } from "./chunk-ITD7WI23.js";
138
142
  import {
139
143
  __name
140
144
  } from "./chunk-ZVVMGPBJ.js";
@@ -750,7 +754,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
750
754
  }, "serveOverStdio");
751
755
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
752
756
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
753
- const { serveOverHttp } = await import("./serve-YYOOLIBS.js");
757
+ const { serveOverHttp } = await import("./serve-5CUOYLSG.js");
754
758
  const appName = messenger.app.command;
755
759
  const appEnvPrefix = messenger.app.envPrefix;
756
760
  const listening = await serveOverHttp(build, {
@@ -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-ITD7WI23.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -0,0 +1,23 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
6
+
7
+ // 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/installer.js
8
+ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
9
+ const path = scriptPath.replaceAll("\\", "/");
10
+ if (path.includes("/_npx/"))
11
+ return "npx";
12
+ if (path.includes("/install/global/node_modules/"))
13
+ return "bun";
14
+ if (/\/\.?pnpm\//.test(path))
15
+ return "pnpm";
16
+ if (path.includes("/node_modules/"))
17
+ return "npm";
18
+ return path.includes("/dist/") ? "checkout" : "unknown";
19
+ }, "installerOf");
20
+
21
+ export {
22
+ installerOf
23
+ };
@@ -1,43 +1,12 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ errorCodes
5
+ } from "./chunk-ITD7WI23.js";
3
6
  import {
4
7
  __name
5
8
  } from "./chunk-ZVVMGPBJ.js";
6
9
 
7
- // 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/errors.js
8
- var errorCodes = [
9
- "validation_error",
10
- "configuration_error",
11
- "authentication_error",
12
- "permission_error",
13
- "not_found",
14
- "confirmation_required",
15
- "rate_limited",
16
- "timeout",
17
- "network_error",
18
- "provider_error",
19
- "provider_unavailable",
20
- "invalid_response",
21
- "outcome_unknown",
22
- "cancelled"
23
- ];
24
- var BRAND = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/CliError");
25
- var CliError = class extends Error {
26
- static {
27
- __name(this, "CliError");
28
- }
29
- code;
30
- details;
31
- constructor(code, message, details = {}) {
32
- super(message);
33
- this.name = "CliError";
34
- this.code = code;
35
- this.details = details;
36
- Object.defineProperty(this, BRAND, { value: true });
37
- }
38
- };
39
- var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
40
-
41
10
  // node_modules/.pnpm/valibot@1.5.0_typescript@7.0.2/node_modules/valibot/dist/index.mjs
42
11
  var store$4;
43
12
  var DEFAULT_CONFIG = {
@@ -2217,88 +2186,7 @@ var STEPS = defineSteps([
2217
2186
  }
2218
2187
  ]);
2219
2188
 
2220
- // 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/log.js
2221
- var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
2222
- var logRecordSchema = strictObject({
2223
- time: isoTime,
2224
- severity: picklist(LOG_SEVERITIES),
2225
- /** The registered event id, `provider.request.failed`: never a sentence, so never content. */
2226
- body: string(),
2227
- run_id: text,
2228
- /** From an MCP caller's `_meta.traceparent`, when it sent one. */
2229
- trace_id: optional(pipe(string(), regex(/^[0-9a-f]{32}$/, "32 lower-case hex digits"))),
2230
- command: string(),
2231
- attributes: record(string(), unknown()),
2232
- resource: strictObject({ service: text, version: text })
2233
- });
2234
- var logEventSchema = strictObject({
2235
- id: dottedId,
2236
- meaning: text,
2237
- /** Attribute keys every record of this event carries. */
2238
- keys: array(string())
2239
- });
2240
- var defineLogEvents = /* @__PURE__ */ __name((input) => parseRegistry("log events", array(logEventSchema), input, (events) => [
2241
- ...duplicates(events.map((event) => event.id)).map((id) => `"${id}" is listed twice`),
2242
- ...events.flatMap((event) => duplicates(event.keys).map((key) => `${event.id}: key "${key}" is listed twice`))
2243
- ]), "defineLogEvents");
2244
- var LOG_EVENTS = defineLogEvents([
2245
- { id: "command.failed", meaning: "a command ended with an error", keys: ["code", "reason"] }
2246
- ]);
2247
- var LOG_ATTRIBUTE_KEYS = [
2248
- "code",
2249
- "count",
2250
- "durationMs",
2251
- "errorClass",
2252
- "errorCode",
2253
- "event",
2254
- "frames",
2255
- "operation",
2256
- "outcome",
2257
- "reason",
2258
- "status"
2259
- ];
2260
- var CONTENT_WORDS = /* @__PURE__ */ new Set([
2261
- "authorization",
2262
- "body",
2263
- "caption",
2264
- "content",
2265
- "cookie",
2266
- "credential",
2267
- "credentials",
2268
- "email",
2269
- "password",
2270
- "phone",
2271
- "query",
2272
- "secret",
2273
- "text",
2274
- "title",
2275
- "token"
2276
- ]);
2277
- var CONTENT_LAST_WORDS = /* @__PURE__ */ new Set(["message", "name"]);
2278
- var wordsOf = /* @__PURE__ */ __name((key) => key.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).filter(Boolean).map((word2) => word2.toLowerCase()), "wordsOf");
2279
- var isContentKey = /* @__PURE__ */ __name((key) => {
2280
- const words = wordsOf(key);
2281
- return words.some((word2) => CONTENT_WORDS.has(word2)) || CONTENT_LAST_WORDS.has(words.at(-1) ?? "");
2282
- }, "isContentKey");
2283
- var TRACEPARENT = /^([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})(-.*)?$/;
2284
- var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
2285
- if (typeof traceparent !== "string")
2286
- return void 0;
2287
- const match = TRACEPARENT.exec(traceparent.trim());
2288
- if (!match)
2289
- return void 0;
2290
- const [, version, traceId = "", parentId = "", , rest] = match;
2291
- if (version === "ff" || version === "00" && rest !== void 0)
2292
- return void 0;
2293
- if (/^0+$/.test(traceId) || /^0+$/.test(parentId))
2294
- return void 0;
2295
- return traceId;
2296
- }, "traceIdOf");
2297
-
2298
2189
  export {
2299
- errorCodes,
2300
- CliError,
2301
- isCliError,
2302
2190
  getDotPath,
2303
2191
  check,
2304
2192
  description,
@@ -2350,6 +2238,7 @@ export {
2350
2238
  word,
2351
2239
  SNAKE_CASE,
2352
2240
  text,
2241
+ dottedId,
2353
2242
  RegistryError,
2354
2243
  parseRegistry,
2355
2244
  duplicates,
@@ -2369,9 +2258,5 @@ export {
2369
2258
  BASE_REASONS,
2370
2259
  defineSteps,
2371
2260
  stepOf,
2372
- STEPS,
2373
- defineLogEvents,
2374
- LOG_ATTRIBUTE_KEYS,
2375
- isContentKey,
2376
- traceIdOf
2261
+ STEPS
2377
2262
  };
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  REASONS
5
- } from "./chunk-CD736BG3.js";
5
+ } from "./chunk-XQMMB6ST.js";
6
6
 
7
7
  // dist/version.js
8
- var VERSION = "0.56.0";
8
+ var VERSION = "0.58.0";
9
9
 
10
10
  // dist/identity.js
11
11
  var PACKAGE = "@wirecat/drive-cli";
@@ -2,20 +2,22 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ENTITIES
5
- } from "./chunk-3BXSLNWW.js";
5
+ } from "./chunk-Y6M2G7JK.js";
6
6
  import {
7
7
  annotate,
8
8
  answerSchema,
9
9
  describeOptions,
10
10
  metaOf
11
- } from "./chunk-4F2VRJZE.js";
11
+ } from "./chunk-4UU4ONKY.js";
12
12
  import {
13
13
  keyForCommand
14
- } from "./chunk-TR5656OS.js";
14
+ } from "./chunk-TIXIB32T.js";
15
15
  import {
16
- CliError,
17
16
  jsonSchemaOf
18
- } from "./chunk-GIQFBXQN.js";
17
+ } from "./chunk-O3K46QRL.js";
18
+ import {
19
+ CliError
20
+ } from "./chunk-ITD7WI23.js";
19
21
  import {
20
22
  __name
21
23
  } from "./chunk-ZVVMGPBJ.js";
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-RAEKC6TV.js";
10
+ } from "./chunk-OUQVZTF5.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,11 +18,13 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-4F2VRJZE.js";
21
+ } from "./chunk-4UU4ONKY.js";
22
22
  import {
23
- CliError,
24
23
  writes
25
- } from "./chunk-GIQFBXQN.js";
24
+ } from "./chunk-O3K46QRL.js";
25
+ import {
26
+ CliError
27
+ } from "./chunk-ITD7WI23.js";
26
28
  import {
27
29
  __name
28
30
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure
5
- } from "./chunk-2ULJW5BA.js";
5
+ } from "./chunk-UMJLXAJI.js";
6
6
  import {
7
7
  isContentKey
8
- } from "./chunk-GIQFBXQN.js";
8
+ } from "./chunk-RRHC5SBB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-4UQLL6RJ.js";
32
+ } from "./chunk-P5MCZ635.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-KM4Y55ZE.js";
5
+ } from "./chunk-TMW526H3.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-GIQFBXQN.js";
8
+ } from "./chunk-ITD7WI23.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
@@ -0,0 +1,106 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ array,
5
+ dottedId,
6
+ duplicates,
7
+ isoTime,
8
+ optional,
9
+ parseRegistry,
10
+ picklist,
11
+ pipe,
12
+ record,
13
+ regex,
14
+ strictObject,
15
+ string,
16
+ text,
17
+ unknown
18
+ } from "./chunk-O3K46QRL.js";
19
+ import {
20
+ __name
21
+ } from "./chunk-ZVVMGPBJ.js";
22
+
23
+ // 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/log.js
24
+ var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
25
+ var logRecordSchema = strictObject({
26
+ time: isoTime,
27
+ severity: picklist(LOG_SEVERITIES),
28
+ /** The registered event id, `provider.request.failed`: never a sentence, so never content. */
29
+ body: string(),
30
+ run_id: text,
31
+ /** From an MCP caller's `_meta.traceparent`, when it sent one. */
32
+ trace_id: optional(pipe(string(), regex(/^[0-9a-f]{32}$/, "32 lower-case hex digits"))),
33
+ command: string(),
34
+ attributes: record(string(), unknown()),
35
+ resource: strictObject({ service: text, version: text })
36
+ });
37
+ var logEventSchema = strictObject({
38
+ id: dottedId,
39
+ meaning: text,
40
+ /** Attribute keys every record of this event carries. */
41
+ keys: array(string())
42
+ });
43
+ var defineLogEvents = /* @__PURE__ */ __name((input) => parseRegistry("log events", array(logEventSchema), input, (events) => [
44
+ ...duplicates(events.map((event) => event.id)).map((id) => `"${id}" is listed twice`),
45
+ ...events.flatMap((event) => duplicates(event.keys).map((key) => `${event.id}: key "${key}" is listed twice`))
46
+ ]), "defineLogEvents");
47
+ var LOG_EVENTS = defineLogEvents([
48
+ { id: "command.failed", meaning: "a command ended with an error", keys: ["code", "reason"] }
49
+ ]);
50
+ var LOG_ATTRIBUTE_KEYS = [
51
+ "code",
52
+ "count",
53
+ "durationMs",
54
+ "errorClass",
55
+ "errorCode",
56
+ "event",
57
+ "frames",
58
+ "operation",
59
+ "outcome",
60
+ "reason",
61
+ "status"
62
+ ];
63
+ var CONTENT_WORDS = /* @__PURE__ */ new Set([
64
+ "authorization",
65
+ "body",
66
+ "caption",
67
+ "content",
68
+ "cookie",
69
+ "credential",
70
+ "credentials",
71
+ "email",
72
+ "password",
73
+ "phone",
74
+ "query",
75
+ "secret",
76
+ "text",
77
+ "title",
78
+ "token"
79
+ ]);
80
+ var CONTENT_LAST_WORDS = /* @__PURE__ */ new Set(["message", "name"]);
81
+ var wordsOf = /* @__PURE__ */ __name((key) => key.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).filter(Boolean).map((word) => word.toLowerCase()), "wordsOf");
82
+ var isContentKey = /* @__PURE__ */ __name((key) => {
83
+ const words = wordsOf(key);
84
+ return words.some((word) => CONTENT_WORDS.has(word)) || CONTENT_LAST_WORDS.has(words.at(-1) ?? "");
85
+ }, "isContentKey");
86
+ var TRACEPARENT = /^([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})(-.*)?$/;
87
+ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
88
+ if (typeof traceparent !== "string")
89
+ return void 0;
90
+ const match = TRACEPARENT.exec(traceparent.trim());
91
+ if (!match)
92
+ return void 0;
93
+ const [, version, traceId = "", parentId = "", , rest] = match;
94
+ if (version === "ff" || version === "00" && rest !== void 0)
95
+ return void 0;
96
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentId))
97
+ return void 0;
98
+ return traceId;
99
+ }, "traceIdOf");
100
+
101
+ export {
102
+ defineLogEvents,
103
+ LOG_ATTRIBUTE_KEYS,
104
+ isContentKey,
105
+ traceIdOf
106
+ };
@@ -7,22 +7,15 @@ import {
7
7
  refuseLocalWrite,
8
8
  refuseUnknownPermissionKeys,
9
9
  sendsPathFor
10
- } from "./chunk-B64EY2SC.js";
10
+ } from "./chunk-ED5JNYN5.js";
11
11
  import {
12
12
  chatRef,
13
13
  contactRef,
14
14
  positiveCount
15
- } from "./chunk-EN7OZ5JH.js";
16
- import {
17
- MAX_SEARCH_OFFSET,
18
- excerpt,
19
- newOperationId,
20
- refreshedFiles,
21
- senderIsMe
22
- } from "./chunk-KHNDZNQA.js";
15
+ } from "./chunk-IXXQZCNK.js";
23
16
  import {
24
17
  commandPathOf
25
- } from "./chunk-RAEKC6TV.js";
18
+ } from "./chunk-OUQVZTF5.js";
26
19
  import {
27
20
  NONE_NAMED,
28
21
  changesMessenger,
@@ -33,7 +26,19 @@ import {
33
26
  nextStep,
34
27
  recalledAccount,
35
28
  settingsFor
36
- } from "./chunk-4F2VRJZE.js";
29
+ } from "./chunk-4UU4ONKY.js";
30
+ import {
31
+ MESSENGER_CHANGE_REFUSAL,
32
+ readOnlyLockOf,
33
+ readOnlyRefusal
34
+ } from "./chunk-Z5GDNCTJ.js";
35
+ import {
36
+ MAX_SEARCH_OFFSET,
37
+ excerpt,
38
+ newOperationId,
39
+ refreshedFiles,
40
+ senderIsMe
41
+ } from "./chunk-4EEOJ54H.js";
37
42
  import {
38
43
  CEILING_KEY,
39
44
  DEFAULT_TEXT_MODEL,
@@ -41,23 +46,20 @@ import {
41
46
  levelFor,
42
47
  parseDuration,
43
48
  writeOfKey
44
- } from "./chunk-TR5656OS.js";
45
- import {
46
- MESSENGER_CHANGE_REFUSAL,
47
- readOnlyLockOf,
48
- readOnlyRefusal
49
- } from "./chunk-JLKNUFL2.js";
49
+ } from "./chunk-TIXIB32T.js";
50
50
  import {
51
51
  formatLocator,
52
52
  hitFiles,
53
53
  openStore,
54
54
  parseLocator
55
- } from "./chunk-WAVJWGUC.js";
55
+ } from "./chunk-TNX77VPM.js";
56
+ import {
57
+ importFrom
58
+ } from "./chunk-Y5E2WNWB.js";
56
59
  import {
57
60
  visibleControls
58
- } from "./chunk-XGNADVIA.js";
61
+ } from "./chunk-ASPIEEXN.js";
59
62
  import {
60
- CliError,
61
63
  description,
62
64
  object,
63
65
  optional,
@@ -65,10 +67,10 @@ import {
65
67
  string,
66
68
  toStandardJsonSchema,
67
69
  writes
68
- } from "./chunk-GIQFBXQN.js";
70
+ } from "./chunk-O3K46QRL.js";
69
71
  import {
70
- importFrom
71
- } from "./chunk-Y5E2WNWB.js";
72
+ CliError
73
+ } from "./chunk-ITD7WI23.js";
72
74
  import {
73
75
  __name
74
76
  } from "./chunk-ZVVMGPBJ.js";
@@ -1,7 +1,6 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- CliError,
5
4
  RegistryError,
6
5
  SNAKE_CASE,
7
6
  array,
@@ -9,7 +8,6 @@ import {
9
8
  defineReasons,
10
9
  duplicates,
11
10
  integer,
12
- isCliError,
13
11
  lazy,
14
12
  literal,
15
13
  minValue,
@@ -21,7 +19,11 @@ import {
21
19
  reference,
22
20
  string,
23
21
  variant
24
- } from "./chunk-GIQFBXQN.js";
22
+ } from "./chunk-O3K46QRL.js";
23
+ import {
24
+ CliError,
25
+ isCliError
26
+ } from "./chunk-ITD7WI23.js";
25
27
  import {
26
28
  __name
27
29
  } from "./chunk-ZVVMGPBJ.js";
@@ -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-ITD7WI23.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";