@wirecat/tg-cli 0.112.0 → 0.113.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/tg.js +2 -2
- package/dist/bundle/{adapter-ILDV2YSZ.js → adapter-EQKEFGPB.js} +45 -45
- package/dist/bundle/{all-profiles-4SH2Q4WV.js → all-profiles-TTBFF663.js} +8 -8
- package/dist/bundle/{anthropic-64SM23YO.js → anthropic-XPZS7267.js} +5 -5
- package/dist/bundle/{app-server-SSYZWCDJ.js → app-server-ZSZ7KRAY.js} +42 -42
- package/dist/bundle/{bot-api-OHAGQMES.js → bot-api-X7BOVNIO.js} +46 -46
- package/dist/bundle/{bot-history-AUFO7UL2.js → bot-history-DWIUIPN5.js} +15 -15
- package/dist/bundle/{bun-AHZX63TR.js → bun-ZGZVAJU2.js} +2 -2
- package/dist/bundle/{bun-sqlite-KBIIODPV.js → bun-sqlite-UN2UJ6SI.js} +4 -4
- package/dist/bundle/{chunk-DFUTZGEV.js → chunk-3MAYYFKY.js} +1 -1
- package/dist/bundle/{chunk-B3Y2KZRS.js → chunk-452UZ2PU.js} +110 -95
- package/dist/bundle/{chunk-SC2DUQAK.js → chunk-4GLMEES6.js} +1 -1
- package/dist/bundle/{chunk-BTAET4U3.js → chunk-4SQB5VKL.js} +1 -1
- package/dist/bundle/{chunk-GM44UNGL.js → chunk-5NF7M4MN.js} +1 -1
- package/dist/bundle/{chunk-JXTYTAWE.js → chunk-6F6K3LWV.js} +11 -11
- package/dist/bundle/{chunk-XSYJKEA5.js → chunk-6OKGHHRL.js} +4 -4
- package/dist/bundle/{chunk-DNYGJAEP.js → chunk-6WJ5M2Q4.js} +4 -4
- package/dist/bundle/{chunk-NQKPXVLX.js → chunk-7IWDS2CM.js} +2 -2
- package/dist/bundle/{chunk-3AJO4GER.js → chunk-AGUCXSSM.js} +5 -5
- package/dist/bundle/{chunk-E4EJ2UTT.js → chunk-AVUIWZTP.js} +2 -2
- package/dist/bundle/{chunk-JIGYVVWA.js → chunk-BI5YJZJB.js} +31 -27
- package/dist/bundle/{chunk-MCXVGHL6.js → chunk-EGR5IJCG.js} +32 -25
- package/dist/bundle/{chunk-K7VOCHVS.js → chunk-ENXO43TV.js} +6 -6
- package/dist/bundle/{chunk-D5JP2YWG.js → chunk-G74QMORP.js} +2 -2
- package/dist/bundle/{chunk-4JXZKMXV.js → chunk-GX4LRLVD.js} +68 -59
- package/dist/bundle/{chunk-EO7PQE3J.js → chunk-HNN7EKIM.js} +90 -73
- package/dist/bundle/{chunk-UXCWUEN7.js → chunk-HO53POQG.js} +5 -5
- package/dist/bundle/{chunk-2IGZLBTE.js → chunk-IDUYRTPF.js} +2 -2
- package/dist/bundle/{chunk-JPRYFDOJ.js → chunk-IYKRHDX6.js} +44 -44
- package/dist/bundle/{chunk-BIERCQVG.js → chunk-J6USEBA6.js} +313 -258
- package/dist/bundle/{chunk-KYYAHIG2.js → chunk-JDQSX2JQ.js} +416 -337
- package/dist/bundle/{chunk-EPAOLRUL.js → chunk-JO45BOYE.js} +2 -2
- package/dist/bundle/{chunk-SFJFBIYP.js → chunk-JRTZ5I6M.js} +2 -2
- package/dist/bundle/{chunk-6KGENDPF.js → chunk-JW7BMJ6O.js} +2 -2
- package/dist/bundle/{chunk-5BNYW5RA.js → chunk-K3F46QVN.js} +2 -2
- package/dist/bundle/{chunk-JYOQMYNJ.js → chunk-KK3JVOOV.js} +30 -30
- package/dist/bundle/{chunk-GW7JRFTF.js → chunk-KOWQVHXI.js} +3 -3
- package/dist/bundle/{chunk-KLNQXUDX.js → chunk-KQ23JWLJ.js} +20 -18
- package/dist/bundle/{chunk-UVRD447S.js → chunk-KVLCIZUK.js} +3 -3
- package/dist/bundle/{chunk-UQOSZ2XX.js → chunk-MTX5EDYJ.js} +636 -473
- package/dist/bundle/{chunk-RANORATG.js → chunk-OC4RRFKH.js} +4 -4
- package/dist/bundle/{chunk-3GL4AOOG.js → chunk-OQR442B6.js} +1 -1
- package/dist/bundle/{chunk-3W7BU2BL.js → chunk-OSBAISA5.js} +6 -6
- package/dist/bundle/{chunk-COTC7HF3.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-QL4WBCL5.js → chunk-PCRLXJRH.js} +11 -7
- package/dist/bundle/{chunk-PXUHQO66.js → chunk-PHPNA2HU.js} +11 -11
- package/dist/bundle/{chunk-RHYMEHYK.js → chunk-PHYDBR5M.js} +2 -2
- package/dist/bundle/{chunk-NKACHGB2.js → chunk-Q264PYGE.js} +40 -14
- package/dist/bundle/{chunk-ICEJKOKO.js → chunk-T4TTRFP5.js} +7 -7
- package/dist/bundle/{chunk-JLB5LEXJ.js → chunk-T5RM4Y35.js} +3 -3
- package/dist/bundle/{chunk-TOBJGMMA.js → chunk-TQ6EA7TB.js} +11 -11
- package/dist/bundle/{chunk-RPNRCFEE.js → chunk-TUD4MU7S.js} +2 -2
- package/dist/bundle/{chunk-TUJEJ4D5.js → chunk-U3MJQLZQ.js} +13 -13
- package/dist/bundle/{chunk-4IDJ7QCG.js → chunk-UE75KPAC.js} +4 -4
- package/dist/bundle/{chunk-7MFJFVUN.js → chunk-UIVLDKWT.js} +1 -1
- package/dist/bundle/{chunk-WI2S6INJ.js → chunk-VDATXIO4.js} +6 -6
- package/dist/bundle/{chunk-WWKXTKCE.js → chunk-VDEXNNMH.js} +4 -4
- package/dist/bundle/{chunk-5W72OARG.js → chunk-VVA4555T.js} +8 -8
- package/dist/bundle/{chunk-QMJGHSGN.js → chunk-WSAHUQ6K.js} +3 -3
- package/dist/bundle/{chunk-KGYPSBTI.js → chunk-XXNJF3ZM.js} +32 -26
- package/dist/bundle/{chunk-GSGS62LX.js → chunk-XZ2ZHIAO.js} +1 -1
- package/dist/bundle/{chunk-RC7EBLHM.js → chunk-Z6TRIW2O.js} +8 -8
- package/dist/bundle/{chunk-PDVSMGWO.js → chunk-ZID2Y4XU.js} +2 -2
- package/dist/bundle/command-contract-GV67H22L.js +32 -0
- package/dist/bundle/{decode-FR3QHHJI.js → decode-AMQVTEMW.js} +4 -4
- package/dist/bundle/{echarts-VTV4C2OS.js → echarts-ECYONFQJ.js} +2 -2
- package/dist/bundle/{embed-US7X5P5D.js → embed-VZYBZEWI.js} +5 -5
- package/dist/bundle/{embedder-63Z7ZBYG.js → embedder-GSWBGHRK.js} +8 -8
- package/dist/bundle/{entry-B4J7IAG3.js → entry-LALZILY4.js} +5 -5
- package/dist/bundle/{first-run-MXPPUGII.js → first-run-LEAI623Q.js} +9 -9
- package/dist/bundle/first-screen-MOCVLE23.js +30 -0
- package/dist/bundle/{identity-AQWKU7SM.js → identity-54HA5GN6.js} +3 -3
- package/dist/bundle/{instructions-GBR6DJTK.js → instructions-AXLQQS3G.js} +1 -1
- package/dist/bundle/{mcp-YJEQYYTR.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-QXGPMDH2.js → node-7JHC5K77.js} +2 -2
- package/dist/bundle/{node-sqlite-L6CAMXQ2.js → node-sqlite-LYJEK46T.js} +4 -4
- package/dist/bundle/{oauth-5RK6J4SG.js → oauth-BROPKI3K.js} +6 -6
- package/dist/bundle/{open-A3IAG7U6.js → open-C6XQ46JK.js} +3 -3
- package/dist/bundle/{openai-YKNGCHVV.js → openai-VWSU7ZDD.js} +13 -13
- package/dist/bundle/{process-CGLNXFIU.js → process-QKEFL5HL.js} +1 -1
- package/dist/bundle/{program-AEDR6R5P.js → program-ACY7O33O.js} +48 -48
- package/dist/bundle/{prompt-65CSCL2T.js → prompt-EGULVW2F.js} +4 -4
- package/dist/bundle/{proxy-transport-U3QOYMQF.js → proxy-transport-KIMADLQ2.js} +4 -4
- package/dist/bundle/{recognize-ECRO6CFK.js → recognize-UMTKLWVR.js} +3 -3
- package/dist/bundle/{remote-6IEFZFGO.js → remote-DABI7PSQ.js} +6 -6
- package/dist/bundle/{rerank-23GXWT2V.js → rerank-ZFATWWBE.js} +6 -6
- package/dist/bundle/{serve-S65YTPZN.js → serve-B7YYCMGN.js} +8 -8
- package/dist/bundle/{server-MVTBK7GV.js → server-DGKZISZH.js} +32 -32
- package/dist/bundle/server-UC7UWUIS.js +56 -0
- package/dist/bundle/{state-TH3UVQAW.js → state-AQ2PABA5.js} +5 -5
- package/dist/bundle/{store-2WFTUSNG.js → store-46GJTFLJ.js} +10 -10
- package/dist/bundle/store-maintenance-command-FCFKHGRM.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-4KVJJZ46.js +0 -32
- package/dist/bundle/first-screen-GFYHUBBD.js +0 -30
- package/dist/bundle/server-IH24WEAC.js +0 -56
- package/dist/bundle/store-maintenance-command-PUOU2CL6.js +0 -45
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-HPXYN7F3.js} +0 -0
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VDEXNNMH.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PCRLXJRH.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OSBAISA5.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PCRLXJRH.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6OKGHHRL.js";
|
|
9
9
|
import {
|
|
10
10
|
currentCaller,
|
|
11
11
|
endpointTemplate,
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
providerErrorKey,
|
|
17
17
|
renderEvent,
|
|
18
18
|
runContextOf
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z6TRIW2O.js";
|
|
20
20
|
import {
|
|
21
21
|
permissionCeiling
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KVLCIZUK.js";
|
|
23
23
|
import {
|
|
24
24
|
envName,
|
|
25
25
|
readOnlyLockOf,
|
|
26
26
|
readOnlyRefusal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IDUYRTPF.js";
|
|
28
28
|
import {
|
|
29
29
|
filesPresent,
|
|
30
30
|
sharedModelsDirectory
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VDEXNNMH.js";
|
|
32
32
|
import {
|
|
33
33
|
FIELD_TYPES,
|
|
34
34
|
PRIORITY_LABELS,
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
TASK_STATES,
|
|
39
39
|
TASK_TYPES,
|
|
40
40
|
describeQuery
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HNN7EKIM.js";
|
|
42
42
|
import {
|
|
43
43
|
sharedConfigPath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VDATXIO4.js";
|
|
45
45
|
import {
|
|
46
46
|
storePath
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-PHYDBR5M.js";
|
|
48
48
|
import {
|
|
49
49
|
configFilePath,
|
|
50
50
|
createRecordLog,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
saveConfigFile,
|
|
58
58
|
singleLine,
|
|
59
59
|
writeSecurely
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-KQ23JWLJ.js";
|
|
61
61
|
import {
|
|
62
62
|
CliError,
|
|
63
63
|
MAX_NEXT_STEPS,
|
|
@@ -99,12 +99,12 @@ import {
|
|
|
99
99
|
union,
|
|
100
100
|
unknown,
|
|
101
101
|
writes
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-PCRLXJRH.js";
|
|
103
103
|
import {
|
|
104
104
|
__name
|
|
105
105
|
} from "./chunk-ZVVMGPBJ.js";
|
|
106
106
|
|
|
107
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
107
|
+
// 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
|
|
108
108
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
109
109
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
110
110
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3605,7 +3605,7 @@ __name(useColor, "useColor");
|
|
|
3605
3605
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3606
3606
|
var program = new Command();
|
|
3607
3607
|
|
|
3608
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3608
|
+
// 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
|
|
3609
3609
|
import { isDeepStrictEqual } from "node:util";
|
|
3610
3610
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3611
3611
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3807,7 +3807,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3807
3807
|
return command;
|
|
3808
3808
|
}, "customizeSharedCommand");
|
|
3809
3809
|
|
|
3810
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3810
|
+
// 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
|
|
3811
3811
|
var argumentInfoSchema = object({
|
|
3812
3812
|
name: string(),
|
|
3813
3813
|
required: boolean(),
|
|
@@ -3836,7 +3836,8 @@ var fieldInfoSchema = object({
|
|
|
3836
3836
|
example: string(),
|
|
3837
3837
|
relation: optional(string()),
|
|
3838
3838
|
native: optional(boolean()),
|
|
3839
|
-
placement: optional(literal("and"))
|
|
3839
|
+
placement: optional(literal("and")),
|
|
3840
|
+
negatable: optional(boolean())
|
|
3840
3841
|
});
|
|
3841
3842
|
var commandInfoSchema = object({
|
|
3842
3843
|
path: array(string()),
|
|
@@ -3880,7 +3881,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3880
3881
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3881
3882
|
});
|
|
3882
3883
|
|
|
3883
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3884
|
+
// 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
|
|
3884
3885
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3885
3886
|
let command = root;
|
|
3886
3887
|
const path2 = [];
|
|
@@ -3898,7 +3899,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3898
3899
|
}
|
|
3899
3900
|
}, "refuseJoinedPath");
|
|
3900
3901
|
|
|
3901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3902
3903
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3903
3904
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
3904
3905
|
messageId: message.id,
|
|
@@ -4004,7 +4005,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4004
4005
|
}, "guardedWrite");
|
|
4005
4006
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4006
4007
|
|
|
4007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4008
4009
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4009
4010
|
try {
|
|
4010
4011
|
return work();
|
|
@@ -4031,7 +4032,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4031
4032
|
return projectFields(value, fields);
|
|
4032
4033
|
}), "projectFields");
|
|
4033
4034
|
|
|
4034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4035
4036
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4036
4037
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4037
4038
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4213,7 +4214,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4213
4214
|
}
|
|
4214
4215
|
}, "withAbort");
|
|
4215
4216
|
|
|
4216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4217
4218
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4218
4219
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4219
4220
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4608,7 +4609,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4608
4609
|
}
|
|
4609
4610
|
}, "assertRetentionEvidenceRead");
|
|
4610
4611
|
|
|
4611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4612
4613
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4613
4614
|
import { join } from "node:path";
|
|
4614
4615
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4630,7 +4631,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4630
4631
|
}, "profilesWithAccounts");
|
|
4631
4632
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4632
4633
|
|
|
4633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4634
4635
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4635
4636
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4636
4637
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -4660,7 +4661,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4660
4661
|
return value;
|
|
4661
4662
|
}, "atDetail");
|
|
4662
4663
|
|
|
4663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/output.js
|
|
4664
4665
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
4665
4666
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
4666
4667
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -4708,7 +4709,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4708
4709
|
}, "warn")
|
|
4709
4710
|
}), "silence");
|
|
4710
4711
|
|
|
4711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4712
4713
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4713
4714
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4714
4715
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4742,7 +4743,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4742
4743
|
cache: "cache.answered"
|
|
4743
4744
|
};
|
|
4744
4745
|
|
|
4745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4746
4747
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4747
4748
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4748
4749
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4755,13 +4756,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4755
4756
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4756
4757
|
}), "snakeLogger");
|
|
4757
4758
|
|
|
4758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4759
4760
|
import { randomUUID } from "node:crypto";
|
|
4760
4761
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4761
4762
|
import { userInfo } from "node:os";
|
|
4762
4763
|
import { join as join2, sep } from "node:path";
|
|
4763
4764
|
|
|
4764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4765
4766
|
var diagnostic = {
|
|
4766
4767
|
event: true,
|
|
4767
4768
|
operation: true,
|
|
@@ -4831,7 +4832,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4831
4832
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4832
4833
|
].sort();
|
|
4833
4834
|
|
|
4834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4835
4836
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4836
4837
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4837
4838
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5184,7 +5185,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5184
5185
|
};
|
|
5185
5186
|
}, "metadataOf");
|
|
5186
5187
|
|
|
5187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5188
5189
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5189
5190
|
import { randomBytes } from "node:crypto";
|
|
5190
5191
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5222,7 +5223,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5222
5223
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5223
5224
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5224
5225
|
|
|
5225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5226
5227
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5227
5228
|
const recording = startRecording(options);
|
|
5228
5229
|
try {
|
|
@@ -5407,7 +5408,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5407
5408
|
return void 0;
|
|
5408
5409
|
}, "partialOutcome");
|
|
5409
5410
|
|
|
5410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5411
5412
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
5412
5413
|
if (ms === void 0)
|
|
5413
5414
|
return body();
|
|
@@ -5433,7 +5434,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
5433
5434
|
}
|
|
5434
5435
|
}, "withDeadline");
|
|
5435
5436
|
|
|
5436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5437
5438
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5438
5439
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5439
5440
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5502,10 +5503,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5502
5503
|
return void 0;
|
|
5503
5504
|
}, "sampleCommand");
|
|
5504
5505
|
|
|
5505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5506
5507
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5507
5508
|
|
|
5508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5509
5510
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5510
5511
|
try {
|
|
5511
5512
|
const url2 = new URL(value);
|
|
@@ -5515,7 +5516,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5515
5516
|
}
|
|
5516
5517
|
}, "endpoint");
|
|
5517
5518
|
|
|
5518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5519
5520
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5520
5521
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5521
5522
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5584,7 +5585,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5584
5585
|
};
|
|
5585
5586
|
}, "modelTarget");
|
|
5586
5587
|
|
|
5587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5588
5589
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5589
5590
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5590
5591
|
var AI_FIELDS = {
|
|
@@ -5628,7 +5629,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5628
5629
|
};
|
|
5629
5630
|
}, "resolveAISettings");
|
|
5630
5631
|
|
|
5631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5632
5633
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5633
5634
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5634
5635
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5642,7 +5643,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5642
5643
|
return ms;
|
|
5643
5644
|
}, "parseDuration");
|
|
5644
5645
|
|
|
5645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5646
5647
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5647
5648
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5648
5649
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5801,7 +5802,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5801
5802
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5802
5803
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5803
5804
|
|
|
5804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5805
5806
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5806
5807
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5807
5808
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -6091,7 +6092,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6091
6092
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6092
6093
|
}, "readConfigFile");
|
|
6093
6094
|
|
|
6094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6095
6096
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6096
6097
|
import { dirname, join as join3 } from "node:path";
|
|
6097
6098
|
var DEFAULT_CONFIG = {
|
|
@@ -6120,7 +6121,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6120
6121
|
}
|
|
6121
6122
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6122
6123
|
|
|
6123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6124
6125
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6125
6126
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6126
6127
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6510,7 +6511,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6510
6511
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6511
6512
|
}, "given");
|
|
6512
6513
|
|
|
6513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6514
6515
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6515
6516
|
const slot = environmentOf(command).exit;
|
|
6516
6517
|
if (slot)
|
|
@@ -6617,7 +6618,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6617
6618
|
return words.join(" ");
|
|
6618
6619
|
}, "commandPath");
|
|
6619
6620
|
|
|
6620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6621
6622
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6622
6623
|
var FETCH = { remote: "read", local: "write" };
|
|
6623
6624
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6663,15 +6664,21 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
|
|
|
6663
6664
|
const effects = metaOf(command).effects;
|
|
6664
6665
|
return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
|
|
6665
6666
|
}, "fetchesOnly");
|
|
6666
|
-
var
|
|
6667
|
+
var FILE_OPTION = /* @__PURE__ */ new WeakMap();
|
|
6668
|
+
var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
6669
|
+
const option = FILE_OPTION.get(command);
|
|
6670
|
+
return option === void 0 || command.opts()[option] !== void 0;
|
|
6671
|
+
}, "writesFileNow");
|
|
6672
|
+
var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) || FILE_OPTION.has(command), "readsOverMcp");
|
|
6673
|
+
var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
|
|
6667
6674
|
let at = root;
|
|
6668
6675
|
for (const word of path2)
|
|
6669
6676
|
at = at?.commands.find((one) => one.name() === word);
|
|
6670
|
-
return at !== void 0 &&
|
|
6671
|
-
}, "
|
|
6677
|
+
return at !== void 0 && readsOverMcp(at);
|
|
6678
|
+
}, "readsOverMcpAt");
|
|
6672
6679
|
var isStoreChange = /* @__PURE__ */ __name((command) => {
|
|
6673
6680
|
const effects = metaOf(command).effects;
|
|
6674
|
-
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command);
|
|
6681
|
+
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command) && writesFileNow(command);
|
|
6675
6682
|
}, "isStoreChange");
|
|
6676
6683
|
var STORE_CHANGE_REFUSAL = "change the message store";
|
|
6677
6684
|
var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
|
|
@@ -6719,7 +6726,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6719
6726
|
throw readOnlyRefusal(lock, what);
|
|
6720
6727
|
}, "refuseUnderReadOnly");
|
|
6721
6728
|
|
|
6722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6723
6730
|
import { join as join4 } from "node:path";
|
|
6724
6731
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6725
6732
|
var IMAGE_MODELS = [
|
|
@@ -6773,7 +6780,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6773
6780
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6774
6781
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6775
6782
|
|
|
6776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6777
6784
|
var STEPS2 = defineSteps([
|
|
6778
6785
|
...STEPS,
|
|
6779
6786
|
{
|
|
@@ -7040,7 +7047,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
7040
7047
|
].join(" ");
|
|
7041
7048
|
}, "stepLine");
|
|
7042
7049
|
|
|
7043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
7044
7051
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
7045
7052
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
7046
7053
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -7054,7 +7061,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
7054
7061
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
7055
7062
|
}, "strip");
|
|
7056
7063
|
|
|
7057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
7058
7065
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
7059
7066
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
7060
7067
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -7188,7 +7195,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
7188
7195
|
renderer.result(item);
|
|
7189
7196
|
}, "printItem");
|
|
7190
7197
|
|
|
7191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
7192
7199
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
7193
7200
|
var storeTable = strictObject({
|
|
7194
7201
|
name: text,
|
|
@@ -7197,7 +7204,7 @@ var storeTable = strictObject({
|
|
|
7197
7204
|
bytes: optional(nullable(count))
|
|
7198
7205
|
});
|
|
7199
7206
|
|
|
7200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7201
7208
|
var WEIGHTS = {
|
|
7202
7209
|
bot: 3,
|
|
7203
7210
|
scam: 3,
|
|
@@ -7222,7 +7229,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7222
7229
|
var DIGITS = /\d{5,}/;
|
|
7223
7230
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7224
7231
|
|
|
7225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7226
7233
|
var closeSuggestion = strictObject({
|
|
7227
7234
|
as: picklist(["done", "dismissed"]),
|
|
7228
7235
|
/** The agent's name. */
|
|
@@ -7280,7 +7287,7 @@ var task = strictObject({
|
|
|
7280
7287
|
updated_at: optional(time)
|
|
7281
7288
|
});
|
|
7282
7289
|
|
|
7283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7284
7291
|
var agendaChat = strictObject({
|
|
7285
7292
|
chat: reference,
|
|
7286
7293
|
title: nullable(text),
|
|
@@ -7350,7 +7357,7 @@ var agenda = strictObject({
|
|
|
7350
7357
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7351
7358
|
});
|
|
7352
7359
|
|
|
7353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7354
7361
|
var conversation = strictObject({
|
|
7355
7362
|
id,
|
|
7356
7363
|
chat: reference,
|
|
@@ -7365,7 +7372,7 @@ var conversation = strictObject({
|
|
|
7365
7372
|
rules_version: count
|
|
7366
7373
|
});
|
|
7367
7374
|
|
|
7368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7369
7376
|
var attachment = strictObject({
|
|
7370
7377
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7371
7378
|
message: optional(reference),
|
|
@@ -7401,8 +7408,9 @@ var attachment = strictObject({
|
|
|
7401
7408
|
url: optional(text)
|
|
7402
7409
|
}))))
|
|
7403
7410
|
});
|
|
7411
|
+
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7404
7412
|
|
|
7405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
7406
7414
|
var tagging = strictObject({
|
|
7407
7415
|
tag: text,
|
|
7408
7416
|
type: picklist(TAG_TYPES),
|
|
@@ -7415,7 +7423,7 @@ var tagging = strictObject({
|
|
|
7415
7423
|
created_at: time
|
|
7416
7424
|
});
|
|
7417
7425
|
|
|
7418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
7419
7427
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
7420
7428
|
const run = currentRun();
|
|
7421
7429
|
const trace = traceId ?? run.traceId;
|
|
@@ -7552,7 +7560,7 @@ export {
|
|
|
7552
7560
|
isLogin,
|
|
7553
7561
|
destroysNothing,
|
|
7554
7562
|
changesStore,
|
|
7555
|
-
|
|
7563
|
+
readsOverMcpAt,
|
|
7556
7564
|
isStoreChange,
|
|
7557
7565
|
previewFlag,
|
|
7558
7566
|
storeChangeRefusal,
|
|
@@ -7598,6 +7606,7 @@ export {
|
|
|
7598
7606
|
agenda,
|
|
7599
7607
|
conversation,
|
|
7600
7608
|
attachment,
|
|
7609
|
+
hitFile,
|
|
7601
7610
|
tagging,
|
|
7602
7611
|
recordLogFor,
|
|
7603
7612
|
storeTable
|