@wirecat/drive-cli 0.55.0 → 0.56.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 (132) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-I5KJKZPF.js → all-profiles-7LSZ3CC3.js} +9 -9
  3. package/dist/bundle/{anthropic-DPM7BRKX.js → anthropic-3QRM4QXB.js} +5 -5
  4. package/dist/bundle/{app-server-FTGLOZ2K.js → app-server-WWNMUHID.js} +48 -48
  5. package/dist/bundle/{bun-XRO6XJHQ.js → bun-NIIYUR5F.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-7JJX6OUT.js → bun-sqlite-GSLSN3OT.js} +4 -4
  7. package/dist/bundle/{chunk-NPMVPKBD.js → chunk-2QLLKDE5.js} +48 -47
  8. package/dist/bundle/{chunk-P4ABC6C4.js → chunk-2ULJW5BA.js} +2 -2
  9. package/dist/bundle/{chunk-AR2HRFQO.js → chunk-373WJIHE.js} +2 -2
  10. package/dist/bundle/{chunk-K2DMCTTF.js → chunk-3BXSLNWW.js} +129 -97
  11. package/dist/bundle/{chunk-BO7ZKZCH.js → chunk-4F2VRJZE.js} +121 -46
  12. package/dist/bundle/{chunk-CP6M5P4X.js → chunk-4MJA4MLV.js} +3 -3
  13. package/dist/bundle/{chunk-NDUYK676.js → chunk-4UQLL6RJ.js} +10 -9
  14. package/dist/bundle/{chunk-NFOUG7ES.js → chunk-566W4Q6L.js} +2 -2
  15. package/dist/bundle/chunk-5E67RIXD.js +247 -0
  16. package/dist/bundle/{chunk-E7RDXCV2.js → chunk-5KNIVHP6.js} +5 -5
  17. package/dist/bundle/{chunk-VXZULAWV.js → chunk-64E6QXXQ.js} +14 -13
  18. package/dist/bundle/{chunk-FNDQFFLP.js → chunk-6CFSDU56.js} +11 -11
  19. package/dist/bundle/{chunk-ORRQDSDH.js → chunk-6ZA4NR5H.js} +3 -3
  20. package/dist/bundle/{chunk-PFTIYWOK.js → chunk-7SNS443B.js} +4 -4
  21. package/dist/bundle/{chunk-JPFF6MNK.js → chunk-AHBUTDS7.js} +8 -8
  22. package/dist/bundle/{chunk-TIEEVT2Z.js → chunk-AKPFH3KC.js} +1 -1
  23. package/dist/bundle/{chunk-FDCGTODC.js → chunk-AL7MY7MW.js} +1 -1
  24. package/dist/bundle/{chunk-RMQGFLT2.js → chunk-B3TPS7BW.js} +6 -6
  25. package/dist/bundle/{chunk-2DZMGPUC.js → chunk-B64EY2SC.js} +123 -34
  26. package/dist/bundle/{chunk-2OGANEKA.js → chunk-CD736BG3.js} +2 -2
  27. package/dist/bundle/{chunk-C4QKY33N.js → chunk-CGCQNYB3.js} +2 -2
  28. package/dist/bundle/{chunk-D6SRTPCV.js → chunk-DJ75AG3K.js} +2 -2
  29. package/dist/bundle/{chunk-2KARCTUU.js → chunk-EE7R457T.js} +949 -581
  30. package/dist/bundle/{chunk-TQFCPUIM.js → chunk-EFEI724Z.js} +1 -1
  31. package/dist/bundle/{chunk-JBBZCTTF.js → chunk-EFX6FIDM.js} +1 -1
  32. package/dist/bundle/{chunk-DNJ43DT5.js → chunk-ELIYJXIY.js} +2 -2
  33. package/dist/bundle/{chunk-NPKFXGYG.js → chunk-EN7OZ5JH.js} +41 -23
  34. package/dist/bundle/{chunk-IXXVCKWL.js → chunk-G34Y5RAC.js} +26 -26
  35. package/dist/bundle/{chunk-TBD362SJ.js → chunk-GIQFBXQN.js} +11 -7
  36. package/dist/bundle/{chunk-KWKRTYRL.js → chunk-GKHUHRSL.js} +4 -4
  37. package/dist/bundle/{chunk-VGTDXEYD.js → chunk-HNUSPNUQ.js} +26 -13
  38. package/dist/bundle/{chunk-XTNEYXAQ.js → chunk-IJ2S53WJ.js} +5 -5
  39. package/dist/bundle/{chunk-FUKJQZED.js → chunk-ISK4K7UE.js} +1 -1
  40. package/dist/bundle/{chunk-YP5FDMTG.js → chunk-J2HGHSLX.js} +2 -2
  41. package/dist/bundle/{chunk-ULPS2OAL.js → chunk-JIGMCW4C.js} +4 -4
  42. package/dist/bundle/{chunk-ALMQEGYO.js → chunk-JLKNUFL2.js} +2 -2
  43. package/dist/bundle/{chunk-UDWMRZL6.js → chunk-JUKVJ7M2.js} +21 -21
  44. package/dist/bundle/{chunk-LAVWTS4P.js → chunk-KHNDZNQA.js} +5333 -5108
  45. package/dist/bundle/{chunk-GB5YM5HK.js → chunk-KM4Y55ZE.js} +5 -5
  46. package/dist/bundle/{chunk-4XRLPQ3N.js → chunk-L4BBK7UX.js} +2 -2
  47. package/dist/bundle/{chunk-EOEDICIE.js → chunk-LSSIVBQI.js} +1 -1
  48. package/dist/bundle/{chunk-6OJMA4ZT.js → chunk-NL2KXCFT.js} +389 -255
  49. package/dist/bundle/{chunk-2LLNPNMB.js → chunk-OOR6PEHV.js} +1 -1
  50. package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
  51. package/dist/bundle/{chunk-67A2YFAT.js → chunk-OZJMZSFB.js} +4 -4
  52. package/dist/bundle/{chunk-GC4JNVYF.js → chunk-Q3TMNETS.js} +98 -37
  53. package/dist/bundle/{chunk-5DEEBWDI.js → chunk-QAT6UXZZ.js} +38 -37
  54. package/dist/bundle/{chunk-VY3TYRCK.js → chunk-R5GJZPRF.js} +114 -59
  55. package/dist/bundle/{chunk-4I7EBJJV.js → chunk-RAEKC6TV.js} +6 -6
  56. package/dist/bundle/{chunk-HNR2BJJU.js → chunk-RB674T6L.js} +75 -17
  57. package/dist/bundle/{chunk-NCCL4QWR.js → chunk-SRNXTXJN.js} +3 -3
  58. package/dist/bundle/{chunk-TD4RAOMZ.js → chunk-TKVSJV5P.js} +3 -3
  59. package/dist/bundle/{chunk-W6DMCGMK.js → chunk-TR5656OS.js} +47 -22
  60. package/dist/bundle/{chunk-VY2AUZMJ.js → chunk-TZHCS5MG.js} +2 -2
  61. package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-U2RSVKR5.js} +1 -1
  62. package/dist/bundle/{chunk-IDK5QUBJ.js → chunk-UKMFPBAO.js} +4 -4
  63. package/dist/bundle/{chunk-GIRVMZD3.js → chunk-VTJF2L5E.js} +16 -16
  64. package/dist/bundle/{chunk-AQNY57J2.js → chunk-W5FOPSJZ.js} +7 -7
  65. package/dist/bundle/{chunk-FKHWVVMV.js → chunk-W6FYYQ2J.js} +3 -3
  66. package/dist/bundle/{chunk-VVMCGF5X.js → chunk-WAVJWGUC.js} +1811 -883
  67. package/dist/bundle/{chunk-FDM3JMQZ.js → chunk-WBYCUBYM.js} +89 -36
  68. package/dist/bundle/{chunk-TIVC4DB5.js → chunk-WJOKTIOJ.js} +2 -2
  69. package/dist/bundle/{chunk-7MVKSPEG.js → chunk-WJPVGXKA.js} +6 -6
  70. package/dist/bundle/{chunk-N4VNUOOD.js → chunk-XGNADVIA.js} +18 -18
  71. package/dist/bundle/{chunk-J6XLM4QW.js → chunk-XJVK7ETL.js} +28 -10
  72. package/dist/bundle/{chunk-3K4H2DTA.js → chunk-YZ6SYLDC.js} +12 -3
  73. package/dist/bundle/command-contract-XIACCAZL.js +35 -0
  74. package/dist/bundle/{decode-3LX3BLZM.js → decode-5MHMPYKE.js} +4 -4
  75. package/dist/bundle/drive.js +6 -6
  76. package/dist/bundle/{echarts-YNGCOYHW.js → echarts-CLB22SZS.js} +2 -2
  77. package/dist/bundle/{embed-FICTRZJL.js → embed-TF66ODAR.js} +5 -5
  78. package/dist/bundle/{embedder-DSMRCRSH.js → embedder-EDWOIAC2.js} +8 -8
  79. package/dist/bundle/{entry-4ZX3BNXK.js → entry-CWYCQ53A.js} +8 -6
  80. package/dist/bundle/{first-run-GRBQ3SQ5.js → first-run-YIH7EHJI.js} +9 -9
  81. package/dist/bundle/first-screen-THH3XD5Y.js +33 -0
  82. package/dist/bundle/{google-QV2B2KZA.js → google-A4F2WFO4.js} +9 -9
  83. package/dist/bundle/{google-api-EVO7F3WB.js → google-api-ZXGQOJUI.js} +51 -51
  84. package/dist/bundle/grants-B3HZRRAQ.js +98 -0
  85. package/dist/bundle/{identity-TKAX75OT.js → identity-6DGQA6DX.js} +4 -4
  86. package/dist/bundle/{instructions-GJHHFV64.js → instructions-BXZZNAMS.js} +1 -1
  87. package/dist/bundle/{login-R2YEAKEM.js → login-OUOGSTPH.js} +57 -57
  88. package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
  89. package/dist/bundle/{node-GFOH6FKP.js → node-R6ZNQ3NT.js} +2 -2
  90. package/dist/bundle/{node-sqlite-NZIBED3C.js → node-sqlite-AFQTE4XZ.js} +4 -4
  91. package/dist/bundle/{oauth-WUHT2JII.js → oauth-46XBJBML.js} +6 -6
  92. package/dist/bundle/{open-INBNHORD.js → open-WJCRBIP7.js} +3 -3
  93. package/dist/bundle/{openai-BMREUGJP.js → openai-3TIBDWZA.js} +13 -13
  94. package/dist/bundle/{process-XVDX4SPD.js → process-P36JP33R.js} +1 -1
  95. package/dist/bundle/{program-DUWFQOSL.js → program-7FRXMZNK.js} +85 -77
  96. package/dist/bundle/{prompt-S7GHCPGR.js → prompt-FFGBIT4A.js} +4 -4
  97. package/dist/bundle/{reasons-T24V3AYS.js → reasons-VHCVYH54.js} +3 -3
  98. package/dist/bundle/{recognize-T3DABMW5.js → recognize-4EAKIMON.js} +3 -3
  99. package/dist/bundle/{remote-ASYGFT6E.js → remote-HX3JP4EH.js} +6 -6
  100. package/dist/bundle/{rerank-BQ5U252K.js → rerank-BW3A4PUU.js} +6 -6
  101. package/dist/bundle/{serve-JMLNKCUZ.js → serve-YYOOLIBS.js} +8 -8
  102. package/dist/bundle/{server-5E6RC7GZ.js → server-G6XTEEFI.js} +38 -38
  103. package/dist/bundle/server-YKYEUIJT.js +63 -0
  104. package/dist/bundle/{services-NFB3XSON.js → services-OAPILZOW.js} +45 -25
  105. package/dist/bundle/{sqlite-runtime-TAMYMQFR.js → sqlite-runtime-GTXDK4PE.js} +4 -4
  106. package/dist/bundle/{state-DS4G3ZXV.js → state-XG335LGZ.js} +5 -5
  107. package/dist/bundle/{store-MLMKYJLC.js → store-7KOXJNQP.js} +14 -12
  108. package/dist/bundle/{store-HAS2LRFE.js → store-N53SJOPS.js} +33 -15
  109. package/dist/bundle/store-maintenance-command-W3TI52X2.js +52 -0
  110. package/dist/bundle/tokens-CG3A5KS4.js +96 -0
  111. package/dist/commands/knowledge.d.ts.map +1 -1
  112. package/dist/commands/knowledge.js +10 -2
  113. package/dist/commands/knowledge.js.map +1 -1
  114. package/dist/config.d.ts +6 -0
  115. package/dist/config.d.ts.map +1 -1
  116. package/dist/config.js +4 -12
  117. package/dist/config.js.map +1 -1
  118. package/dist/profile-lock.js +2 -2
  119. package/dist/profile-lock.js.map +1 -1
  120. package/dist/reasons.js +1 -1
  121. package/dist/reasons.js.map +1 -1
  122. package/dist/version.d.ts +1 -1
  123. package/dist/version.js +1 -1
  124. package/package.json +3 -3
  125. package/dist/bundle/chunk-3NAVOBGH.js +0 -331
  126. package/dist/bundle/command-contract-VXLGE6NV.js +0 -35
  127. package/dist/bundle/first-screen-JK3MZVCU.js +0 -33
  128. package/dist/bundle/grants-B642KK5M.js +0 -98
  129. package/dist/bundle/server-QI4C3CQT.js +0 -63
  130. package/dist/bundle/store-maintenance-command-LI3JR22B.js +0 -52
  131. package/dist/bundle/tokens-UMSAYGOH.js +0 -96
  132. /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.js} +0 -0
