@wirecat/tg-cli 0.109.0 → 0.111.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-WFC2JAD4.js} +45 -45
- package/dist/bundle/{all-profiles-X7Y3T5S4.js → all-profiles-FEUSGHT7.js} +8 -8
- package/dist/bundle/{anthropic-LGVXAADT.js → anthropic-O646SJIJ.js} +5 -5
- package/dist/bundle/{app-server-UI3AFSJX.js → app-server-7P23Y45A.js} +40 -40
- package/dist/bundle/{bot-api-TQYRNYJQ.js → bot-api-WTJCL6VF.js} +46 -46
- package/dist/bundle/{bot-history-DDNTNMNB.js → bot-history-5J2Q4SPC.js} +15 -15
- package/dist/bundle/{bun-WXGS6HML.js → bun-KUKVEKDW.js} +2 -2
- package/dist/bundle/{bun-sqlite-M6JEXKRT.js → bun-sqlite-2G5TXHYE.js} +4 -4
- package/dist/bundle/{chunk-P5ILJ7MN.js → chunk-2K6IGVSI.js} +5 -5
- package/dist/bundle/{chunk-WHYS6OSG.js → chunk-2ZH3PUQX.js} +2 -2
- package/dist/bundle/{chunk-YYOIULA2.js → chunk-33HEHPIK.js} +8 -8
- package/dist/bundle/{chunk-4R4AH6FM.js → chunk-3BD24JYK.js} +98 -94
- package/dist/bundle/{chunk-AGVKIJB7.js → chunk-3WUTBGZE.js} +6 -6
- package/dist/bundle/{chunk-7T7ILNCU.js → chunk-43ZFY6TW.js} +2 -2
- package/dist/bundle/{chunk-CVLDXFRP.js → chunk-5FJQG5UZ.js} +10 -9
- package/dist/bundle/{chunk-XJVGCCQE.js → chunk-5ZPLOYTP.js} +1911 -630
- package/dist/bundle/{chunk-3PEZWXKO.js → chunk-7665YBJ7.js} +6 -6
- package/dist/bundle/{chunk-UUQ3BH2Z.js → chunk-7GQLD5TJ.js} +2 -2
- package/dist/bundle/{chunk-VFVMB3NV.js → chunk-ABVHA4K6.js} +5 -5
- package/dist/bundle/{chunk-IULYECPC.js → chunk-AUWYMMYL.js} +4 -4
- package/dist/bundle/{chunk-YXCQ4DLZ.js → chunk-BNQOUCL2.js} +1 -1
- package/dist/bundle/{chunk-N5FSRC6H.js → chunk-BWRCPMMC.js} +41 -31
- package/dist/bundle/{chunk-IV2QWSPG.js → chunk-CJUSP5X2.js} +12 -3
- package/dist/bundle/{chunk-CH2ESVV5.js → chunk-COHMFCHD.js} +42 -24
- package/dist/bundle/{chunk-2ILQYCBY.js → chunk-DEG4JJHG.js} +568 -297
- package/dist/bundle/{chunk-DO33KAMM.js → chunk-DREEXESG.js} +96 -60
- 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-ZMZKZL3Y.js → chunk-HN6ZMUAS.js} +1 -1
- package/dist/bundle/{chunk-ZUOS7QUB.js → chunk-ITSSCYLP.js} +11 -11
- package/dist/bundle/{chunk-BESIMQ5U.js → chunk-J2Z5E7TO.js} +1 -1
- package/dist/bundle/{chunk-N56WXUCW.js → chunk-J4QVXR5I.js} +2 -2
- package/dist/bundle/{chunk-MF6NKU3Z.js → chunk-K457FHD4.js} +33 -23
- package/dist/bundle/{chunk-M62LF3QE.js → chunk-KE47Y4PW.js} +941 -494
- package/dist/bundle/{chunk-DZVYGBZB.js → chunk-KLHLWKWC.js} +67 -54
- package/dist/bundle/{chunk-SH63Q4QR.js → chunk-LLAZSGS7.js} +22 -22
- package/dist/bundle/{chunk-WNTXIQMB.js → chunk-MSGYLWCH.js} +2 -2
- package/dist/bundle/{chunk-ZFMS5G4H.js → chunk-NIKYFRDQ.js} +2 -2
- package/dist/bundle/{chunk-7AJ2IESO.js → chunk-NQAV7U7C.js} +1 -1
- package/dist/bundle/{chunk-GUFM5RLW.js → chunk-ONHHBPV3.js} +2 -2
- package/dist/bundle/{chunk-BHPCZCX7.js → chunk-OYVDWHP5.js} +2 -2
- package/dist/bundle/{chunk-25VC6U3A.js → chunk-PNUHAHTF.js} +1 -1
- package/dist/bundle/{chunk-ZHP44EML.js → chunk-PQGWEFJ2.js} +3 -3
- package/dist/bundle/{chunk-KHKC236O.js → chunk-QAC6Z675.js} +2 -2
- package/dist/bundle/{chunk-P57R2P75.js → chunk-QEAMO2TS.js} +7 -7
- package/dist/bundle/{chunk-RD2NLJSU.js → chunk-QLLPZWYZ.js} +4 -4
- package/dist/bundle/{chunk-BZIZLEJN.js → chunk-QVM2HKJP.js} +4 -4
- package/dist/bundle/{chunk-UIPBAT2T.js → chunk-T6DSAROY.js} +17 -14
- package/dist/bundle/{chunk-S7B6MTXX.js → chunk-TWZTQHP6.js} +6 -6
- package/dist/bundle/{chunk-VYR2IIWW.js → chunk-UDYCZ5KB.js} +1 -1
- package/dist/bundle/{chunk-QQF7RDLR.js → chunk-UFIUMPXP.js} +4 -4
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-INYO2QFW.js → chunk-UMUJHC4M.js} +3 -3
- package/dist/bundle/{chunk-TMXNMO66.js → chunk-UPRYEDAV.js} +3 -3
- package/dist/bundle/{chunk-IGIPIO4J.js → chunk-VIEVOF3O.js} +11 -11
- package/dist/bundle/{chunk-5SUFMBU5.js → chunk-WDRNVSWF.js} +45 -45
- package/dist/bundle/{chunk-C3RX3UOE.js → chunk-XIRASTVS.js} +11 -11
- package/dist/bundle/{chunk-OHLMHBDI.js → chunk-XXOJ7PQY.js} +32 -31
- package/dist/bundle/{chunk-CHI6D4D6.js → chunk-YFK3DNNP.js} +4 -4
- package/dist/bundle/{chunk-AD3QPYI3.js → chunk-YG4BO7N3.js} +2 -2
- package/dist/bundle/{chunk-76C5SSMR.js → chunk-ZCHC7TYO.js} +12 -12
- package/dist/bundle/{chunk-P55L4S6N.js → chunk-ZCV4UEVH.js} +3 -3
- package/dist/bundle/command-contract-JCRVVL7P.js +32 -0
- package/dist/bundle/{decode-RKPOGPBE.js → decode-QJNVAAKJ.js} +4 -4
- package/dist/bundle/{echarts-H5QQRBHI.js → echarts-2EDY7OUX.js} +2 -2
- package/dist/bundle/{embed-7TVAPNP7.js → embed-PZSXOQJO.js} +5 -5
- package/dist/bundle/{embedder-YOOHWWN6.js → embedder-O4EGMMUU.js} +8 -8
- package/dist/bundle/{entry-SAKW5HEZ.js → entry-DVLMQM6J.js} +5 -5
- package/dist/bundle/{first-run-C744N572.js → first-run-J67KTUWA.js} +9 -9
- package/dist/bundle/first-screen-PYEE5NMQ.js +30 -0
- package/dist/bundle/{identity-NRWTZIQ4.js → identity-DSYY4FLQ.js} +3 -3
- package/dist/bundle/{instructions-6LWRAW47.js → instructions-O535XB2L.js} +1 -1
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-XN4PIVWW.js → node-S3VEQNTE.js} +2 -2
- package/dist/bundle/{node-sqlite-PCBGROGQ.js → node-sqlite-3DNWF2BW.js} +4 -4
- package/dist/bundle/{oauth-PX6NGHUV.js → oauth-IU2RAZ3D.js} +6 -6
- package/dist/bundle/{open-BKJGJ6GX.js → open-M2IPPXMI.js} +3 -3
- package/dist/bundle/{openai-MJP7CZXP.js → openai-GDI7HISL.js} +13 -13
- package/dist/bundle/{process-4PRR3MLT.js → process-3IGMEATV.js} +1 -1
- package/dist/bundle/{program-7YZUO42B.js → program-P7YPHVLD.js} +50 -48
- package/dist/bundle/{prompt-CILSZC2R.js → prompt-S6R7IHDK.js} +4 -4
- package/dist/bundle/{proxy-transport-FWGKTYBL.js → proxy-transport-OROEVBCG.js} +4 -4
- package/dist/bundle/{recognize-AVFDJAIL.js → recognize-PFZRQ3P4.js} +3 -3
- package/dist/bundle/{remote-2VYXGOM4.js → remote-Q37V7LUX.js} +6 -6
- package/dist/bundle/{rerank-6FU2JPCD.js → rerank-V5YQQQAM.js} +6 -6
- package/dist/bundle/{serve-3YQOHBR6.js → serve-5CAD2UVG.js} +8 -8
- package/dist/bundle/{server-TPK3LNEX.js → server-R6YAO2SG.js} +32 -32
- package/dist/bundle/server-RUQLAWWS.js +56 -0
- package/dist/bundle/{state-LLUNBLZE.js → state-Y3A2NEM3.js} +5 -5
- package/dist/bundle/{store-27FQ743G.js → store-H5K32CNI.js} +10 -10
- package/dist/bundle/store-maintenance-command-QZDC4WKW.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/skills/tg-cli/SKILL.md +14 -9
- 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-QLLPZWYZ.js";
|
|
9
9
|
import {
|
|
10
10
|
currentCaller,
|
|
11
11
|
endpointTemplate,
|
|
@@ -16,34 +16,35 @@ import {
|
|
|
16
16
|
providerErrorKey,
|
|
17
17
|
renderEvent,
|
|
18
18
|
runContextOf
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5FJQG5UZ.js";
|
|
20
20
|
import {
|
|
21
21
|
permissionCeiling
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZCV4UEVH.js";
|
|
23
23
|
import {
|
|
24
24
|
envName,
|
|
25
25
|
readOnlyLockOf,
|
|
26
26
|
readOnlyRefusal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-43ZFY6TW.js";
|
|
28
28
|
import {
|
|
29
29
|
filesPresent,
|
|
30
30
|
sharedModelsDirectory
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AUWYMMYL.js";
|
|
32
32
|
import {
|
|
33
33
|
FIELD_TYPES,
|
|
34
|
+
PRIORITY_LABELS,
|
|
34
35
|
QUERY_BACKENDS,
|
|
35
36
|
TAG_TYPES,
|
|
36
37
|
TASK_ORIGINS,
|
|
37
38
|
TASK_STATES,
|
|
38
39
|
TASK_TYPES,
|
|
39
40
|
describeQuery
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-DREEXESG.js";
|
|
41
42
|
import {
|
|
42
43
|
sharedConfigPath
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3WUTBGZE.js";
|
|
44
45
|
import {
|
|
45
46
|
storePath
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7GQLD5TJ.js";
|
|
47
48
|
import {
|
|
48
49
|
configFilePath,
|
|
49
50
|
createRecordLog,
|
|
@@ -56,7 +57,7 @@ import {
|
|
|
56
57
|
saveConfigFile,
|
|
57
58
|
singleLine,
|
|
58
59
|
writeSecurely
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-BWRCPMMC.js";
|
|
60
61
|
import {
|
|
61
62
|
CliError,
|
|
62
63
|
MAX_NEXT_STEPS,
|
|
@@ -98,12 +99,12 @@ import {
|
|
|
98
99
|
union,
|
|
99
100
|
unknown,
|
|
100
101
|
writes
|
|
101
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-EO563SUX.js";
|
|
102
103
|
import {
|
|
103
104
|
__name
|
|
104
105
|
} from "./chunk-ZVVMGPBJ.js";
|
|
105
106
|
|
|
106
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
107
|
+
// 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
108
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
108
109
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
109
110
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3604,7 +3605,7 @@ __name(useColor, "useColor");
|
|
|
3604
3605
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3605
3606
|
var program = new Command();
|
|
3606
3607
|
|
|
3607
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3608
|
+
// 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
3609
|
import { isDeepStrictEqual } from "node:util";
|
|
3609
3610
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3610
3611
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3806,7 +3807,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3806
3807
|
return command;
|
|
3807
3808
|
}, "customizeSharedCommand");
|
|
3808
3809
|
|
|
3809
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3810
|
+
// 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
3811
|
var argumentInfoSchema = object({
|
|
3811
3812
|
name: string(),
|
|
3812
3813
|
required: boolean(),
|
|
@@ -3879,7 +3880,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3879
3880
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3880
3881
|
});
|
|
3881
3882
|
|
|
3882
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3883
|
+
// 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
3884
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3884
3885
|
let command = root;
|
|
3885
3886
|
const path2 = [];
|
|
@@ -3897,7 +3898,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3897
3898
|
}
|
|
3898
3899
|
}, "refuseJoinedPath");
|
|
3899
3900
|
|
|
3900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3901
3902
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3902
3903
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
3903
3904
|
messageId: message.id,
|
|
@@ -4003,7 +4004,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4003
4004
|
}, "guardedWrite");
|
|
4004
4005
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4005
4006
|
|
|
4006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4007
4008
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4008
4009
|
try {
|
|
4009
4010
|
return work();
|
|
@@ -4030,7 +4031,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4030
4031
|
return projectFields(value, fields);
|
|
4031
4032
|
}), "projectFields");
|
|
4032
4033
|
|
|
4033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4034
4035
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4035
4036
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4036
4037
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4212,7 +4213,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4212
4213
|
}
|
|
4213
4214
|
}, "withAbort");
|
|
4214
4215
|
|
|
4215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4216
4217
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4217
4218
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4218
4219
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4500,7 +4501,7 @@ var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
|
4500
4501
|
]);
|
|
4501
4502
|
var BOT_HOUSEKEEPING = /* @__PURE__ */ new Set(["auth", "list", "sends", "recipients", "mcp"]);
|
|
4502
4503
|
var STORE_MAINTENANCE = /* @__PURE__ */ new Set(["info", "check", "copies"]);
|
|
4503
|
-
var SHOW_MESSAGES = /* @__PURE__ */ new Set(["inbox", "review", "watch", "serve", "store", "conversations"]);
|
|
4504
|
+
var SHOW_MESSAGES = /* @__PURE__ */ new Set(["inbox", "review", "watch", "serve", "store", "conversations", "projects"]);
|
|
4504
4505
|
var readKeysForCommand = /* @__PURE__ */ __name((path2) => {
|
|
4505
4506
|
if (path2[0] === "bot")
|
|
4506
4507
|
return readKeysForCommand(path2.slice(1)).map((key2) => `bot.${key2}`);
|
|
@@ -4601,7 +4602,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4601
4602
|
}
|
|
4602
4603
|
}, "assertRetentionEvidenceRead");
|
|
4603
4604
|
|
|
4604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4605
4606
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4606
4607
|
import { join } from "node:path";
|
|
4607
4608
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4623,7 +4624,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4623
4624
|
}, "profilesWithAccounts");
|
|
4624
4625
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4625
4626
|
|
|
4626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4627
4628
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4628
4629
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4629
4630
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -4653,7 +4654,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4653
4654
|
return value;
|
|
4654
4655
|
}, "atDetail");
|
|
4655
4656
|
|
|
4656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/output.js
|
|
4657
4658
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
4658
4659
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
4659
4660
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -4701,7 +4702,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4701
4702
|
}, "warn")
|
|
4702
4703
|
}), "silence");
|
|
4703
4704
|
|
|
4704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4705
4706
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4706
4707
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4707
4708
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4735,7 +4736,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4735
4736
|
cache: "cache.answered"
|
|
4736
4737
|
};
|
|
4737
4738
|
|
|
4738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4739
4740
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4740
4741
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4741
4742
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4748,13 +4749,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4748
4749
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4749
4750
|
}), "snakeLogger");
|
|
4750
4751
|
|
|
4751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4752
4753
|
import { randomUUID } from "node:crypto";
|
|
4753
4754
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4754
4755
|
import { userInfo } from "node:os";
|
|
4755
4756
|
import { join as join2, sep } from "node:path";
|
|
4756
4757
|
|
|
4757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4758
4759
|
var diagnostic = {
|
|
4759
4760
|
event: true,
|
|
4760
4761
|
operation: true,
|
|
@@ -4824,7 +4825,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4824
4825
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4825
4826
|
].sort();
|
|
4826
4827
|
|
|
4827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4828
4829
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4829
4830
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4830
4831
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5177,7 +5178,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5177
5178
|
};
|
|
5178
5179
|
}, "metadataOf");
|
|
5179
5180
|
|
|
5180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5181
5182
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5182
5183
|
import { randomBytes } from "node:crypto";
|
|
5183
5184
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5215,7 +5216,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5215
5216
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5216
5217
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5217
5218
|
|
|
5218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5219
5220
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5220
5221
|
const recording = startRecording(options);
|
|
5221
5222
|
try {
|
|
@@ -5400,7 +5401,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5400
5401
|
return void 0;
|
|
5401
5402
|
}, "partialOutcome");
|
|
5402
5403
|
|
|
5403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5404
5405
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
5405
5406
|
if (ms === void 0)
|
|
5406
5407
|
return body();
|
|
@@ -5426,7 +5427,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
5426
5427
|
}
|
|
5427
5428
|
}, "withDeadline");
|
|
5428
5429
|
|
|
5429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5430
5431
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5431
5432
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5432
5433
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5495,10 +5496,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5495
5496
|
return void 0;
|
|
5496
5497
|
}, "sampleCommand");
|
|
5497
5498
|
|
|
5498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5499
5500
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5500
5501
|
|
|
5501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5502
5503
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5503
5504
|
try {
|
|
5504
5505
|
const url2 = new URL(value);
|
|
@@ -5508,7 +5509,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5508
5509
|
}
|
|
5509
5510
|
}, "endpoint");
|
|
5510
5511
|
|
|
5511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5512
5513
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5513
5514
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5514
5515
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5577,7 +5578,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5577
5578
|
};
|
|
5578
5579
|
}, "modelTarget");
|
|
5579
5580
|
|
|
5580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5581
5582
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5582
5583
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5583
5584
|
var AI_FIELDS = {
|
|
@@ -5621,7 +5622,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5621
5622
|
};
|
|
5622
5623
|
}, "resolveAISettings");
|
|
5623
5624
|
|
|
5624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5625
5626
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5626
5627
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5627
5628
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5635,7 +5636,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5635
5636
|
return ms;
|
|
5636
5637
|
}, "parseDuration");
|
|
5637
5638
|
|
|
5638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5639
5640
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5640
5641
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5641
5642
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5794,7 +5795,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5794
5795
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5795
5796
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5796
5797
|
|
|
5797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5798
5799
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5799
5800
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5800
5801
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -6084,7 +6085,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6084
6085
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6085
6086
|
}, "readConfigFile");
|
|
6086
6087
|
|
|
6087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6088
6089
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6089
6090
|
import { dirname, join as join3 } from "node:path";
|
|
6090
6091
|
var DEFAULT_CONFIG = {
|
|
@@ -6113,7 +6114,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6113
6114
|
}
|
|
6114
6115
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6115
6116
|
|
|
6116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6117
6118
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6118
6119
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6119
6120
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6503,7 +6504,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6503
6504
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6504
6505
|
}, "given");
|
|
6505
6506
|
|
|
6506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6507
6508
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6508
6509
|
const slot = environmentOf(command).exit;
|
|
6509
6510
|
if (slot)
|
|
@@ -6610,7 +6611,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6610
6611
|
return words.join(" ");
|
|
6611
6612
|
}, "commandPath");
|
|
6612
6613
|
|
|
6613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6614
6615
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6615
6616
|
var FETCH = { remote: "read", local: "write" };
|
|
6616
6617
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6712,7 +6713,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6712
6713
|
throw readOnlyRefusal(lock, what);
|
|
6713
6714
|
}, "refuseUnderReadOnly");
|
|
6714
6715
|
|
|
6715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6716
6717
|
import { join as join4 } from "node:path";
|
|
6717
6718
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6718
6719
|
var IMAGE_MODELS = [
|
|
@@ -6766,7 +6767,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6766
6767
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6767
6768
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6768
6769
|
|
|
6769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6770
6771
|
var STEPS2 = defineSteps([
|
|
6771
6772
|
...STEPS,
|
|
6772
6773
|
{
|
|
@@ -7033,7 +7034,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
7033
7034
|
].join(" ");
|
|
7034
7035
|
}, "stepLine");
|
|
7035
7036
|
|
|
7036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
7037
7038
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
7038
7039
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
7039
7040
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -7047,7 +7048,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
7047
7048
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
7048
7049
|
}, "strip");
|
|
7049
7050
|
|
|
7050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
7051
7052
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
7052
7053
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
7053
7054
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -7181,7 +7182,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
7181
7182
|
renderer.result(item);
|
|
7182
7183
|
}, "printItem");
|
|
7183
7184
|
|
|
7184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
7185
7186
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
7186
7187
|
var storeTable = strictObject({
|
|
7187
7188
|
name: text,
|
|
@@ -7190,7 +7191,7 @@ var storeTable = strictObject({
|
|
|
7190
7191
|
bytes: optional(nullable(count))
|
|
7191
7192
|
});
|
|
7192
7193
|
|
|
7193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7194
7195
|
var WEIGHTS = {
|
|
7195
7196
|
bot: 3,
|
|
7196
7197
|
scam: 3,
|
|
@@ -7215,7 +7216,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7215
7216
|
var DIGITS = /\d{5,}/;
|
|
7216
7217
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7217
7218
|
|
|
7218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7219
7220
|
var closeSuggestion = strictObject({
|
|
7220
7221
|
as: picklist(["done", "dismissed"]),
|
|
7221
7222
|
/** The agent's name. */
|
|
@@ -7241,7 +7242,18 @@ var task = strictObject({
|
|
|
7241
7242
|
chat: optional(nullable(reference)),
|
|
7242
7243
|
/** The message it came from. */
|
|
7243
7244
|
source_message: optional(nullable(reference)),
|
|
7245
|
+
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
7244
7246
|
priority: optional(nullable(number())),
|
|
7247
|
+
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
7248
|
+
/** The agent working on it, apart from its assignees and its claim. */
|
|
7249
|
+
agent: optional(nullable(text)),
|
|
7250
|
+
/** Give it back with `--revision` to refuse a write made on a stale copy. */
|
|
7251
|
+
revision: optional(number()),
|
|
7252
|
+
assignments: optional(array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) }))),
|
|
7253
|
+
/** Open work whose blocked-by tasks are all done. */
|
|
7254
|
+
ready: optional(boolean()),
|
|
7255
|
+
/** The blocked-by tasks not done yet: open (any open state), dismissed, or unavailable. */
|
|
7256
|
+
blocked_by: optional(array(strictObject({ task: reference, state: picklist(["open", "dismissed", "unavailable"]) }))),
|
|
7245
7257
|
parent: optional(nullable(reference)),
|
|
7246
7258
|
due_at: optional(nullable(time)),
|
|
7247
7259
|
closed_at: optional(nullable(time)),
|
|
@@ -7257,7 +7269,7 @@ var task = strictObject({
|
|
|
7257
7269
|
updated_at: optional(time)
|
|
7258
7270
|
});
|
|
7259
7271
|
|
|
7260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7261
7273
|
var agendaChat = strictObject({
|
|
7262
7274
|
chat: reference,
|
|
7263
7275
|
title: nullable(text),
|
|
@@ -7327,7 +7339,7 @@ var agenda = strictObject({
|
|
|
7327
7339
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7328
7340
|
});
|
|
7329
7341
|
|
|
7330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7331
7343
|
var conversation = strictObject({
|
|
7332
7344
|
id,
|
|
7333
7345
|
chat: reference,
|
|
@@ -7342,7 +7354,7 @@ var conversation = strictObject({
|
|
|
7342
7354
|
rules_version: count
|
|
7343
7355
|
});
|
|
7344
7356
|
|
|
7345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7346
7358
|
var attachment = strictObject({
|
|
7347
7359
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7348
7360
|
message: optional(reference),
|
|
@@ -7379,7 +7391,7 @@ var attachment = strictObject({
|
|
|
7379
7391
|
}))))
|
|
7380
7392
|
});
|
|
7381
7393
|
|
|
7382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
7383
7395
|
var tagging = strictObject({
|
|
7384
7396
|
tag: text,
|
|
7385
7397
|
type: picklist(TAG_TYPES),
|
|
@@ -7392,7 +7404,7 @@ var tagging = strictObject({
|
|
|
7392
7404
|
created_at: time
|
|
7393
7405
|
});
|
|
7394
7406
|
|
|
7395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
7396
7408
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
7397
7409
|
const run = currentRun();
|
|
7398
7410
|
const trace = traceId ?? run.traceId;
|
|
@@ -7409,6 +7421,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
7409
7421
|
export {
|
|
7410
7422
|
annotate,
|
|
7411
7423
|
metaOf,
|
|
7424
|
+
annotateOption,
|
|
7412
7425
|
describeProgram,
|
|
7413
7426
|
describeOptions,
|
|
7414
7427
|
flatten,
|