@wirecat/drive-cli 0.67.0 → 0.68.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.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-DVZUVAPQ.js → all-profiles-BU6XUFUP.js} +7 -7
- package/dist/bundle/{anthropic-Y45C45O2.js → anthropic-ZP5B7S2Z.js} +2 -2
- package/dist/bundle/{app-server-GTXUOUGD.js → app-server-EB4DH6T7.js} +49 -45
- package/dist/bundle/{bun-QVJV76QJ.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-CC7PIAMH.js → bun-sqlite-6VPR2SVC.js} +3 -3
- package/dist/bundle/{chunk-JO7BJYAP.js → chunk-2UHQVRH2.js} +15 -15
- package/dist/bundle/{chunk-NFIR346J.js → chunk-2VYEGKQ3.js} +1 -1
- package/dist/bundle/{chunk-MEY7URZZ.js → chunk-43NEDPXB.js} +4 -4
- package/dist/bundle/{chunk-YVUAG7RF.js → chunk-5G2BY4B6.js} +15 -15
- package/dist/bundle/{chunk-T2VAEDJS.js → chunk-5W65QTYS.js} +3 -3
- package/dist/bundle/{chunk-LSAIXPAX.js → chunk-6HFZZ2PW.js} +1 -1
- package/dist/bundle/{chunk-AJ3DFPRT.js → chunk-6QR7NKMG.js} +1 -1
- package/dist/bundle/{chunk-NWYVOHIX.js → chunk-6WAC2LOS.js} +459 -419
- package/dist/bundle/{chunk-HJF2QGOX.js → chunk-74NCZKRW.js} +29 -16
- package/dist/bundle/{chunk-4VH7M2OD.js → chunk-7A77GYCE.js} +2 -2
- package/dist/bundle/{chunk-2PIA45FC.js → chunk-7BXVI7XF.js} +1 -1
- package/dist/bundle/{chunk-ETAFFY3J.js → chunk-7TNQZKRD.js} +52 -52
- package/dist/bundle/{chunk-E3XA56TS.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-EXWOOST5.js → chunk-AXYG2DDY.js} +111 -83
- package/dist/bundle/{chunk-LXRBTXCZ.js → chunk-BXHFJTU5.js} +2 -2
- package/dist/bundle/{chunk-OOBSSU2G.js → chunk-CK2SQ2CE.js} +14 -13
- package/dist/bundle/{chunk-MF46W7PQ.js → chunk-CMWFYZ45.js} +1 -1
- package/dist/bundle/{chunk-4G7WQNG7.js → chunk-CRIEW4FP.js} +1 -1
- package/dist/bundle/{chunk-RC72RU66.js → chunk-CVAJMRRD.js} +5 -5
- package/dist/bundle/{chunk-YI4DXASF.js → chunk-DIZBJLPM.js} +36 -32
- package/dist/bundle/{chunk-FS2PG2PE.js → chunk-DU23ET2O.js} +18 -18
- package/dist/bundle/{chunk-JY2GZDJL.js → chunk-DYLYH7VE.js} +3 -3
- package/dist/bundle/{chunk-C72WYRXD.js → chunk-EEE4H2PA.js} +10 -10
- package/dist/bundle/{chunk-2MEVCMBW.js → chunk-EOC7RHJ2.js} +3 -3
- package/dist/bundle/{chunk-ZH4H5XTA.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-VZ5KETIX.js → chunk-F7KAMSXA.js} +2 -2
- package/dist/bundle/{chunk-SJE7UGOW.js → chunk-FAMXUI2X.js} +4 -4
- package/dist/bundle/{chunk-IRULPE5M.js → chunk-GTLXBAJV.js} +297 -281
- package/dist/bundle/{chunk-UFNE57VY.js → chunk-IVOG6T6P.js} +2 -2
- package/dist/bundle/{chunk-MBLB4TQI.js → chunk-J5LXL435.js} +18 -18
- package/dist/bundle/{chunk-XZCF5XU7.js → chunk-JMZQBRRZ.js} +5 -5
- package/dist/bundle/{chunk-PDHN4GHU.js → chunk-JZ3MT7IE.js} +1 -1
- package/dist/bundle/{chunk-P6A77LMP.js → chunk-KPKIHJIT.js} +5 -7
- package/dist/bundle/{chunk-2Y3YBDZX.js → chunk-MLSXHTUB.js} +137 -135
- package/dist/bundle/{chunk-ZEPDEFVT.js → chunk-MOKEB656.js} +1 -1
- package/dist/bundle/{chunk-BHSLMJF7.js → chunk-MWCPKUU4.js} +4 -4
- package/dist/bundle/{chunk-ULH3TNUP.js → chunk-NV75QPML.js} +4 -4
- package/dist/bundle/{chunk-CWDC6QJM.js → chunk-O7T3WGCV.js} +4 -4
- package/dist/bundle/{chunk-JJHDV32D.js → chunk-PGPHEC2X.js} +1 -1
- package/dist/bundle/{chunk-AAZPDWRD.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-MEQNAZ6R.js → chunk-PWIEOATY.js} +5 -5
- package/dist/bundle/{chunk-6ERQE4FS.js → chunk-Q6BD6RUH.js} +40 -40
- package/dist/bundle/{chunk-3RG6LL25.js → chunk-QKY24RWV.js} +10 -10
- package/dist/bundle/{chunk-ABJQ6IDU.js → chunk-QRSPFCRY.js} +16 -16
- package/dist/bundle/{chunk-U2ERT45N.js → chunk-QTRYJZL7.js} +4 -4
- package/dist/bundle/{chunk-SXJDCRXE.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-WBKYZZQT.js → chunk-QWGEOQHA.js} +1 -1
- package/dist/bundle/{chunk-AZKFZ7J7.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-DAFKV6DJ.js → chunk-RT5NT62B.js} +12 -12
- package/dist/bundle/{chunk-UOAHZV3K.js → chunk-SOS4U2RF.js} +18 -18
- package/dist/bundle/{chunk-ZU5VQYNY.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-5DMPGTNR.js → chunk-U52QE4QV.js} +2 -2
- package/dist/bundle/{chunk-JLUQZZ26.js → chunk-UFPRP7MG.js} +7 -7
- package/dist/bundle/{chunk-WWW7YTFG.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-WKIQKGOF.js → chunk-ULNN3LCY.js} +26 -24
- package/dist/bundle/{chunk-5TSILGTO.js → chunk-UUQJVKPB.js} +323 -323
- package/dist/bundle/{chunk-7AZCAUST.js → chunk-UYBLNGZ2.js} +1 -1
- package/dist/bundle/{chunk-V7E25BUU.js → chunk-WCNTDETD.js} +2 -2
- package/dist/bundle/{chunk-ZK46UHDP.js → chunk-WGX4DZPW.js} +2 -2
- package/dist/bundle/{chunk-7J2IP3WL.js → chunk-WUFZGPXX.js} +6 -6
- package/dist/bundle/{chunk-Y5WSRG3F.js → chunk-YUGTJBV3.js} +2 -2
- package/dist/bundle/{chunk-JCNEPYQZ.js → chunk-YYIWPH53.js} +12 -12
- package/dist/bundle/{chunk-RLH6BOEG.js → chunk-Z5BMYI2V.js} +5 -5
- package/dist/bundle/{chunk-FOMQ4MG3.js → chunk-ZAIE3G5I.js} +2 -2
- package/dist/bundle/{chunk-QOKPRFHM.js → chunk-ZSVMZH5O.js} +2 -2
- package/dist/bundle/{chunk-JEMBW6IO.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{cli-U4LSBYDV.js → cli-L7P36YUH.js} +50 -50
- package/dist/bundle/{command-contract-UU5T24ZZ.js → command-contract-EYFGMKIG.js} +16 -16
- package/dist/bundle/{command-server-entry-PK6FBUPO.js → command-server-entry-H3VGPOLJ.js} +23 -23
- package/dist/bundle/{decode-3ZE6NBKV.js → decode-JEU6JWCV.js} +2 -2
- package/dist/bundle/drive.js +3 -3
- package/dist/bundle/{echarts-6FWNCNXK.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-DGYBBZUW.js → embed-WUKOASQG.js} +3 -3
- package/dist/bundle/{embedder-O7A6VMWI.js → embedder-UBRAXRDZ.js} +6 -6
- package/dist/bundle/{entry-CDJ2QSU2.js → entry-C4NUQFTF.js} +6 -6
- package/dist/bundle/{first-run-UOQW7DN5.js → first-run-PKHBS7B4.js} +5 -5
- package/dist/bundle/{first-screen-SNDV4YKF.js → first-screen-QOVOM4BF.js} +17 -17
- package/dist/bundle/{google-HPX52KMC.js → google-XXHSMTVK.js} +14 -14
- package/dist/bundle/{google-api-HIMN4XL5.js → google-api-SQQ4BSNR.js} +51 -51
- package/dist/bundle/{grants-RO42I6E4.js → grants-2U4JVT6O.js} +56 -56
- package/dist/bundle/{identity-NFGHDPLL.js → identity-SRL6RSU2.js} +1 -1
- package/dist/bundle/{instructions-6JAQYCM6.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{login-RZOQN63N.js → login-N243GGEE.js} +56 -56
- package/dist/bundle/{node-KSIX3GIH.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-4FJ6WJXN.js → node-sqlite-SZQCCMV2.js} +4 -4
- package/dist/bundle/{oauth-BKZAMFKK.js → oauth-CMAFXX6A.js} +4 -4
- package/dist/bundle/{open-4AQJGH42.js → open-RVTPKDA3.js} +2 -2
- package/dist/bundle/{openai-24F2OX55.js → openai-6NN63BMH.js} +13 -13
- package/dist/bundle/{process-7NOA2T7H.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-7JHMLDEX.js → program-B4QBJYB5.js} +78 -75
- package/dist/bundle/{prompt-NM66MAZ4.js → prompt-HGP2DSRW.js} +2 -2
- package/dist/bundle/{recognize-DBKV2JYZ.js → recognize-26SHB7HI.js} +1 -1
- package/dist/bundle/{remote-ABWUTBVB.js → remote-Z4PWHZ5N.js} +7 -7
- package/dist/bundle/{rerank-FQAU4ENY.js → rerank-QHJZJK3Q.js} +4 -4
- package/dist/bundle/{serve-QLJG4QZD.js → serve-MYJW5IEM.js} +6 -6
- package/dist/bundle/server-HBZPIHDX.js +74 -0
- package/dist/bundle/{server-VGZNK5XD.js → server-XFW3V7CR.js} +38 -36
- package/dist/bundle/{services-5KARVUHK.js → services-IQG2RVTO.js} +25 -25
- package/dist/bundle/{sqlite-runtime-ILF6EFQJ.js → sqlite-runtime-X4GB5PBV.js} +3 -3
- package/dist/bundle/{state-R2M56GPU.js → state-ATQK2X3W.js} +3 -3
- package/dist/bundle/{store-2OBVMUQL.js → store-MEHEUOJH.js} +11 -11
- package/dist/bundle/{store-DA4K7HWW.js → store-QUBUPK6F.js} +13 -13
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
- package/dist/bundle/tokens-A2GP4F34.js +111 -0
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -2
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-NUBLY5SV.js +0 -74
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +0 -65
- package/dist/bundle/tokens-VQDGSHRB.js +0 -111
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
activeProfile,
|
|
5
5
|
paths
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RT5NT62B.js";
|
|
7
7
|
import {
|
|
8
8
|
READ_SCOPE,
|
|
9
9
|
WRITE_SCOPE
|
|
@@ -13,19 +13,19 @@ import {
|
|
|
13
13
|
} from "./chunk-Y2QVNVHK.js";
|
|
14
14
|
import {
|
|
15
15
|
providerRequest
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UUQJVKPB.js";
|
|
17
17
|
import {
|
|
18
18
|
withTimeLimit
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Q6BD6RUH.js";
|
|
20
20
|
import {
|
|
21
21
|
acquireLock
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YYIWPH53.js";
|
|
23
23
|
import {
|
|
24
24
|
hostFetch
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6QR7NKMG.js";
|
|
26
26
|
import {
|
|
27
27
|
DESKTOP
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6HFZZ2PW.js";
|
|
29
29
|
import {
|
|
30
30
|
Credentials,
|
|
31
31
|
isMovedRun,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
__name
|
|
51
51
|
} from "./chunk-ZVVMGPBJ.js";
|
|
52
52
|
|
|
53
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
53
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
|
|
54
54
|
import { createHash, randomBytes } from "node:crypto";
|
|
55
55
|
import { createServer } from "node:http";
|
|
56
56
|
var DEFAULT_TIMEOUT_MS = 3e5;
|
|
@@ -186,12 +186,12 @@ var authorize = /* @__PURE__ */ __name(async (options) => {
|
|
|
186
186
|
}
|
|
187
187
|
}, "authorize");
|
|
188
188
|
|
|
189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
|
|
190
190
|
import { createHash as createHash2 } from "node:crypto";
|
|
191
191
|
import { join } from "node:path";
|
|
192
192
|
import { setTimeout as delay } from "node:timers/promises";
|
|
193
193
|
|
|
194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/requests.js
|
|
195
195
|
var REQUEST_LIMIT_MS = 3e4;
|
|
196
196
|
var TOKEN_LOG_EVENT = "oauth.token";
|
|
197
197
|
var object2 = /* @__PURE__ */ __name((value) => {
|
|
@@ -288,6 +288,15 @@ var exchangeTokens = /* @__PURE__ */ __name(async (provider, params, context, de
|
|
|
288
288
|
...tokenType ? { tokenType } : {}
|
|
289
289
|
};
|
|
290
290
|
}, "exchangeTokens");
|
|
291
|
+
var alreadyRevoked = /* @__PURE__ */ __name(async (response) => {
|
|
292
|
+
if (response.status !== 400)
|
|
293
|
+
return false;
|
|
294
|
+
try {
|
|
295
|
+
return object2(JSON.parse(await response.text())).error === "invalid_token";
|
|
296
|
+
} catch {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
}, "alreadyRevoked");
|
|
291
300
|
var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
|
|
292
301
|
if (provider.revoke)
|
|
293
302
|
return provider.revoke(tokens, context);
|
|
@@ -295,23 +304,27 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
|
|
|
295
304
|
throw new CliError("validation_error", `${provider.name} declares no way to revoke a sign-in`);
|
|
296
305
|
const { revokeUrl } = provider;
|
|
297
306
|
const form = new URLSearchParams({ token: tokens.refreshToken, ...clientFields(context) });
|
|
298
|
-
const response = await withTimeLimit(REQUEST_LIMIT_MS, (deadline) =>
|
|
299
|
-
|
|
307
|
+
const { response, gone } = await withTimeLimit(REQUEST_LIMIT_MS, async (deadline) => {
|
|
308
|
+
const response2 = await post(revokeUrl, form, context, deadline);
|
|
309
|
+
return { response: response2, gone: response2 ? await alreadyRevoked(response2) : false };
|
|
310
|
+
});
|
|
311
|
+
const done = response?.ok || gone;
|
|
312
|
+
context.log?.[done ? "info" : "warn"]({
|
|
300
313
|
event: TOKEN_LOG_EVENT,
|
|
301
314
|
provider: provider.id,
|
|
302
315
|
operation: "revoke",
|
|
303
316
|
pid: process.pid,
|
|
304
|
-
outcome: response?.ok ? "revoked" : response ? "rejected" : "no_response",
|
|
317
|
+
outcome: response?.ok ? "revoked" : gone ? "already_revoked" : response ? "rejected" : "no_response",
|
|
305
318
|
...response ? { status: response.status } : {}
|
|
306
319
|
});
|
|
307
|
-
if (!
|
|
320
|
+
if (!done)
|
|
308
321
|
throw new CliError("outcome_unknown", `${provider.name} did not confirm the revoke`, {
|
|
309
322
|
reason: "oauth.revoke-failed",
|
|
310
323
|
...response ? { status: response.status } : {}
|
|
311
324
|
});
|
|
312
325
|
}, "revokeToken");
|
|
313
326
|
|
|
314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
|
|
315
328
|
var inFlight = /* @__PURE__ */ new Map();
|
|
316
329
|
var refreshedInMemory = /* @__PURE__ */ new Map();
|
|
317
330
|
var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
@@ -473,7 +486,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
|
473
486
|
};
|
|
474
487
|
}, "tokenKeeper");
|
|
475
488
|
|
|
476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/provider.js
|
|
477
490
|
var googleProvider = /* @__PURE__ */ __name((client, { loginHint } = {}) => ({
|
|
478
491
|
id: "google",
|
|
479
492
|
name: "Google",
|
|
@@ -490,7 +503,7 @@ var googleProvider = /* @__PURE__ */ __name((client, { loginHint } = {}) => ({
|
|
|
490
503
|
}
|
|
491
504
|
}), "googleProvider");
|
|
492
505
|
|
|
493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/storage.js
|
|
494
507
|
var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
|
|
495
508
|
var parse = /* @__PURE__ */ __name((raw) => {
|
|
496
509
|
let value;
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
endpoint
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6QR7NKMG.js";
|
|
6
6
|
import {
|
|
7
7
|
check,
|
|
8
8
|
getDotPath,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
29
29
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
30
30
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
31
31
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
sharedModel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z5BMYI2V.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5G2BY4B6.js";
|
|
10
10
|
import {
|
|
11
11
|
chatEventAnswer,
|
|
12
12
|
memberAnswer,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
serveRelay,
|
|
16
16
|
typedQuery,
|
|
17
17
|
withQuery
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2UHQVRH2.js";
|
|
19
19
|
import {
|
|
20
20
|
FETCHING,
|
|
21
21
|
RULES_VERSION,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
senderIsMe,
|
|
30
30
|
servicesFor,
|
|
31
31
|
syncsOneChat
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GTLXBAJV.js";
|
|
33
33
|
import {
|
|
34
34
|
embeddingKeys,
|
|
35
35
|
endpointKeyName,
|
|
36
36
|
modelGateway,
|
|
37
37
|
withTimeLimit
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Q6BD6RUH.js";
|
|
39
39
|
import {
|
|
40
40
|
stringWidth,
|
|
41
41
|
wrapAnsi
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
releaseLock,
|
|
47
47
|
servingProfiles,
|
|
48
48
|
takeLock
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-U52QE4QV.js";
|
|
50
50
|
import {
|
|
51
51
|
QUICK_HEALTH_CHECKS,
|
|
52
52
|
fts5Tables,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
lossUnknown,
|
|
55
55
|
storeDamageReport,
|
|
56
56
|
storeHealth
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QRSPFCRY.js";
|
|
58
58
|
import {
|
|
59
59
|
Command,
|
|
60
60
|
LOCAL_READ,
|
|
@@ -78,21 +78,21 @@ import {
|
|
|
78
78
|
snakeKeys,
|
|
79
79
|
storeTable,
|
|
80
80
|
withoutProviderRefs
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-MLSXHTUB.js";
|
|
82
82
|
import {
|
|
83
83
|
codeOf,
|
|
84
84
|
levelFor,
|
|
85
85
|
parseDuration
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-J5LXL435.js";
|
|
87
87
|
import {
|
|
88
88
|
modelTarget
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-7A77GYCE.js";
|
|
90
90
|
import {
|
|
91
91
|
holdersOf
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-UIKVP23D.js";
|
|
93
93
|
import {
|
|
94
94
|
readSecret
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-ZAIE3G5I.js";
|
|
96
96
|
import {
|
|
97
97
|
CORPORA,
|
|
98
98
|
MIGRATIONS,
|
|
@@ -127,10 +127,10 @@ import {
|
|
|
127
127
|
storeClients,
|
|
128
128
|
storeContents,
|
|
129
129
|
vectorIndexCounts
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-6WAC2LOS.js";
|
|
131
131
|
import {
|
|
132
132
|
openCache
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-CVAJMRRD.js";
|
|
134
134
|
import {
|
|
135
135
|
currentRun,
|
|
136
136
|
formatLocator,
|
|
@@ -139,17 +139,17 @@ import {
|
|
|
139
139
|
readHealthMark,
|
|
140
140
|
readJournalMark,
|
|
141
141
|
recordDeepCheck
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-AXYG2DDY.js";
|
|
143
143
|
import {
|
|
144
144
|
queryFieldsOf
|
|
145
145
|
} from "./chunk-UPCEHSIZ.js";
|
|
146
146
|
import {
|
|
147
147
|
failureKey,
|
|
148
148
|
isStoreDamage
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
150
150
|
import {
|
|
151
151
|
storePath
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-CRIEW4FP.js";
|
|
153
153
|
import {
|
|
154
154
|
resolvePaths,
|
|
155
155
|
writeSecurely
|
|
@@ -5521,11 +5521,11 @@ var require_liquid_node = __commonJS({
|
|
|
5521
5521
|
}
|
|
5522
5522
|
});
|
|
5523
5523
|
|
|
5524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5525
5525
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5526
5526
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5527
5527
|
|
|
5528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5529
5529
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5530
5530
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5531
5531
|
import { Transform } from "node:stream";
|
|
@@ -5632,7 +5632,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5632
5632
|
renameSync(pending, to);
|
|
5633
5633
|
}, "unsealFile");
|
|
5634
5634
|
|
|
5635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5636
5636
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5637
5637
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5638
5638
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5656,7 +5656,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5656
5656
|
};
|
|
5657
5657
|
}, "compatibilityOf");
|
|
5658
5658
|
|
|
5659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5660
5660
|
import { createHash as createHash2 } from "node:crypto";
|
|
5661
5661
|
var COPY_MARK = "__repair_";
|
|
5662
5662
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5910,19 +5910,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5910
5910
|
return found;
|
|
5911
5911
|
}, "deleteCopy");
|
|
5912
5912
|
|
|
5913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5914
5914
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5915
5915
|
|
|
5916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5917
5917
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5918
5918
|
|
|
5919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5920
5920
|
import { execFileSync, spawn } from "node:child_process";
|
|
5921
5921
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5922
5922
|
import { basename, dirname, join } from "node:path";
|
|
5923
5923
|
import { Transform as Transform2 } from "node:stream";
|
|
5924
5924
|
|
|
5925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5926
5926
|
var REFILL_MARGIN_MS = 864e5;
|
|
5927
5927
|
var TIME_KEYS = 1e12;
|
|
5928
5928
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6002,7 +6002,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6002
6002
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6003
6003
|
}, "forgetMail");
|
|
6004
6004
|
|
|
6005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6006
6006
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6007
6007
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6008
6008
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6530,7 +6530,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6530
6530
|
}
|
|
6531
6531
|
}, "recoverLocked");
|
|
6532
6532
|
|
|
6533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6534
6534
|
var COUNTED = [
|
|
6535
6535
|
"accounts",
|
|
6536
6536
|
"chats",
|
|
@@ -6686,7 +6686,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6686
6686
|
return recover;
|
|
6687
6687
|
}, "storeRecoverCommand");
|
|
6688
6688
|
|
|
6689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6690
6690
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6691
6691
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6692
6692
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6736,7 +6736,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
|
|
|
6736
6736
|
return app ? store.addCommand(storeRecoverCommand(app)) : store;
|
|
6737
6737
|
}, "sharedStoreCommand");
|
|
6738
6738
|
|
|
6739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6740
6740
|
var ENCRYPT_OPTION = [
|
|
6741
6741
|
"--encrypt",
|
|
6742
6742
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6755,7 +6755,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6755
6755
|
return password;
|
|
6756
6756
|
}, "passwordOf");
|
|
6757
6757
|
|
|
6758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6759
6759
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6760
6760
|
import { join as join2 } from "node:path";
|
|
6761
6761
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6926,7 +6926,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6926
6926
|
}, "problem");
|
|
6927
6927
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6928
6928
|
|
|
6929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6930
6930
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6931
6931
|
import { join as join3 } from "node:path";
|
|
6932
6932
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6979,7 +6979,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6979
6979
|
}, "recordReply");
|
|
6980
6980
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6981
6981
|
|
|
6982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6983
6983
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6984
6984
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6985
6985
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7085,10 +7085,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7085
7085
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7086
7086
|
}, "filled");
|
|
7087
7087
|
|
|
7088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7089
7089
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7090
7090
|
|
|
7091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7092
7092
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7093
7093
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7094
7094
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7115,7 +7115,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7115
7115
|
return engine;
|
|
7116
7116
|
}, "safeLiquid");
|
|
7117
7117
|
|
|
7118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7119
7119
|
var TEMPLATE_LIMITS = {
|
|
7120
7120
|
parse: 32768,
|
|
7121
7121
|
renders: 2e3,
|
|
@@ -7254,7 +7254,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7254
7254
|
}
|
|
7255
7255
|
}, "renderReplyTemplate");
|
|
7256
7256
|
|
|
7257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7258
7258
|
var DRY_RUN_DAYS = 7;
|
|
7259
7259
|
var PAGE = 500;
|
|
7260
7260
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7368,7 +7368,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7368
7368
|
}
|
|
7369
7369
|
}, "storedSince");
|
|
7370
7370
|
|
|
7371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7372
7372
|
var HOSTED = {
|
|
7373
7373
|
openai: "https://api.openai.com/v1",
|
|
7374
7374
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7389,7 +7389,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7389
7389
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7390
7390
|
}, "purposeModel");
|
|
7391
7391
|
|
|
7392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7393
7393
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7394
7394
|
import { join as join4 } from "node:path";
|
|
7395
7395
|
var shape = strictObject({
|
|
@@ -7414,7 +7414,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7414
7414
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7415
7415
|
}, "mayModelReply");
|
|
7416
7416
|
|
|
7417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7418
7418
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7419
7419
|
ai: true
|
|
7420
7420
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7462,7 +7462,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7462
7462
|
return result2;
|
|
7463
7463
|
}, "replyRenderer");
|
|
7464
7464
|
|
|
7465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7466
7466
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7467
7467
|
var NO_RULES = "no rules";
|
|
7468
7468
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7555,7 +7555,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7555
7555
|
return { skip: why };
|
|
7556
7556
|
}, "replyTo");
|
|
7557
7557
|
|
|
7558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7559
7559
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7560
7560
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7561
7561
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7632,7 +7632,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7632
7632
|
};
|
|
7633
7633
|
}, "startSync");
|
|
7634
7634
|
|
|
7635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7636
7636
|
var FIRST_FETCH_MS = 6e4;
|
|
7637
7637
|
var DAY_MS = 864e5;
|
|
7638
7638
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7686,7 +7686,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7686
7686
|
};
|
|
7687
7687
|
}, "memberFetches");
|
|
7688
7688
|
|
|
7689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7690
7690
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7691
7691
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7692
7692
|
if (context.format === "pretty") {
|
|
@@ -7719,7 +7719,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7719
7719
|
return context;
|
|
7720
7720
|
}, "recordDiagnostics");
|
|
7721
7721
|
|
|
7722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7723
7723
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7724
7724
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7725
7725
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7805,7 +7805,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7805
7805
|
};
|
|
7806
7806
|
}, "watchOutdated");
|
|
7807
7807
|
|
|
7808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7809
7809
|
var STEMS_EVERY_MS = 3e4;
|
|
7810
7810
|
var STEMS_SLICE_MS = 2e3;
|
|
7811
7811
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7845,7 +7845,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7845
7845
|
};
|
|
7846
7846
|
}, "stemFills");
|
|
7847
7847
|
|
|
7848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7849
7849
|
import { styleText } from "node:util";
|
|
7850
7850
|
var TIME_WIDTH = 8;
|
|
7851
7851
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8021,7 +8021,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8021
8021
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8022
8022
|
}, "editedAt");
|
|
8023
8023
|
|
|
8024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8025
8025
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8026
8026
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8027
8027
|
kind: attachment.kind,
|
|
@@ -8117,7 +8117,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8117
8117
|
locale: messenger.app.locale
|
|
8118
8118
|
}), "viewOf");
|
|
8119
8119
|
|
|
8120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8121
8121
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8122
8122
|
value: value.value,
|
|
8123
8123
|
observed_at: value.observedAt,
|
|
@@ -8184,7 +8184,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8184
8184
|
}
|
|
8185
8185
|
}, "watchEventItem");
|
|
8186
8186
|
|
|
8187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8188
8188
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8189
8189
|
output: { entity: "watch_item" },
|
|
8190
8190
|
effects: REMOTE_READ,
|
|
@@ -8339,7 +8339,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8339
8339
|
}
|
|
8340
8340
|
}, "describe");
|
|
8341
8341
|
|
|
8342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8343
8343
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8344
8344
|
const command = annotate(new Command("serve"), {
|
|
8345
8345
|
output: { entity: "serve_summary" },
|
|
@@ -8622,7 +8622,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8622
8622
|
};
|
|
8623
8623
|
}, "tasking");
|
|
8624
8624
|
|
|
8625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8626
8626
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8627
8627
|
var PATH = "store tables list";
|
|
8628
8628
|
var STORE_TABLES_QUERY = {
|
|
@@ -8665,7 +8665,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8665
8665
|
return tables;
|
|
8666
8666
|
}, "storeTablesCommand");
|
|
8667
8667
|
|
|
8668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8669
8669
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8670
8670
|
var WORD_INDEX = "message_words";
|
|
8671
8671
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|