@wirecat/tg-cli 0.111.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/README.md +3 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-WFC2JAD4.js → adapter-EQKEFGPB.js} +70 -50
- package/dist/bundle/{all-profiles-FEUSGHT7.js → all-profiles-TTBFF663.js} +8 -8
- package/dist/bundle/{anthropic-O646SJIJ.js → anthropic-XPZS7267.js} +5 -5
- package/dist/bundle/{app-server-7P23Y45A.js → app-server-ZSZ7KRAY.js} +42 -42
- package/dist/bundle/{bot-api-WTJCL6VF.js → bot-api-X7BOVNIO.js} +46 -46
- package/dist/bundle/{bot-history-5J2Q4SPC.js → bot-history-DWIUIPN5.js} +15 -15
- package/dist/bundle/{bun-KUKVEKDW.js → bun-ZGZVAJU2.js} +2 -2
- package/dist/bundle/{bun-sqlite-2G5TXHYE.js → bun-sqlite-UN2UJ6SI.js} +4 -4
- package/dist/bundle/{chunk-UDYCZ5KB.js → chunk-3MAYYFKY.js} +1 -1
- package/dist/bundle/{chunk-3BD24JYK.js → chunk-452UZ2PU.js} +121 -95
- package/dist/bundle/{chunk-EB44Z44U.js → chunk-4GLMEES6.js} +1 -1
- package/dist/bundle/{chunk-J2Z5E7TO.js → chunk-4SQB5VKL.js} +1 -1
- package/dist/bundle/{chunk-BNQOUCL2.js → chunk-5NF7M4MN.js} +1 -1
- package/dist/bundle/{chunk-VIEVOF3O.js → chunk-6F6K3LWV.js} +11 -11
- package/dist/bundle/{chunk-QLLPZWYZ.js → chunk-6OKGHHRL.js} +4 -4
- package/dist/bundle/{chunk-QVM2HKJP.js → chunk-6WJ5M2Q4.js} +4 -4
- package/dist/bundle/{chunk-OYVDWHP5.js → chunk-7IWDS2CM.js} +2 -2
- package/dist/bundle/{chunk-ABVHA4K6.js → chunk-AGUCXSSM.js} +5 -5
- package/dist/bundle/{chunk-2ZH3PUQX.js → chunk-AVUIWZTP.js} +2 -2
- package/dist/bundle/{chunk-LLAZSGS7.js → chunk-BI5YJZJB.js} +31 -27
- package/dist/bundle/{chunk-COHMFCHD.js → chunk-EGR5IJCG.js} +95 -34
- package/dist/bundle/{chunk-7665YBJ7.js → chunk-ENXO43TV.js} +6 -6
- package/dist/bundle/{chunk-MSGYLWCH.js → chunk-G74QMORP.js} +2 -2
- package/dist/bundle/{chunk-KLHLWKWC.js → chunk-GX4LRLVD.js} +80 -60
- package/dist/bundle/{chunk-DREEXESG.js → chunk-HNN7EKIM.js} +114 -79
- package/dist/bundle/{chunk-2K6IGVSI.js → chunk-HO53POQG.js} +5 -5
- package/dist/bundle/{chunk-43ZFY6TW.js → chunk-IDUYRTPF.js} +2 -2
- package/dist/bundle/{chunk-WDRNVSWF.js → chunk-IYKRHDX6.js} +45 -44
- package/dist/bundle/{chunk-KE47Y4PW.js → chunk-J6USEBA6.js} +699 -379
- package/dist/bundle/{chunk-5ZPLOYTP.js → chunk-JDQSX2JQ.js} +453 -358
- package/dist/bundle/{chunk-NIKYFRDQ.js → chunk-JO45BOYE.js} +2 -2
- package/dist/bundle/{chunk-ONHHBPV3.js → chunk-JRTZ5I6M.js} +2 -2
- package/dist/bundle/{chunk-YG4BO7N3.js → chunk-JW7BMJ6O.js} +2 -2
- package/dist/bundle/{chunk-J4QVXR5I.js → chunk-K3F46QVN.js} +2 -2
- package/dist/bundle/{chunk-XXOJ7PQY.js → chunk-KK3JVOOV.js} +30 -30
- package/dist/bundle/{chunk-UPRYEDAV.js → chunk-KOWQVHXI.js} +3 -3
- package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KQ23JWLJ.js} +20 -18
- package/dist/bundle/{chunk-ZCV4UEVH.js → chunk-KVLCIZUK.js} +3 -3
- package/dist/bundle/{chunk-DEG4JJHG.js → chunk-MTX5EDYJ.js} +813 -542
- package/dist/bundle/{chunk-UFIUMPXP.js → chunk-OC4RRFKH.js} +4 -4
- package/dist/bundle/{chunk-PNUHAHTF.js → chunk-OQR442B6.js} +1 -1
- package/dist/bundle/{chunk-TWZTQHP6.js → chunk-OSBAISA5.js} +6 -6
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-EO563SUX.js → chunk-PCRLXJRH.js} +11 -7
- package/dist/bundle/{chunk-XIRASTVS.js → chunk-PHPNA2HU.js} +11 -11
- package/dist/bundle/{chunk-7GQLD5TJ.js → chunk-PHYDBR5M.js} +2 -2
- package/dist/bundle/{chunk-T6DSAROY.js → chunk-Q264PYGE.js} +51 -14
- package/dist/bundle/{chunk-QEAMO2TS.js → chunk-T4TTRFP5.js} +7 -7
- package/dist/bundle/{chunk-UMUJHC4M.js → chunk-T5RM4Y35.js} +3 -3
- package/dist/bundle/{chunk-ITSSCYLP.js → chunk-TQ6EA7TB.js} +11 -11
- package/dist/bundle/{chunk-QAC6Z675.js → chunk-TUD4MU7S.js} +2 -2
- package/dist/bundle/{chunk-ZCHC7TYO.js → chunk-U3MJQLZQ.js} +26 -13
- package/dist/bundle/{chunk-YFK3DNNP.js → chunk-UE75KPAC.js} +4 -4
- package/dist/bundle/{chunk-HN6ZMUAS.js → chunk-UIVLDKWT.js} +1 -1
- package/dist/bundle/{chunk-3WUTBGZE.js → chunk-VDATXIO4.js} +6 -6
- package/dist/bundle/{chunk-AUWYMMYL.js → chunk-VDEXNNMH.js} +4 -4
- package/dist/bundle/{chunk-33HEHPIK.js → chunk-VVA4555T.js} +8 -8
- package/dist/bundle/{chunk-PQGWEFJ2.js → chunk-WSAHUQ6K.js} +3 -3
- package/dist/bundle/{chunk-K457FHD4.js → chunk-XXNJF3ZM.js} +32 -26
- package/dist/bundle/{chunk-NQAV7U7C.js → chunk-XZ2ZHIAO.js} +1 -1
- package/dist/bundle/{chunk-5FJQG5UZ.js → chunk-Z6TRIW2O.js} +8 -8
- package/dist/bundle/{chunk-CJUSP5X2.js → chunk-ZID2Y4XU.js} +2 -2
- package/dist/bundle/command-contract-GV67H22L.js +32 -0
- package/dist/bundle/{decode-QJNVAAKJ.js → decode-AMQVTEMW.js} +4 -4
- package/dist/bundle/{echarts-2EDY7OUX.js → echarts-ECYONFQJ.js} +2 -2
- package/dist/bundle/{embed-PZSXOQJO.js → embed-VZYBZEWI.js} +5 -5
- package/dist/bundle/{embedder-O4EGMMUU.js → embedder-GSWBGHRK.js} +8 -8
- package/dist/bundle/{entry-DVLMQM6J.js → entry-LALZILY4.js} +5 -5
- package/dist/bundle/{first-run-J67KTUWA.js → first-run-LEAI623Q.js} +9 -9
- package/dist/bundle/first-screen-MOCVLE23.js +30 -0
- package/dist/bundle/{identity-DSYY4FLQ.js → identity-54HA5GN6.js} +3 -3
- package/dist/bundle/{instructions-O535XB2L.js → instructions-AXLQQS3G.js} +1 -1
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-S3VEQNTE.js → node-7JHC5K77.js} +2 -2
- package/dist/bundle/{node-sqlite-3DNWF2BW.js → node-sqlite-LYJEK46T.js} +4 -4
- package/dist/bundle/{oauth-IU2RAZ3D.js → oauth-BROPKI3K.js} +6 -6
- package/dist/bundle/{open-M2IPPXMI.js → open-C6XQ46JK.js} +3 -3
- package/dist/bundle/{openai-GDI7HISL.js → openai-VWSU7ZDD.js} +13 -13
- package/dist/bundle/{process-3IGMEATV.js → process-QKEFL5HL.js} +1 -1
- package/dist/bundle/{program-P7YPHVLD.js → program-ACY7O33O.js} +48 -48
- package/dist/bundle/{prompt-S6R7IHDK.js → prompt-EGULVW2F.js} +4 -4
- package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-KIMADLQ2.js} +4 -4
- package/dist/bundle/{recognize-PFZRQ3P4.js → recognize-UMTKLWVR.js} +3 -3
- package/dist/bundle/{remote-Q37V7LUX.js → remote-DABI7PSQ.js} +6 -6
- package/dist/bundle/{rerank-V5YQQQAM.js → rerank-ZFATWWBE.js} +6 -6
- package/dist/bundle/{serve-5CAD2UVG.js → serve-B7YYCMGN.js} +8 -8
- package/dist/bundle/{server-R6YAO2SG.js → server-DGKZISZH.js} +32 -32
- package/dist/bundle/server-UC7UWUIS.js +56 -0
- package/dist/bundle/{state-Y3A2NEM3.js → state-AQ2PABA5.js} +5 -5
- package/dist/bundle/{store-H5K32CNI.js → store-46GJTFLJ.js} +12 -10
- package/dist/bundle/store-maintenance-command-FCFKHGRM.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/telegram/adapter.d.ts +2 -0
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +3 -0
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/topics.d.ts +4 -2
- package/dist/telegram/topics.d.ts.map +1 -1
- package/dist/telegram/topics.js +21 -3
- package/dist/telegram/topics.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 +2 -0
- package/dist/bundle/command-contract-JCRVVL7P.js +0 -32
- package/dist/bundle/first-screen-PYEE5NMQ.js +0 -30
- package/dist/bundle/server-RUQLAWWS.js +0 -56
- package/dist/bundle/store-maintenance-command-QZDC4WKW.js +0 -45
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.js} +0 -0
|
@@ -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");
|
|
@@ -4359,6 +4360,12 @@ var ACCOUNT_KEYS = {
|
|
|
4359
4360
|
"chat-mark-unread": "chats.mark-unread",
|
|
4360
4361
|
"message-star": "messages.star",
|
|
4361
4362
|
"message-unstar": "messages.unstar",
|
|
4363
|
+
// A mail CLI names its own key on every write; these only answer `keyForWrite` when one is left out.
|
|
4364
|
+
"message-flag": "messages.update",
|
|
4365
|
+
"message-move": "messages.move",
|
|
4366
|
+
"message-copy": "messages.copy",
|
|
4367
|
+
"message-delete": "messages.trash",
|
|
4368
|
+
"message-restore": "messages.restore",
|
|
4362
4369
|
privacy: "account.privacy.set"
|
|
4363
4370
|
};
|
|
4364
4371
|
var KIND_KEYS = {
|
|
@@ -4602,7 +4609,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4602
4609
|
}
|
|
4603
4610
|
}, "assertRetentionEvidenceRead");
|
|
4604
4611
|
|
|
4605
|
-
// 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
|
|
4606
4613
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4607
4614
|
import { join } from "node:path";
|
|
4608
4615
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4624,7 +4631,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4624
4631
|
}, "profilesWithAccounts");
|
|
4625
4632
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4626
4633
|
|
|
4627
|
-
// 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
|
|
4628
4635
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4629
4636
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4630
4637
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -4654,7 +4661,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4654
4661
|
return value;
|
|
4655
4662
|
}, "atDetail");
|
|
4656
4663
|
|
|
4657
|
-
// 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
|
|
4658
4665
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
4659
4666
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
4660
4667
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -4702,7 +4709,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4702
4709
|
}, "warn")
|
|
4703
4710
|
}), "silence");
|
|
4704
4711
|
|
|
4705
|
-
// 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
|
|
4706
4713
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4707
4714
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4708
4715
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4736,7 +4743,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4736
4743
|
cache: "cache.answered"
|
|
4737
4744
|
};
|
|
4738
4745
|
|
|
4739
|
-
// 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
|
|
4740
4747
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4741
4748
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4742
4749
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4749,13 +4756,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4749
4756
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4750
4757
|
}), "snakeLogger");
|
|
4751
4758
|
|
|
4752
|
-
// 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
|
|
4753
4760
|
import { randomUUID } from "node:crypto";
|
|
4754
4761
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4755
4762
|
import { userInfo } from "node:os";
|
|
4756
4763
|
import { join as join2, sep } from "node:path";
|
|
4757
4764
|
|
|
4758
|
-
// 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
|
|
4759
4766
|
var diagnostic = {
|
|
4760
4767
|
event: true,
|
|
4761
4768
|
operation: true,
|
|
@@ -4825,7 +4832,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4825
4832
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4826
4833
|
].sort();
|
|
4827
4834
|
|
|
4828
|
-
// 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
|
|
4829
4836
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4830
4837
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4831
4838
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5178,7 +5185,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5178
5185
|
};
|
|
5179
5186
|
}, "metadataOf");
|
|
5180
5187
|
|
|
5181
|
-
// 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
|
|
5182
5189
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5183
5190
|
import { randomBytes } from "node:crypto";
|
|
5184
5191
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5216,7 +5223,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5216
5223
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5217
5224
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5218
5225
|
|
|
5219
|
-
// 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
|
|
5220
5227
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5221
5228
|
const recording = startRecording(options);
|
|
5222
5229
|
try {
|
|
@@ -5401,7 +5408,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5401
5408
|
return void 0;
|
|
5402
5409
|
}, "partialOutcome");
|
|
5403
5410
|
|
|
5404
|
-
// 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
|
|
5405
5412
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
5406
5413
|
if (ms === void 0)
|
|
5407
5414
|
return body();
|
|
@@ -5427,7 +5434,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
5427
5434
|
}
|
|
5428
5435
|
}, "withDeadline");
|
|
5429
5436
|
|
|
5430
|
-
// 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
|
|
5431
5438
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5432
5439
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5433
5440
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5496,10 +5503,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5496
5503
|
return void 0;
|
|
5497
5504
|
}, "sampleCommand");
|
|
5498
5505
|
|
|
5499
|
-
// 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
|
|
5500
5507
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5501
5508
|
|
|
5502
|
-
// 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
|
|
5503
5510
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5504
5511
|
try {
|
|
5505
5512
|
const url2 = new URL(value);
|
|
@@ -5509,7 +5516,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5509
5516
|
}
|
|
5510
5517
|
}, "endpoint");
|
|
5511
5518
|
|
|
5512
|
-
// 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
|
|
5513
5520
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5514
5521
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5515
5522
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5578,7 +5585,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5578
5585
|
};
|
|
5579
5586
|
}, "modelTarget");
|
|
5580
5587
|
|
|
5581
|
-
// 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
|
|
5582
5589
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5583
5590
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5584
5591
|
var AI_FIELDS = {
|
|
@@ -5622,7 +5629,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5622
5629
|
};
|
|
5623
5630
|
}, "resolveAISettings");
|
|
5624
5631
|
|
|
5625
|
-
// 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
|
|
5626
5633
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5627
5634
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5628
5635
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5636,7 +5643,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5636
5643
|
return ms;
|
|
5637
5644
|
}, "parseDuration");
|
|
5638
5645
|
|
|
5639
|
-
// 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
|
|
5640
5647
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5641
5648
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5642
5649
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5795,7 +5802,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5795
5802
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5796
5803
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5797
5804
|
|
|
5798
|
-
// 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
|
|
5799
5806
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5800
5807
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5801
5808
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -6085,7 +6092,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6085
6092
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6086
6093
|
}, "readConfigFile");
|
|
6087
6094
|
|
|
6088
|
-
// 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
|
|
6089
6096
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6090
6097
|
import { dirname, join as join3 } from "node:path";
|
|
6091
6098
|
var DEFAULT_CONFIG = {
|
|
@@ -6114,7 +6121,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6114
6121
|
}
|
|
6115
6122
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6116
6123
|
|
|
6117
|
-
// 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
|
|
6118
6125
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6119
6126
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6120
6127
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6227,7 +6234,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6227
6234
|
const schema = strictOf(configEntries);
|
|
6228
6235
|
const defaultsOnlyKeys = Object.keys(defaultsOnly);
|
|
6229
6236
|
const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
|
|
6230
|
-
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting));
|
|
6237
|
+
const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting) || app.sends === true && setting === "sends_per_hour");
|
|
6231
6238
|
const PROFILE = envName(app, "PROFILE");
|
|
6232
6239
|
const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
|
|
6233
6240
|
const TIMEOUT = envName(app, "TIMEOUT");
|
|
@@ -6504,7 +6511,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6504
6511
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6505
6512
|
}, "given");
|
|
6506
6513
|
|
|
6507
|
-
// 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
|
|
6508
6515
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6509
6516
|
const slot = environmentOf(command).exit;
|
|
6510
6517
|
if (slot)
|
|
@@ -6611,7 +6618,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6611
6618
|
return words.join(" ");
|
|
6612
6619
|
}, "commandPath");
|
|
6613
6620
|
|
|
6614
|
-
// 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
|
|
6615
6622
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6616
6623
|
var FETCH = { remote: "read", local: "write" };
|
|
6617
6624
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6657,15 +6664,21 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
|
|
|
6657
6664
|
const effects = metaOf(command).effects;
|
|
6658
6665
|
return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
|
|
6659
6666
|
}, "fetchesOnly");
|
|
6660
|
-
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) => {
|
|
6661
6674
|
let at = root;
|
|
6662
6675
|
for (const word of path2)
|
|
6663
6676
|
at = at?.commands.find((one) => one.name() === word);
|
|
6664
|
-
return at !== void 0 &&
|
|
6665
|
-
}, "
|
|
6677
|
+
return at !== void 0 && readsOverMcp(at);
|
|
6678
|
+
}, "readsOverMcpAt");
|
|
6666
6679
|
var isStoreChange = /* @__PURE__ */ __name((command) => {
|
|
6667
6680
|
const effects = metaOf(command).effects;
|
|
6668
|
-
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);
|
|
6669
6682
|
}, "isStoreChange");
|
|
6670
6683
|
var STORE_CHANGE_REFUSAL = "change the message store";
|
|
6671
6684
|
var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
|
|
@@ -6713,7 +6726,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6713
6726
|
throw readOnlyRefusal(lock, what);
|
|
6714
6727
|
}, "refuseUnderReadOnly");
|
|
6715
6728
|
|
|
6716
|
-
// 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
|
|
6717
6730
|
import { join as join4 } from "node:path";
|
|
6718
6731
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6719
6732
|
var IMAGE_MODELS = [
|
|
@@ -6767,7 +6780,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6767
6780
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6768
6781
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6769
6782
|
|
|
6770
|
-
// 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
|
|
6771
6784
|
var STEPS2 = defineSteps([
|
|
6772
6785
|
...STEPS,
|
|
6773
6786
|
{
|
|
@@ -7034,7 +7047,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
7034
7047
|
].join(" ");
|
|
7035
7048
|
}, "stepLine");
|
|
7036
7049
|
|
|
7037
|
-
// 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
|
|
7038
7051
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
7039
7052
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
7040
7053
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -7048,7 +7061,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
7048
7061
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
7049
7062
|
}, "strip");
|
|
7050
7063
|
|
|
7051
|
-
// 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
|
|
7052
7065
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
7053
7066
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
7054
7067
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -7182,7 +7195,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
7182
7195
|
renderer.result(item);
|
|
7183
7196
|
}, "printItem");
|
|
7184
7197
|
|
|
7185
|
-
// 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
|
|
7186
7199
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
7187
7200
|
var storeTable = strictObject({
|
|
7188
7201
|
name: text,
|
|
@@ -7191,7 +7204,7 @@ var storeTable = strictObject({
|
|
|
7191
7204
|
bytes: optional(nullable(count))
|
|
7192
7205
|
});
|
|
7193
7206
|
|
|
7194
|
-
// 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
|
|
7195
7208
|
var WEIGHTS = {
|
|
7196
7209
|
bot: 3,
|
|
7197
7210
|
scam: 3,
|
|
@@ -7216,7 +7229,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7216
7229
|
var DIGITS = /\d{5,}/;
|
|
7217
7230
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7218
7231
|
|
|
7219
|
-
// 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
|
|
7220
7233
|
var closeSuggestion = strictObject({
|
|
7221
7234
|
as: picklist(["done", "dismissed"]),
|
|
7222
7235
|
/** The agent's name. */
|
|
@@ -7237,6 +7250,11 @@ var task = strictObject({
|
|
|
7237
7250
|
state: picklist(TASK_STATES),
|
|
7238
7251
|
origin: optional(picklist(TASK_ORIGINS)),
|
|
7239
7252
|
project: optional(nullable(text)),
|
|
7253
|
+
/** The project's key and name, as `tasks counts` names it. */
|
|
7254
|
+
project_key: optional(nullable(text)),
|
|
7255
|
+
project_name: optional(nullable(text)),
|
|
7256
|
+
/** Who added it: the owner, or an agent by its bot name. */
|
|
7257
|
+
created_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() }))),
|
|
7240
7258
|
account: optional(text),
|
|
7241
7259
|
/** The chat it came from, as a `chat:` reference. */
|
|
7242
7260
|
chat: optional(nullable(reference)),
|
|
@@ -7269,7 +7287,7 @@ var task = strictObject({
|
|
|
7269
7287
|
updated_at: optional(time)
|
|
7270
7288
|
});
|
|
7271
7289
|
|
|
7272
|
-
// 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
|
|
7273
7291
|
var agendaChat = strictObject({
|
|
7274
7292
|
chat: reference,
|
|
7275
7293
|
title: nullable(text),
|
|
@@ -7339,7 +7357,7 @@ var agenda = strictObject({
|
|
|
7339
7357
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7340
7358
|
});
|
|
7341
7359
|
|
|
7342
|
-
// 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
|
|
7343
7361
|
var conversation = strictObject({
|
|
7344
7362
|
id,
|
|
7345
7363
|
chat: reference,
|
|
@@ -7354,7 +7372,7 @@ var conversation = strictObject({
|
|
|
7354
7372
|
rules_version: count
|
|
7355
7373
|
});
|
|
7356
7374
|
|
|
7357
|
-
// 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
|
|
7358
7376
|
var attachment = strictObject({
|
|
7359
7377
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7360
7378
|
message: optional(reference),
|
|
@@ -7390,8 +7408,9 @@ var attachment = strictObject({
|
|
|
7390
7408
|
url: optional(text)
|
|
7391
7409
|
}))))
|
|
7392
7410
|
});
|
|
7411
|
+
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7393
7412
|
|
|
7394
|
-
// 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
|
|
7395
7414
|
var tagging = strictObject({
|
|
7396
7415
|
tag: text,
|
|
7397
7416
|
type: picklist(TAG_TYPES),
|
|
@@ -7404,7 +7423,7 @@ var tagging = strictObject({
|
|
|
7404
7423
|
created_at: time
|
|
7405
7424
|
});
|
|
7406
7425
|
|
|
7407
|
-
// 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
|
|
7408
7427
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
7409
7428
|
const run = currentRun();
|
|
7410
7429
|
const trace = traceId ?? run.traceId;
|
|
@@ -7541,7 +7560,7 @@ export {
|
|
|
7541
7560
|
isLogin,
|
|
7542
7561
|
destroysNothing,
|
|
7543
7562
|
changesStore,
|
|
7544
|
-
|
|
7563
|
+
readsOverMcpAt,
|
|
7545
7564
|
isStoreChange,
|
|
7546
7565
|
previewFlag,
|
|
7547
7566
|
storeChangeRefusal,
|
|
@@ -7587,6 +7606,7 @@ export {
|
|
|
7587
7606
|
agenda,
|
|
7588
7607
|
conversation,
|
|
7589
7608
|
attachment,
|
|
7609
|
+
hitFile,
|
|
7590
7610
|
tagging,
|
|
7591
7611
|
recordLogFor,
|
|
7592
7612
|
storeTable
|