@wirecat/drive-cli 0.57.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +6 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{all-profiles-7LSZ3CC3.js → all-profiles-CVISDGMF.js} +14 -9
- package/dist/bundle/{anthropic-3QRM4QXB.js → anthropic-WLNQC23G.js} +11 -7
- package/dist/bundle/{app-server-WWNMUHID.js → app-server-P2VOONXF.js} +61 -53
- package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
- package/dist/bundle/{bun-sqlite-GSLSN3OT.js → bun-sqlite-MNZICITP.js} +8 -4
- package/dist/bundle/chunk-2AXA5SKP.js +23 -0
- package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
- package/dist/bundle/{chunk-Q3TMNETS.js → chunk-3KJTJDDT.js} +52 -39
- package/dist/bundle/{chunk-4F2VRJZE.js → chunk-3KNZADHJ.js} +5080 -626
- package/dist/bundle/{chunk-GIQFBXQN.js → chunk-3U22QTU6.js} +12 -125
- package/dist/bundle/chunk-3VSUT6BD.js +35 -0
- package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
- package/dist/bundle/{chunk-6CFSDU56.js → chunk-6C6255U6.js} +16 -14
- package/dist/bundle/{chunk-EE7R457T.js → chunk-6CQO2FIN.js} +1569 -739
- package/dist/bundle/{chunk-KHNDZNQA.js → chunk-7QTVIZII.js} +5410 -3002
- package/dist/bundle/{chunk-HNUSPNUQ.js → chunk-A6EG7ZDS.js} +13 -13
- package/dist/bundle/{chunk-WBYCUBYM.js → chunk-A6SLYOP2.js} +49 -42
- package/dist/bundle/{chunk-TR5656OS.js → chunk-AD62XJKO.js} +162 -106
- package/dist/bundle/{chunk-TKVSJV5P.js → chunk-B5GBJ35N.js} +6 -4
- package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
- package/dist/bundle/{chunk-XGNADVIA.js → chunk-CBM2XAEZ.js} +28 -229
- package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-L4BBK7UX.js → chunk-DI5Z4SH5.js} +5 -3
- package/dist/bundle/chunk-EBLA7GXY.js +45 -0
- package/dist/bundle/{chunk-4UQLL6RJ.js → chunk-EHEZSV6I.js} +11 -88
- package/dist/bundle/{chunk-6ZA4NR5H.js → chunk-EORMZCVF.js} +3 -3
- package/dist/bundle/{chunk-W5FOPSJZ.js → chunk-EVETU3TF.js} +10 -8
- package/dist/bundle/{chunk-TZHCS5MG.js → chunk-F3FOL42A.js} +2 -2
- package/dist/bundle/{chunk-2QLLKDE5.js → chunk-FICVPYE4.js} +206 -73
- package/dist/bundle/{chunk-AKPFH3KC.js → chunk-FVQCM7IQ.js} +1 -1
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/{chunk-WAVJWGUC.js → chunk-GI5JBGXH.js} +4611 -1530
- package/dist/bundle/{chunk-SRNXTXJN.js → chunk-GJ4ZCIOP.js} +3 -3
- package/dist/bundle/{chunk-GKHUHRSL.js → chunk-GT5KTGCN.js} +4 -4
- package/dist/bundle/{chunk-WJOKTIOJ.js → chunk-H2BKXPBL.js} +2 -2
- package/dist/bundle/chunk-HIOJRPCT.js +93 -0
- package/dist/bundle/chunk-HIP43OGZ.js +34 -0
- package/dist/bundle/{chunk-2ULJW5BA.js → chunk-HMZAMHKN.js} +2 -2
- package/dist/bundle/{chunk-64E6QXXQ.js → chunk-HWLLVLAB.js} +10 -10
- package/dist/bundle/{chunk-373WJIHE.js → chunk-IADOBOKB.js} +2 -2
- package/dist/bundle/{chunk-B3TPS7BW.js → chunk-IBZ3IBO4.js} +9 -7
- package/dist/bundle/{chunk-QAT6UXZZ.js → chunk-IGF6EXBR.js} +53 -48
- package/dist/bundle/{chunk-KYNTSA6K.js → chunk-II7LST64.js} +5 -5
- package/dist/bundle/{chunk-JLKNUFL2.js → chunk-IIP43FQJ.js} +2 -2
- package/dist/bundle/{chunk-ELIYJXIY.js → chunk-JSDVK3JA.js} +2 -2
- package/dist/bundle/{chunk-UKMFPBAO.js → chunk-JW2CVCUH.js} +4 -4
- package/dist/bundle/{chunk-O5KDIVGE.js → chunk-K4LXGZTE.js} +23 -21
- package/dist/bundle/{chunk-RB674T6L.js → chunk-KFZUODXB.js} +76 -20
- package/dist/bundle/chunk-KPRGTTJH.js +34 -0
- package/dist/bundle/{chunk-XJVK7ETL.js → chunk-L5SE2XZP.js} +23 -15
- package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
- package/dist/bundle/{chunk-VTJF2L5E.js → chunk-LPHMAQJQ.js} +16 -16
- package/dist/bundle/{chunk-566W4Q6L.js → chunk-M6I2SQN7.js} +4 -4
- package/dist/bundle/{chunk-NLLWLCUZ.js → chunk-MEAPA4EZ.js} +2 -2
- package/dist/bundle/{chunk-J2HGHSLX.js → chunk-MKCNUI72.js} +4 -4
- package/dist/bundle/{chunk-CD736BG3.js → chunk-MUUHUHWC.js} +2 -1
- package/dist/bundle/{chunk-AHBUTDS7.js → chunk-OKXSTWKW.js} +8 -8
- package/dist/bundle/{chunk-W6FYYQ2J.js → chunk-OMMEQJOB.js} +3 -3
- package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
- package/dist/bundle/{chunk-KM4Y55ZE.js → chunk-P3ZTW2ZM.js} +7 -7
- package/dist/bundle/{chunk-5KNIVHP6.js → chunk-P7WPYKSB.js} +7 -20
- package/dist/bundle/{chunk-RAEKC6TV.js → chunk-PAEVBAM3.js} +9 -42
- package/dist/bundle/{chunk-LBFFI6FE.js → chunk-PGKIOSN3.js} +9 -7
- package/dist/bundle/{chunk-WJPVGXKA.js → chunk-QTM7USFA.js} +8 -13
- package/dist/bundle/{chunk-EN7OZ5JH.js → chunk-TFH5X46A.js} +37 -22
- package/dist/bundle/{chunk-OZJMZSFB.js → chunk-TI55J3BA.js} +6 -4
- package/dist/bundle/{chunk-R5GJZPRF.js → chunk-TJXPJ3A5.js} +572 -366
- package/dist/bundle/chunk-UQPKAY6I.js +106 -0
- package/dist/bundle/{chunk-JUKVJ7M2.js → chunk-UWVNRPT7.js} +56 -40
- package/dist/bundle/chunk-V36RIXFA.js +201 -0
- package/dist/bundle/{chunk-JIGMCW4C.js → chunk-V42KAPU3.js} +6 -6
- package/dist/bundle/{chunk-7SNS443B.js → chunk-VT6GZAF4.js} +35 -35
- package/dist/bundle/{chunk-ISK4K7UE.js → chunk-VVCZS42A.js} +1 -1
- package/dist/bundle/chunk-W62CON5K.js +166 -0
- package/dist/bundle/{chunk-YZ6SYLDC.js → chunk-XCOCPXCM.js} +2 -2
- package/dist/bundle/{chunk-G34Y5RAC.js → chunk-YADXWQHV.js} +29 -29
- package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
- package/dist/bundle/{chunk-IJ2S53WJ.js → chunk-YV4ABH6J.js} +7 -7
- package/dist/bundle/{chunk-B64EY2SC.js → chunk-ZSMCJKGP.js} +42 -41
- package/dist/bundle/chunk-ZYCLPJ7U.js +46 -0
- package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
- package/dist/bundle/{decode-5MHMPYKE.js → decode-XTOMXMGN.js} +10 -6
- package/dist/bundle/dispatch-T6TW2JJB.js +412 -0
- package/dist/bundle/drive.js +40 -22
- package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
- package/dist/bundle/{embed-TF66ODAR.js → embed-STHKKA6G.js} +9 -5
- package/dist/bundle/{embedder-EDWOIAC2.js → embedder-3XZEWHRO.js} +14 -10
- package/dist/bundle/entry-CNOYSSSD.js +22 -0
- package/dist/bundle/failure-DNQYXP2T.js +26 -0
- package/dist/bundle/first-run-F2SI24PK.js +30 -0
- package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
- package/dist/bundle/{google-A4F2WFO4.js → google-BYNSAIQI.js} +13 -9
- package/dist/bundle/{google-api-ZXGQOJUI.js → google-api-4VTZH7OP.js} +59 -52
- package/dist/bundle/grants-EUQXSICG.js +105 -0
- package/dist/bundle/{identity-4IO7WGG4.js → identity-ARDPFYV5.js} +6 -4
- package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
- package/dist/bundle/{login-A4QHJ5DA.js → login-4VQEC7VI.js} +65 -58
- package/dist/bundle/{mcp-VVMPUDSL.js → mcp-WBHKX5E3.js} +5 -3
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
- package/dist/bundle/{node-sqlite-AFQTE4XZ.js → node-sqlite-3C6PSBIW.js} +14 -4
- package/dist/bundle/oauth-D6NJFPYU.js +22 -0
- package/dist/bundle/{open-WJCRBIP7.js → open-M2V2VYXO.js} +8 -3
- package/dist/bundle/{openai-3TIBDWZA.js → openai-ST2IWNUX.js} +18 -14
- package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
- package/dist/bundle/{program-AHZH65IT.js → program-Q4VWV2MR.js} +193 -147
- package/dist/bundle/prompt-MFIOJMAF.js +17 -0
- package/dist/bundle/{reasons-VHCVYH54.js → reasons-LOQ5J73F.js} +5 -3
- package/dist/bundle/{recognize-4EAKIMON.js → recognize-FBLMWXNE.js} +7 -3
- package/dist/bundle/{remote-HX3JP4EH.js → remote-XC3OXE4T.js} +10 -6
- package/dist/bundle/{rerank-BW3A4PUU.js → rerank-2XMKKF4S.js} +10 -6
- package/dist/bundle/{serve-YYOOLIBS.js → serve-Q2BQHNZB.js} +15 -10
- package/dist/bundle/{server-G6XTEEFI.js → server-42HPV3AH.js} +46 -39
- package/dist/bundle/server-EWZYN323.js +70 -0
- package/dist/bundle/{services-OAPILZOW.js → services-WU22S2MU.js} +100 -26
- package/dist/bundle/{sqlite-runtime-GTXDK4PE.js → sqlite-runtime-CSO6K6B2.js} +9 -4
- package/dist/bundle/start-TZWKM4AH.js +138 -0
- package/dist/bundle/{state-XG335LGZ.js → state-FLUT7U7R.js} +9 -5
- package/dist/bundle/{store-N53SJOPS.js → store-HDWMJ44E.js} +42 -17
- package/dist/bundle/{store-7KOXJNQP.js → store-TG6622NG.js} +20 -12
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
- package/dist/bundle/tokens-TXYURU4S.js +103 -0
- package/dist/commands/documents.d.ts +1 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +14 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +8 -7
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/contract-overrides.js +5 -5
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge-query.d.ts +2 -0
- package/dist/knowledge-query.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts +2 -0
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +13 -0
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts +2 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +9 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/drive-cli/SKILL.md +2 -1
- package/dist/bundle/chunk-3BXSLNWW.js +0 -3607
- package/dist/bundle/chunk-CGCQNYB3.js +0 -18
- package/dist/bundle/command-contract-XIACCAZL.js +0 -35
- package/dist/bundle/entry-CWYCQ53A.js +0 -17
- package/dist/bundle/first-run-YIH7EHJI.js +0 -24
- package/dist/bundle/first-screen-THH3XD5Y.js +0 -33
- package/dist/bundle/grants-3Z7DG3W3.js +0 -98
- package/dist/bundle/oauth-46XBJBML.js +0 -18
- package/dist/bundle/prompt-FFGBIT4A.js +0 -13
- package/dist/bundle/server-YKYEUIJT.js +0 -63
- package/dist/bundle/store-maintenance-command-W3TI52X2.js +0 -52
- package/dist/bundle/tokens-P7TEHKDD.js +0 -96
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
|
@@ -1,55 +1,59 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
filesPresent,
|
|
5
|
+
sharedModelsDirectory
|
|
6
|
+
} from "./chunk-TI55J3BA.js";
|
|
3
7
|
import {
|
|
4
8
|
count,
|
|
5
9
|
id,
|
|
6
10
|
text,
|
|
7
11
|
time
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
filesPresent,
|
|
11
|
-
sharedModelsDirectory
|
|
12
|
-
} from "./chunk-OZJMZSFB.js";
|
|
12
|
+
} from "./chunk-VT6GZAF4.js";
|
|
13
13
|
import {
|
|
14
14
|
PRIORITY_LABELS,
|
|
15
15
|
TAG_TYPES,
|
|
16
16
|
TASK_ORIGINS,
|
|
17
17
|
TASK_STATES,
|
|
18
18
|
TASK_TYPES
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TJXPJ3A5.js";
|
|
20
20
|
import {
|
|
21
21
|
createRecordLog,
|
|
22
22
|
resolvePaths,
|
|
23
23
|
writeSecurely
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CBM2XAEZ.js";
|
|
25
|
+
import {
|
|
26
|
+
traceIdOf
|
|
27
|
+
} from "./chunk-UQPKAY6I.js";
|
|
25
28
|
import {
|
|
26
|
-
CliError,
|
|
27
29
|
array,
|
|
28
30
|
boolean,
|
|
29
|
-
isCliError,
|
|
30
31
|
nullable,
|
|
31
32
|
number,
|
|
32
33
|
optional,
|
|
33
34
|
picklist,
|
|
34
35
|
reference,
|
|
35
|
-
strictObject
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
strictObject
|
|
37
|
+
} from "./chunk-3U22QTU6.js";
|
|
38
|
+
import {
|
|
39
|
+
CliError,
|
|
40
|
+
isCliError
|
|
41
|
+
} from "./chunk-EBLA7GXY.js";
|
|
38
42
|
import {
|
|
39
43
|
__name
|
|
40
44
|
} from "./chunk-ZVVMGPBJ.js";
|
|
41
45
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
43
47
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
44
48
|
import { randomBytes } from "node:crypto";
|
|
45
49
|
|
|
46
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
47
51
|
import { randomUUID } from "node:crypto";
|
|
48
52
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
49
53
|
import { userInfo } from "node:os";
|
|
50
54
|
import { join, sep } from "node:path";
|
|
51
55
|
|
|
52
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
53
57
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
54
58
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
55
59
|
var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -62,7 +66,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
62
66
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
63
67
|
}), "snakeLogger");
|
|
64
68
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
66
70
|
var diagnostic = {
|
|
67
71
|
event: true,
|
|
68
72
|
operation: true,
|
|
@@ -132,7 +136,7 @@ var LOG_ATTRIBUTES = [
|
|
|
132
136
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
133
137
|
].sort();
|
|
134
138
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
136
140
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
137
141
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
138
142
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -485,7 +489,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
485
489
|
};
|
|
486
490
|
}, "metadataOf");
|
|
487
491
|
|
|
488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
489
493
|
var scopes = new AsyncLocalStorage();
|
|
490
494
|
var processScope;
|
|
491
495
|
var currentRun = /* @__PURE__ */ __name(() => {
|
|
@@ -521,7 +525,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
521
525
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
522
526
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
523
527
|
|
|
524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
525
529
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
526
530
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
527
531
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -535,7 +539,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
535
539
|
return ms;
|
|
536
540
|
}, "parseDuration");
|
|
537
541
|
|
|
538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
539
543
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
540
544
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
541
545
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -781,6 +785,7 @@ var NAMED_WRITE_KEYS = [
|
|
|
781
785
|
"mentions.reject",
|
|
782
786
|
"tags.add",
|
|
783
787
|
"tags.remove",
|
|
788
|
+
"tasks.acknowledge",
|
|
784
789
|
"tasks.add",
|
|
785
790
|
"tasks.claim",
|
|
786
791
|
"tasks.close",
|
|
@@ -930,7 +935,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
930
935
|
}
|
|
931
936
|
}, "assertRetentionEvidenceRead");
|
|
932
937
|
|
|
933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
934
939
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
935
940
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
936
941
|
messageId: message.id,
|
|
@@ -1036,7 +1041,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
|
|
|
1036
1041
|
}, "guardedWrite");
|
|
1037
1042
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
1038
1043
|
|
|
1039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
1040
1045
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
1041
1046
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
1042
1047
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -1195,61 +1200,54 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
1195
1200
|
var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
|
|
1196
1201
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
1197
1202
|
|
|
1198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1199
|
-
|
|
1200
|
-
var
|
|
1201
|
-
var
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
throw new CliError("validation_error", `no image model ${id2} \u2014 one of: ${IMAGE_MODELS.map((model) => model.id).join(", ")}`);
|
|
1245
|
-
}
|
|
1246
|
-
return found;
|
|
1247
|
-
}, "imageModel");
|
|
1248
|
-
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
1249
|
-
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
1250
|
-
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
1203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
1204
|
+
var HISTORY_MAX_DAYS = 1095;
|
|
1205
|
+
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
1206
|
+
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
1207
|
+
var historyWindow = /* @__PURE__ */ __name((shape, limits, now) => {
|
|
1208
|
+
const group = shape !== void 0 && shape.kind !== "dialog" && shape.kind !== "saved";
|
|
1209
|
+
if (group && (shape.participantsCount ?? 0) > limits.groupMembersMax)
|
|
1210
|
+
return { skip: "group_too_large", members: shape.participantsCount ?? 0 };
|
|
1211
|
+
const days2 = group ? limits.groupDays : limits.dialogDays;
|
|
1212
|
+
return { keepFrom: now - Math.min(days2, HISTORY_MAX_DAYS) * DAY_MS2 };
|
|
1213
|
+
}, "historyWindow");
|
|
1214
|
+
var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now = Date.now()) => {
|
|
1215
|
+
const skipped = /* @__PURE__ */ new Map();
|
|
1216
|
+
if (!batch.messages?.length)
|
|
1217
|
+
return { batch, skipped };
|
|
1218
|
+
const named = new Map((batch.chats ?? []).map((chat) => [chat.id, chat]));
|
|
1219
|
+
const windows = /* @__PURE__ */ new Map();
|
|
1220
|
+
const windowOf = /* @__PURE__ */ __name((chatId) => {
|
|
1221
|
+
if (!windows.has(chatId)) {
|
|
1222
|
+
const chat = named.get(chatId);
|
|
1223
|
+
const shape = chat ? { kind: chat.kind, participantsCount: chat.participantsCount ?? null } : shapes(chatId);
|
|
1224
|
+
windows.set(chatId, included(chatId) ? void 0 : historyWindow(shape, limits, now));
|
|
1225
|
+
}
|
|
1226
|
+
return windows.get(chatId);
|
|
1227
|
+
}, "windowOf");
|
|
1228
|
+
const messages = batch.messages.filter((message) => {
|
|
1229
|
+
const window = windowOf(message.chatId);
|
|
1230
|
+
if (window === void 0)
|
|
1231
|
+
return true;
|
|
1232
|
+
const at = Date.parse(message.timestamp);
|
|
1233
|
+
if ("keepFrom" in window && !(at < window.keepFrom))
|
|
1234
|
+
return true;
|
|
1235
|
+
const reason = "skip" in window ? window.skip : "older_than_window";
|
|
1236
|
+
const held = skipped.get(message.chatId);
|
|
1237
|
+
const iso = new Date(at).toISOString();
|
|
1238
|
+
skipped.set(message.chatId, {
|
|
1239
|
+
reason,
|
|
1240
|
+
messages: (held?.messages ?? 0) + 1,
|
|
1241
|
+
oldestAt: held && held.oldestAt < iso ? held.oldestAt : iso,
|
|
1242
|
+
newestAt: held && held.newestAt > iso ? held.newestAt : iso,
|
|
1243
|
+
..."skip" in window ? { members: window.members } : { keptFrom: new Date(window.keepFrom).toISOString() }
|
|
1244
|
+
});
|
|
1245
|
+
return false;
|
|
1246
|
+
});
|
|
1247
|
+
return { batch: { ...batch, messages }, skipped };
|
|
1248
|
+
}, "limitBatch");
|
|
1251
1249
|
|
|
1252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
1253
1251
|
var closeSuggestion = strictObject({
|
|
1254
1252
|
as: picklist(["done", "dismissed"]),
|
|
1255
1253
|
/** The agent's name. */
|
|
@@ -1307,7 +1305,7 @@ var task = strictObject({
|
|
|
1307
1305
|
updated_at: optional(time)
|
|
1308
1306
|
});
|
|
1309
1307
|
|
|
1310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
1311
1309
|
var agendaChat = strictObject({
|
|
1312
1310
|
chat: reference,
|
|
1313
1311
|
title: nullable(text),
|
|
@@ -1377,22 +1375,7 @@ var agenda = strictObject({
|
|
|
1377
1375
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
1378
1376
|
});
|
|
1379
1377
|
|
|
1380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1381
|
-
var conversation = strictObject({
|
|
1382
|
-
id,
|
|
1383
|
-
chat: reference,
|
|
1384
|
-
/** The message it starts with. */
|
|
1385
|
-
first_message: reference,
|
|
1386
|
-
started_at: time,
|
|
1387
|
-
ended_at: time,
|
|
1388
|
-
messages_count: count,
|
|
1389
|
-
/** How many people wrote in it. */
|
|
1390
|
-
senders_count: count,
|
|
1391
|
-
built_at: time,
|
|
1392
|
-
rules_version: count
|
|
1393
|
-
});
|
|
1394
|
-
|
|
1395
|
-
// 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/attachment.js
|
|
1378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
1396
1379
|
var attachment = strictObject({
|
|
1397
1380
|
/** The message it came with, as a locator; absent inside that message. */
|
|
1398
1381
|
message: optional(reference),
|
|
@@ -1430,7 +1413,22 @@ var attachment = strictObject({
|
|
|
1430
1413
|
});
|
|
1431
1414
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
1432
1415
|
|
|
1433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
1417
|
+
var conversation = strictObject({
|
|
1418
|
+
id,
|
|
1419
|
+
chat: reference,
|
|
1420
|
+
/** The message it starts with. */
|
|
1421
|
+
first_message: reference,
|
|
1422
|
+
started_at: time,
|
|
1423
|
+
ended_at: time,
|
|
1424
|
+
messages_count: count,
|
|
1425
|
+
/** How many people wrote in it. */
|
|
1426
|
+
senders_count: count,
|
|
1427
|
+
built_at: time,
|
|
1428
|
+
rules_version: count
|
|
1429
|
+
});
|
|
1430
|
+
|
|
1431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
1434
1432
|
var tagging = strictObject({
|
|
1435
1433
|
tag: text,
|
|
1436
1434
|
type: picklist(TAG_TYPES),
|
|
@@ -1443,7 +1441,61 @@ var tagging = strictObject({
|
|
|
1443
1441
|
created_at: time
|
|
1444
1442
|
});
|
|
1445
1443
|
|
|
1446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
1445
|
+
import { join as join2 } from "node:path";
|
|
1446
|
+
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
1447
|
+
var IMAGE_MODELS = [
|
|
1448
|
+
{
|
|
1449
|
+
id: "clip-b32",
|
|
1450
|
+
title: "CLIP ViT-B/32, 8-bit",
|
|
1451
|
+
languages: "English only: translate a query before searching",
|
|
1452
|
+
licence: "MIT",
|
|
1453
|
+
dims: 512,
|
|
1454
|
+
key: "local:clip-b32:512",
|
|
1455
|
+
maxTokens: 77,
|
|
1456
|
+
vision: "onnx/vision_model_quantized.onnx",
|
|
1457
|
+
text: "onnx/text_model_quantized.onnx",
|
|
1458
|
+
files: [
|
|
1459
|
+
{
|
|
1460
|
+
name: "onnx/vision_model_quantized.onnx",
|
|
1461
|
+
url: clip("onnx/vision_model_quantized.onnx"),
|
|
1462
|
+
sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
|
|
1463
|
+
bytes: 89117001
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
name: "onnx/text_model_quantized.onnx",
|
|
1467
|
+
url: clip("onnx/text_model_quantized.onnx"),
|
|
1468
|
+
sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
|
|
1469
|
+
bytes: 64504507
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
name: "tokenizer.json",
|
|
1473
|
+
url: clip("tokenizer.json"),
|
|
1474
|
+
sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
|
|
1475
|
+
bytes: 2224119
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
name: "tokenizer_config.json",
|
|
1479
|
+
url: clip("tokenizer_config.json"),
|
|
1480
|
+
sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
|
|
1481
|
+
bytes: 775
|
|
1482
|
+
}
|
|
1483
|
+
]
|
|
1484
|
+
}
|
|
1485
|
+
];
|
|
1486
|
+
var DEFAULT_IMAGE_MODEL = "clip-b32";
|
|
1487
|
+
var imageModel = /* @__PURE__ */ __name((id2) => {
|
|
1488
|
+
const found = IMAGE_MODELS.find((model) => model.id === id2);
|
|
1489
|
+
if (!found) {
|
|
1490
|
+
throw new CliError("validation_error", `no image model ${id2} \u2014 one of: ${IMAGE_MODELS.map((model) => model.id).join(", ")}`);
|
|
1491
|
+
}
|
|
1492
|
+
return found;
|
|
1493
|
+
}, "imageModel");
|
|
1494
|
+
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
1495
|
+
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
1496
|
+
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
1497
|
+
|
|
1498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
1447
1499
|
var WEIGHTS = {
|
|
1448
1500
|
bot: 3,
|
|
1449
1501
|
scam: 3,
|
|
@@ -1531,20 +1583,24 @@ export {
|
|
|
1531
1583
|
permissionOverrides,
|
|
1532
1584
|
assertOverridesTighten,
|
|
1533
1585
|
assertRetentionEvidenceRead,
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
placedImage,
|
|
1539
|
-
isImageModelInstalled,
|
|
1540
|
-
WEIGHTS,
|
|
1541
|
-
LINK,
|
|
1542
|
-
oddName,
|
|
1586
|
+
HISTORY_MAX_DAYS,
|
|
1587
|
+
DEFAULT_HISTORY_LIMITS,
|
|
1588
|
+
historyWindow,
|
|
1589
|
+
limitBatch,
|
|
1543
1590
|
closeSuggestion,
|
|
1544
1591
|
task,
|
|
1545
1592
|
agenda,
|
|
1546
|
-
conversation,
|
|
1547
1593
|
attachment,
|
|
1548
1594
|
hitFile,
|
|
1549
|
-
|
|
1595
|
+
WEIGHTS,
|
|
1596
|
+
LINK,
|
|
1597
|
+
oddName,
|
|
1598
|
+
conversation,
|
|
1599
|
+
tagging,
|
|
1600
|
+
IMAGE_MODELS,
|
|
1601
|
+
DEFAULT_IMAGE_MODEL,
|
|
1602
|
+
imageModel,
|
|
1603
|
+
imageModelsDirectory,
|
|
1604
|
+
placedImage,
|
|
1605
|
+
isImageModelInstalled
|
|
1550
1606
|
};
|
|
@@ -11,9 +11,8 @@ import {
|
|
|
11
11
|
checkApiParameter,
|
|
12
12
|
operations,
|
|
13
13
|
parseApiJson
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6CQO2FIN.js";
|
|
15
15
|
import {
|
|
16
|
-
CliError,
|
|
17
16
|
array,
|
|
18
17
|
boolean,
|
|
19
18
|
check,
|
|
@@ -28,12 +27,15 @@ import {
|
|
|
28
27
|
string,
|
|
29
28
|
transform,
|
|
30
29
|
unknown
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3U22QTU6.js";
|
|
31
|
+
import {
|
|
32
|
+
CliError
|
|
33
|
+
} from "./chunk-EBLA7GXY.js";
|
|
32
34
|
import {
|
|
33
35
|
__name
|
|
34
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
37
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
37
39
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
38
40
|
var INTEGER = /^-?\d+$/;
|
|
39
41
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|