@@ -0,0 +1,247 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ activeProfile,
5
+ credentialStorage,
6
+ driveSessionCodec,
7
+ paths,
8
+ tokenKeeper
9
+ } from "./chunk-NL2KXCFT.js";
10
+ import {
11
+ READ_SCOPE,
12
+ WRITE_SCOPE,
13
+ providerRequest
14
+ } from "./chunk-EE7R457T.js";
15
+ import {
16
+ googleError
17
+ } from "./chunk-AKPFH3KC.js";
18
+ import {
19
+ Credentials,
20
+ isMovedRun,
21
+ systemKeyring
22
+ } from "./chunk-XGNADVIA.js";
23
+ import {
24
+ CliError,
25
+ isCliError,
26
+ minLength,
27
+ nullable,
28
+ number,
29
+ object,
30
+ optional,
31
+ pipe,
32
+ safeParse,
33
+ string
34
+ } from "./chunk-GIQFBXQN.js";
35
+ import {
36
+ __name
37
+ } from "./chunk-ZVVMGPBJ.js";
38
+
39
+ // dist/tokens.js
40
+ import { OAuth2Client } from "google-auth-library";
41
+ var Session = object({
42
+ principal: string(),
43
+ clientId: string(),
44
+ clientSecret: optional(string()),
45
+ tokens: object({
46
+ access_token: optional(nullable(string())),
47
+ refresh_token: pipe(string(), minLength(1)),
48
+ expiry_date: optional(nullable(number())),
49
+ scope: optional(string()),
50
+ token_type: optional(nullable(string()))
51
+ })
52
+ });
53
+ var credentialOptions = /* @__PURE__ */ __name((env, storage, keyring) => ({
54
+ configDir: paths(env).config,
55
+ service: "drive-cli",
56
+ // The keyring falls back to the private file by itself (WC-SECR-4); `file` skips the keyring.
57
+ storage: storage === "keyring" ? "auto" : storage,
58
+ env,
59
+ isolated: isMovedRun({ appName: "drive-cli", prefix: "DRIVE", env }),
60
+ ...keyring ? { keyring } : {}
61
+ }), "credentialOptions");
62
+ var credentials = /* @__PURE__ */ __name((env, storage, keyring) => new Credentials(credentialOptions(env, storage, keyring)), "credentials");
63
+ var notSaved = /* @__PURE__ */ __name(() => new CliError("configuration_error", "could not save Google sign-in: the private credentials file cannot be read; move it aside and sign in again", { reason: "sign-in.not-saved" }), "notSaved");
64
+ var saveSession = /* @__PURE__ */ __name((env, name, session, storage, keyring) => {
65
+ try {
66
+ credentials(env, storage, keyring).write(name, JSON.stringify(session));
67
+ } catch {
68
+ throw notSaved();
69
+ }
70
+ }, "saveSession");
71
+ var googleProvider = /* @__PURE__ */ __name((client) => ({
72
+ id: "google",
73
+ name: "Google",
74
+ authorizeUrl: "https://accounts.google.com/o/oauth2/v2/auth",
75
+ tokenUrl: "https://oauth2.googleapis.com/token",
76
+ revokeUrl: "https://oauth2.googleapis.com/revoke",
77
+ client,
78
+ redirect: { kind: "loopback" },
79
+ // Without offline access Google returns no refresh token; without consent it does not return one again.
80
+ authorizeParams: { access_type: "offline", prompt: "select_account consent" }
81
+ }), "googleProvider");
82
+ var sessionKeeper = /* @__PURE__ */ __name((options) => tokenKeeper({
83
+ provider: googleProvider(options.client),
84
+ storage: credentialStorage({
85
+ credentials: { ...credentialOptions(options.env, options.storage), keyring: options.keyring ?? systemKeyring },
86
+ account: options.name,
87
+ codec: driveSessionCodec
88
+ }),
89
+ lockDir: paths(options.env).config,
90
+ fetch: options.fetch ?? globalThis.fetch,
91
+ signInCommand: `drive ${options.name} session start`,
92
+ // Above the client's own 5-minute early refresh, so a token it asks to replace is replaced.
93
+ freshForMs: 6 * 6e4,
94
+ ...options.signal ? { signal: options.signal } : {}
95
+ }), "sessionKeeper");
96
+ var authorizedClient = /* @__PURE__ */ __name((env, name, keyring, signal) => {
97
+ const profile = activeProfile(env, name);
98
+ let parsed;
99
+ try {
100
+ const secret = credentials(env, profile.storage, keyring).read(name)?.secret;
101
+ if (!secret)
102
+ throw new Error("missing login");
103
+ parsed = safeParse(Session, JSON.parse(secret));
104
+ } catch {
105
+ throw new CliError("authentication_error", `could not load Google sign-in \u2014 run drive ${name} session start again`, {
106
+ reason: "sign-in.expired"
107
+ });
108
+ }
109
+ if (!parsed.success || parsed.output.principal !== profile.principal)
110
+ throw new CliError("authentication_error", "saved sign-in is invalid or belongs to another account", {
111
+ reason: "sign-in.expired"
112
+ });
113
+ const session = parsed.output;
114
+ const keeper = sessionKeeper({
115
+ env,
116
+ name,
117
+ storage: profile.storage,
118
+ client: { clientId: session.clientId, ...session.clientSecret ? { clientSecret: session.clientSecret } : {} },
119
+ ...keyring ? { keyring } : {},
120
+ ...signal ? { signal } : {}
121
+ });
122
+ const client = new OAuth2Client({
123
+ clientId: session.clientId,
124
+ clientSecret: session.clientSecret,
125
+ transporterOptions: { timeout: 3e4, ...signal ? { signal } : {} }
126
+ });
127
+ client.refreshHandler = async () => {
128
+ try {
129
+ const tokens = await keeper.tokens();
130
+ if (!tokens.accessToken || tokens.expiresAt === void 0)
131
+ throw new Error("no access token");
132
+ return { access_token: tokens.accessToken, expiry_date: tokens.expiresAt };
133
+ } catch (error) {
134
+ if (isCliError(error) && error.code !== "authentication_error")
135
+ throw error;
136
+ throw new CliError("authentication_error", `Google sign-in expired \u2014 run drive ${name} session start again`, {
137
+ reason: "sign-in.expired"
138
+ });
139
+ }
140
+ };
141
+ const { refresh_token: _refresh, ...current } = session.tokens;
142
+ client.setCredentials(current);
143
+ return observeRequests(client);
144
+ }, "authorizedClient");
145
+ var covers = /* @__PURE__ */ __name((granted, required) => granted.includes(required) || required === READ_SCOPE && granted.includes(WRITE_SCOPE), "covers");
146
+ var grantedScopes = /* @__PURE__ */ __name((env, name, keyring) => {
147
+ try {
148
+ const secret = credentials(env, activeProfile(env, name).storage, keyring).read(name)?.secret;
149
+ const parsed = secret ? safeParse(Session, JSON.parse(secret)) : void 0;
150
+ if (!parsed?.success)
151
+ return [];
152
+ return parsed.output.tokens.scope?.split(/\s+/).filter(Boolean);
153
+ } catch {
154
+ return [];
155
+ }
156
+ }, "grantedScopes");
157
+ var checkAuthorization = /* @__PURE__ */ __name(async (client, required = READ_SCOPE) => {
158
+ try {
159
+ const { token } = await client.getAccessToken();
160
+ if (!token)
161
+ throw new CliError("authentication_error", "Google returned no access token");
162
+ const info = await client.getTokenInfo(token);
163
+ if (!covers(info.scopes, required))
164
+ throw new CliError("permission_error", "sign-in lacks the required permission; run drive <profile> session start --grant write, activity or apps when needed", { reason: "sign-in.scope-missing" });
165
+ } catch (error) {
166
+ throw googleError(error);
167
+ }
168
+ }, "checkAuthorization");
169
+ var WORD = /^[a-z][a-z_]{0,23}$/;
170
+ var VERB = /^[a-z][A-Za-z]{0,31}$/;
171
+ var segment = /* @__PURE__ */ __name((part) => {
172
+ if (/^v\d+$/.test(part) || WORD.test(part))
173
+ return part;
174
+ const verb = part.split(":")[1];
175
+ return verb !== void 0 && VERB.test(verb) ? `:id:${verb}` : ":id";
176
+ }, "segment");
177
+ var operationOf = /* @__PURE__ */ __name((method, url) => {
178
+ let path = "";
179
+ try {
180
+ path = new URL(String(url ?? "")).pathname;
181
+ } catch {
182
+ }
183
+ const template = path.split("/").filter(Boolean).map((part) => segment(decodeURIComponent(part))).join("/");
184
+ return `${(method ?? "GET").toUpperCase()} /${template}`;
185
+ }, "operationOf");
186
+ var reasonOf = /* @__PURE__ */ __name((data) => {
187
+ const error = data?.error;
188
+ const reason = error?.errors?.[0]?.reason ?? error?.status;
189
+ return typeof reason === "string" ? reason : void 0;
190
+ }, "reasonOf");
191
+ var observeRequests = /* @__PURE__ */ __name((client) => {
192
+ const transporter = client.transporter;
193
+ const request = transporter.request.bind(transporter);
194
+ transporter.request = (async (options) => {
195
+ const method = (options.method ?? "GET").toUpperCase();
196
+ const operation = operationOf(method, options.url);
197
+ const call = { method, endpointTemplate: operation.slice(method.length + 1), transport: "http" };
198
+ let ended;
199
+ const adapter = /* @__PURE__ */ __name(async (prepared, next) => {
200
+ const attempt = (prepared.retryConfig?.currentRetryAttempt ?? 0) + 1;
201
+ const waitMs = ended === void 0 ? void 0 : Math.round(performance.now() - ended);
202
+ const answered = providerRequest(operation, void 0, {
203
+ ...call,
204
+ attempt,
205
+ ...waitMs === void 0 ? {} : { waitMs }
206
+ });
207
+ try {
208
+ const response = await (options.adapter ? options.adapter(prepared, next) : next(prepared));
209
+ const failed = !(prepared.validateStatus?.(response.status) ?? response.status < 400);
210
+ const providerError = failed ? reasonOf(response.data) : void 0;
211
+ answered({
212
+ status: response.status,
213
+ ...failed ? { errorCode: "provider_error" } : {},
214
+ ...providerError ? { providerError } : {}
215
+ });
216
+ return response;
217
+ } catch (error) {
218
+ answered({ error, errorCode: googleError(error).code });
219
+ throw error;
220
+ } finally {
221
+ ended = performance.now();
222
+ }
223
+ }, "adapter");
224
+ try {
225
+ return await request({ ...options, adapter });
226
+ } catch (error) {
227
+ if (ended === void 0)
228
+ providerRequest(operation, void 0, { ...call, attempt: 1 })({ error, errorCode: googleError(error).code });
229
+ throw error;
230
+ }
231
+ });
232
+ return client;
233
+ }, "observeRequests");
234
+
235
+ export {
236
+ credentials,
237
+ notSaved,
238
+ saveSession,
239
+ googleProvider,
240
+ sessionKeeper,
241
+ authorizedClient,
242
+ covers,
243
+ grantedScopes,
244
+ checkAuthorization,
245
+ operationOf,
246
+ observeRequests
247
+ };
@@ -4,23 +4,23 @@ import {
4
4
  executableEnvironment,
5
5
  executableOnPath,
6
6
  require_cross_spawn
7
- } from "./chunk-UIPT6IAU.js";
7
+ } from "./chunk-OYNSFQ7K.js";
8
8
  import {
9
9
  loadConfigFile,
10
10
  saveConfigFile
11
- } from "./chunk-N4VNUOOD.js";
11
+ } from "./chunk-XGNADVIA.js";
12
12
  import {
13
13
  number,
14
14
  object,
15
15
  optional,
16
16
  string
17
- } from "./chunk-TBD362SJ.js";
17
+ } from "./chunk-GIQFBXQN.js";
18
18
  import {
19
19
  __name,
20
20
  __toESM
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
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/installer.js
24
24
  var installerOf = /* @__PURE__ */ __name((scriptPath) => {
25
25
  const path = scriptPath.replaceAll("\\", "/");
26
26
  if (path.includes("/_npx/"))
@@ -34,7 +34,7 @@ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
34
34
  return path.includes("/dist/") ? "checkout" : "unknown";
35
35
  }, "installerOf");
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
37
+ // 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/update/index.js
38
38
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
39
39
  import { existsSync } from "node:fs";
40
40
  var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-ALMQEGYO.js";
6
+ } from "./chunk-JLKNUFL2.js";
7
7
  import {
8
8
  ensureSqlite
9
- } from "./chunk-TIVC4DB5.js";
9
+ } from "./chunk-WJOKTIOJ.js";
10
10
  import {
11
11
  catchCrashes
12
- } from "./chunk-N4VNUOOD.js";
12
+ } from "./chunk-XGNADVIA.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-TBD362SJ.js";
15
+ } from "./chunk-GIQFBXQN.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/entry.js
20
+ // 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/entry.js
21
21
  import { spawn } from "node:child_process";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
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/cli/argv-log.js
24
24
  import { appendFileSync } from "node:fs";
