@wirecat/tg-cli 0.134.0 → 0.135.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-Y4IXTXAG.js → adapter-OHJF6PB5.js} +67 -67
- package/dist/bundle/agent-QPF2KU4I.js +37 -0
- package/dist/bundle/{all-profiles-SUGID6CX.js → all-profiles-LQ73BIFB.js} +10 -10
- package/dist/bundle/{anthropic-4QKTXT4B.js → anthropic-YYBMT2HD.js} +5 -5
- package/dist/bundle/{app-server-TPOD6LIJ.js → app-server-HV4C4CSA.js} +61 -61
- package/dist/bundle/{bot-api-KBESP422.js → bot-api-URQXWMVR.js} +67 -67
- package/dist/bundle/{bot-history-3EORA23G.js → bot-history-FRLCHPDQ.js} +23 -23
- package/dist/bundle/{bun-FL76M4M2.js → bun-J3ML43BO.js} +2 -2
- package/dist/bundle/{bun-sqlite-H37OSTAJ.js → bun-sqlite-ZNB2B2DL.js} +6 -6
- package/dist/bundle/{chunk-JXEO5EIN.js → chunk-24G3SEXH.js} +2 -2
- package/dist/bundle/{chunk-JWLODUN3.js → chunk-27F6QBPY.js} +14 -14
- package/dist/bundle/{chunk-XVRLD3LN.js → chunk-2OFCIF2W.js} +2 -2
- package/dist/bundle/{chunk-4S2DHHJM.js → chunk-2U7XA4IH.js} +1 -1
- package/dist/bundle/{chunk-HD7DV5B2.js → chunk-4CLSIEWN.js} +35 -35
- package/dist/bundle/{chunk-PRM7GKBV.js → chunk-5CEKH6R6.js} +7 -7
- package/dist/bundle/{chunk-Z77R76S2.js → chunk-5WEEK65F.js} +1 -1
- package/dist/bundle/{chunk-3O25FAPA.js → chunk-6VWVYPH2.js} +1 -1
- package/dist/bundle/{chunk-CNGNR4CY.js → chunk-6WS474NQ.js} +6 -6
- package/dist/bundle/{chunk-L4PNDW4S.js → chunk-7GWOGEWJ.js} +6 -6
- package/dist/bundle/{chunk-HETHFOHC.js → chunk-AMRMU23L.js} +16 -3
- package/dist/bundle/{chunk-M323L5SG.js → chunk-B2UXNYCD.js} +13 -13
- package/dist/bundle/{chunk-2GT563YH.js → chunk-B4ZMFU5I.js} +2 -2
- package/dist/bundle/{chunk-JWNSG5GI.js → chunk-BFKPMG5T.js} +1 -1
- package/dist/bundle/{chunk-ZC7OEYDX.js → chunk-BQSODAU3.js} +1 -1
- package/dist/bundle/{chunk-YHTSJMZ5.js → chunk-BXUMZWMN.js} +565 -477
- package/dist/bundle/{chunk-DG35TQ6P.js → chunk-E2VIO7RY.js} +3 -3
- package/dist/bundle/{chunk-H3TLAYGY.js → chunk-F5FOS64B.js} +4 -4
- package/dist/bundle/{chunk-PK5WEGPJ.js → chunk-GCUFGDKE.js} +2 -2
- package/dist/bundle/{chunk-YPJCURT6.js → chunk-GUERS64O.js} +2 -2
- package/dist/bundle/{chunk-ZW2N2GI2.js → chunk-HILS2UL7.js} +12 -12
- package/dist/bundle/{chunk-XS4EE7MO.js → chunk-IOJOLV25.js} +14 -14
- package/dist/bundle/{chunk-XLNV3U6N.js → chunk-JBS4VPAX.js} +3 -3
- package/dist/bundle/{chunk-2JWY7CXJ.js → chunk-K5QGBYDL.js} +4 -4
- package/dist/bundle/{chunk-ANBI3OXK.js → chunk-KKXF6TSS.js} +1 -1
- package/dist/bundle/{chunk-UTTEAOJ3.js → chunk-L2ZQDTDU.js} +1 -1
- package/dist/bundle/{chunk-XZ6XEAJP.js → chunk-LFPUW7DR.js} +15 -15
- package/dist/bundle/{chunk-L47PFECD.js → chunk-LGYATGQI.js} +7 -7
- package/dist/bundle/{chunk-JCDD5T3A.js → chunk-MA27675E.js} +2 -2
- package/dist/bundle/{chunk-NUD4CBHK.js → chunk-MDI7554C.js} +3 -3
- package/dist/bundle/{chunk-VH4J7IIS.js → chunk-MMZ4QAKJ.js} +1 -1
- package/dist/bundle/{chunk-FR4Y5CGW.js → chunk-MOPBEBVS.js} +4 -4
- package/dist/bundle/{chunk-TZCFJJEU.js → chunk-MPRXUTIK.js} +2 -2
- package/dist/bundle/{chunk-K5FK6WWN.js → chunk-N7F5KT6U.js} +1 -1
- package/dist/bundle/{chunk-CSXCCK6J.js → chunk-NBP6LXSY.js} +2 -2
- package/dist/bundle/{chunk-PCBVSHKD.js → chunk-NP46ZKQW.js} +4 -4
- package/dist/bundle/{chunk-TI5U6AUT.js → chunk-NRSJXUUO.js} +26 -26
- package/dist/bundle/{chunk-4R2ZJGFF.js → chunk-NVWZ7S3I.js} +578 -451
- package/dist/bundle/{chunk-W2QSDPG6.js → chunk-OBIMTRA7.js} +3 -3
- package/dist/bundle/{chunk-O3QBO6NW.js → chunk-OQJURSRL.js} +17 -17
- package/dist/bundle/{chunk-V6G4LTXU.js → chunk-OU3WN4YH.js} +3 -3
- package/dist/bundle/{chunk-VNJRWFHP.js → chunk-PBK2ECXT.js} +1 -1
- package/dist/bundle/{chunk-3ZNO27UE.js → chunk-PHAFT2BO.js} +1 -1
- package/dist/bundle/{chunk-3QQWTP77.js → chunk-PKIGE4NE.js} +2 -2
- package/dist/bundle/{chunk-CA7DY2YU.js → chunk-QBRQLOZA.js} +3 -3
- package/dist/bundle/{chunk-NYEVPAF2.js → chunk-QD4MTOI7.js} +61 -61
- package/dist/bundle/{chunk-WGGUKQE7.js → chunk-QHQ52UMF.js} +75 -31
- package/dist/bundle/{chunk-6UNLEQA5.js → chunk-R2G3MWEF.js} +19 -19
- package/dist/bundle/{chunk-TKWYXM7L.js → chunk-RCEP5OXD.js} +7 -7
- package/dist/bundle/{chunk-7GGDCQJ5.js → chunk-RHJ2VGHV.js} +8 -8
- package/dist/bundle/{chunk-SPXNI53Z.js → chunk-RXBKVNOK.js} +23 -10
- package/dist/bundle/{chunk-WPXVJGSL.js → chunk-RZ7POTFA.js} +3 -3
- package/dist/bundle/{chunk-OJSPB4LA.js → chunk-S7PIM4GG.js} +2 -2
- package/dist/bundle/{chunk-JHZJBNDO.js → chunk-SIDGH56R.js} +2 -2
- package/dist/bundle/{chunk-RVA3CRSY.js → chunk-SRMELB6Q.js} +12 -12
- package/dist/bundle/{chunk-IJ7R2WMK.js → chunk-SVPNU7PD.js} +4 -4
- package/dist/bundle/{chunk-GIGZTI74.js → chunk-TB2MG6PE.js} +938 -710
- package/dist/bundle/{chunk-J5RB4ASI.js → chunk-UN5TH2CG.js} +28 -13
- package/dist/bundle/{chunk-PZ2ZFPGO.js → chunk-V3ZWYMXT.js} +1 -1
- package/dist/bundle/{chunk-ITJ7DGNA.js → chunk-VFU25P57.js} +4 -4
- package/dist/bundle/{chunk-AYWST6NA.js → chunk-VJEMCJPL.js} +35 -35
- package/dist/bundle/{chunk-AHVWZDXO.js → chunk-VK2NDTBS.js} +72 -57
- package/dist/bundle/{chunk-CDKXZLMP.js → chunk-W6A2OZ3C.js} +164 -158
- package/dist/bundle/{chunk-EXMAWEHC.js → chunk-WDI6LA4X.js} +2 -2
- package/dist/bundle/{chunk-O4ZOQJ6W.js → chunk-WTGRQGQL.js} +15 -8
- package/dist/bundle/{chunk-JAL443BH.js → chunk-WUCTF2XE.js} +9 -9
- package/dist/bundle/{chunk-HEZK4W3U.js → chunk-WZCRCCOZ.js} +6 -6
- package/dist/bundle/{chunk-4X6BX3XP.js → chunk-XB6O445X.js} +6 -6
- package/dist/bundle/{chunk-PRI2XTM7.js → chunk-XKFES4EM.js} +8 -8
- package/dist/bundle/{chunk-6DJJVFSG.js → chunk-YBUX6EAK.js} +6 -6
- package/dist/bundle/{chunk-77E7Q4EQ.js → chunk-YMRL7MYS.js} +7 -7
- package/dist/bundle/{chunk-6MEHKUN6.js → chunk-Z6M6NZUX.js} +1 -1
- package/dist/bundle/{chunk-QYRK4XXH.js → chunk-ZCDRXKCR.js} +13 -13
- package/dist/bundle/{chunk-MMDFPBFZ.js → chunk-ZJ3S4S6H.js} +6 -6
- package/dist/bundle/{chunk-3PG6QVQZ.js → chunk-ZL7TJXFL.js} +10 -10
- package/dist/bundle/{chunk-MXA3FU2R.js → chunk-ZMBVZWUW.js} +1 -1
- package/dist/bundle/{chunk-MUV73B5A.js → chunk-ZMTASSIB.js} +7 -7
- package/dist/bundle/{chunk-6DGVK5KS.js → chunk-ZQ5ERQHO.js} +2 -2
- package/dist/bundle/{chunk-FR3ATU5I.js → chunk-ZWVDXVG3.js} +4 -4
- package/dist/bundle/command-contract-K4MU32K6.js +37 -0
- package/dist/bundle/{command-server-entry-WQAE5UGU.js → command-server-entry-XP6BVJIK.js} +27 -27
- package/dist/bundle/{decode-2J2DOVGV.js → decode-TUB45ALX.js} +5 -5
- package/dist/bundle/{dispatch-IZ2TP5GW.js → dispatch-ICPUKMEG.js} +8 -8
- package/dist/bundle/{echarts-GFIIHZ4U.js → echarts-HJ7D7XTM.js} +2 -2
- package/dist/bundle/{embed-AGOXADHW.js → embed-4QDN36YF.js} +6 -6
- package/dist/bundle/{embedder-PCIXGM2Y.js → embedder-Q7ID2LEG.js} +9 -9
- package/dist/bundle/{entry-HUQXUV52.js → entry-Z6VRZP7F.js} +9 -9
- package/dist/bundle/{failure-JSRHZ2S6.js → failure-PEPNEEK7.js} +2 -2
- package/dist/bundle/{first-run-2LXN7B33.js → first-run-GKBEHAAX.js} +12 -12
- package/dist/bundle/first-screen-IA3ONZ75.js +37 -0
- package/dist/bundle/{instructions-RSLTJVFJ.js → instructions-26ZXYYMY.js} +1 -1
- package/dist/bundle/{mcp-MMENCB7I.js → mcp-KGWT6TGO.js} +2 -2
- package/dist/bundle/meeting-combined-KUV2HP52.js +23 -0
- package/dist/bundle/{meeting-model-SI77WMMK.js → meeting-model-JB7X4CA3.js} +11 -11
- package/dist/bundle/{meeting-semantic-WRXWUR4M.js → meeting-semantic-MQNUVG33.js} +6 -6
- package/dist/bundle/{node-5XGMCUGQ.js → node-RIANITAT.js} +2 -2
- package/dist/bundle/{node-sqlite-ES7SQSIC.js → node-sqlite-I2P26Z3S.js} +7 -7
- package/dist/bundle/{oauth-QFM4Y6N7.js → oauth-GFMJL2ZZ.js} +7 -7
- package/dist/bundle/{open-2MD2DKGQ.js → open-CWVYEFNN.js} +5 -5
- package/dist/bundle/{openai-6TMKJKYO.js → openai-PQLK7YTJ.js} +15 -15
- package/dist/bundle/{process-VA2DP7MY.js → process-P4D4KFWE.js} +1 -1
- package/dist/bundle/{program-K3SLEA42.js → program-MF4QZJKH.js} +70 -70
- package/dist/bundle/{prompt-VZSPCE6E.js → prompt-JWIOYU53.js} +5 -5
- package/dist/bundle/{proxy-transport-OJU2EOOC.js → proxy-transport-DWY6ABVT.js} +5 -5
- package/dist/bundle/{recognize-LH3ZZEIL.js → recognize-IPJL4CQZ.js} +4 -4
- package/dist/bundle/{remote-JNW5HN2I.js → remote-DVY6F6YO.js} +9 -9
- package/dist/bundle/{rerank-P23UJMII.js → rerank-XSPWLBIO.js} +7 -7
- package/dist/bundle/{serve-VSLLMILH.js → serve-AJAVEH2M.js} +9 -9
- package/dist/bundle/server-GGXUR5BZ.js +78 -0
- package/dist/bundle/{server-FBRRRKCS.js → server-GII7NIKF.js} +53 -53
- package/dist/bundle/{sqlite-runtime-LWATDAAU.js → sqlite-runtime-KFDYJTUO.js} +6 -6
- package/dist/bundle/{state-3AFJL2EL.js → state-76OJSCQC.js} +6 -6
- package/dist/bundle/{store-6TLYL2VU.js → store-2KJS4YMH.js} +18 -18
- package/dist/bundle/{store-PEXV5DNA.js → store-FBP2J23G.js} +20 -20
- package/dist/bundle/store-maintenance-command-NUWOUZ62.js +65 -0
- package/dist/bundle/surface-EGSHCISG.js +64 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +5 -4
- package/skills/tg-cli/references/search.md +2 -2
- package/dist/bundle/agent-G7VHOJMS.js +0 -37
- package/dist/bundle/command-contract-LEFXJAA3.js +0 -37
- package/dist/bundle/first-screen-VUE6RCSF.js +0 -37
- package/dist/bundle/meeting-combined-PBNPHOM3.js +0 -23
- package/dist/bundle/server-TA4QP7PG.js +0 -78
- package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +0 -65
- package/dist/bundle/surface-L4VY4WFG.js +0 -64
|
@@ -2,34 +2,34 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
commandAvailability
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OU3WN4YH.js";
|
|
6
6
|
import {
|
|
7
7
|
lentConnection
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5CEKH6R6.js";
|
|
9
9
|
import {
|
|
10
10
|
QUERY_ARGUMENT
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZCDRXKCR.js";
|
|
12
12
|
import {
|
|
13
13
|
authorityAllowed,
|
|
14
14
|
botApiAllowed,
|
|
15
15
|
changesMessenger,
|
|
16
16
|
flatten
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
18
18
|
import {
|
|
19
19
|
currentCaller
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LGYATGQI.js";
|
|
21
21
|
import {
|
|
22
22
|
enclosingTraceId,
|
|
23
23
|
inRun,
|
|
24
24
|
newRunId,
|
|
25
25
|
traceOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4CLSIEWN.js";
|
|
27
27
|
import {
|
|
28
28
|
queryDescription
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QD4MTOI7.js";
|
|
30
30
|
import {
|
|
31
31
|
captureStreams
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-R2G3MWEF.js";
|
|
33
33
|
import {
|
|
34
34
|
COMPACT_FLAG,
|
|
35
35
|
SNAKE_CASE,
|
|
@@ -58,18 +58,18 @@ import {
|
|
|
58
58
|
unknown,
|
|
59
59
|
word,
|
|
60
60
|
writes
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-RXBKVNOK.js";
|
|
62
62
|
import {
|
|
63
63
|
CliError
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-GCUFGDKE.js";
|
|
65
65
|
import {
|
|
66
66
|
__name
|
|
67
67
|
} from "./chunk-ZVVMGPBJ.js";
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
70
70
|
import { Readable } from "node:stream";
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
73
73
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
74
74
|
var lintRuleSchema = strictObject({
|
|
75
75
|
id: word,
|
|
@@ -215,7 +215,7 @@ var overrideSchema = strictObject({
|
|
|
215
215
|
});
|
|
216
216
|
var overridesSchema = array(overrideSchema);
|
|
217
217
|
|
|
218
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
218
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
219
219
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
220
220
|
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");
|
|
221
221
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -326,7 +326,13 @@ var FAMILY_SINCE_0_98 = [
|
|
|
326
326
|
review(ENTITY, "entity lead", "b24's CRM lead and memo's differ (measured 2026-11-13)"),
|
|
327
327
|
review(ENTITY, "entity product", "b24's CRM product and memo's differ (measured 2026-11-13)"),
|
|
328
328
|
review(REASON, "reason ai.address-refused=model.address-refused", "one failure under two names; cli-core 0.650.0 keeps one"),
|
|
329
|
-
review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)")
|
|
329
|
+
review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)"),
|
|
330
|
+
{
|
|
331
|
+
rule: REASON,
|
|
332
|
+
target: "reason account-remove.unknown-profile=account-rename.unknown-profile",
|
|
333
|
+
reason: "one failure under two names in cli-core 0.715\u20130.716; 0.717.0 gives account rename profile.unknown",
|
|
334
|
+
review_after: "2026-12-10"
|
|
335
|
+
}
|
|
330
336
|
];
|
|
331
337
|
var PARITY_GROUPS = defineParityGroups([
|
|
332
338
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: MESSENGERS_SINCE_0_98 },
|
|
@@ -356,6 +362,8 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
356
362
|
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's and asterisk-cli's meetings take call
|
|
357
363
|
// recordings, not zoom-cli's: they are compared on the root commands every CLI shares, the way gcal and mail are.
|
|
358
364
|
// amo-cli, hubspot-cli and attio-cli share them too, and their CRM commands are compared with b24 in `crm` below.
|
|
365
|
+
// wordpress-cli shares only these roots: it is the first content CLI, so its posts commands have no group yet.
|
|
366
|
+
// linear-cli shares only these roots too: it is the first tracker CLI, so its issues commands have no group yet.
|
|
359
367
|
// notion-cli joins here until its documents commands ship; then it moves next to drive. ydisk joins here too: in "all"
|
|
360
368
|
// its search and notes differ from the messengers' and memo's as drive's do, and a documents group of drive, notion
|
|
361
369
|
// and ydisk differs in 39 paths (session, folders browse, summaries; measured on the published CLIs 2026-11-17).
|
|
@@ -375,13 +383,15 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
375
383
|
"amo",
|
|
376
384
|
"hubspot",
|
|
377
385
|
"attio",
|
|
378
|
-
"ydisk"
|
|
386
|
+
"ydisk",
|
|
387
|
+
"wordpress",
|
|
388
|
+
"linear"
|
|
379
389
|
],
|
|
380
390
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
381
391
|
differences: [...MEMO_HAS_NO_PROFILES, ...MEMO_MCP_SUMMARIES, MEMO_DOCTOR_DEEP]
|
|
382
392
|
},
|
|
383
|
-
// The CRM CLIs on cli-core's shared CRM commands.
|
|
384
|
-
//
|
|
393
|
+
// The CRM CLIs on cli-core's shared CRM commands. hubspot-cli is not in the family packages, so `audit --family`
|
|
394
|
+
// skips it, as beeline. Only b24 and hubspot have `leads` (amoCRM
|
|
385
395
|
// has no lead apart from a deal), only b24 has `products` (amo leaves them for later) and `deals delete` (amoCRM's
|
|
386
396
|
// API v4 cannot delete a lead, https://www.amocrm.ru/developers/content/crm_platform/leads-api), and hubspot writes
|
|
387
397
|
// no deals yet; a list of roots does not compare presence, so these need no difference. `people`, `organizations`,
|
|
@@ -416,7 +426,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
416
426
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
417
427
|
]);
|
|
418
428
|
|
|
419
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
429
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
420
430
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
421
431
|
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");
|
|
422
432
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -432,7 +442,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
432
442
|
}
|
|
433
443
|
]);
|
|
434
444
|
|
|
435
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
445
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
436
446
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
437
447
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
438
448
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -454,7 +464,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
454
464
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
455
465
|
]);
|
|
456
466
|
|
|
457
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
467
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
|
|
458
468
|
var ACCOUNT_FLAGS = [
|
|
459
469
|
{
|
|
460
470
|
name: "--client-id",
|
|
@@ -491,7 +501,7 @@ var ACCOUNT_FLAGS = [
|
|
|
491
501
|
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
492
502
|
];
|
|
493
503
|
|
|
494
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
504
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
495
505
|
var CALENDAR_FLAGS = [
|
|
496
506
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
497
507
|
{
|
|
@@ -579,7 +589,25 @@ var CALENDAR_FLAGS = [
|
|
|
579
589
|
}
|
|
580
590
|
];
|
|
581
591
|
|
|
582
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
592
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-content.js
|
|
593
|
+
var CONTENT_FLAGS = [
|
|
594
|
+
{ name: "--slug", value: "<slug>", role: "value", type: "string", meaning: "the last part of its web address" },
|
|
595
|
+
{
|
|
596
|
+
name: "--tags",
|
|
597
|
+
value: "<ids>",
|
|
598
|
+
role: "value",
|
|
599
|
+
type: "list",
|
|
600
|
+
meaning: "its tags and categories, by comma-separated ids; replaces the ones it has"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "--replace-body",
|
|
604
|
+
role: "mode",
|
|
605
|
+
type: "switch",
|
|
606
|
+
meaning: "write the new text over a body the tool cannot fully read back, losing what it could not show"
|
|
607
|
+
}
|
|
608
|
+
];
|
|
609
|
+
|
|
610
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
583
611
|
var CRM_FLAGS = [
|
|
584
612
|
{
|
|
585
613
|
name: "--email",
|
|
@@ -743,7 +771,7 @@ var CRM_FLAGS = [
|
|
|
743
771
|
}
|
|
744
772
|
];
|
|
745
773
|
|
|
746
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
774
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
747
775
|
var HOW_FLAGS = [
|
|
748
776
|
{
|
|
749
777
|
name: "--limit",
|
|
@@ -1736,7 +1764,7 @@ var HOW_FLAGS = [
|
|
|
1736
1764
|
}
|
|
1737
1765
|
];
|
|
1738
1766
|
|
|
1739
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1767
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1740
1768
|
var KNOWLEDGE_FLAGS = [
|
|
1741
1769
|
{
|
|
1742
1770
|
name: "--accept-terms",
|
|
@@ -1795,7 +1823,7 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1795
1823
|
}
|
|
1796
1824
|
];
|
|
1797
1825
|
|
|
1798
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1826
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
1799
1827
|
var MAIL_FLAGS = [
|
|
1800
1828
|
{
|
|
1801
1829
|
name: "--cc",
|
|
@@ -1825,7 +1853,7 @@ var MAIL_FLAGS = [
|
|
|
1825
1853
|
}
|
|
1826
1854
|
];
|
|
1827
1855
|
|
|
1828
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1856
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1829
1857
|
var PRIVACY_FLAGS = [
|
|
1830
1858
|
{
|
|
1831
1859
|
name: "--about-text",
|
|
@@ -1886,7 +1914,7 @@ var PRIVACY_FLAGS = [
|
|
|
1886
1914
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1887
1915
|
];
|
|
1888
1916
|
|
|
1889
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1917
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1890
1918
|
var SCHEDULE_FLAGS = [
|
|
1891
1919
|
{
|
|
1892
1920
|
name: "--locale",
|
|
@@ -1919,7 +1947,18 @@ var SCHEDULE_FLAGS = [
|
|
|
1919
1947
|
}
|
|
1920
1948
|
];
|
|
1921
1949
|
|
|
1922
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1950
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-search.js
|
|
1951
|
+
var SEARCH_FLAGS = [
|
|
1952
|
+
{
|
|
1953
|
+
name: "--like",
|
|
1954
|
+
value: "<text>",
|
|
1955
|
+
role: "query",
|
|
1956
|
+
type: "string",
|
|
1957
|
+
meaning: "a made-up example of the text sought, such as a reply that would answer the question, searched by meaning beside the query"
|
|
1958
|
+
}
|
|
1959
|
+
];
|
|
1960
|
+
|
|
1961
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
1923
1962
|
var WHAT_FLAGS = [
|
|
1924
1963
|
{
|
|
1925
1964
|
name: "--analysis-provider",
|
|
@@ -2916,7 +2955,7 @@ var WHAT_FLAGS = [
|
|
|
2916
2955
|
}
|
|
2917
2956
|
];
|
|
2918
2957
|
|
|
2919
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2958
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_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
|
|
2920
2959
|
var FLAG_TYPES = [
|
|
2921
2960
|
"switch",
|
|
2922
2961
|
"count",
|
|
@@ -3146,6 +3185,8 @@ var collections = [
|
|
|
3146
3185
|
["messages", "posts in a messenger chat, or emails"],
|
|
3147
3186
|
["drafts", "e-mails saved in a mailbox's Drafts folder, written and not sent"],
|
|
3148
3187
|
["polls", "polls in a chat"],
|
|
3188
|
+
["posts", "posts and pages on a site or blog the owner publishes"],
|
|
3189
|
+
["channels", "the sites and social accounts the owner publishes posts on"],
|
|
3149
3190
|
["reactions", "reactions to a message"],
|
|
3150
3191
|
["recipients", "who a message goes to"],
|
|
3151
3192
|
["replies", "the automatic replies of a profile"],
|
|
@@ -3275,6 +3316,7 @@ var singulars = [
|
|
|
3275
3316
|
];
|
|
3276
3317
|
var views = [
|
|
3277
3318
|
["tree", "the parent and child hierarchy of stored sources"],
|
|
3319
|
+
["stats", "a thing's own numbers, such as a post's views, as read at each sync"],
|
|
3278
3320
|
["logs", "the log of a running process"],
|
|
3279
3321
|
["events", "what happened in a thing over time"],
|
|
3280
3322
|
["scheduled", "what is scheduled to happen"],
|
|
@@ -3347,11 +3389,13 @@ var VOCABULARY = defineVocabulary({
|
|
|
3347
3389
|
...MAIL_FLAGS,
|
|
3348
3390
|
...KNOWLEDGE_FLAGS,
|
|
3349
3391
|
...CRM_FLAGS,
|
|
3350
|
-
...SCHEDULE_FLAGS
|
|
3392
|
+
...SCHEDULE_FLAGS,
|
|
3393
|
+
...CONTENT_FLAGS,
|
|
3394
|
+
...SEARCH_FLAGS
|
|
3351
3395
|
]
|
|
3352
3396
|
});
|
|
3353
3397
|
|
|
3354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3355
3399
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3356
3400
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3357
3401
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RXBKVNOK.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
visibleControls
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GCUFGDKE.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__name,
|
|
@@ -1896,7 +1896,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
|
|
1899
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1899
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
1900
1900
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
1901
1901
|
if (signal?.aborted)
|
|
1902
1902
|
return Promise.reject(signal.reason);
|
|
@@ -1924,7 +1924,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
1924
1924
|
});
|
|
1925
1925
|
}, "waitForDrain");
|
|
1926
1926
|
|
|
1927
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1927
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
1928
1928
|
var processStreams = {
|
|
1929
1929
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
1930
1930
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -1953,7 +1953,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
1953
1953
|
};
|
|
1954
1954
|
}, "captureStreams");
|
|
1955
1955
|
|
|
1956
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1956
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1957
1957
|
var DEFAULT_RETRY = {
|
|
1958
1958
|
retries: 1,
|
|
1959
1959
|
baseDelayMs: 250,
|
|
@@ -1965,7 +1965,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1965
1965
|
return Math.round(random() * ceiling);
|
|
1966
1966
|
}, "backoffMs");
|
|
1967
1967
|
|
|
1968
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1968
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
1969
1969
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1970
1970
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1971
1971
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2030,7 +2030,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2030
2030
|
return project(value, fields);
|
|
2031
2031
|
}, "projectFields");
|
|
2032
2032
|
|
|
2033
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2033
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2034
2034
|
var BATCH_LIMITS = Object.freeze({
|
|
2035
2035
|
requests: 32,
|
|
2036
2036
|
input_bytes: 262144,
|
|
@@ -2157,7 +2157,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2157
2157
|
};
|
|
2158
2158
|
}, "runBatch");
|
|
2159
2159
|
|
|
2160
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2160
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2161
2161
|
import { randomBytes } from "node:crypto";
|
|
2162
2162
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2163
2163
|
import { dirname, join } from "node:path";
|
|
@@ -2201,16 +2201,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2201
2201
|
`, 384);
|
|
2202
2202
|
}, "saveConfigFile");
|
|
2203
2203
|
|
|
2204
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2204
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2205
2205
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2206
2206
|
var baseConstantsSchema = object({});
|
|
2207
2207
|
var LayerSchema = record(string(), unknown());
|
|
2208
2208
|
|
|
2209
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2209
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2210
2210
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2211
2211
|
import { join as join3, resolve } from "node:path";
|
|
2212
2212
|
|
|
2213
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2213
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2214
2214
|
import { createRequire } from "node:module";
|
|
2215
2215
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2216
2216
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2236,7 +2236,7 @@ var systemKeyring = {
|
|
|
2236
2236
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2237
2237
|
};
|
|
2238
2238
|
|
|
2239
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2239
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
2240
2240
|
import { realpathSync } from "node:fs";
|
|
2241
2241
|
import { homedir, userInfo } from "node:os";
|
|
2242
2242
|
import { join as join2, posix, win32 } from "node:path";
|
|
@@ -2310,7 +2310,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
2310
2310
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
2311
2311
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
|
|
2312
2312
|
|
|
2313
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2313
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2314
2314
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2315
2315
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2316
2316
|
var Credentials = class {
|
|
@@ -2454,7 +2454,7 @@ var Credentials = class {
|
|
|
2454
2454
|
}
|
|
2455
2455
|
};
|
|
2456
2456
|
|
|
2457
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2457
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2458
2458
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2459
2459
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2460
2460
|
if (signal?.aborted) {
|
|
@@ -2469,10 +2469,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2469
2469
|
}), "realSleep");
|
|
2470
2470
|
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2471
2471
|
|
|
2472
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2472
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2473
2473
|
import { appendFileSync } from "node:fs";
|
|
2474
2474
|
|
|
2475
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2475
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2476
2476
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2477
2477
|
var logRecordSchema = strictObject({
|
|
2478
2478
|
time: isoTime,
|
|
@@ -2550,7 +2550,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2550
2550
|
return traceId;
|
|
2551
2551
|
}, "traceIdOf");
|
|
2552
2552
|
|
|
2553
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2553
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2554
2554
|
var REDACTED_FIELDS = [
|
|
2555
2555
|
"authorization",
|
|
2556
2556
|
"Authorization",
|
|
@@ -2644,7 +2644,7 @@ var silent = {
|
|
|
2644
2644
|
}, "error")
|
|
2645
2645
|
};
|
|
2646
2646
|
|
|
2647
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2647
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2648
2648
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2649
2649
|
import { styleText } from "node:util";
|
|
2650
2650
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2719,7 +2719,7 @@ var BORDERLESS = {
|
|
|
2719
2719
|
middle: ""
|
|
2720
2720
|
};
|
|
2721
2721
|
|
|
2722
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2722
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2723
2723
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2724
2724
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2725
2725
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
} from "./chunk-2ABQZVK4.js";
|
|
6
6
|
import {
|
|
7
7
|
WIRECAT_TOOLS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZMBVZWUW.js";
|
|
9
9
|
import {
|
|
10
10
|
commandPathOf,
|
|
11
11
|
outputOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SVPNU7PD.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
15
15
|
Help,
|
|
@@ -20,18 +20,18 @@ import {
|
|
|
20
20
|
environmentOf,
|
|
21
21
|
metaOf,
|
|
22
22
|
takesProfile
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
24
24
|
import {
|
|
25
25
|
writes
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RXBKVNOK.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GCUFGDKE.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
35
35
|
var ARGUMENT_KINDS = {
|
|
36
36
|
chat: "chat",
|
|
37
37
|
chats: "chat",
|
|
@@ -224,7 +224,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
224
224
|
command.addHelpText("after", () => commandHelpText(command));
|
|
225
225
|
}, "installCommandHelp");
|
|
226
226
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
228
228
|
var WIDTH = 100;
|
|
229
229
|
var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
|
|
230
230
|
var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BXUMZWMN.js";
|
|
6
6
|
import {
|
|
7
7
|
LIST_QUERY_GUIDE,
|
|
8
8
|
nativeTerms
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZCDRXKCR.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_CONFIG,
|
|
12
12
|
environmentOf,
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
snakeKeys,
|
|
18
18
|
withAgentLevels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
20
20
|
import {
|
|
21
21
|
formatReference
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4CLSIEWN.js";
|
|
23
23
|
import {
|
|
24
24
|
queryError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QD4MTOI7.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GCUFGDKE.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
34
34
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
35
35
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
36
36
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -57,7 +57,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
57
57
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
58
58
|
}, "pagingOf");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
61
61
|
var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
|
|
62
62
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
63
63
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GCUFGDKE.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -282,8 +282,8 @@ function maxEntries(requirement, message$1) {
|
|
|
282
282
|
message: message$1,
|
|
283
283
|
"~run"(dataset, config$1) {
|
|
284
284
|
if (!dataset.typed) return dataset;
|
|
285
|
-
const
|
|
286
|
-
if (dataset.typed &&
|
|
285
|
+
const count2 = Object.keys(dataset.value).length;
|
|
286
|
+
if (dataset.typed && count2 > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count2}` });
|
|
287
287
|
return dataset;
|
|
288
288
|
}
|
|
289
289
|
};
|
|
@@ -1381,7 +1381,7 @@ function unwrap(schema) {
|
|
|
1381
1381
|
}
|
|
1382
1382
|
__name(unwrap, "unwrap");
|
|
1383
1383
|
|
|
1384
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1384
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1385
1385
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1386
1386
|
var effectsSchema = strictObject({
|
|
1387
1387
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -2018,7 +2018,7 @@ function toStandardJsonSchema(schema) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
2020
2020
|
|
|
2021
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2021
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
2022
2022
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
2023
2023
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
2024
2024
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -2060,7 +2060,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
2060
2060
|
return String(value);
|
|
2061
2061
|
}), "fill");
|
|
2062
2062
|
|
|
2063
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2063
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
2064
2064
|
var MAX_NEXT_STEPS = 2;
|
|
2065
2065
|
var COMPACT_FLAG = "--compact";
|
|
2066
2066
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2137,6 +2137,18 @@ var rankingSchema = strictObject({
|
|
|
2137
2137
|
})),
|
|
2138
2138
|
ms: pipe(number(), integer(), minValue(0))
|
|
2139
2139
|
});
|
|
2140
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
2141
|
+
var modelRunSchema = strictObject({
|
|
2142
|
+
provider: text,
|
|
2143
|
+
model: text,
|
|
2144
|
+
endpoint: text,
|
|
2145
|
+
sent: count,
|
|
2146
|
+
done: count,
|
|
2147
|
+
left: count,
|
|
2148
|
+
usage: optional(strictObject({ input: count, output: count })),
|
|
2149
|
+
cost_usd: nullable(pipe(number(), minValue(0))),
|
|
2150
|
+
ms: count
|
|
2151
|
+
});
|
|
2140
2152
|
var querySchema = strictObject({
|
|
2141
2153
|
chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
|
|
2142
2154
|
respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
|
|
@@ -2154,6 +2166,7 @@ var metaSchema = strictObject({
|
|
|
2154
2166
|
now_local: optional(localTime),
|
|
2155
2167
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
|
|
2156
2168
|
ranking: optional(rankingSchema),
|
|
2169
|
+
model_run: optional(modelRunSchema),
|
|
2157
2170
|
query: optional(querySchema)
|
|
2158
2171
|
});
|
|
2159
2172
|
var offsetOf = /* @__PURE__ */ __name((at, zone) => {
|
|
@@ -2192,7 +2205,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2192
2205
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2193
2206
|
].join("\n"), "jsonlOf");
|
|
2194
2207
|
|
|
2195
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2208
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2196
2209
|
var CRASH_CODE = "internal_error";
|
|
2197
2210
|
var CRASH_REASON = "command.crashed";
|
|
2198
2211
|
var errorObjectSchema = strictObject({
|
|
@@ -2291,7 +2304,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2291
2304
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2292
2305
|
]);
|
|
2293
2306
|
|
|
2294
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2307
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2295
2308
|
var SAME_COMMAND = "*";
|
|
2296
2309
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2297
2310
|
var stepSchema = union([
|
|
@@ -2370,7 +2383,7 @@ var STEPS = defineSteps([
|
|
|
2370
2383
|
}
|
|
2371
2384
|
]);
|
|
2372
2385
|
|
|
2373
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2386
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
2374
2387
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2375
2388
|
if (isCliError(failure))
|
|
2376
2389
|
return failure;
|