@wirecat/drive-cli 0.59.0 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{all-profiles-CVISDGMF.js → all-profiles-537I27Z4.js} +11 -11
- package/dist/bundle/{anthropic-WLNQC23G.js → anthropic-X4NWVHDF.js} +7 -7
- package/dist/bundle/{app-server-P2VOONXF.js → app-server-KSHJKKS7.js} +47 -47
- package/dist/bundle/{bun-CDFBNTKV.js → bun-WTBGGCUC.js} +2 -2
- package/dist/bundle/{bun-sqlite-MNZICITP.js → bun-sqlite-T7Y3JFFD.js} +6 -6
- package/dist/bundle/{chunk-YV4ABH6J.js → chunk-22ATLSNK.js} +3 -3
- package/dist/bundle/{chunk-CBM2XAEZ.js → chunk-246P2DCT.js} +3 -3
- package/dist/bundle/{chunk-H2BKXPBL.js → chunk-3TQHIHZI.js} +2 -2
- package/dist/bundle/{chunk-IGF6EXBR.js → chunk-4CBZEAQ7.js} +32 -32
- package/dist/bundle/{chunk-L5SE2XZP.js → chunk-4VHBDVY2.js} +1 -1
- package/dist/bundle/{chunk-IIP43FQJ.js → chunk-4XZXH2NM.js} +1 -1
- package/dist/bundle/{chunk-UWVNRPT7.js → chunk-57QVQGBE.js} +21 -21
- package/dist/bundle/{chunk-A6SLYOP2.js → chunk-5AMRCBMP.js} +67 -34
- package/dist/bundle/{chunk-ZSMCJKGP.js → chunk-5XHLQZAG.js} +27 -26
- package/dist/bundle/{chunk-YADXWQHV.js → chunk-67QXMO2G.js} +25 -25
- package/dist/bundle/{chunk-36B7AIGP.js → chunk-6HTKB4WC.js} +1 -1
- package/dist/bundle/{chunk-5C7K6XIT.js → chunk-73MNUSP3.js} +1 -1
- package/dist/bundle/{chunk-3KNZADHJ.js → chunk-73TTP6ET.js} +431 -187
- package/dist/bundle/{chunk-IBZ3IBO4.js → chunk-77C5XRH3.js} +5 -5
- package/dist/bundle/{chunk-PGKIOSN3.js → chunk-77YTRBL6.js} +10 -10
- package/dist/bundle/{chunk-TI55J3BA.js → chunk-ALWTUDZF.js} +3 -3
- package/dist/bundle/{chunk-HWLLVLAB.js → chunk-AXWXQNTC.js} +13 -10
- package/dist/bundle/{chunk-P7WPYKSB.js → chunk-CKGHRWVR.js} +2 -2
- package/dist/bundle/{chunk-JW2CVCUH.js → chunk-D6WIWOQC.js} +3 -3
- package/dist/bundle/{chunk-A6EG7ZDS.js → chunk-DMHGWL5D.js} +12 -12
- package/dist/bundle/{chunk-FICVPYE4.js → chunk-DQDKLZAK.js} +47 -47
- package/dist/bundle/{chunk-JSDVK3JA.js → chunk-EHAI773E.js} +1 -1
- package/dist/bundle/{chunk-UQPKAY6I.js → chunk-FO4TCH6P.js} +1 -1
- package/dist/bundle/{chunk-GJ4ZCIOP.js → chunk-FTZNUZO7.js} +3 -3
- package/dist/bundle/{chunk-6C6255U6.js → chunk-FZOCQQ66.js} +11 -11
- package/dist/bundle/{chunk-EHEZSV6I.js → chunk-GD6TQ6U4.js} +8 -8
- package/dist/bundle/{chunk-XCOCPXCM.js → chunk-GVRS5AIH.js} +2 -2
- package/dist/bundle/{chunk-DI5Z4SH5.js → chunk-HCJG7ENG.js} +2 -2
- package/dist/bundle/{chunk-AD62XJKO.js → chunk-HFGR33KD.js} +24 -24
- package/dist/bundle/{chunk-K4LXGZTE.js → chunk-HQVIK6PM.js} +36 -18
- package/dist/bundle/{chunk-YU3PTU3D.js → chunk-IRZ7OF3F.js} +1 -1
- package/dist/bundle/{chunk-LJ7E4HLQ.js → chunk-IXN7Y6JA.js} +1 -1
- package/dist/bundle/{chunk-7QTVIZII.js → chunk-JGUJJNGZ.js} +790 -325
- package/dist/bundle/{chunk-FVQCM7IQ.js → chunk-JQLIM6BH.js} +4 -4
- package/dist/bundle/{chunk-BSGOM3BD.js → chunk-K6XVRA6U.js} +1 -1
- package/dist/bundle/{chunk-3VSUT6BD.js → chunk-KEXTTZJM.js} +2 -2
- package/dist/bundle/{chunk-V36RIXFA.js → chunk-LJ77Y3TK.js} +1 -1
- package/dist/bundle/{chunk-II7LST64.js → chunk-LQSRVQ3V.js} +3 -2
- package/dist/bundle/{chunk-OKXSTWKW.js → chunk-MVNPE5FZ.js} +7 -7
- package/dist/bundle/{chunk-M6I2SQN7.js → chunk-MXP35VPO.js} +2 -2
- package/dist/bundle/{chunk-TJXPJ3A5.js → chunk-N7S2UPF3.js} +135 -60
- package/dist/bundle/{chunk-3KJTJDDT.js → chunk-O37ESNAP.js} +17 -17
- package/dist/bundle/{chunk-EVETU3TF.js → chunk-OMKUBCNN.js} +7 -7
- package/dist/bundle/{chunk-MUUHUHWC.js → chunk-OYNUBWD2.js} +1 -22
- package/dist/bundle/{chunk-PAEVBAM3.js → chunk-PDYHEWKG.js} +4 -4
- package/dist/bundle/{chunk-EORMZCVF.js → chunk-PETFPXLU.js} +2 -2
- package/dist/bundle/{chunk-GI5JBGXH.js → chunk-PPL5ASW2.js} +613 -372
- package/dist/bundle/{chunk-B5GBJ35N.js → chunk-QIJWSKZL.js} +2 -2
- package/dist/bundle/{chunk-OZH4ALTI.js → chunk-S36HRPNS.js} +1 -1
- package/dist/bundle/{chunk-KFZUODXB.js → chunk-SBHSNOU4.js} +34 -18
- package/dist/bundle/{chunk-F3FOL42A.js → chunk-SZXI4OXX.js} +1 -1
- package/dist/bundle/{chunk-3U22QTU6.js → chunk-TKW4QWCY.js} +12 -0
- package/dist/bundle/{chunk-6CQO2FIN.js → chunk-TVQDMP2F.js} +391 -282
- package/dist/bundle/{chunk-GT5KTGCN.js → chunk-TXMTMEHW.js} +4 -4
- package/dist/bundle/{chunk-IADOBOKB.js → chunk-UNJE63JK.js} +1 -1
- package/dist/bundle/{chunk-HIOJRPCT.js → chunk-UTFATA4K.js} +1 -1
- package/dist/bundle/{chunk-LPHMAQJQ.js → chunk-UVLSWLPZ.js} +15 -15
- package/dist/bundle/{chunk-KPRGTTJH.js → chunk-UVYVIHEA.js} +1 -1
- package/dist/bundle/{chunk-MKCNUI72.js → chunk-V2VMBM7O.js} +1 -1
- package/dist/bundle/{chunk-QTM7USFA.js → chunk-V7QMHMR3.js} +5 -5
- package/dist/bundle/{chunk-TFH5X46A.js → chunk-VRW6ZDTH.js} +18 -18
- package/dist/bundle/{chunk-OMMEQJOB.js → chunk-XDIEQ2CE.js} +2 -2
- package/dist/bundle/{chunk-MEAPA4EZ.js → chunk-XFXRGQXJ.js} +2 -2
- package/dist/bundle/{chunk-HMZAMHKN.js → chunk-YDN2RH5S.js} +1 -1
- package/dist/bundle/{chunk-P3ZTW2ZM.js → chunk-YGG7UA3C.js} +4 -4
- package/dist/bundle/{chunk-VT6GZAF4.js → chunk-YYHKVOVK.js} +4 -4
- package/dist/bundle/{chunk-V42KAPU3.js → chunk-ZPQS7XJA.js} +3 -3
- package/dist/bundle/command-contract-NUIWUVYB.js +39 -0
- package/dist/bundle/{decode-XTOMXMGN.js → decode-35N57AFW.js} +6 -6
- package/dist/bundle/{dispatch-T6TW2JJB.js → dispatch-CWXZW3PL.js} +1 -1
- package/dist/bundle/drive.js +10 -10
- package/dist/bundle/{echarts-RKKIOYVV.js → echarts-3P3QZWMU.js} +2 -2
- package/dist/bundle/{embed-STHKKA6G.js → embed-Q6Q5IOJQ.js} +7 -7
- package/dist/bundle/{embedder-3XZEWHRO.js → embedder-D44JDTAA.js} +10 -10
- package/dist/bundle/{entry-CNOYSSSD.js → entry-ZHCNI7XO.js} +9 -9
- package/dist/bundle/{failure-DNQYXP2T.js → failure-GRMMSDCZ.js} +2 -2
- package/dist/bundle/{first-run-F2SI24PK.js → first-run-3DC2SDWM.js} +10 -10
- package/dist/bundle/first-screen-YJF4YODC.js +37 -0
- package/dist/bundle/{google-BYNSAIQI.js → google-6ZZDKFBN.js} +10 -10
- package/dist/bundle/{google-api-4VTZH7OP.js → google-api-E6MOJ4ZD.js} +52 -52
- package/dist/bundle/grants-GWXDH5GM.js +105 -0
- package/dist/bundle/{identity-ARDPFYV5.js → identity-TID7S5NE.js} +4 -4
- package/dist/bundle/{instructions-N3OH5X2Y.js → instructions-ANJN4HV3.js} +1 -1
- package/dist/bundle/{login-4VQEC7VI.js → login-BGMK2ABH.js} +59 -61
- package/dist/bundle/{node-YU5JBNAA.js → node-VOB45ES2.js} +2 -2
- package/dist/bundle/{node-sqlite-3C6PSBIW.js → node-sqlite-TSX6XQY2.js} +7 -7
- package/dist/bundle/{oauth-D6NJFPYU.js → oauth-CEOYXW6C.js} +8 -8
- package/dist/bundle/{open-M2V2VYXO.js → open-3USWHGNR.js} +6 -6
- package/dist/bundle/{openai-ST2IWNUX.js → openai-YZ5VGPIP.js} +14 -14
- package/dist/bundle/{process-PYNNBBTV.js → process-44JS2W7L.js} +1 -1
- package/dist/bundle/{program-Q4VWV2MR.js → program-TZLAFKJV.js} +99 -82
- package/dist/bundle/{prompt-MFIOJMAF.js → prompt-SG7LAOXW.js} +6 -6
- package/dist/bundle/{reasons-LOQ5J73F.js → reasons-ZK3U3CIN.js} +3 -3
- package/dist/bundle/{recognize-FBLMWXNE.js → recognize-OFW7HWTM.js} +5 -5
- package/dist/bundle/{remote-XC3OXE4T.js → remote-YBDRZQZ5.js} +8 -8
- package/dist/bundle/{rerank-2XMKKF4S.js → rerank-TQQNS5FJ.js} +8 -8
- package/dist/bundle/{serve-Q2BQHNZB.js → serve-OPZXMVLH.js} +10 -10
- package/dist/bundle/{server-42HPV3AH.js → server-2D6DDIK5.js} +39 -39
- package/dist/bundle/server-R6G2O772.js +70 -0
- package/dist/bundle/{services-WU22S2MU.js → services-34WKT3NN.js} +29 -27
- package/dist/bundle/{sqlite-runtime-CSO6K6B2.js → sqlite-runtime-WPUMKLUV.js} +7 -7
- package/dist/bundle/{start-TZWKM4AH.js → start-ZXUJZ4JV.js} +1 -1
- package/dist/bundle/{state-FLUT7U7R.js → state-AV2RB3AQ.js} +7 -7
- package/dist/bundle/{store-TG6622NG.js → store-3M7N2Q5T.js} +15 -15
- package/dist/bundle/{store-HDWMJ44E.js → store-YKV4GAMS.js} +25 -19
- package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +60 -0
- package/dist/bundle/tokens-F63RXXEF.js +103 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +14 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +4 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -3
- package/dist/config.js.map +1 -1
- package/dist/errors.js +4 -4
- package/dist/errors.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +3 -5
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -22
- package/dist/reasons.js.map +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -1
- package/dist/registry.js.map +1 -1
- package/dist/tokens.js +5 -5
- package/dist/tokens.js.map +1 -1
- package/dist/upload.js +1 -1
- package/dist/upload.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/command-contract-LQDNHZJU.js +0 -39
- package/dist/bundle/first-screen-TYYF6VXY.js +0 -37
- package/dist/bundle/grants-EUQXSICG.js +0 -105
- package/dist/bundle/server-EWZYN323.js +0 -70
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +0 -60
- package/dist/bundle/tokens-TXYURU4S.js +0 -103
|
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
filesPresent,
|
|
5
5
|
sharedModelsDirectory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ALWTUDZF.js";
|
|
7
7
|
import {
|
|
8
8
|
count,
|
|
9
9
|
id,
|
|
10
10
|
text,
|
|
11
11
|
time
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YYHKVOVK.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-N7S2UPF3.js";
|
|
20
20
|
import {
|
|
21
21
|
createRecordLog,
|
|
22
22
|
resolvePaths,
|
|
23
23
|
writeSecurely
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-246P2DCT.js";
|
|
25
25
|
import {
|
|
26
26
|
traceIdOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FO4TCH6P.js";
|
|
28
28
|
import {
|
|
29
29
|
array,
|
|
30
30
|
boolean,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
picklist,
|
|
35
35
|
reference,
|
|
36
36
|
strictObject
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TKW4QWCY.js";
|
|
38
38
|
import {
|
|
39
39
|
CliError,
|
|
40
40
|
isCliError
|
|
@@ -43,17 +43,17 @@ import {
|
|
|
43
43
|
__name
|
|
44
44
|
} from "./chunk-ZVVMGPBJ.js";
|
|
45
45
|
|
|
46
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
47
47
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
48
48
|
import { randomBytes } from "node:crypto";
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
51
51
|
import { randomUUID } from "node:crypto";
|
|
52
52
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
53
53
|
import { userInfo } from "node:os";
|
|
54
54
|
import { join, sep } from "node:path";
|
|
55
55
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
57
57
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
58
58
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
59
59
|
var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -66,7 +66,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
66
66
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
67
67
|
}), "snakeLogger");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
70
70
|
var diagnostic = {
|
|
71
71
|
event: true,
|
|
72
72
|
operation: true,
|
|
@@ -136,7 +136,7 @@ var LOG_ATTRIBUTES = [
|
|
|
136
136
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
137
137
|
].sort();
|
|
138
138
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
140
140
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
141
141
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
142
142
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -489,7 +489,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
489
489
|
};
|
|
490
490
|
}, "metadataOf");
|
|
491
491
|
|
|
492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
493
493
|
var scopes = new AsyncLocalStorage();
|
|
494
494
|
var processScope;
|
|
495
495
|
var currentRun = /* @__PURE__ */ __name(() => {
|
|
@@ -525,7 +525,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
525
525
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
526
526
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
527
527
|
|
|
528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
529
529
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
530
530
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
531
531
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -539,7 +539,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
539
539
|
return ms;
|
|
540
540
|
}, "parseDuration");
|
|
541
541
|
|
|
542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
543
543
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
544
544
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
545
545
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -935,7 +935,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
935
935
|
}
|
|
936
936
|
}, "assertRetentionEvidenceRead");
|
|
937
937
|
|
|
938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
939
939
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
940
940
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
941
941
|
messageId: message.id,
|
|
@@ -1041,7 +1041,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled =
|
|
|
1041
1041
|
}, "guardedWrite");
|
|
1042
1042
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
1043
1043
|
|
|
1044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
1045
1045
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
1046
1046
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
1047
1047
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -1200,7 +1200,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
1200
1200
|
var vectorModelKey = /* @__PURE__ */ __name((model) => `local:${model.id}:${model.dims}`, "vectorModelKey");
|
|
1201
1201
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
1202
1202
|
|
|
1203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
1204
1204
|
var HISTORY_MAX_DAYS = 1095;
|
|
1205
1205
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
1206
1206
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -1247,7 +1247,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
1247
1247
|
return { batch: { ...batch, messages }, skipped };
|
|
1248
1248
|
}, "limitBatch");
|
|
1249
1249
|
|
|
1250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
1251
1251
|
var closeSuggestion = strictObject({
|
|
1252
1252
|
as: picklist(["done", "dismissed"]),
|
|
1253
1253
|
/** The agent's name. */
|
|
@@ -1305,7 +1305,7 @@ var task = strictObject({
|
|
|
1305
1305
|
updated_at: optional(time)
|
|
1306
1306
|
});
|
|
1307
1307
|
|
|
1308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
1309
1309
|
var agendaChat = strictObject({
|
|
1310
1310
|
chat: reference,
|
|
1311
1311
|
title: nullable(text),
|
|
@@ -1375,7 +1375,7 @@ var agenda = strictObject({
|
|
|
1375
1375
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
1376
1376
|
});
|
|
1377
1377
|
|
|
1378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
1379
1379
|
var attachment = strictObject({
|
|
1380
1380
|
/** The message it came with, as a locator; absent inside that message. */
|
|
1381
1381
|
message: optional(reference),
|
|
@@ -1413,7 +1413,7 @@ var attachment = strictObject({
|
|
|
1413
1413
|
});
|
|
1414
1414
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
1415
1415
|
|
|
1416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
1417
1417
|
var conversation = strictObject({
|
|
1418
1418
|
id,
|
|
1419
1419
|
chat: reference,
|
|
@@ -1428,7 +1428,7 @@ var conversation = strictObject({
|
|
|
1428
1428
|
rules_version: count
|
|
1429
1429
|
});
|
|
1430
1430
|
|
|
1431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
1432
1432
|
var tagging = strictObject({
|
|
1433
1433
|
tag: text,
|
|
1434
1434
|
type: picklist(TAG_TYPES),
|
|
@@ -1441,7 +1441,7 @@ var tagging = strictObject({
|
|
|
1441
1441
|
created_at: time
|
|
1442
1442
|
});
|
|
1443
1443
|
|
|
1444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
1445
1445
|
import { join as join2 } from "node:path";
|
|
1446
1446
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
1447
1447
|
var IMAGE_MODELS = [
|
|
@@ -1495,7 +1495,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
1495
1495
|
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedImage");
|
|
1496
1496
|
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
1497
1497
|
|
|
1498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
1499
1499
|
var WEIGHTS = {
|
|
1500
1500
|
bot: 3,
|
|
1501
1501
|
scam: 3,
|
|
@@ -3,30 +3,31 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
operations,
|
|
5
5
|
privateFiles
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TVQDMP2F.js";
|
|
7
7
|
import {
|
|
8
8
|
commandPathKey,
|
|
9
9
|
commandPermissions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5XHLQZAG.js";
|
|
11
11
|
import {
|
|
12
12
|
AI_ENTRIES,
|
|
13
13
|
checkConfigText,
|
|
14
14
|
issueMessage,
|
|
15
15
|
settingsFor,
|
|
16
|
-
usableProfileName
|
|
17
|
-
|
|
16
|
+
usableProfileName,
|
|
17
|
+
withSettingDefaults
|
|
18
|
+
} from "./chunk-73TTP6ET.js";
|
|
18
19
|
import {
|
|
19
20
|
acquireLock
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DMHGWL5D.js";
|
|
21
22
|
import {
|
|
22
23
|
LEVELS
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HFGR33KD.js";
|
|
24
25
|
import {
|
|
25
26
|
MAX_TEXT_CHARS
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UNJE63JK.js";
|
|
27
28
|
import {
|
|
28
29
|
DRIVE_APP
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XFXRGQXJ.js";
|
|
30
31
|
import {
|
|
31
32
|
Credentials,
|
|
32
33
|
isMovedRun,
|
|
@@ -34,7 +35,7 @@ import {
|
|
|
34
35
|
resolvePaths,
|
|
35
36
|
saveConfigFile,
|
|
36
37
|
systemKeyring
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-246P2DCT.js";
|
|
38
39
|
import {
|
|
39
40
|
array,
|
|
40
41
|
boolean,
|
|
@@ -53,7 +54,7 @@ import {
|
|
|
53
54
|
strictObject,
|
|
54
55
|
string,
|
|
55
56
|
union
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-TKW4QWCY.js";
|
|
57
58
|
import {
|
|
58
59
|
CliError,
|
|
59
60
|
isCliError
|
|
@@ -62,12 +63,12 @@ import {
|
|
|
62
63
|
__name
|
|
63
64
|
} from "./chunk-ZVVMGPBJ.js";
|
|
64
65
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
|
|
66
67
|
import { createHash as createHash2 } from "node:crypto";
|
|
67
68
|
import { join } from "node:path";
|
|
68
69
|
import { setTimeout as delay } from "node:timers/promises";
|
|
69
70
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
|
|
71
72
|
import { createHash, randomBytes } from "node:crypto";
|
|
72
73
|
import { createServer } from "node:http";
|
|
73
74
|
var DEFAULT_TIMEOUT_MS = 3e5;
|
|
@@ -203,7 +204,7 @@ var authorize = /* @__PURE__ */ __name(async (options) => {
|
|
|
203
204
|
}
|
|
204
205
|
}, "authorize");
|
|
205
206
|
|
|
206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/oauth/requests.js
|
|
207
208
|
var REQUEST_LIMIT_MS = 3e4;
|
|
208
209
|
var TOKEN_LOG_EVENT = "oauth.token";
|
|
209
210
|
var object = /* @__PURE__ */ __name((value) => {
|
|
@@ -320,7 +321,7 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
|
|
|
320
321
|
});
|
|
321
322
|
}, "revokeToken");
|
|
322
323
|
|
|
323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
|
|
324
325
|
var inFlight = /* @__PURE__ */ new Map();
|
|
325
326
|
var refreshedInMemory = /* @__PURE__ */ new Map();
|
|
326
327
|
var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
@@ -482,7 +483,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
|
482
483
|
};
|
|
483
484
|
}, "tokenKeeper");
|
|
484
485
|
|
|
485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/oauth/storage.js
|
|
486
487
|
var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
|
|
487
488
|
var parse2 = /* @__PURE__ */ __name((raw) => {
|
|
488
489
|
let value;
|
|
@@ -614,7 +615,7 @@ var credentialStorage = /* @__PURE__ */ __name((options) => {
|
|
|
614
615
|
};
|
|
615
616
|
}, "credentialStorage");
|
|
616
617
|
|
|
617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/oauth/client-file.js
|
|
618
619
|
import { readFileSync } from "node:fs";
|
|
619
620
|
var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
|
|
620
621
|
if (!options.shipped && typeof location === "string") {
|
|
@@ -763,6 +764,7 @@ var keyOf = /* @__PURE__ */ __name((path) => {
|
|
|
763
764
|
return operation ? `api.${operation.id}` : commandPathKey(path);
|
|
764
765
|
}, "keyOf");
|
|
765
766
|
var configuration = settingsFor(DRIVE_APP, {
|
|
767
|
+
configRepair: false,
|
|
766
768
|
// drive's own schema decides what the file may hold, so `doctor` names a profile that lacks its principal.
|
|
767
769
|
schema: ConfigSchema,
|
|
768
770
|
profile: {
|
|
@@ -772,6 +774,13 @@ var configuration = settingsFor(DRIVE_APP, {
|
|
|
772
774
|
storage: optional(picklist(["keyring", "file"])),
|
|
773
775
|
max_text_chars: Common.max_text_chars
|
|
774
776
|
},
|
|
777
|
+
settings: [
|
|
778
|
+
{
|
|
779
|
+
key: "max_text_chars",
|
|
780
|
+
default: MAX_TEXT_CHARS,
|
|
781
|
+
description: "the most characters of text one file may have to be imported"
|
|
782
|
+
}
|
|
783
|
+
],
|
|
775
784
|
permissions: commandPermissions({ keyOf, extra: [...permissionKeys([])], defaults: DEFAULT_LEVELS })
|
|
776
785
|
});
|
|
777
786
|
var paths = /* @__PURE__ */ __name((env) => resolvePaths({ appName: "drive-cli", prefix: "DRIVE", env }), "paths");
|
|
@@ -788,7 +797,13 @@ var withoutIncomplete = /* @__PURE__ */ __name((raw, issues) => {
|
|
|
788
797
|
};
|
|
789
798
|
}, "withoutIncomplete");
|
|
790
799
|
var examine = /* @__PURE__ */ __name((text2, file, knownPermissions) => {
|
|
791
|
-
const check = /* @__PURE__ */ __name((body) => checkConfigText(body, {
|
|
800
|
+
const check = /* @__PURE__ */ __name((body) => checkConfigText(body, {
|
|
801
|
+
file,
|
|
802
|
+
tool: TOOL,
|
|
803
|
+
schema: ConfigSchema,
|
|
804
|
+
repair: false,
|
|
805
|
+
...knownPermissions ? { knownPermissions } : {}
|
|
806
|
+
}), "check");
|
|
792
807
|
const first = check(text2);
|
|
793
808
|
if (first.issues.some((issue) => issue.kind === "invalid_json"))
|
|
794
809
|
return { raw: {}, config: { profiles: {} }, issues: first.issues };
|
|
@@ -826,8 +841,9 @@ var writeConfig = /* @__PURE__ */ __name((env, config) => {
|
|
|
826
841
|
const [issue] = configIssues(config, "drive settings");
|
|
827
842
|
if (issue)
|
|
828
843
|
throw new CliError("configuration_error", `drive settings: ${issue.profile === void 0 ? "" : `profile ${issue.profile}: `}${issue.what}`);
|
|
829
|
-
saveConfigFile(configPath(env), parse(ConfigSchema, config));
|
|
844
|
+
saveConfigFile(configPath(env), withDefaults(parse(ConfigSchema, config)));
|
|
830
845
|
}, "writeConfig");
|
|
846
|
+
var withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isNode(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, configuration.declaredSettings.filter(({ key }) => !except.includes(key))).config, "withDefaults");
|
|
831
847
|
var profileName = usableProfileName;
|
|
832
848
|
var fileId = /* @__PURE__ */ __name((input) => {
|
|
833
849
|
let id = input;
|
|
@@ -890,11 +906,13 @@ export {
|
|
|
890
906
|
SETTING_NAMES,
|
|
891
907
|
configuration,
|
|
892
908
|
paths,
|
|
909
|
+
configPath,
|
|
893
910
|
inspectConfig,
|
|
894
911
|
configIssues,
|
|
895
912
|
refusal,
|
|
896
913
|
readConfig,
|
|
897
914
|
writeConfig,
|
|
915
|
+
withDefaults,
|
|
898
916
|
profileName,
|
|
899
917
|
fileId,
|
|
900
918
|
unknownProfile,
|
|
@@ -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.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/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;
|
|
@@ -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.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|