25
25
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
26
26
  const words = [];
@@ -44,7 +44,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
44
44
  `);
45
45
  }, "logVersion");
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/entry.js
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/cli/entry.js
48
48
  var processIo = /* @__PURE__ */ __name(() => ({
49
49
  argv: process.argv,
50
50
  env: process.env,
@@ -98,8 +98,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
98
98
  if (command.optsWithGlobals().dryRun === true)
99
99
  return;
100
100
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
101
- import("./first-run-GRBQ3SQ5.js"),
102
- import("./command-contract-VXLGE6NV.js")
101
+ import("./first-run-YIH7EHJI.js"),
102
+ import("./command-contract-XIACCAZL.js")
103
103
  ]);
104
104
  await setupAtStart({
105
105
  command: entry.app.command,
@@ -114,7 +114,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
114
114
  ask: /* @__PURE__ */ __name(async (question, command) => {
115
115
  if (headless(command) || io.stdin.isTTY !== true)
116
116
  return false;
117
- const { readSecret } = await import("./prompt-S7GHCPGR.js");
117
+ const { readSecret } = await import("./prompt-FFGBIT4A.js");
118
118
  const answer = await readSecret(`${question} [y/N] `, {
119
119
  input: io.stdin,
120
120
  output: io.stderr,
@@ -123,7 +123,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
123
123
  });
124
124
  return /^(y|yes)$/i.test(answer.trim());
125
125
  }, "ask"),
126
- openBrowser: /* @__PURE__ */ __name((url, browser) => openBrowser(io, url, browser), "openBrowser"),
126
+ openBrowser: /* @__PURE__ */ __name((url, browser) => openBrowser(url, browser, io), "openBrowser"),
127
127
  outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
128
128
  };
129
129
  let code;
@@ -166,7 +166,7 @@ var commanderExit = /* @__PURE__ */ __name((error) => {
166
166
  return 0;
167
167
  return code === "commander.help" ? 2 : void 0;
168
168
  }, "commanderExit");
169
- var openBrowser = /* @__PURE__ */ __name((io, url, browser) => {
169
+ var openBrowser = /* @__PURE__ */ __name((url, browser, io = { platform: process.platform, spawn }) => {
170
170
  const [command, prefix] = browser !== void 0 ? [browser, []] : io.platform === "darwin" ? ["open", []] : io.platform === "win32" ? ["rundll32.exe", ["url.dll,FileProtocolHandler"]] : ["xdg-open", []];
171
171
  return new Promise((resolve, reject) => {
172
172
  const child = io.spawn(command, [...prefix, url], { detached: true, stdio: "ignore", windowsHide: true });
@@ -181,5 +181,6 @@ var openBrowser = /* @__PURE__ */ __name((io, url, browser) => {
181
181
  export {
182
182
  logParsedArgv,
183
183
  logVersion,
184
- startCli
184
+ startCli,
185
+ openBrowser
185
186
  };
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  installerOf,
5
5
  updateCommand
6
- } from "./chunk-E7RDXCV2.js";
6
+ } from "./chunk-5KNIVHP6.js";
7
7
  import {
8
8
  QUESTIONS,
9
9
  readSetupAnswers,
10
10
  unanswered,
11
11
  writeSetupAnswers
12
- } from "./chunk-IDK5QUBJ.js";
12
+ } from "./chunk-UKMFPBAO.js";
13
13
  import {
14
14
  DEFAULT_STEMMERS,
15
15
  LANGUAGES
16
- } from "./chunk-JPFF6MNK.js";
16
+ } from "./chunk-AHBUTDS7.js";
17
17
  import {
18
18
  sharedConfigPath
19
- } from "./chunk-RMQGFLT2.js";
19
+ } from "./chunk-B3TPS7BW.js";
20
20
  import {
21
21
  storePath
22
- } from "./chunk-C4QKY33N.js";
22
+ } from "./chunk-CGCQNYB3.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/first-run.js
27
+ // 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/first-run.js
28
28
  import { spawnSync } from "node:child_process";
29
29
  import { accessSync, constants, realpathSync } from "node:fs";
30
30
  import { delimiter, join } from "node:path";
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
82
82
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
83
83
  }, "suggested");
84
84
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
85
- const { openStore } = await import("./store-MLMKYJLC.js");
85
+ const { openStore } = await import("./store-7KOXJNQP.js");
86
86
  const store = await openStore({ env });
87
87
  let rebuild = false;
88
88
  try {
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
111
111
  if (!rebuild)
112
112
  return;
113
113
  const [{ openCache }, { buildStems }] = await Promise.all([
114
- import("./open-INBNHORD.js"),
115
- import("./store-maintenance-command-LI3JR22B.js")
114
+ import("./open-WJCRBIP7.js"),
115
+ import("./store-maintenance-command-W3TI52X2.js")
116
116
  ]);
117
117
  const database = await openCache(storePath(env));
118
118
  try {
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
124
124
  var askTools = /* @__PURE__ */ __name(async (run) => {
125
125
  const { command, env, io } = run;
126
126
  const installed = run.installed ?? ((name) => onPath(name, env));
127
- const { WIRECAT_TOOLS } = await import("./first-screen-JK3MZVCU.js");
127
+ const { WIRECAT_TOOLS } = await import("./first-screen-THH3XD5Y.js");
128
128
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
129
129
  const missing = others.filter((tool) => !installed(tool.command));
130
130
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
197
197
  contentLanguages: start.contentLanguages,
198
198
  all: start.path[0] === "setup",
199
199
  io: {
200
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-S7GHCPGR.js")).readSecret(prompt, { input, echo: true }), "ask"),
200
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-FFGBIT4A.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
201
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
202
  `), "say")
