@wirecat/tg-cli 0.109.0 → 0.110.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-6JLFYFL5.js → adapter-JWUCHTXU.js} +45 -45
- package/dist/bundle/{all-profiles-X7Y3T5S4.js → all-profiles-OMRCKP54.js} +8 -8
- package/dist/bundle/{anthropic-LGVXAADT.js → anthropic-WXFHH74P.js} +5 -5
- package/dist/bundle/{app-server-UI3AFSJX.js → app-server-ILIPNO6T.js} +40 -40
- package/dist/bundle/{bot-api-TQYRNYJQ.js → bot-api-KV765AZK.js} +46 -46
- package/dist/bundle/{bot-history-DDNTNMNB.js → bot-history-3P6EIM5L.js} +15 -15
- package/dist/bundle/{bun-WXGS6HML.js → bun-MJOYPPEN.js} +2 -2
- package/dist/bundle/{bun-sqlite-M6JEXKRT.js → bun-sqlite-GFRVRRDZ.js} +4 -4
- package/dist/bundle/{chunk-C3RX3UOE.js → chunk-2YWQEG2P.js} +11 -11
- package/dist/bundle/{chunk-UIPBAT2T.js → chunk-32HEOKI2.js} +15 -14
- package/dist/bundle/{chunk-BZIZLEJN.js → chunk-3KOF5T4N.js} +4 -4
- package/dist/bundle/{chunk-WHYS6OSG.js → chunk-3L2JTAVD.js} +2 -2
- package/dist/bundle/{chunk-XJVGCCQE.js → chunk-3XTMVGTS.js} +1904 -624
- package/dist/bundle/{chunk-P5ILJ7MN.js → chunk-4BMXELWN.js} +5 -5
- package/dist/bundle/{chunk-ZMZKZL3Y.js → chunk-4GOF43MW.js} +1 -1
- package/dist/bundle/{chunk-7AJ2IESO.js → chunk-4I6HTOCM.js} +1 -1
- package/dist/bundle/{chunk-4R4AH6FM.js → chunk-4YOPRYEY.js} +94 -94
- package/dist/bundle/{chunk-AGVKIJB7.js → chunk-54CWOD7V.js} +6 -6
- package/dist/bundle/{chunk-76C5SSMR.js → chunk-5ASW5BNM.js} +12 -12
- package/dist/bundle/{chunk-P57R2P75.js → chunk-5CMOXHQS.js} +7 -7
- package/dist/bundle/{chunk-N56WXUCW.js → chunk-6KESAYMZ.js} +2 -2
- package/dist/bundle/{chunk-YYOIULA2.js → chunk-6WTLP2SI.js} +8 -8
- package/dist/bundle/{chunk-TMXNMO66.js → chunk-7ABA4EXC.js} +3 -3
- package/dist/bundle/{chunk-RD2NLJSU.js → chunk-7LZBMZQM.js} +4 -4
- package/dist/bundle/{chunk-VFVMB3NV.js → chunk-ABVHA4K6.js} +5 -5
- package/dist/bundle/{chunk-BESIMQ5U.js → chunk-AXNBGLO5.js} +1 -1
- package/dist/bundle/{chunk-INYO2QFW.js → chunk-AZYVTDAE.js} +3 -3
- package/dist/bundle/{chunk-N5FSRC6H.js → chunk-BWRCPMMC.js} +41 -31
- package/dist/bundle/{chunk-2ILQYCBY.js → chunk-BYOEVYY2.js} +553 -291
- package/dist/bundle/{chunk-NAVNCM5K.js → chunk-EB44Z44U.js} +1 -1
- package/dist/bundle/{chunk-XMMWKHNY.js → chunk-EO563SUX.js} +7 -7
- package/dist/bundle/{chunk-OHLMHBDI.js → chunk-F24EAGOU.js} +32 -31
- package/dist/bundle/{chunk-WNTXIQMB.js → chunk-F7RWNBC2.js} +2 -2
- package/dist/bundle/{chunk-IGIPIO4J.js → chunk-FYAHTTOB.js} +11 -11
- package/dist/bundle/{chunk-SH63Q4QR.js → chunk-GPIORQAD.js} +22 -22
- package/dist/bundle/{chunk-BHPCZCX7.js → chunk-HCAYTAJN.js} +2 -2
- package/dist/bundle/{chunk-P55L4S6N.js → chunk-JDOSIWPN.js} +3 -3
- package/dist/bundle/{chunk-MF6NKU3Z.js → chunk-KLOFBUXA.js} +22 -22
- package/dist/bundle/{chunk-IV2QWSPG.js → chunk-L3YDXUDK.js} +12 -3
- package/dist/bundle/{chunk-QQF7RDLR.js → chunk-M3XIME74.js} +4 -4
- package/dist/bundle/{chunk-CHI6D4D6.js → chunk-MXIBRT6W.js} +4 -4
- package/dist/bundle/{chunk-ZHP44EML.js → chunk-MZRD776E.js} +3 -3
- package/dist/bundle/{chunk-KHKC236O.js → chunk-NDT22GBK.js} +2 -2
- package/dist/bundle/{chunk-IULYECPC.js → chunk-NFBOZT7H.js} +4 -4
- package/dist/bundle/{chunk-GUFM5RLW.js → chunk-ONHHBPV3.js} +2 -2
- package/dist/bundle/{chunk-CVLDXFRP.js → chunk-Q35J5LCO.js} +8 -8
- package/dist/bundle/{chunk-DZVYGBZB.js → chunk-QRH2AWBZ.js} +55 -54
- package/dist/bundle/{chunk-25VC6U3A.js → chunk-RARYRHQA.js} +1 -1
- package/dist/bundle/{chunk-AD3QPYI3.js → chunk-RSZEEWOW.js} +2 -2
- package/dist/bundle/{chunk-M62LF3QE.js → chunk-RXWG7OWT.js} +348 -300
- package/dist/bundle/{chunk-ZUOS7QUB.js → chunk-SD5J5T7M.js} +11 -11
- package/dist/bundle/{chunk-S7B6MTXX.js → chunk-SLAPUEMZ.js} +6 -6
- package/dist/bundle/{chunk-CH2ESVV5.js → chunk-TDQVVXPF.js} +42 -24
- package/dist/bundle/{chunk-YXCQ4DLZ.js → chunk-TJA3BWY3.js} +1 -1
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-UUQ3BH2Z.js → chunk-VM7I5VKX.js} +2 -2
- package/dist/bundle/{chunk-5SUFMBU5.js → chunk-VOBMR7E5.js} +45 -45
- package/dist/bundle/{chunk-VYR2IIWW.js → chunk-W3B6EEZU.js} +1 -1
- package/dist/bundle/{chunk-7T7ILNCU.js → chunk-XLNYDJKG.js} +2 -2
- package/dist/bundle/{chunk-ZFMS5G4H.js → chunk-YPEAEEHF.js} +2 -2
- package/dist/bundle/{chunk-DO33KAMM.js → chunk-YPLL3Q3M.js} +57 -57
- package/dist/bundle/{chunk-3PEZWXKO.js → chunk-YWSNUUW5.js} +6 -6
- package/dist/bundle/command-contract-TNSW7W6G.js +32 -0
- package/dist/bundle/{decode-RKPOGPBE.js → decode-3KBXZCFM.js} +4 -4
- package/dist/bundle/{echarts-H5QQRBHI.js → echarts-24TVPFGC.js} +2 -2
- package/dist/bundle/{embed-7TVAPNP7.js → embed-3BDPZ4Q7.js} +5 -5
- package/dist/bundle/{embedder-YOOHWWN6.js → embedder-EMVDEZFR.js} +8 -8
- package/dist/bundle/{entry-SAKW5HEZ.js → entry-NQD6Z2BM.js} +5 -5
- package/dist/bundle/{first-run-C744N572.js → first-run-ZBIO6C67.js} +9 -9
- package/dist/bundle/first-screen-4HRCG7OX.js +30 -0
- package/dist/bundle/{identity-NRWTZIQ4.js → identity-EDGOOTOM.js} +3 -3
- package/dist/bundle/{instructions-6LWRAW47.js → instructions-N2WVMNFZ.js} +1 -1
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-XN4PIVWW.js → node-VBZAZHUS.js} +2 -2
- package/dist/bundle/{node-sqlite-PCBGROGQ.js → node-sqlite-C3V64OAL.js} +4 -4
- package/dist/bundle/{oauth-PX6NGHUV.js → oauth-NZXELYDA.js} +6 -6
- package/dist/bundle/{open-BKJGJ6GX.js → open-2XRUGMV7.js} +3 -3
- package/dist/bundle/{openai-MJP7CZXP.js → openai-OLGTN3ZB.js} +13 -13
- package/dist/bundle/{process-4PRR3MLT.js → process-CASPZ2DH.js} +1 -1
- package/dist/bundle/{program-7YZUO42B.js → program-QPQDSGYA.js} +50 -48
- package/dist/bundle/{prompt-CILSZC2R.js → prompt-ESZL7SGX.js} +4 -4
- package/dist/bundle/{proxy-transport-FWGKTYBL.js → proxy-transport-OROEVBCG.js} +4 -4
- package/dist/bundle/{recognize-AVFDJAIL.js → recognize-LQ7QOG4T.js} +3 -3
- package/dist/bundle/{remote-2VYXGOM4.js → remote-34XP4EDN.js} +6 -6
- package/dist/bundle/{rerank-6FU2JPCD.js → rerank-7F6NLBCW.js} +6 -6
- package/dist/bundle/{serve-3YQOHBR6.js → serve-M6TTKXI4.js} +8 -8
- package/dist/bundle/{server-TPK3LNEX.js → server-GLZ5M7PE.js} +32 -32
- package/dist/bundle/server-KOW7OKE2.js +56 -0
- package/dist/bundle/{state-LLUNBLZE.js → state-UKKPLMHS.js} +5 -5
- package/dist/bundle/{store-27FQ743G.js → store-J2MBIDJK.js} +10 -10
- package/dist/bundle/store-maintenance-command-64B57C3U.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.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/command-contract-E2MWR3T3.js +0 -32
- package/dist/bundle/first-screen-7GKUEIWS.js +0 -30
- package/dist/bundle/server-S2K4YDDG.js +0 -56
- package/dist/bundle/store-maintenance-command-AFJMKEBK.js +0 -45
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7LZBMZQM.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-Q35J5LCO.js";
|
|
20
20
|
import {
|
|
21
21
|
permissionCeiling
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JDOSIWPN.js";
|
|
23
23
|
import {
|
|
24
24
|
envName,
|
|
25
25
|
readOnlyLockOf,
|
|
26
26
|
readOnlyRefusal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XLNYDJKG.js";
|
|
28
28
|
import {
|
|
29
29
|
filesPresent,
|
|
30
30
|
sharedModelsDirectory
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NFBOZT7H.js";
|
|
32
32
|
import {
|
|
33
33
|
FIELD_TYPES,
|
|
34
34
|
QUERY_BACKENDS,
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
TASK_STATES,
|
|
38
38
|
TASK_TYPES,
|
|
39
39
|
describeQuery
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YPLL3Q3M.js";
|
|
41
41
|
import {
|
|
42
42
|
sharedConfigPath
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-54CWOD7V.js";
|
|
44
44
|
import {
|
|
45
45
|
storePath
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-VM7I5VKX.js";
|
|
47
47
|
import {
|
|
48
48
|
configFilePath,
|
|
49
49
|
createRecordLog,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
saveConfigFile,
|
|
57
57
|
singleLine,
|
|
58
58
|
writeSecurely
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-BWRCPMMC.js";
|
|
60
60
|
import {
|
|
61
61
|
CliError,
|
|
62
62
|
MAX_NEXT_STEPS,
|
|
@@ -98,12 +98,12 @@ import {
|
|
|
98
98
|
union,
|
|
99
99
|
unknown,
|
|
100
100
|
writes
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-EO563SUX.js";
|
|
102
102
|
import {
|
|
103
103
|
__name
|
|
104
104
|
} from "./chunk-ZVVMGPBJ.js";
|
|
105
105
|
|
|
106
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
106
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_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
|
|
107
107
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
108
108
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
109
109
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3604,7 +3604,7 @@ __name(useColor, "useColor");
|
|
|
3604
3604
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3605
3605
|
var program = new Command();
|
|
3606
3606
|
|
|
3607
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3607
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_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
|
|
3608
3608
|
import { isDeepStrictEqual } from "node:util";
|
|
3609
3609
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3610
3610
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3806,7 +3806,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3806
3806
|
return command;
|
|
3807
3807
|
}, "customizeSharedCommand");
|
|
3808
3808
|
|
|
3809
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3809
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_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
|
|
3810
3810
|
var argumentInfoSchema = object({
|
|
3811
3811
|
name: string(),
|
|
3812
3812
|
required: boolean(),
|
|
@@ -3879,7 +3879,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3879
3879
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3880
3880
|
});
|
|
3881
3881
|
|
|
3882
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3882
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_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
|
|
3883
3883
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3884
3884
|
let command = root;
|
|
3885
3885
|
const path2 = [];
|
|
@@ -3897,7 +3897,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3897
3897
|
}
|
|
3898
3898
|
}, "refuseJoinedPath");
|
|
3899
3899
|
|
|
3900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3901
3901
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3902
3902
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
3903
3903
|
messageId: message.id,
|
|
@@ -4003,7 +4003,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4003
4003
|
}, "guardedWrite");
|
|
4004
4004
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4005
4005
|
|
|
4006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4007
4007
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4008
4008
|
try {
|
|
4009
4009
|
return work();
|
|
@@ -4030,7 +4030,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4030
4030
|
return projectFields(value, fields);
|
|
4031
4031
|
}), "projectFields");
|
|
4032
4032
|
|
|
4033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4034
4034
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4035
4035
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4036
4036
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4212,7 +4212,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4212
4212
|
}
|
|
4213
4213
|
}, "withAbort");
|
|
4214
4214
|
|
|
4215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4216
4216
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4217
4217
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4218
4218
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4500,7 +4500,7 @@ var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
|
4500
4500
|
]);
|
|
4501
4501
|
var BOT_HOUSEKEEPING = /* @__PURE__ */ new Set(["auth", "list", "sends", "recipients", "mcp"]);
|
|
4502
4502
|
var STORE_MAINTENANCE = /* @__PURE__ */ new Set(["info", "check", "copies"]);
|
|
4503
|
-
var SHOW_MESSAGES = /* @__PURE__ */ new Set(["inbox", "review", "watch", "serve", "store", "conversations"]);
|
|
4503
|
+
var SHOW_MESSAGES = /* @__PURE__ */ new Set(["inbox", "review", "watch", "serve", "store", "conversations", "projects"]);
|
|
4504
4504
|
var readKeysForCommand = /* @__PURE__ */ __name((path2) => {
|
|
4505
4505
|
if (path2[0] === "bot")
|
|
4506
4506
|
return readKeysForCommand(path2.slice(1)).map((key2) => `bot.${key2}`);
|
|
@@ -4601,7 +4601,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
}, "assertRetentionEvidenceRead");
|
|
4603
4603
|
|
|
4604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4605
4605
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4606
4606
|
import { join } from "node:path";
|
|
4607
4607
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4623,7 +4623,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4623
4623
|
}, "profilesWithAccounts");
|
|
4624
4624
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4625
4625
|
|
|
4626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4627
4627
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4628
4628
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4629
4629
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -4653,7 +4653,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4653
4653
|
return value;
|
|
4654
4654
|
}, "atDetail");
|
|
4655
4655
|
|
|
4656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/output.js
|
|
4657
4657
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
4658
4658
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
4659
4659
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -4701,7 +4701,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4701
4701
|
}, "warn")
|
|
4702
4702
|
}), "silence");
|
|
4703
4703
|
|
|
4704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4705
4705
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4706
4706
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4707
4707
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4735,7 +4735,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4735
4735
|
cache: "cache.answered"
|
|
4736
4736
|
};
|
|
4737
4737
|
|
|
4738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4739
4739
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4740
4740
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4741
4741
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4748,13 +4748,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4748
4748
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4749
4749
|
}), "snakeLogger");
|
|
4750
4750
|
|
|
4751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4752
4752
|
import { randomUUID } from "node:crypto";
|
|
4753
4753
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4754
4754
|
import { userInfo } from "node:os";
|
|
4755
4755
|
import { join as join2, sep } from "node:path";
|
|
4756
4756
|
|
|
4757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4758
4758
|
var diagnostic = {
|
|
4759
4759
|
event: true,
|
|
4760
4760
|
operation: true,
|
|
@@ -4824,7 +4824,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4824
4824
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4825
4825
|
].sort();
|
|
4826
4826
|
|
|
4827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4828
4828
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4829
4829
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4830
4830
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5177,7 +5177,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5177
5177
|
};
|
|
5178
5178
|
}, "metadataOf");
|
|
5179
5179
|
|
|
5180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5181
5181
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5182
5182
|
import { randomBytes } from "node:crypto";
|
|
5183
5183
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5215,7 +5215,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5215
5215
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5216
5216
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5217
5217
|
|
|
5218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5219
5219
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5220
5220
|
const recording = startRecording(options);
|
|
5221
5221
|
try {
|
|
@@ -5400,7 +5400,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5400
5400
|
return void 0;
|
|
5401
5401
|
}, "partialOutcome");
|
|
5402
5402
|
|
|
5403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5404
5404
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
5405
5405
|
if (ms === void 0)
|
|
5406
5406
|
return body();
|
|
@@ -5426,7 +5426,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
5426
5426
|
}
|
|
5427
5427
|
}, "withDeadline");
|
|
5428
5428
|
|
|
5429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5430
5430
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5431
5431
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5432
5432
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5495,10 +5495,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5495
5495
|
return void 0;
|
|
5496
5496
|
}, "sampleCommand");
|
|
5497
5497
|
|
|
5498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5499
5499
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5500
5500
|
|
|
5501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5502
5502
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5503
5503
|
try {
|
|
5504
5504
|
const url2 = new URL(value);
|
|
@@ -5508,7 +5508,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5508
5508
|
}
|
|
5509
5509
|
}, "endpoint");
|
|
5510
5510
|
|
|
5511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5512
5512
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5513
5513
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5514
5514
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5577,7 +5577,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5577
5577
|
};
|
|
5578
5578
|
}, "modelTarget");
|
|
5579
5579
|
|
|
5580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5581
5581
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5582
5582
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5583
5583
|
var AI_FIELDS = {
|
|
@@ -5621,7 +5621,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5621
5621
|
};
|
|
5622
5622
|
}, "resolveAISettings");
|
|
5623
5623
|
|
|
5624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5625
5625
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5626
5626
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5627
5627
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5635,7 +5635,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5635
5635
|
return ms;
|
|
5636
5636
|
}, "parseDuration");
|
|
5637
5637
|
|
|
5638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5639
5639
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5640
5640
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5641
5641
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5794,7 +5794,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5794
5794
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5795
5795
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5796
5796
|
|
|
5797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5798
5798
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5799
5799
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5800
5800
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -6084,7 +6084,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6084
6084
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6085
6085
|
}, "readConfigFile");
|
|
6086
6086
|
|
|
6087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6088
6088
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6089
6089
|
import { dirname, join as join3 } from "node:path";
|
|
6090
6090
|
var DEFAULT_CONFIG = {
|
|
@@ -6113,7 +6113,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6113
6113
|
}
|
|
6114
6114
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6115
6115
|
|
|
6116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6117
6117
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6118
6118
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6119
6119
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6503,7 +6503,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6503
6503
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6504
6504
|
}, "given");
|
|
6505
6505
|
|
|
6506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6507
6507
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6508
6508
|
const slot = environmentOf(command).exit;
|
|
6509
6509
|
if (slot)
|
|
@@ -6610,7 +6610,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6610
6610
|
return words.join(" ");
|
|
6611
6611
|
}, "commandPath");
|
|
6612
6612
|
|
|
6613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6614
6614
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6615
6615
|
var FETCH = { remote: "read", local: "write" };
|
|
6616
6616
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6712,7 +6712,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6712
6712
|
throw readOnlyRefusal(lock, what);
|
|
6713
6713
|
}, "refuseUnderReadOnly");
|
|
6714
6714
|
|
|
6715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6716
6716
|
import { join as join4 } from "node:path";
|
|
6717
6717
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6718
6718
|
var IMAGE_MODELS = [
|
|
@@ -6766,7 +6766,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6766
6766
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6767
6767
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6768
6768
|
|
|
6769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6770
6770
|
var STEPS2 = defineSteps([
|
|
6771
6771
|
...STEPS,
|
|
6772
6772
|
{
|
|
@@ -7033,7 +7033,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
7033
7033
|
].join(" ");
|
|
7034
7034
|
}, "stepLine");
|
|
7035
7035
|
|
|
7036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
7037
7037
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
7038
7038
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
7039
7039
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -7047,7 +7047,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
7047
7047
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
7048
7048
|
}, "strip");
|
|
7049
7049
|
|
|
7050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
7051
7051
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
7052
7052
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
7053
7053
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -7181,7 +7181,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
7181
7181
|
renderer.result(item);
|
|
7182
7182
|
}, "printItem");
|
|
7183
7183
|
|
|
7184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
7185
7185
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
7186
7186
|
var storeTable = strictObject({
|
|
7187
7187
|
name: text,
|
|
@@ -7190,7 +7190,7 @@ var storeTable = strictObject({
|
|
|
7190
7190
|
bytes: optional(nullable(count))
|
|
7191
7191
|
});
|
|
7192
7192
|
|
|
7193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7194
7194
|
var WEIGHTS = {
|
|
7195
7195
|
bot: 3,
|
|
7196
7196
|
scam: 3,
|
|
@@ -7215,7 +7215,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7215
7215
|
var DIGITS = /\d{5,}/;
|
|
7216
7216
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7217
7217
|
|
|
7218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7219
7219
|
var closeSuggestion = strictObject({
|
|
7220
7220
|
as: picklist(["done", "dismissed"]),
|
|
7221
7221
|
/** The agent's name. */
|
|
@@ -7257,7 +7257,7 @@ var task = strictObject({
|
|
|
7257
7257
|
updated_at: optional(time)
|
|
7258
7258
|
});
|
|
7259
7259
|
|
|
7260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7261
7261
|
var agendaChat = strictObject({
|
|
7262
7262
|
chat: reference,
|
|
7263
7263
|
title: nullable(text),
|
|
@@ -7327,7 +7327,7 @@ var agenda = strictObject({
|
|
|
7327
7327
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7328
7328
|
});
|
|
7329
7329
|
|
|
7330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7331
7331
|
var conversation = strictObject({
|
|
7332
7332
|
id,
|
|
7333
7333
|
chat: reference,
|
|
@@ -7342,7 +7342,7 @@ var conversation = strictObject({
|
|
|
7342
7342
|
rules_version: count
|
|
7343
7343
|
});
|
|
7344
7344
|
|
|
7345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7346
7346
|
var attachment = strictObject({
|
|
7347
7347
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7348
7348
|
message: optional(reference),
|
|
@@ -7379,7 +7379,7 @@ var attachment = strictObject({
|
|
|
7379
7379
|
}))))
|
|
7380
7380
|
});
|
|
7381
7381
|
|
|
7382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
7383
7383
|
var tagging = strictObject({
|
|
7384
7384
|
tag: text,
|
|
7385
7385
|
type: picklist(TAG_TYPES),
|
|
@@ -7392,7 +7392,7 @@ var tagging = strictObject({
|
|
|
7392
7392
|
created_at: time
|
|
7393
7393
|
});
|
|
7394
7394
|
|
|
7395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
7396
7396
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
7397
7397
|
const run = currentRun();
|
|
7398
7398
|
const trace = traceId ?? run.traceId;
|
|
@@ -7409,6 +7409,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
7409
7409
|
export {
|
|
7410
7410
|
annotate,
|
|
7411
7411
|
metaOf,
|
|
7412
|
+
annotateOption,
|
|
7412
7413
|
describeProgram,
|
|
7413
7414
|
describeOptions,
|
|
7414
7415
|
flatten,
|
|
@@ -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.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
optional,
|
|
11
11
|
pipe,
|
|
12
12
|
safeParse
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EO563SUX.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
19
19
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
20
20
|
const parsed = safeParse(schema, options);
|
|
21
21
|
if (!parsed.success) {
|