@wirecat/drive-cli 0.55.0 → 0.57.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-I5KJKZPF.js → all-profiles-7LSZ3CC3.js} +9 -9
- package/dist/bundle/{anthropic-DPM7BRKX.js → anthropic-3QRM4QXB.js} +5 -5
- package/dist/bundle/{app-server-FTGLOZ2K.js → app-server-WWNMUHID.js} +48 -48
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-NIIYUR5F.js} +2 -2
- package/dist/bundle/{bun-sqlite-7JJX6OUT.js → bun-sqlite-GSLSN3OT.js} +4 -4
- package/dist/bundle/{chunk-NPMVPKBD.js → chunk-2QLLKDE5.js} +48 -47
- package/dist/bundle/{chunk-P4ABC6C4.js → chunk-2ULJW5BA.js} +2 -2
- package/dist/bundle/{chunk-AR2HRFQO.js → chunk-373WJIHE.js} +2 -2
- package/dist/bundle/{chunk-K2DMCTTF.js → chunk-3BXSLNWW.js} +129 -97
- package/dist/bundle/{chunk-BO7ZKZCH.js → chunk-4F2VRJZE.js} +121 -46
- package/dist/bundle/{chunk-NDUYK676.js → chunk-4UQLL6RJ.js} +10 -9
- package/dist/bundle/{chunk-NFOUG7ES.js → chunk-566W4Q6L.js} +2 -2
- package/dist/bundle/{chunk-E7RDXCV2.js → chunk-5KNIVHP6.js} +5 -5
- package/dist/bundle/{chunk-VXZULAWV.js → chunk-64E6QXXQ.js} +14 -13
- package/dist/bundle/{chunk-FNDQFFLP.js → chunk-6CFSDU56.js} +11 -11
- package/dist/bundle/{chunk-ORRQDSDH.js → chunk-6ZA4NR5H.js} +3 -3
- package/dist/bundle/{chunk-PFTIYWOK.js → chunk-7SNS443B.js} +4 -4
- package/dist/bundle/{chunk-JPFF6MNK.js → chunk-AHBUTDS7.js} +8 -8
- package/dist/bundle/{chunk-TIEEVT2Z.js → chunk-AKPFH3KC.js} +1 -1
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-AL7MY7MW.js} +1 -1
- package/dist/bundle/{chunk-RMQGFLT2.js → chunk-B3TPS7BW.js} +6 -6
- package/dist/bundle/{chunk-2DZMGPUC.js → chunk-B64EY2SC.js} +123 -34
- package/dist/bundle/{chunk-2OGANEKA.js → chunk-CD736BG3.js} +2 -2
- package/dist/bundle/{chunk-C4QKY33N.js → chunk-CGCQNYB3.js} +2 -2
- package/dist/bundle/{chunk-2KARCTUU.js → chunk-EE7R457T.js} +949 -581
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-EFEI724Z.js} +1 -1
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-EFX6FIDM.js} +1 -1
- package/dist/bundle/{chunk-DNJ43DT5.js → chunk-ELIYJXIY.js} +2 -2
- package/dist/bundle/{chunk-NPKFXGYG.js → chunk-EN7OZ5JH.js} +41 -23
- package/dist/bundle/{chunk-IXXVCKWL.js → chunk-G34Y5RAC.js} +26 -26
- package/dist/bundle/{chunk-TBD362SJ.js → chunk-GIQFBXQN.js} +11 -7
- package/dist/bundle/{chunk-KWKRTYRL.js → chunk-GKHUHRSL.js} +4 -4
- package/dist/bundle/{chunk-VGTDXEYD.js → chunk-HNUSPNUQ.js} +26 -13
- package/dist/bundle/{chunk-XTNEYXAQ.js → chunk-IJ2S53WJ.js} +5 -5
- package/dist/bundle/{chunk-FUKJQZED.js → chunk-ISK4K7UE.js} +1 -1
- package/dist/bundle/{chunk-YP5FDMTG.js → chunk-J2HGHSLX.js} +2 -2
- package/dist/bundle/{chunk-ULPS2OAL.js → chunk-JIGMCW4C.js} +4 -4
- package/dist/bundle/{chunk-ALMQEGYO.js → chunk-JLKNUFL2.js} +2 -2
- package/dist/bundle/{chunk-UDWMRZL6.js → chunk-JUKVJ7M2.js} +21 -21
- package/dist/bundle/{chunk-LAVWTS4P.js → chunk-KHNDZNQA.js} +5333 -5108
- package/dist/bundle/{chunk-GB5YM5HK.js → chunk-KM4Y55ZE.js} +5 -5
- package/dist/bundle/{chunk-CP6M5P4X.js → chunk-KYNTSA6K.js} +3 -3
- package/dist/bundle/{chunk-4XRLPQ3N.js → chunk-L4BBK7UX.js} +2 -2
- package/dist/bundle/chunk-LBFFI6FE.js +247 -0
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-LSSIVBQI.js} +1 -1
- package/dist/bundle/{chunk-D6SRTPCV.js → chunk-NLLWLCUZ.js} +2 -2
- package/dist/bundle/{chunk-6OJMA4ZT.js → chunk-O5KDIVGE.js} +389 -255
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-OOR6PEHV.js} +1 -1
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-67A2YFAT.js → chunk-OZJMZSFB.js} +4 -4
- package/dist/bundle/{chunk-GC4JNVYF.js → chunk-Q3TMNETS.js} +98 -37
- package/dist/bundle/{chunk-5DEEBWDI.js → chunk-QAT6UXZZ.js} +38 -37
- package/dist/bundle/{chunk-VY3TYRCK.js → chunk-R5GJZPRF.js} +114 -59
- package/dist/bundle/{chunk-4I7EBJJV.js → chunk-RAEKC6TV.js} +6 -6
- package/dist/bundle/{chunk-HNR2BJJU.js → chunk-RB674T6L.js} +75 -17
- package/dist/bundle/{chunk-NCCL4QWR.js → chunk-SRNXTXJN.js} +3 -3
- package/dist/bundle/{chunk-TD4RAOMZ.js → chunk-TKVSJV5P.js} +3 -3
- package/dist/bundle/{chunk-W6DMCGMK.js → chunk-TR5656OS.js} +47 -22
- package/dist/bundle/{chunk-VY2AUZMJ.js → chunk-TZHCS5MG.js} +2 -2
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-U2RSVKR5.js} +1 -1
- package/dist/bundle/{chunk-IDK5QUBJ.js → chunk-UKMFPBAO.js} +4 -4
- package/dist/bundle/{chunk-GIRVMZD3.js → chunk-VTJF2L5E.js} +16 -16
- package/dist/bundle/{chunk-AQNY57J2.js → chunk-W5FOPSJZ.js} +7 -7
- package/dist/bundle/{chunk-FKHWVVMV.js → chunk-W6FYYQ2J.js} +3 -3
- package/dist/bundle/{chunk-VVMCGF5X.js → chunk-WAVJWGUC.js} +1811 -883
- package/dist/bundle/{chunk-FDM3JMQZ.js → chunk-WBYCUBYM.js} +89 -36
- package/dist/bundle/{chunk-TIVC4DB5.js → chunk-WJOKTIOJ.js} +2 -2
- package/dist/bundle/{chunk-7MVKSPEG.js → chunk-WJPVGXKA.js} +6 -6
- package/dist/bundle/{chunk-N4VNUOOD.js → chunk-XGNADVIA.js} +18 -18
- package/dist/bundle/{chunk-J6XLM4QW.js → chunk-XJVK7ETL.js} +28 -10
- package/dist/bundle/{chunk-3K4H2DTA.js → chunk-YZ6SYLDC.js} +12 -3
- package/dist/bundle/command-contract-XIACCAZL.js +35 -0
- package/dist/bundle/{decode-3LX3BLZM.js → decode-5MHMPYKE.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-CLB22SZS.js} +2 -2
- package/dist/bundle/{embed-FICTRZJL.js → embed-TF66ODAR.js} +5 -5
- package/dist/bundle/{embedder-DSMRCRSH.js → embedder-EDWOIAC2.js} +8 -8
- package/dist/bundle/{entry-4ZX3BNXK.js → entry-CWYCQ53A.js} +8 -6
- package/dist/bundle/{first-run-GRBQ3SQ5.js → first-run-YIH7EHJI.js} +9 -9
- package/dist/bundle/first-screen-THH3XD5Y.js +33 -0
- package/dist/bundle/{google-QV2B2KZA.js → google-A4F2WFO4.js} +9 -9
- package/dist/bundle/{google-api-EVO7F3WB.js → google-api-ZXGQOJUI.js} +51 -51
- package/dist/bundle/grants-3Z7DG3W3.js +98 -0
- package/dist/bundle/{identity-TKAX75OT.js → identity-4IO7WGG4.js} +4 -4
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-BXZZNAMS.js} +1 -1
- package/dist/bundle/{login-R2YEAKEM.js → login-A4QHJ5DA.js} +57 -57
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-R6ZNQ3NT.js} +2 -2
- package/dist/bundle/{node-sqlite-NZIBED3C.js → node-sqlite-AFQTE4XZ.js} +4 -4
- package/dist/bundle/{oauth-WUHT2JII.js → oauth-46XBJBML.js} +6 -6
- package/dist/bundle/{open-INBNHORD.js → open-WJCRBIP7.js} +3 -3
- package/dist/bundle/{openai-BMREUGJP.js → openai-3TIBDWZA.js} +13 -13
- package/dist/bundle/{process-XVDX4SPD.js → process-P36JP33R.js} +1 -1
- package/dist/bundle/{program-DUWFQOSL.js → program-AHZH65IT.js} +85 -77
- package/dist/bundle/{prompt-S7GHCPGR.js → prompt-FFGBIT4A.js} +4 -4
- package/dist/bundle/{reasons-T24V3AYS.js → reasons-VHCVYH54.js} +3 -3
- package/dist/bundle/{recognize-T3DABMW5.js → recognize-4EAKIMON.js} +3 -3
- package/dist/bundle/{remote-ASYGFT6E.js → remote-HX3JP4EH.js} +6 -6
- package/dist/bundle/{rerank-BQ5U252K.js → rerank-BW3A4PUU.js} +6 -6
- package/dist/bundle/{serve-JMLNKCUZ.js → serve-YYOOLIBS.js} +8 -8
- package/dist/bundle/{server-5E6RC7GZ.js → server-G6XTEEFI.js} +38 -38
- package/dist/bundle/server-YKYEUIJT.js +63 -0
- package/dist/bundle/{services-NFB3XSON.js → services-OAPILZOW.js} +45 -25
- package/dist/bundle/{sqlite-runtime-TAMYMQFR.js → sqlite-runtime-GTXDK4PE.js} +4 -4
- package/dist/bundle/{state-DS4G3ZXV.js → state-XG335LGZ.js} +5 -5
- package/dist/bundle/{store-MLMKYJLC.js → store-7KOXJNQP.js} +14 -12
- package/dist/bundle/{store-HAS2LRFE.js → store-N53SJOPS.js} +33 -15
- package/dist/bundle/store-maintenance-command-W3TI52X2.js +52 -0
- package/dist/bundle/tokens-P7TEHKDD.js +96 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +10 -2
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -12
- package/dist/config.js.map +1 -1
- package/dist/profile-lock.js +2 -2
- package/dist/profile-lock.js.map +1 -1
- package/dist/reasons.js +1 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-3NAVOBGH.js +0 -331
- package/dist/bundle/command-contract-VXLGE6NV.js +0 -35
- package/dist/bundle/first-screen-JK3MZVCU.js +0 -33
- package/dist/bundle/grants-B642KK5M.js +0 -98
- package/dist/bundle/server-QI4C3CQT.js +0 -63
- package/dist/bundle/store-maintenance-command-LI3JR22B.js +0 -52
- package/dist/bundle/tokens-UMSAYGOH.js +0 -96
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.js} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4UQLL6RJ.js";
|
|
13
13
|
import {
|
|
14
14
|
CEILING_KEY,
|
|
15
15
|
COMMAND_PATH_KEY,
|
|
@@ -40,33 +40,33 @@ import {
|
|
|
40
40
|
typedCommand,
|
|
41
41
|
useAsProcessRun,
|
|
42
42
|
withWriteScope
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TR5656OS.js";
|
|
44
44
|
import {
|
|
45
45
|
isCliFailure
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2ULJW5BA.js";
|
|
47
47
|
import {
|
|
48
48
|
count,
|
|
49
49
|
text
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-7SNS443B.js";
|
|
51
51
|
import {
|
|
52
52
|
permissionCeiling
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-UKMFPBAO.js";
|
|
54
54
|
import {
|
|
55
55
|
envName,
|
|
56
56
|
readOnlyLockOf,
|
|
57
57
|
readOnlyRefusal
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-JLKNUFL2.js";
|
|
59
59
|
import {
|
|
60
60
|
FIELD_TYPES,
|
|
61
61
|
QUERY_BACKENDS,
|
|
62
62
|
describeQuery
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-XJVK7ETL.js";
|
|
64
64
|
import {
|
|
65
65
|
sharedConfigPath
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-B3TPS7BW.js";
|
|
67
67
|
import {
|
|
68
68
|
storePath
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-CGCQNYB3.js";
|
|
70
70
|
import {
|
|
71
71
|
EXIT_CODES,
|
|
72
72
|
GENERIC_FAILURE,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
saveConfigFile,
|
|
82
82
|
singleLine,
|
|
83
83
|
writeSecurely
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-XGNADVIA.js";
|
|
85
85
|
import {
|
|
86
86
|
CliError,
|
|
87
87
|
MAX_NEXT_STEPS,
|
|
@@ -120,12 +120,12 @@ import {
|
|
|
120
120
|
union,
|
|
121
121
|
unknown,
|
|
122
122
|
writes
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-GIQFBXQN.js";
|
|
124
124
|
import {
|
|
125
125
|
__name
|
|
126
126
|
} from "./chunk-ZVVMGPBJ.js";
|
|
127
127
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
128
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
129
129
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
130
130
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
131
131
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3626,7 +3626,7 @@ __name(useColor, "useColor");
|
|
|
3626
3626
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3627
3627
|
var program = new Command();
|
|
3628
3628
|
|
|
3629
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3629
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3630
3630
|
import { isDeepStrictEqual } from "node:util";
|
|
3631
3631
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3632
3632
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3828,7 +3828,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference, reason, build, e
|
|
|
3828
3828
|
return command;
|
|
3829
3829
|
}, "customizeSharedCommand");
|
|
3830
3830
|
|
|
3831
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3831
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3832
3832
|
var argumentInfoSchema = object({
|
|
3833
3833
|
name: string(),
|
|
3834
3834
|
required: boolean(),
|
|
@@ -3857,7 +3857,8 @@ var fieldInfoSchema = object({
|
|
|
3857
3857
|
example: string(),
|
|
3858
3858
|
relation: optional(string()),
|
|
3859
3859
|
native: optional(boolean()),
|
|
3860
|
-
placement: optional(literal("and"))
|
|
3860
|
+
placement: optional(literal("and")),
|
|
3861
|
+
negatable: optional(boolean())
|
|
3861
3862
|
});
|
|
3862
3863
|
var commandInfoSchema = object({
|
|
3863
3864
|
path: array(string()),
|
|
@@ -3910,7 +3911,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
|
|
|
3910
3911
|
exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
|
|
3911
3912
|
}), "commandsDocument");
|
|
3912
3913
|
|
|
3913
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3914
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3914
3915
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3915
3916
|
let command = root;
|
|
3916
3917
|
const path2 = [];
|
|
@@ -3928,7 +3929,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3928
3929
|
}
|
|
3929
3930
|
}, "refuseJoinedPath");
|
|
3930
3931
|
|
|
3931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
3932
3933
|
var named = /* @__PURE__ */ __name((work) => {
|
|
3933
3934
|
try {
|
|
3934
3935
|
return work();
|
|
@@ -3955,7 +3956,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
3955
3956
|
return projectFields(value, fields);
|
|
3956
3957
|
}), "projectFields");
|
|
3957
3958
|
|
|
3958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3959
3960
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3960
3961
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3961
3962
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4137,7 +4138,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4137
4138
|
}
|
|
4138
4139
|
}, "withAbort");
|
|
4139
4140
|
|
|
4140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4141
4142
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4142
4143
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4143
4144
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4206,7 +4207,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4206
4207
|
return void 0;
|
|
4207
4208
|
}, "sampleCommand");
|
|
4208
4209
|
|
|
4209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4210
4211
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4211
4212
|
import { join } from "node:path";
|
|
4212
4213
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4228,7 +4229,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4228
4229
|
}, "profilesWithAccounts");
|
|
4229
4230
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4230
4231
|
|
|
4231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4232
|
+
// 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/output-detail.js
|
|
4232
4233
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4233
4234
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4234
4235
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -4258,7 +4259,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4258
4259
|
return value;
|
|
4259
4260
|
}, "atDetail");
|
|
4260
4261
|
|
|
4261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4262
|
+
// 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/output.js
|
|
4262
4263
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
4263
4264
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
4264
4265
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -4306,7 +4307,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4306
4307
|
}, "warn")
|
|
4307
4308
|
}), "silence");
|
|
4308
4309
|
|
|
4309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4310
|
+
// 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/runs/log-events.js
|
|
4310
4311
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4311
4312
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4312
4313
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4340,7 +4341,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4340
4341
|
cache: "cache.answered"
|
|
4341
4342
|
};
|
|
4342
4343
|
|
|
4343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4344
|
+
// 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/runs/recording.js
|
|
4344
4345
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4345
4346
|
const recording = startRecording(options);
|
|
4346
4347
|
try {
|
|
@@ -4525,7 +4526,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4525
4526
|
return void 0;
|
|
4526
4527
|
}, "partialOutcome");
|
|
4527
4528
|
|
|
4528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4529
4530
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
4530
4531
|
if (ms === void 0)
|
|
4531
4532
|
return body();
|
|
@@ -4551,10 +4552,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4551
4552
|
}
|
|
4552
4553
|
}, "withDeadline");
|
|
4553
4554
|
|
|
4554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4555
4556
|
import { existsSync as existsSync3 } from "node:fs";
|
|
4556
4557
|
|
|
4557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4558
|
+
// 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/models/endpoint.js
|
|
4558
4559
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4559
4560
|
try {
|
|
4560
4561
|
const url2 = new URL(value);
|
|
@@ -4564,7 +4565,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4564
4565
|
}
|
|
4565
4566
|
}, "endpoint");
|
|
4566
4567
|
|
|
4567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4568
|
+
// 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/models/settings.js
|
|
4568
4569
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4569
4570
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4570
4571
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4633,7 +4634,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4633
4634
|
};
|
|
4634
4635
|
}, "modelTarget");
|
|
4635
4636
|
|
|
4636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4637
|
+
// 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/analysis/settings.js
|
|
4637
4638
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4638
4639
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4639
4640
|
var AI_FIELDS = {
|
|
@@ -4677,7 +4678,54 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4677
4678
|
};
|
|
4678
4679
|
}, "resolveAISettings");
|
|
4679
4680
|
|
|
4680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4681
|
+
// 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/services/history-limits.js
|
|
4682
|
+
var HISTORY_MAX_DAYS = 1095;
|
|
4683
|
+
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
4684
|
+
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
4685
|
+
var historyWindow = /* @__PURE__ */ __name((shape, limits, now) => {
|
|
4686
|
+
const group = shape !== void 0 && shape.kind !== "dialog" && shape.kind !== "saved";
|
|
4687
|
+
if (group && (shape.participantsCount ?? 0) > limits.groupMembersMax)
|
|
4688
|
+
return { skip: "group_too_large", members: shape.participantsCount ?? 0 };
|
|
4689
|
+
const days = group ? limits.groupDays : limits.dialogDays;
|
|
4690
|
+
return { keepFrom: now - Math.min(days, HISTORY_MAX_DAYS) * DAY_MS };
|
|
4691
|
+
}, "historyWindow");
|
|
4692
|
+
var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now = Date.now()) => {
|
|
4693
|
+
const skipped = /* @__PURE__ */ new Map();
|
|
4694
|
+
if (!batch.messages?.length)
|
|
4695
|
+
return { batch, skipped };
|
|
4696
|
+
const named2 = new Map((batch.chats ?? []).map((chat) => [chat.id, chat]));
|
|
4697
|
+
const windows = /* @__PURE__ */ new Map();
|
|
4698
|
+
const windowOf = /* @__PURE__ */ __name((chatId) => {
|
|
4699
|
+
if (!windows.has(chatId)) {
|
|
4700
|
+
const chat = named2.get(chatId);
|
|
4701
|
+
const shape = chat ? { kind: chat.kind, participantsCount: chat.participantsCount ?? null } : shapes(chatId);
|
|
4702
|
+
windows.set(chatId, included(chatId) ? void 0 : historyWindow(shape, limits, now));
|
|
4703
|
+
}
|
|
4704
|
+
return windows.get(chatId);
|
|
4705
|
+
}, "windowOf");
|
|
4706
|
+
const messages = batch.messages.filter((message) => {
|
|
4707
|
+
const window = windowOf(message.chatId);
|
|
4708
|
+
if (window === void 0)
|
|
4709
|
+
return true;
|
|
4710
|
+
const at = Date.parse(message.timestamp);
|
|
4711
|
+
if ("keepFrom" in window && !(at < window.keepFrom))
|
|
4712
|
+
return true;
|
|
4713
|
+
const reason = "skip" in window ? window.skip : "older_than_window";
|
|
4714
|
+
const held = skipped.get(message.chatId);
|
|
4715
|
+
const iso = new Date(at).toISOString();
|
|
4716
|
+
skipped.set(message.chatId, {
|
|
4717
|
+
reason,
|
|
4718
|
+
messages: (held?.messages ?? 0) + 1,
|
|
4719
|
+
oldestAt: held && held.oldestAt < iso ? held.oldestAt : iso,
|
|
4720
|
+
newestAt: held && held.newestAt > iso ? held.newestAt : iso,
|
|
4721
|
+
..."skip" in window ? { members: window.members } : { keptFrom: new Date(window.keepFrom).toISOString() }
|
|
4722
|
+
});
|
|
4723
|
+
return false;
|
|
4724
|
+
});
|
|
4725
|
+
return { batch: { ...batch, messages }, skipped };
|
|
4726
|
+
}, "limitBatch");
|
|
4727
|
+
|
|
4728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
4681
4729
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
4682
4730
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
4683
4731
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -4967,7 +5015,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
4967
5015
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
4968
5016
|
}, "readConfigFile");
|
|
4969
5017
|
|
|
4970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
4971
5019
|
import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
4972
5020
|
import { dirname, join as join2 } from "node:path";
|
|
4973
5021
|
var DEFAULT_CONFIG = {
|
|
@@ -4996,7 +5044,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
4996
5044
|
}
|
|
4997
5045
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
4998
5046
|
|
|
4999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5000
5048
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5001
5049
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5002
5050
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5013,6 +5061,8 @@ var count2 = pipe(number(wholeNumber), integer(wholeNumber), minValue(1, wholeNu
|
|
|
5013
5061
|
var zeroOrMore = plain("has to be a whole number, 0 or more");
|
|
5014
5062
|
var countOrZero = pipe(number(zeroOrMore), integer(zeroOrMore), minValue(0, zeroOrMore));
|
|
5015
5063
|
var flag = boolean(plain("has to be true or false"));
|
|
5064
|
+
var historyDaysMessage = plain(`has to be a whole number of days, 1 to ${HISTORY_MAX_DAYS}`);
|
|
5065
|
+
var historyDays = pipe(number(historyDaysMessage), integer(historyDaysMessage), minValue(1, historyDaysMessage), maxValue(HISTORY_MAX_DAYS, historyDaysMessage));
|
|
5016
5066
|
var recordInputSetting = union([boolean(), literal("failed")], plain('has to be true, false or "failed"'));
|
|
5017
5067
|
var wholeOrZero = /* @__PURE__ */ __name((text2, name) => {
|
|
5018
5068
|
const value = Number(text2);
|
|
@@ -5040,6 +5090,9 @@ var SHARED_PROFILE_ENTRIES = {
|
|
|
5040
5090
|
transcribe_with: optional(picklist(["auto", "messenger", "local"], plain("has to be auto, messenger or local"))),
|
|
5041
5091
|
speech_model: optional(string(plain("has to be a model id from `models list`, in quotes"))),
|
|
5042
5092
|
search_catch_up: optional(flag),
|
|
5093
|
+
history_dialog_days: optional(historyDays),
|
|
5094
|
+
history_group_days: optional(historyDays),
|
|
5095
|
+
history_group_members_max: optional(count2),
|
|
5043
5096
|
picture_search: optional(flag),
|
|
5044
5097
|
search_reranker: optional(picklist([...RERANK_MODELS.map((model2) => model2.id), "off"], plain(`has to be off or a reranker id: ${RERANK_MODELS.map((model2) => model2.id).join(", ")}`))),
|
|
5045
5098
|
...AI_ENTRIES
|
|
@@ -5052,6 +5105,9 @@ var MESSENGER_ONLY_SETTINGS = [
|
|
|
5052
5105
|
"sends_per_hour",
|
|
5053
5106
|
"transcribe_with",
|
|
5054
5107
|
"search_catch_up",
|
|
5108
|
+
"history_dialog_days",
|
|
5109
|
+
"history_group_days",
|
|
5110
|
+
"history_group_members_max",
|
|
5055
5111
|
"read_other_bots"
|
|
5056
5112
|
];
|
|
5057
5113
|
var SHARED_DEFAULTS_ONLY = {
|
|
@@ -5109,7 +5165,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5109
5165
|
const schema = strictOf(configEntries);
|
|
5110
5166
|
const defaultsOnlyKeys = Object.keys(defaultsOnly);
|
|
5111
5167
|
const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
|
|
5112
|
-
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting));
|
|
5168
|
+
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting) || app.sends === true && setting === "sends_per_hour");
|
|
5113
5169
|
const PROFILE = envName(app, "PROFILE");
|
|
5114
5170
|
const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
|
|
5115
5171
|
const TIMEOUT = envName(app, "TIMEOUT");
|
|
@@ -5185,6 +5241,9 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5185
5241
|
const color = fromLayers("color", void 0);
|
|
5186
5242
|
const senderColors = fromLayers("sender_colors", false);
|
|
5187
5243
|
const searchCatchUp = fromLayers("search_catch_up", false);
|
|
5244
|
+
const historyDialogDays = fromLayers("history_dialog_days", DEFAULT_HISTORY_LIMITS.dialogDays);
|
|
5245
|
+
const historyGroupDays = fromLayers("history_group_days", DEFAULT_HISTORY_LIMITS.groupDays);
|
|
5246
|
+
const historyGroupMembersMax = fromLayers("history_group_members_max", DEFAULT_HISTORY_LIMITS.groupMembersMax);
|
|
5188
5247
|
const pictureSearch = fromLayers("picture_search", false);
|
|
5189
5248
|
const searchReranker = fromLayers("search_reranker", DEFAULT_RERANK_MODEL);
|
|
5190
5249
|
const recordInput = fromLayers("record_input", true);
|
|
@@ -5227,6 +5286,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5227
5286
|
color: color.value,
|
|
5228
5287
|
senderColors: senderColors.value,
|
|
5229
5288
|
searchCatchUp: searchCatchUp.value,
|
|
5289
|
+
historyLimits: {
|
|
5290
|
+
dialogDays: historyDialogDays.value,
|
|
5291
|
+
groupDays: historyGroupDays.value,
|
|
5292
|
+
groupMembersMax: historyGroupMembersMax.value
|
|
5293
|
+
},
|
|
5230
5294
|
pictureSearch: pictureSearch.value,
|
|
5231
5295
|
searchReranker: searchReranker.value,
|
|
5232
5296
|
limit: limit.value,
|
|
@@ -5262,6 +5326,9 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5262
5326
|
color: color.from,
|
|
5263
5327
|
senderColors: senderColors.from,
|
|
5264
5328
|
searchCatchUp: searchCatchUp.from,
|
|
5329
|
+
historyDialogDays: historyDialogDays.from,
|
|
5330
|
+
historyGroupDays: historyGroupDays.from,
|
|
5331
|
+
historyGroupMembersMax: historyGroupMembersMax.from,
|
|
5265
5332
|
pictureSearch: pictureSearch.from,
|
|
5266
5333
|
searchReranker: searchReranker.from,
|
|
5267
5334
|
record: record2.from,
|
|
@@ -5386,7 +5453,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5386
5453
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5387
5454
|
}, "given");
|
|
5388
5455
|
|
|
5389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5390
5457
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
5391
5458
|
const slot = environmentOf(command).exit;
|
|
5392
5459
|
if (slot)
|
|
@@ -5493,7 +5560,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
5493
5560
|
return words.join(" ");
|
|
5494
5561
|
}, "commandPath");
|
|
5495
5562
|
|
|
5496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
5497
5564
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
5498
5565
|
var FETCH = { remote: "read", local: "write" };
|
|
5499
5566
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -5535,15 +5602,21 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
|
|
|
5535
5602
|
const effects = metaOf(command).effects;
|
|
5536
5603
|
return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
|
|
5537
5604
|
}, "fetchesOnly");
|
|
5538
|
-
var
|
|
5605
|
+
var FILE_OPTION = /* @__PURE__ */ new WeakMap();
|
|
5606
|
+
var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
5607
|
+
const option = FILE_OPTION.get(command);
|
|
5608
|
+
return option === void 0 || command.opts()[option] !== void 0;
|
|
5609
|
+
}, "writesFileNow");
|
|
5610
|
+
var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) || FILE_OPTION.has(command), "readsOverMcp");
|
|
5611
|
+
var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
|
|
5539
5612
|
let at = root;
|
|
5540
5613
|
for (const word of path2)
|
|
5541
5614
|
at = at?.commands.find((one) => one.name() === word);
|
|
5542
|
-
return at !== void 0 &&
|
|
5543
|
-
}, "
|
|
5615
|
+
return at !== void 0 && readsOverMcp(at);
|
|
5616
|
+
}, "readsOverMcpAt");
|
|
5544
5617
|
var isStoreChange = /* @__PURE__ */ __name((command) => {
|
|
5545
5618
|
const effects = metaOf(command).effects;
|
|
5546
|
-
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command);
|
|
5619
|
+
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command) && writesFileNow(command);
|
|
5547
5620
|
}, "isStoreChange");
|
|
5548
5621
|
var STORE_CHANGE_REFUSAL = "change the message store";
|
|
5549
5622
|
var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
|
|
@@ -5591,7 +5664,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
5591
5664
|
throw readOnlyRefusal(lock, what);
|
|
5592
5665
|
}, "refuseUnderReadOnly");
|
|
5593
5666
|
|
|
5594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
5595
5668
|
var STEPS2 = defineSteps([
|
|
5596
5669
|
...STEPS,
|
|
5597
5670
|
{
|
|
@@ -5601,7 +5674,8 @@ var STEPS2 = defineSteps([
|
|
|
5601
5674
|
{ name: "chat", required: false },
|
|
5602
5675
|
{ name: "all", required: false },
|
|
5603
5676
|
{ name: "since_time", required: false },
|
|
5604
|
-
{ name: "background", required: false }
|
|
5677
|
+
{ name: "background", required: false },
|
|
5678
|
+
{ name: "full_history", required: false }
|
|
5605
5679
|
],
|
|
5606
5680
|
why: "the local copy is missing messages; syncing brings them in"
|
|
5607
5681
|
},
|
|
@@ -5858,7 +5932,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
5858
5932
|
].join(" ");
|
|
5859
5933
|
}, "stepLine");
|
|
5860
5934
|
|
|
5861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
5862
5936
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
5863
5937
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
5864
5938
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -5872,7 +5946,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
5872
5946
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
5873
5947
|
}, "strip");
|
|
5874
5948
|
|
|
5875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
5876
5950
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
5877
5951
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
5878
5952
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -6006,7 +6080,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
6006
6080
|
renderer.result(item);
|
|
6007
6081
|
}, "printItem");
|
|
6008
6082
|
|
|
6009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6083
|
+
// 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/store-table.js
|
|
6010
6084
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
6011
6085
|
var storeTable = strictObject({
|
|
6012
6086
|
name: text,
|
|
@@ -6015,7 +6089,7 @@ var storeTable = strictObject({
|
|
|
6015
6089
|
bytes: optional(nullable(count))
|
|
6016
6090
|
});
|
|
6017
6091
|
|
|
6018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6092
|
+
// 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/runs/record-log.js
|
|
6019
6093
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6020
6094
|
const run = currentRun();
|
|
6021
6095
|
const trace = traceId ?? run.traceId;
|
|
@@ -6076,6 +6150,7 @@ export {
|
|
|
6076
6150
|
modelTarget,
|
|
6077
6151
|
AI_ENTRIES,
|
|
6078
6152
|
resolveAISettings,
|
|
6153
|
+
limitBatch,
|
|
6079
6154
|
permissionIssues,
|
|
6080
6155
|
publicIssue,
|
|
6081
6156
|
issueMessage,
|
|
@@ -6106,7 +6181,7 @@ export {
|
|
|
6106
6181
|
isLogin,
|
|
6107
6182
|
destroysNothing,
|
|
6108
6183
|
changesStore,
|
|
6109
|
-
|
|
6184
|
+
readsOverMcpAt,
|
|
6110
6185
|
isStoreChange,
|
|
6111
6186
|
previewFlag,
|
|
6112
6187
|
storeChangeRefusal,
|
|
@@ -2,22 +2,22 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2ULJW5BA.js";
|
|
6
6
|
import {
|
|
7
7
|
isContentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GIQFBXQN.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { createHash } from "node:crypto";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
18
18
|
import { homedir } from "node:os";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
21
21
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
22
22
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
23
23
|
if (event.event === "warning") {
|
|
@@ -65,7 +65,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
65
65
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
66
66
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
67
67
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
68
|
+
// 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/runs/secrets.js
|
|
69
69
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
70
70
|
"authorization",
|
|
71
71
|
"cookie",
|
|
@@ -146,7 +146,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
|
|
|
146
146
|
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
147
147
|
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
149
|
+
// 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/runs/error-detail.js
|
|
150
150
|
var MESSAGE_AT_MOST = 500;
|
|
151
151
|
var CAUSES_AT_MOST = 5;
|
|
152
152
|
var FRAMES_AT_MOST = 15;
|
|
@@ -247,14 +247,15 @@ var endpointTemplate = /* @__PURE__ */ __name((raw) => {
|
|
|
247
247
|
}, "endpointTemplate");
|
|
248
248
|
var INTERNATIONAL_PHONE = /\+\d[\d\s()-]{6,}\d/.source;
|
|
249
249
|
var BARE_PHONE = /(^|[^\w-])\d{11,15}\b/.source;
|
|
250
|
+
var MESSENGER_ID = /\b\d+(?:-\d+)?(?::\d+)?@(?:s\.whatsapp\.net|g\.us|c\.us|lid|broadcast|newsletter)\b/g;
|
|
250
251
|
var redactText = /* @__PURE__ */ __name((text) => {
|
|
251
252
|
const home = homedir();
|
|
252
253
|
let out = home && home !== "/" ? text.split(home).join("~") : text;
|
|
253
|
-
out = withoutSecrets(out.replace(/"[^"\n]*"|“[^”\n]*”|«[^»\n]*»/g, '"[redacted]"')).replace(/\b(bearer|basic|token|key|password|secret)(\s*[:=]\s*|\s+)[^\s'"]+/gi, "$1$2[redacted]").replace(/[\w.+-]+@[\w-]+\.[\w.-]+/g, "[email]").replace(new RegExp(INTERNATIONAL_PHONE, "g"), "[number]").replace(new RegExp(BARE_PHONE, "g"), "$1[number]").replace(/\bbot\d+:[\w-]+/g, "bot[token]").replace(/\b\d{6,}:[\w-]{20,}\b/g, "[token]").replace(/(\?|&)[^\s#]*/g, "$1[redacted]").replace(/\b[A-Za-z0-9_-]{40,}\b/g, "[redacted]");
|
|
254
|
+
out = withoutSecrets(out.replace(/"[^"\n]*"|“[^”\n]*”|«[^»\n]*»/g, '"[redacted]"')).replace(/\b(bearer|basic|token|key|password|secret)(\s*[:=]\s*|\s+)[^\s'"]+/gi, "$1$2[redacted]").replace(MESSENGER_ID, "[id]").replace(/[\w.+-]+@[\w-]+\.[\w.-]+/g, "[email]").replace(new RegExp(INTERNATIONAL_PHONE, "g"), "[number]").replace(new RegExp(BARE_PHONE, "g"), "$1[number]").replace(/\bbot\d+:[\w-]+/g, "bot[token]").replace(/\b\d{6,}:[\w-]{20,}\b/g, "[token]").replace(/(\?|&)[^\s#]*/g, "$1[redacted]").replace(/\b[A-Za-z0-9_-]{40,}\b/g, "[redacted]");
|
|
254
255
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
255
256
|
}, "redactText");
|
|
256
257
|
|
|
257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
258
|
+
// 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/runs/run-context.js
|
|
258
259
|
var REDACTED = "[redacted]";
|
|
259
260
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
260
261
|
if (!record)
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GKHUHRSL.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// 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/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OYNSFQ7K.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfigFile,
|
|
10
10
|
saveConfigFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XGNADVIA.js";
|
|
12
12
|
import {
|
|
13
13
|
number,
|
|
14
14
|
object,
|
|
15
15
|
optional,
|
|
16
16
|
string
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GIQFBXQN.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
24
24
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
25
25
|
const path = scriptPath.replaceAll("\\", "/");
|
|
26
26
|
if (path.includes("/_npx/"))
|
|
@@ -34,7 +34,7 @@ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
|
34
34
|
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
35
35
|
}, "installerOf");
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
38
38
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
39
39
|
import { existsSync } from "node:fs";
|
|
40
40
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|