203
203
  }
@@ -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-GB5YM5HK.js";
5
+ } from "./chunk-KM4Y55ZE.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-TBD362SJ.js";
8
+ } from "./chunk-GIQFBXQN.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
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
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -18,9 +18,9 @@ import {
18
18
  strictObject,
19
19
  string,
20
20
  unknown
21
- } from "./chunk-TBD362SJ.js";
21
+ } from "./chunk-GIQFBXQN.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/entities/fields.js
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
24
24
  var text = string();
25
25
  var id = pipe(string(), minLength(1));
26
26
  var time = isoTime;
@@ -44,7 +44,7 @@ var author = strictObject({
44
44
  name: nullable(text)
45
45
  });
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/entities/note.js
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
48
48
  var link = {
49
49
  target_text: nullable(text),
50
50
  kind: text,
@@ -85,7 +85,7 @@ var note = strictObject({
85
85
  backlinks: optional(array(strictObject({ from: reference, ...link })))
86
86
  });
87
87
 
88
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
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
89
  var organization = strictObject({
90
90
  id,
91
91
  ref: reference,
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-TBD362SJ.js";
5
+ } from "./chunk-GIQFBXQN.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/languages.js
10
+ // 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/search/languages.js
11
11
  var LANGUAGES = [
12
12
  { name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
13
13
  { name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
@@ -15,12 +15,12 @@ var LANGUAGES = [
15
15
  ];
16
16
  var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/normalize.js
18
+ // 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/store/normalize.js
19
19
  var NORMALIZER_VERSION = 1;
20
20
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
21
21
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
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/search/snowball/base-stemmer.js
24
24
  var BaseStemmer = class {
25
25
  static {
26
26
  __name(this, "BaseStemmer");
@@ -395,7 +395,7 @@ var BaseStemmer = class {
395
395
  }
396
396
  };
397
397
 
398
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
398
+ // 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/search/snowball/english-stemmer.js
399
399
  var a_0 = [
400
400
  ["arsen", -1],
401
401
  ["commun", -1],
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
1096
1096
  stemWord = this.stem;
1097
1097
  };
1098
1098
 
1099
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1099
+ // 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/search/snowball/russian-stemmer.js
1100
1100
  var a_02 = [
1101
1101
  ["\u0432", 1],
1102
1102
  ["\u0438\u0432", 2, 1],
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
1519
1519
  stemWord = this.stem;
1520
1520
  };
1521
1521
 
1522
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1522
+ // 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/search/snowball/spanish-stemmer.js
1523
1523
  var a_03 = [
1524
1524
  ["", 6],
1525
1525
  ["\xE1", 1, 1],
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
2195
2195
  stemWord = this.stem;
2196
2196
  };
2197
2197
 
2198
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/stem.js
2198
+ // 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/search/stem.js
2199
2199
  var SNOWBALL_VERSION = "3.1.1";
2200
2200
  var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
2201
2201
  var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  isCliError
6
- } from "./chunk-TBD362SJ.js";
6
+ } from "./chunk-GIQFBXQN.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/http/listen.js
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
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-C4QKY33N.js";
5
+ } from "./chunk-CGCQNYB3.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine
9
- } from "./chunk-N4VNUOOD.js";
9
+ } from "./chunk-XGNADVIA.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-TBD362SJ.js";
12
+ } from "./chunk-GIQFBXQN.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // 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/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // 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/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // 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/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });