@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
|
@@ -7,20 +7,21 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q264PYGE.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZID2Y4XU.js";
|
|
14
14
|
import {
|
|
15
|
+
QUERY_ARGUMENT,
|
|
15
16
|
lentConnection,
|
|
16
17
|
onlineDeps,
|
|
17
18
|
refuseLacking,
|
|
18
19
|
servicesFor,
|
|
19
20
|
storeModeDeps
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JDQSX2JQ.js";
|
|
21
22
|
import {
|
|
22
23
|
ENTITIES
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-452UZ2PU.js";
|
|
24
25
|
import {
|
|
25
26
|
DEFAULT_OUTPUT_BYTES,
|
|
26
27
|
LOCAL_WRITE,
|
|
@@ -43,21 +44,24 @@ import {
|
|
|
43
44
|
sealed,
|
|
44
45
|
startRecording,
|
|
45
46
|
traceOf
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GX4LRLVD.js";
|
|
47
48
|
import {
|
|
48
49
|
currentCaller,
|
|
49
50
|
keepsSuccess,
|
|
50
51
|
runContextOf,
|
|
51
52
|
withCaller
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-Z6TRIW2O.js";
|
|
54
|
+
import {
|
|
55
|
+
queryDescription
|
|
56
|
+
} from "./chunk-HNN7EKIM.js";
|
|
53
57
|
import {
|
|
54
58
|
MAX_BUFFERED_INPUT
|
|
55
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-AVUIWZTP.js";
|
|
56
60
|
import {
|
|
57
61
|
captureStreams,
|
|
58
62
|
errorObjectOf,
|
|
59
63
|
mcpErrorResult
|
|
60
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-KQ23JWLJ.js";
|
|
61
65
|
import {
|
|
62
66
|
CliError,
|
|
63
67
|
SNAKE_CASE,
|
|
@@ -96,15 +100,15 @@ import {
|
|
|
96
100
|
unknown,
|
|
97
101
|
word,
|
|
98
102
|
writes
|
|
99
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-PCRLXJRH.js";
|
|
100
104
|
import {
|
|
101
105
|
__name
|
|
102
106
|
} from "./chunk-ZVVMGPBJ.js";
|
|
103
107
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
108
|
+
// 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/mcp/agent.js
|
|
105
109
|
import { Readable } from "node:stream";
|
|
106
110
|
|
|
107
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
111
|
+
// 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/standards/lint.js
|
|
108
112
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
109
113
|
var lintRuleSchema = strictObject({
|
|
110
114
|
id: word,
|
|
@@ -231,7 +235,7 @@ var overridesSchema = array(strictObject({
|
|
|
231
235
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
232
236
|
}));
|
|
233
237
|
|
|
234
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
238
|
+
// 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/standards/audit.js
|
|
235
239
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
236
240
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
237
241
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -291,18 +295,34 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
|
|
|
291
295
|
...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`absent\`, which measures the values itself; drop \`expected\``)
|
|
292
296
|
])
|
|
293
297
|
]), "defineParityGroups");
|
|
298
|
+
var MEMO_HAS_NO_PROFILES = [
|
|
299
|
+
"mcp serve",
|
|
300
|
+
"mcp revoke",
|
|
301
|
+
"mcp server start",
|
|
302
|
+
"mcp server status",
|
|
303
|
+
"mcp server stop"
|
|
304
|
+
].map((path) => ({
|
|
305
|
+
rule: "same-path-contract",
|
|
306
|
+
target: `${path} --profiles`,
|
|
307
|
+
absent: "memo",
|
|
308
|
+
reason: "memo has no profiles: it reads other CLIs' stores and selects their accounts with --source and --account (https://github.com/WireCatLabs/cli-base/issues/390)"
|
|
309
|
+
}));
|
|
294
310
|
var PARITY_GROUPS = defineParityGroups([
|
|
295
311
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
296
312
|
{
|
|
297
313
|
name: "all",
|
|
298
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa"
|
|
314
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
299
315
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
300
|
-
differences:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
316
|
+
differences: MEMO_HAS_NO_PROFILES
|
|
317
|
+
},
|
|
318
|
+
// mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
|
|
319
|
+
// differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
|
|
320
|
+
// and moves back into "all" once its search is aligned with the messengers' or renamed.
|
|
321
|
+
{
|
|
322
|
+
name: "mail-shared",
|
|
323
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
|
|
324
|
+
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
|
|
325
|
+
differences: MEMO_HAS_NO_PROFILES
|
|
306
326
|
},
|
|
307
327
|
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
308
328
|
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
@@ -324,7 +344,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
324
344
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
325
345
|
]);
|
|
326
346
|
|
|
327
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
347
|
+
// 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/standards/fields.js
|
|
328
348
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
329
349
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
330
350
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -340,7 +360,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
340
360
|
}
|
|
341
361
|
]);
|
|
342
362
|
|
|
343
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
363
|
+
// 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/standards/identifiers.js
|
|
344
364
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
345
365
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
346
366
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -362,7 +382,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
362
382
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
363
383
|
]);
|
|
364
384
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
385
|
+
// 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/standards/flags-calendar.js
|
|
366
386
|
var CALENDAR_FLAGS = [
|
|
367
387
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
368
388
|
{
|
|
@@ -436,7 +456,7 @@ var CALENDAR_FLAGS = [
|
|
|
436
456
|
}
|
|
437
457
|
];
|
|
438
458
|
|
|
439
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
459
|
+
// 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/standards/flags-how.js
|
|
440
460
|
var HOW_FLAGS = [
|
|
441
461
|
{
|
|
442
462
|
name: "--limit",
|
|
@@ -1423,7 +1443,31 @@ var HOW_FLAGS = [
|
|
|
1423
1443
|
}
|
|
1424
1444
|
];
|
|
1425
1445
|
|
|
1426
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1446
|
+
// 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/standards/flags-mail.js
|
|
1447
|
+
var MAIL_FLAGS = [
|
|
1448
|
+
{
|
|
1449
|
+
name: "--cc",
|
|
1450
|
+
value: "<address>",
|
|
1451
|
+
role: "value",
|
|
1452
|
+
type: "string",
|
|
1453
|
+
meaning: "an e-mail address that gets a copy; repeat it for more"
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
name: "--bcc",
|
|
1457
|
+
value: "<address>",
|
|
1458
|
+
role: "value",
|
|
1459
|
+
type: "string",
|
|
1460
|
+
meaning: "an e-mail address that gets a blind copy; repeat it for more"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
name: "--reply-all",
|
|
1464
|
+
role: "value",
|
|
1465
|
+
type: "switch",
|
|
1466
|
+
meaning: "with --reply-to, an e-mail reply also goes to everyone the message went to"
|
|
1467
|
+
}
|
|
1468
|
+
];
|
|
1469
|
+
|
|
1470
|
+
// 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/standards/flags-what.js
|
|
1427
1471
|
var WHAT_FLAGS = [
|
|
1428
1472
|
{
|
|
1429
1473
|
name: "--analysis-provider",
|
|
@@ -1868,7 +1912,14 @@ var WHAT_FLAGS = [
|
|
|
1868
1912
|
meaning: "keep a token an operation returns only in this bot profile's keyring; never print it"
|
|
1869
1913
|
},
|
|
1870
1914
|
{ name: "--task", value: "<id>", role: "target", type: "id", meaning: "a task, by id" },
|
|
1871
|
-
{
|
|
1915
|
+
{
|
|
1916
|
+
name: "--to",
|
|
1917
|
+
value: "<chat>",
|
|
1918
|
+
role: "target",
|
|
1919
|
+
type: "id",
|
|
1920
|
+
otherValues: ["address"],
|
|
1921
|
+
meaning: "who it goes to: a chat in a messenger (<chat>), an e-mail address in mail (<address>, repeated for more)"
|
|
1922
|
+
},
|
|
1872
1923
|
{
|
|
1873
1924
|
name: "--topic-name",
|
|
1874
1925
|
value: "<name>",
|
|
@@ -2318,7 +2369,8 @@ var WHAT_FLAGS = [
|
|
|
2318
2369
|
value: "<ref>",
|
|
2319
2370
|
role: "value",
|
|
2320
2371
|
type: "string",
|
|
2321
|
-
|
|
2372
|
+
otherValues: ["text"],
|
|
2373
|
+
meaning: "what it is about: a reference in a note or task (<ref>), the subject line in mail (<text>)",
|
|
2322
2374
|
replaces: ["--about"]
|
|
2323
2375
|
},
|
|
2324
2376
|
{
|
|
@@ -2413,7 +2465,7 @@ var WHAT_FLAGS = [
|
|
|
2413
2465
|
}
|
|
2414
2466
|
];
|
|
2415
2467
|
|
|
2416
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2468
|
+
// 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/standards/vocabulary.js
|
|
2417
2469
|
var FLAG_TYPES = [
|
|
2418
2470
|
"switch",
|
|
2419
2471
|
"count",
|
|
@@ -2455,6 +2507,11 @@ var flagSchema = strictObject({
|
|
|
2455
2507
|
type: picklist(FLAG_TYPES),
|
|
2456
2508
|
role: picklist(Object.keys(FLAG_ROLES)),
|
|
2457
2509
|
meaning: text,
|
|
2510
|
+
/**
|
|
2511
|
+
* Value names a domain other than the main one gives the flag, such as mail's `--to <address>` beside the
|
|
2512
|
+
* messengers' `<chat>`. The meaning for each says which is which. `flag-two-meanings` accepts these and no others.
|
|
2513
|
+
*/
|
|
2514
|
+
otherValues: optional(array(pipe(string(), regex(/^[a-z][a-z0-9-]*$/, "a value name such as address")))),
|
|
2458
2515
|
unit: optional(text),
|
|
2459
2516
|
/** Other names for the same flag, which `flag-synonym` refuses. */
|
|
2460
2517
|
replaces: optional(array(pipe(string(), regex(/^--[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a long flag"))))
|
|
@@ -2564,6 +2621,7 @@ var verbs = [
|
|
|
2564
2621
|
["vote", "answer a poll"],
|
|
2565
2622
|
["answer", "reply to a button someone pressed under a bot's message"],
|
|
2566
2623
|
["respond", "answer an invitation: accept, tentatively accept or decline it"],
|
|
2624
|
+
["remind", "tell the owner once about what starts soon: print it, or run the owner's own program for it"],
|
|
2567
2625
|
["press", "press a button under a bot's message; the bot sees who pressed it"],
|
|
2568
2626
|
["action", "show what a bot is doing in a chat, such as typing, for a few seconds"],
|
|
2569
2627
|
["watch", "follow new events as they come, and keep them"],
|
|
@@ -2618,6 +2676,7 @@ var collections = [
|
|
|
2618
2676
|
["chats", "conversations in a messenger"],
|
|
2619
2677
|
["contacts", "identities in a messenger's contact list"],
|
|
2620
2678
|
["messages", "posts in a messenger chat, or emails"],
|
|
2679
|
+
["drafts", "e-mails saved in a mailbox's Drafts folder, written and not sent"],
|
|
2621
2680
|
["polls", "polls in a chat"],
|
|
2622
2681
|
["reactions", "reactions to a message"],
|
|
2623
2682
|
["recipients", "who a message goes to"],
|
|
@@ -2764,10 +2823,10 @@ var VOCABULARY = defineVocabulary({
|
|
|
2764
2823
|
],
|
|
2765
2824
|
views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2766
2825
|
roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2767
|
-
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2826
|
+
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2768
2827
|
});
|
|
2769
2828
|
|
|
2770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2829
|
+
// 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/mcp/agent.js
|
|
2771
2830
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2772
2831
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2773
2832
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2826,8 +2885,10 @@ var optionField = /* @__PURE__ */ __name((option, long, negated) => {
|
|
|
2826
2885
|
}, "argv")
|
|
2827
2886
|
};
|
|
2828
2887
|
}, "optionField");
|
|
2829
|
-
var argumentField = /* @__PURE__ */ __name((argument) => {
|
|
2830
|
-
const
|
|
2888
|
+
var argumentField = /* @__PURE__ */ __name((argument, query) => {
|
|
2889
|
+
const own = argument.description || argument.name;
|
|
2890
|
+
const about = query && argument.name === "query" ? own === QUERY_ARGUMENT ? queryDescription(query) : `${own}; ${queryDescription(query)}` : own;
|
|
2891
|
+
const one = argument.choices ? pipe(picklist(argument.choices), description(argument.description)) : text2(about);
|
|
2831
2892
|
return {
|
|
2832
2893
|
name: snake(argument.name),
|
|
2833
2894
|
required: argument.required,
|
|
@@ -2853,7 +2914,7 @@ var stdinField = /* @__PURE__ */ __name(({ name, description: description2, json
|
|
|
2853
2914
|
argv: /* @__PURE__ */ __name(() => [], "argv")
|
|
2854
2915
|
}), "stdinField");
|
|
2855
2916
|
var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin }) => {
|
|
2856
|
-
const fields = info.arguments.map(argumentField);
|
|
2917
|
+
const fields = info.arguments.map((argument) => argumentField(argument, info.query));
|
|
2857
2918
|
const read = stdin?.(info.path);
|
|
2858
2919
|
if (read)
|
|
2859
2920
|
fields.push(stdinField(read));
|
|
@@ -2988,7 +3049,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2988
3049
|
}
|
|
2989
3050
|
}, "runCommandForAgent");
|
|
2990
3051
|
|
|
2991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3052
|
+
// 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/mcp/tool.js
|
|
2992
3053
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2993
3054
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2994
3055
|
var message = pipe(
|
|
@@ -3247,7 +3308,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3247
3308
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3248
3309
|
}, "failed");
|
|
3249
3310
|
|
|
3250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3311
|
+
// 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/mcp/surface.js
|
|
3251
3312
|
import { randomUUID } from "node:crypto";
|
|
3252
3313
|
var MATCHES = 8;
|
|
3253
3314
|
var ANSWER = answerSchema();
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VDEXNNMH.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PCRLXJRH.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OSBAISA5.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PCRLXJRH.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|