@wirecat/tg-cli 0.131.0 → 0.133.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 +138 -317
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-TA637IRT.js → adapter-GSGX3WBH.js} +61 -60
- package/dist/bundle/{all-profiles-7M3GBCB6.js → all-profiles-VOCJ55YH.js} +9 -9
- package/dist/bundle/{anthropic-P3THLZWO.js → anthropic-J6CTLU3W.js} +5 -5
- package/dist/bundle/{app-server-OE5EAXIY.js → app-server-GVFGA4TJ.js} +57 -57
- package/dist/bundle/{bot-api-WYR2C4A5.js → bot-api-LWONPIGK.js} +62 -61
- package/dist/bundle/{bot-history-PKJTHU7L.js → bot-history-XOW7Y2GC.js} +22 -22
- package/dist/bundle/{bun-XMZJDDEA.js → bun-436CH6CP.js} +2 -2
- package/dist/bundle/{bun-sqlite-F5RWCB2N.js → bun-sqlite-ZLB5RK5Q.js} +6 -6
- package/dist/bundle/chunk-2KQDJHF3.js +88 -0
- package/dist/bundle/{chunk-WG6UZJ3E.js → chunk-54WLIPIQ.js} +1 -1
- package/dist/bundle/{chunk-LDSTUBLY.js → chunk-57KJ3TRS.js} +9 -9
- package/dist/bundle/{chunk-LTP4BYHJ.js → chunk-5HKPQPD4.js} +6 -6
- package/dist/bundle/{chunk-LJO6MMQG.js → chunk-5L44DSHV.js} +4 -4
- package/dist/bundle/{chunk-5AJ5RLJW.js → chunk-5LRTYBZW.js} +14 -13
- package/dist/bundle/{chunk-6BPM3LNR.js → chunk-6A44ZZFC.js} +6 -6
- package/dist/bundle/{chunk-HT6OFANN.js → chunk-6CHIGUCY.js} +20 -20
- package/dist/bundle/{chunk-34PRGA7E.js → chunk-6H2NW6HK.js} +3 -3
- package/dist/bundle/{chunk-JSE4OBYI.js → chunk-6S77EKZU.js} +13 -13
- package/dist/bundle/{chunk-TT6OHNV2.js → chunk-6VCSOQFL.js} +2 -2
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-Z2TCTTPJ.js → chunk-7NYP4RBO.js} +1910 -1015
- package/dist/bundle/{chunk-B6NQJAUC.js → chunk-BXVB42KJ.js} +2 -2
- package/dist/bundle/{chunk-PS7ZS5HD.js → chunk-CEJYNB3I.js} +4 -4
- package/dist/bundle/{chunk-6O5AD3GA.js → chunk-D2SJLZSH.js} +2 -2
- package/dist/bundle/{chunk-P6KGEZIS.js → chunk-H7ML7X3G.js} +5 -5
- package/dist/bundle/{chunk-BXW6FGLD.js → chunk-HB5DP6L5.js} +15 -15
- package/dist/bundle/{chunk-S2IET7WM.js → chunk-IBCXEVNY.js} +3 -3
- package/dist/bundle/{chunk-PHGH5N4C.js → chunk-IH4Z3KZU.js} +2 -2
- package/dist/bundle/{chunk-UGYC2FV5.js → chunk-IPPCQ7IK.js} +2 -2
- package/dist/bundle/{chunk-AJQ6JFLY.js → chunk-IYAXLLGR.js} +6 -6
- package/dist/bundle/{chunk-UUNQV4YL.js → chunk-JGMXBAGH.js} +111 -41
- package/dist/bundle/{chunk-O7X6RM5R.js → chunk-JKSD43L7.js} +6 -6
- package/dist/bundle/{chunk-AEIDEIVB.js → chunk-JPNVEPS4.js} +2331 -1406
- package/dist/bundle/{chunk-GNIROVSK.js → chunk-KEN4B57V.js} +2 -2
- package/dist/bundle/{chunk-NOZZHEMD.js → chunk-KHUXDSXN.js} +1 -1
- package/dist/bundle/{chunk-JUFLELQ7.js → chunk-KUA24HWG.js} +2 -2
- package/dist/bundle/{chunk-H655CMXJ.js → chunk-KVFUH5IT.js} +1 -1
- package/dist/bundle/{chunk-EZBMLKBK.js → chunk-LBZEZO32.js} +36 -36
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-SLT2PBFP.js → chunk-LOS4D6ZB.js} +67 -30
- package/dist/bundle/{chunk-6TJTQ4I4.js → chunk-LQQSDGQ6.js} +35 -36
- package/dist/bundle/{chunk-QGFUUJPL.js → chunk-M6QOM6SL.js} +1 -1
- package/dist/bundle/{chunk-JDLNI7BU.js → chunk-N3JUHGKM.js} +308 -285
- package/dist/bundle/{chunk-OOSX7K7G.js → chunk-N7QREPZW.js} +8 -8
- package/dist/bundle/{chunk-IULSIKEM.js → chunk-NAXOT35J.js} +3 -3
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-MYC3M4BY.js → chunk-NTWXL2QV.js} +2 -2
- package/dist/bundle/{chunk-WUIKJJ5A.js → chunk-O6JUVATT.js} +8 -8
- package/dist/bundle/{chunk-43KSYUZU.js → chunk-OWY52JBO.js} +7 -7
- package/dist/bundle/{chunk-2TOJQQKS.js → chunk-OX73ERZW.js} +1 -1
- package/dist/bundle/{chunk-NXNSEFGR.js → chunk-QGWISM4W.js} +24 -24
- package/dist/bundle/{chunk-AUNNJDVD.js → chunk-QVGEL66U.js} +28 -8
- package/dist/bundle/{chunk-5ZIT6JXP.js → chunk-QWO7L4UH.js} +7 -7
- package/dist/bundle/{chunk-PD4RREQB.js → chunk-QYLZD4DS.js} +1 -1
- package/dist/bundle/{chunk-LEPDRO3O.js → chunk-RABUG4KA.js} +76 -59
- package/dist/bundle/{chunk-ITYDJIRC.js → chunk-SMI2EUH4.js} +1 -1
- package/dist/bundle/{chunk-76UAXRDY.js → chunk-SMU6NA7F.js} +4 -4
- package/dist/bundle/{chunk-O73DZURO.js → chunk-TCI7I6YF.js} +10 -10
- package/dist/bundle/{chunk-VNJZXV7E.js → chunk-THYGLTRB.js} +9 -60
- package/dist/bundle/{chunk-OX5EAUKF.js → chunk-TPD37ECC.js} +3 -3
- package/dist/bundle/{chunk-2OXR2MRV.js → chunk-TTDZVWDU.js} +1 -1
- package/dist/bundle/{chunk-YZTMQE62.js → chunk-UGS57TT5.js} +2 -2
- package/dist/bundle/{chunk-OPG54IFH.js → chunk-UIAKLELF.js} +54 -54
- package/dist/bundle/{chunk-5N7TJ6TJ.js → chunk-UKBK2VWZ.js} +217 -165
- package/dist/bundle/{chunk-NTORQXAS.js → chunk-UQYL6TJ7.js} +4 -4
- package/dist/bundle/{chunk-2U6XE4HI.js → chunk-UZ63ORMY.js} +4 -4
- package/dist/bundle/{chunk-SQ2JLZFK.js → chunk-VCAOH45X.js} +1 -1
- package/dist/bundle/{chunk-YJ4BPNWI.js → chunk-VGN5YXYI.js} +3 -3
- package/dist/bundle/{chunk-XC2YJDDK.js → chunk-VTQMR3XG.js} +3 -3
- package/dist/bundle/{chunk-BFERGEBI.js → chunk-VWJTYAIQ.js} +17 -17
- package/dist/bundle/{chunk-JF4AJNCE.js → chunk-WCYKVX3B.js} +7 -7
- package/dist/bundle/{chunk-EXMJDHBM.js → chunk-XDQU5HBO.js} +12 -12
- package/dist/bundle/{chunk-SS5H2XAT.js → chunk-XKOMP3HV.js} +2 -2
- package/dist/bundle/{chunk-J2QQZVEN.js → chunk-XOX4BX5A.js} +4 -4
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-L2SMUTJY.js → chunk-YY6FGKGD.js} +2 -2
- package/dist/bundle/{chunk-VVUUP5NF.js → chunk-ZHO3TPHM.js} +13 -13
- package/dist/bundle/{chunk-LWSOCKOD.js → chunk-ZYAHZKYF.js} +3 -3
- package/dist/bundle/command-contract-TQIARAB4.js +37 -0
- package/dist/bundle/{command-server-entry-6FH3RXJ2.js → command-server-entry-AE27QXTE.js} +27 -27
- package/dist/bundle/{decode-UBRT2QDP.js → decode-RQPPZ72F.js} +5 -5
- package/dist/bundle/{dispatch-ST5FK2KI.js → dispatch-KQO2MCSH.js} +8 -8
- package/dist/bundle/{echarts-PG45GQLR.js → echarts-FZRIACN4.js} +2 -2
- package/dist/bundle/{embed-BUQDSZ57.js → embed-TOSWWMDL.js} +6 -6
- package/dist/bundle/{embedder-TXA3EV7O.js → embedder-JHIQSBGD.js} +9 -9
- package/dist/bundle/{entry-JWIEF57D.js → entry-DU4KRXTG.js} +9 -9
- package/dist/bundle/{failure-GMUQKQ5K.js → failure-3YC3YGYO.js} +2 -2
- package/dist/bundle/{first-run-5VTHKMK5.js → first-run-DQQT4FID.js} +12 -12
- package/dist/bundle/first-screen-7N4CTZSA.js +37 -0
- package/dist/bundle/{instructions-ZMEPWTFO.js → instructions-WI64CJQ6.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-3RAOFQ7M.js +23 -0
- package/dist/bundle/{meeting-model-5FVNZCTL.js → meeting-model-XNRSREIK.js} +11 -11
- package/dist/bundle/{meeting-semantic-HUMYFMO7.js → meeting-semantic-OOSCHQMB.js} +6 -6
- package/dist/bundle/{node-N4DQQJKK.js → node-JLKDNVKV.js} +2 -2
- package/dist/bundle/{node-sqlite-MG4KFXYY.js → node-sqlite-YOGH26O2.js} +7 -7
- package/dist/bundle/{oauth-NKDSXEH6.js → oauth-FOMXM5HP.js} +7 -7
- package/dist/bundle/{open-DV2YUU2M.js → open-SM2UXUKM.js} +5 -5
- package/dist/bundle/{openai-FEKMZOUJ.js → openai-J2H7S6ZF.js} +15 -15
- package/dist/bundle/{process-QZS3TE6A.js → process-HI7OZBOI.js} +1 -1
- package/dist/bundle/{program-FNDGXEVS.js → program-VY4HFU25.js} +64 -63
- package/dist/bundle/{prompt-C7RSBNH5.js → prompt-NUUVFMOF.js} +5 -5
- package/dist/bundle/{proxy-transport-A4MRO3PF.js → proxy-transport-AN4VMRRN.js} +5 -5
- package/dist/bundle/{recognize-5BL763FS.js → recognize-MALJHPDI.js} +4 -4
- package/dist/bundle/{remote-CXAKRC7X.js → remote-QUDRSTS2.js} +9 -9
- package/dist/bundle/{rerank-XAEXY5A4.js → rerank-2DSO3D3S.js} +7 -7
- package/dist/bundle/{serve-JLZGFTZH.js → serve-NCJ52MY3.js} +9 -9
- package/dist/bundle/server-CHGON5I2.js +70 -0
- package/dist/bundle/{server-GF3TV2U7.js → server-Y3M544AM.js} +49 -49
- package/dist/bundle/{sqlite-runtime-3OVQ7OTM.js → sqlite-runtime-NJUSXVKK.js} +6 -6
- package/dist/bundle/{state-FGJKQKC2.js → state-AVOWQVET.js} +6 -6
- package/dist/bundle/{store-WYLMNAAQ.js → store-BZ5ICDRP.js} +23 -19
- package/dist/bundle/{store-2J5VJZQY.js → store-MMIYOL4H.js} +19 -17
- package/dist/bundle/store-maintenance-command-VKZ4WHUB.js +61 -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 +78 -576
- package/skills/tg-cli/references/files.md +64 -0
- package/skills/tg-cli/references/history.md +22 -0
- package/skills/tg-cli/references/mcp-and-bots.md +54 -0
- package/skills/tg-cli/references/messages.md +111 -0
- package/skills/tg-cli/references/people.md +85 -0
- package/skills/tg-cli/references/search.md +130 -0
- package/skills/tg-cli/references/setup.md +91 -0
- package/skills/tg-cli/references/stats.md +45 -0
- package/skills/tg-cli/references/tasks.md +54 -0
- package/dist/bundle/command-contract-DAQYQF6R.js +0 -37
- package/dist/bundle/first-screen-PTHIZ5ZF.js +0 -35
- package/dist/bundle/meeting-combined-DU3RJR6X.js +0 -23
- package/dist/bundle/server-GLPEWUYT.js +0 -69
- package/dist/bundle/store-maintenance-command-QN6QH6RA.js +0 -60
- /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-SHTHNBHG.js} +0 -0
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JGMXBAGH.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VGN5YXYI.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-N3JUHGKM.js";
|
|
22
22
|
import {
|
|
23
23
|
MAX_BUFFERED_INPUT
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UGS57TT5.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_OUTPUT_BYTES,
|
|
27
27
|
ENTITIES,
|
|
@@ -42,29 +42,29 @@ import {
|
|
|
42
42
|
refuseStoreChange,
|
|
43
43
|
sealed,
|
|
44
44
|
startRecording
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-UKBK2VWZ.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QWO7L4UH.js";
|
|
52
52
|
import {
|
|
53
53
|
enclosingTraceId,
|
|
54
54
|
inRun,
|
|
55
55
|
newRunId,
|
|
56
56
|
traceOf
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LBZEZO32.js";
|
|
58
58
|
import {
|
|
59
59
|
storeDamaged
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ZYAHZKYF.js";
|
|
61
61
|
import {
|
|
62
62
|
queryDescription
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-RABUG4KA.js";
|
|
64
64
|
import {
|
|
65
65
|
captureStreams,
|
|
66
66
|
traceIdOf
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-6CHIGUCY.js";
|
|
68
68
|
import {
|
|
69
69
|
COMPACT_FLAG,
|
|
70
70
|
SNAKE_CASE,
|
|
@@ -103,19 +103,19 @@ import {
|
|
|
103
103
|
unknown,
|
|
104
104
|
word,
|
|
105
105
|
writes
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-QVGEL66U.js";
|
|
107
107
|
import {
|
|
108
108
|
CliError,
|
|
109
109
|
errorCodes
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
111
111
|
import {
|
|
112
112
|
__name
|
|
113
113
|
} from "./chunk-ZVVMGPBJ.js";
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
116
116
|
import { Readable } from "node:stream";
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
119
119
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
120
120
|
var lintRuleSchema = strictObject({
|
|
121
121
|
id: word,
|
|
@@ -261,7 +261,7 @@ var overrideSchema = strictObject({
|
|
|
261
261
|
});
|
|
262
262
|
var overridesSchema = array(overrideSchema);
|
|
263
263
|
|
|
264
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
264
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
265
265
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
266
266
|
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");
|
|
267
267
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -398,6 +398,19 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
398
398
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline", "pbx", "notion"],
|
|
399
399
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
400
400
|
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
401
|
+
},
|
|
402
|
+
// The CRM CLIs on cli-core's shared CRM commands. amo-cli (amoCRM and Kommo) is not on npm yet, so `audit --family`
|
|
403
|
+
// skips it, as beeline. Only b24 has `leads` (amoCRM has no lead apart from a deal), `products` (amo leaves them for
|
|
404
|
+
// later) and `deals delete` (amoCRM's API v4 cannot delete a lead,
|
|
405
|
+
// https://www.amocrm.ru/developers/content/crm_platform/leads-api); a list of roots does not compare presence, so
|
|
406
|
+
// these need no difference. `people`, `organizations`, `users`, `api` and `session` join once b24's released tree
|
|
407
|
+
// is on cli-core's shared people and organizations commands: measured against b24 0.23.0 on 2026-11-16 they differ
|
|
408
|
+
// in options, outputs and summaries.
|
|
409
|
+
{
|
|
410
|
+
name: "crm",
|
|
411
|
+
members: ["b24", "amo"],
|
|
412
|
+
covers: ["deals", "sync", "search", "store", "schedule", "account"],
|
|
413
|
+
differences: []
|
|
401
414
|
}
|
|
402
415
|
]);
|
|
403
416
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -411,7 +424,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
411
424
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
412
425
|
]);
|
|
413
426
|
|
|
414
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
427
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
415
428
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
416
429
|
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");
|
|
417
430
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -427,7 +440,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
427
440
|
}
|
|
428
441
|
]);
|
|
429
442
|
|
|
430
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
443
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
431
444
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
432
445
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
433
446
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -449,7 +462,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
449
462
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
450
463
|
]);
|
|
451
464
|
|
|
452
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
465
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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-account.js
|
|
453
466
|
var ACCOUNT_FLAGS = [
|
|
454
467
|
{
|
|
455
468
|
name: "--client-id",
|
|
@@ -486,7 +499,7 @@ var ACCOUNT_FLAGS = [
|
|
|
486
499
|
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
487
500
|
];
|
|
488
501
|
|
|
489
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
502
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
490
503
|
var CALENDAR_FLAGS = [
|
|
491
504
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
492
505
|
{
|
|
@@ -518,6 +531,13 @@ var CALENDAR_FLAGS = [
|
|
|
518
531
|
type: "string",
|
|
519
532
|
meaning: "one of the service's own settings, such as a meeting's waiting room; repeat it for more"
|
|
520
533
|
},
|
|
534
|
+
{
|
|
535
|
+
name: "--conference",
|
|
536
|
+
value: "<service>",
|
|
537
|
+
role: "value",
|
|
538
|
+
type: "string",
|
|
539
|
+
meaning: "the video meeting service that gives the event a new meeting link, such as google-meet"
|
|
540
|
+
},
|
|
521
541
|
{
|
|
522
542
|
name: "--id",
|
|
523
543
|
value: "<id>",
|
|
@@ -567,8 +587,22 @@ var CALENDAR_FLAGS = [
|
|
|
567
587
|
}
|
|
568
588
|
];
|
|
569
589
|
|
|
570
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
590
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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-crm.js
|
|
571
591
|
var CRM_FLAGS = [
|
|
592
|
+
{
|
|
593
|
+
name: "--email",
|
|
594
|
+
value: "<address>",
|
|
595
|
+
role: "value",
|
|
596
|
+
type: "string",
|
|
597
|
+
meaning: "an e-mail address to give it; repeat it for more"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
name: "--phone",
|
|
601
|
+
value: "<phone>",
|
|
602
|
+
role: "value",
|
|
603
|
+
type: "string",
|
|
604
|
+
meaning: "a phone number to give it, in international form starting with +; repeat it for more"
|
|
605
|
+
},
|
|
572
606
|
{
|
|
573
607
|
name: "--pipeline",
|
|
574
608
|
value: "<pipeline>",
|
|
@@ -717,7 +751,7 @@ var CRM_FLAGS = [
|
|
|
717
751
|
}
|
|
718
752
|
];
|
|
719
753
|
|
|
720
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
754
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
721
755
|
var HOW_FLAGS = [
|
|
722
756
|
{
|
|
723
757
|
name: "--limit",
|
|
@@ -1714,7 +1748,7 @@ var HOW_FLAGS = [
|
|
|
1714
1748
|
}
|
|
1715
1749
|
];
|
|
1716
1750
|
|
|
1717
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1751
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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-knowledge.js
|
|
1718
1752
|
var KNOWLEDGE_FLAGS = [
|
|
1719
1753
|
{
|
|
1720
1754
|
name: "--accept-terms",
|
|
@@ -1766,7 +1800,7 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1766
1800
|
}
|
|
1767
1801
|
];
|
|
1768
1802
|
|
|
1769
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1803
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
1770
1804
|
var MAIL_FLAGS = [
|
|
1771
1805
|
{
|
|
1772
1806
|
name: "--cc",
|
|
@@ -1796,7 +1830,7 @@ var MAIL_FLAGS = [
|
|
|
1796
1830
|
}
|
|
1797
1831
|
];
|
|
1798
1832
|
|
|
1799
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1833
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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-privacy.js
|
|
1800
1834
|
var PRIVACY_FLAGS = [
|
|
1801
1835
|
{
|
|
1802
1836
|
name: "--about-text",
|
|
@@ -1857,7 +1891,7 @@ var PRIVACY_FLAGS = [
|
|
|
1857
1891
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1858
1892
|
];
|
|
1859
1893
|
|
|
1860
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1894
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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-schedule.js
|
|
1861
1895
|
var SCHEDULE_FLAGS = [
|
|
1862
1896
|
{
|
|
1863
1897
|
name: "--locale",
|
|
@@ -1890,7 +1924,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1890
1924
|
}
|
|
1891
1925
|
];
|
|
1892
1926
|
|
|
1893
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1927
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
1894
1928
|
var WHAT_FLAGS = [
|
|
1895
1929
|
{
|
|
1896
1930
|
name: "--analysis-provider",
|
|
@@ -2887,7 +2921,7 @@ var WHAT_FLAGS = [
|
|
|
2887
2921
|
}
|
|
2888
2922
|
];
|
|
2889
2923
|
|
|
2890
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2924
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
2891
2925
|
var FLAG_TYPES = [
|
|
2892
2926
|
"switch",
|
|
2893
2927
|
"count",
|
|
@@ -3160,6 +3194,8 @@ var collections = [
|
|
|
3160
3194
|
["splits", "parts of one transaction, each with its own amount and category"],
|
|
3161
3195
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
3162
3196
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
3197
|
+
["activities", "a CRM's calls, e-mails, meetings, to-dos and comments on its records"],
|
|
3198
|
+
["changes", "what changed in a copied source over a time: records added, moved, closed or reassigned"],
|
|
3163
3199
|
[
|
|
3164
3200
|
"identities",
|
|
3165
3201
|
"ways to reach a person or an organization: an account in one messenger or mailbox, an e-mail address, a phone"
|
|
@@ -3244,6 +3280,7 @@ var views = [
|
|
|
3244
3280
|
["transcript", "the text of speech: a voice message or a meeting recording"],
|
|
3245
3281
|
["evidence", "the stored messages or lines a result or a reference rests on"],
|
|
3246
3282
|
["passage", "a cited transcript line with bounded surrounding lines from the same revision"],
|
|
3283
|
+
["invitation", "the text that invites people to a meeting: how to join it and when"],
|
|
3247
3284
|
["agenda", "what needs a look today"],
|
|
3248
3285
|
["busy", "when calendars or people are taken, without what takes them"],
|
|
3249
3286
|
["categories", "the categories a thing takes, with what each means"],
|
|
@@ -3307,7 +3344,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
3307
3344
|
]
|
|
3308
3345
|
});
|
|
3309
3346
|
|
|
3310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3311
3348
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3312
3349
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3313
3350
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3534,7 +3571,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3534
3571
|
}
|
|
3535
3572
|
}, "runCommandForAgent");
|
|
3536
3573
|
|
|
3537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3538
3575
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3539
3576
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3540
3577
|
var message = pipe(
|
|
@@ -3793,7 +3830,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3793
3830
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3794
3831
|
}, "failed");
|
|
3795
3832
|
|
|
3796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3797
3834
|
import { randomUUID } from "node:crypto";
|
|
3798
3835
|
var MATCHES = 8;
|
|
3799
3836
|
var ANSWER = answerSchema();
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QGWISM4W.js";
|
|
16
16
|
import {
|
|
17
17
|
BinaryResource,
|
|
18
18
|
Picture,
|
|
@@ -33,25 +33,25 @@ import {
|
|
|
33
33
|
tool,
|
|
34
34
|
toolKey,
|
|
35
35
|
toolsFromCommands
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LOS4D6ZB.js";
|
|
37
37
|
import {
|
|
38
38
|
agentJson,
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
skillResources
|
|
40
|
+
} from "./chunk-JGMXBAGH.js";
|
|
41
41
|
import {
|
|
42
42
|
StdioServerTransport,
|
|
43
43
|
answeredWire,
|
|
44
44
|
callerOf,
|
|
45
45
|
callingAgent,
|
|
46
46
|
serveStdio
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-VGN5YXYI.js";
|
|
48
48
|
import {
|
|
49
49
|
McpServer,
|
|
50
50
|
ResourceTemplate
|
|
51
51
|
} from "./chunk-5D4AEUVA.js";
|
|
52
52
|
import {
|
|
53
53
|
connectedFor
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6S77EKZU.js";
|
|
55
55
|
import {
|
|
56
56
|
capability,
|
|
57
57
|
dateWindow,
|
|
@@ -61,26 +61,26 @@ import {
|
|
|
61
61
|
servicesFor,
|
|
62
62
|
storedDeps,
|
|
63
63
|
wholeList
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-N3JUHGKM.js";
|
|
65
65
|
import {
|
|
66
66
|
mcpHttpMarker
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-UZ63ORMY.js";
|
|
68
68
|
import {
|
|
69
69
|
instructions
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-54WLIPIQ.js";
|
|
71
71
|
import {
|
|
72
72
|
warmEmbedders
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-6A44ZZFC.js";
|
|
74
74
|
import {
|
|
75
75
|
stdinFieldOf
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-KHUXDSXN.js";
|
|
77
77
|
import {
|
|
78
78
|
openStore,
|
|
79
79
|
pdfPreviewLimits
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-7NYP4RBO.js";
|
|
81
81
|
import {
|
|
82
82
|
findCommand
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-SMU6NA7F.js";
|
|
84
84
|
import {
|
|
85
85
|
DEFAULT_OUTPUT_BYTES,
|
|
86
86
|
changesAuthorityAt,
|
|
@@ -97,22 +97,22 @@ import {
|
|
|
97
97
|
rootOf2 as rootOf,
|
|
98
98
|
sealed,
|
|
99
99
|
snakeKeys
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-UKBK2VWZ.js";
|
|
101
101
|
import {
|
|
102
102
|
withCaller
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-QWO7L4UH.js";
|
|
104
104
|
import {
|
|
105
105
|
readOnlyLockOf
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-KEN4B57V.js";
|
|
107
107
|
import {
|
|
108
108
|
typedCommand
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-LBZEZO32.js";
|
|
110
110
|
import {
|
|
111
111
|
isCliFailure
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-ZYAHZKYF.js";
|
|
113
113
|
import {
|
|
114
114
|
timezoneOf
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-RABUG4KA.js";
|
|
116
116
|
import {
|
|
117
117
|
description,
|
|
118
118
|
errorObjectOf,
|
|
@@ -129,19 +129,19 @@ import {
|
|
|
129
129
|
regex,
|
|
130
130
|
strictObject,
|
|
131
131
|
string
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-QVGEL66U.js";
|
|
133
133
|
import {
|
|
134
134
|
CliError,
|
|
135
135
|
visibleControls
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
137
137
|
import {
|
|
138
138
|
__name
|
|
139
139
|
} from "./chunk-ZVVMGPBJ.js";
|
|
140
140
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
142
142
|
import { randomUUID } from "node:crypto";
|
|
143
143
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
145
145
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
146
146
|
let held;
|
|
147
147
|
return {
|
|
@@ -160,7 +160,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
160
160
|
};
|
|
161
161
|
}, "agentLog");
|
|
162
162
|
|
|
163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
164
164
|
var LISTED = 100;
|
|
165
165
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
166
166
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -198,7 +198,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
198
198
|
});
|
|
199
199
|
}, "registerResources");
|
|
200
200
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
202
202
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
203
203
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
204
204
|
var MessengerSession = class {
|
|
@@ -273,7 +273,7 @@ var MessengerSession = class {
|
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
277
277
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
278
278
|
const _command = messenger.app.command;
|
|
279
279
|
return {
|
|
@@ -327,7 +327,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
327
327
|
};
|
|
328
328
|
}, "attachmentsTools");
|
|
329
329
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
331
331
|
var PHOTO_LIMIT = 512 * 1024;
|
|
332
332
|
var IMAGE_TYPES = [
|
|
333
333
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -383,7 +383,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
383
383
|
return new Uint8Array(Buffer.concat(chunks));
|
|
384
384
|
}, "readUpTo");
|
|
385
385
|
|
|
386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
387
387
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
388
388
|
stats_charts: tool({
|
|
389
389
|
title: "A chart from a chat's statistics",
|
|
@@ -420,14 +420,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
420
420
|
})
|
|
421
421
|
}), "statsTools");
|
|
422
422
|
|
|
423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
424
424
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
425
425
|
...messagesPhotoTools(messenger),
|
|
426
426
|
...attachmentsTools(messenger),
|
|
427
427
|
...statsTools(messenger)
|
|
428
428
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
429
429
|
|
|
430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
431
431
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
432
432
|
"streams",
|
|
433
433
|
"stdin",
|
|
@@ -545,7 +545,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
545
545
|
...messenger.diagnose ? { [messenger.provider]: await messenger.diagnose(command, context) } : {}
|
|
546
546
|
}), "local")
|
|
547
547
|
});
|
|
548
|
-
const
|
|
548
|
+
const skills = messenger.skill ? skillResources(app, messenger.skill) : [];
|
|
549
|
+
const skill = skills[0];
|
|
549
550
|
const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
|
|
550
551
|
const audit = /* @__PURE__ */ __name(async (call, caller) => {
|
|
551
552
|
if (!recalledAccount(app, provider, settings.profile, context.env))
|
|
@@ -715,10 +716,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
715
716
|
});
|
|
716
717
|
}, "assertRead")
|
|
717
718
|
});
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
server.registerResource(resource, uri, { title, description: description2, mimeType }, read);
|
|
721
|
-
}
|
|
719
|
+
for (const { uri, name: name2, title, description: description2, mimeType, read } of skills)
|
|
720
|
+
server.registerResource(name2, uri, { title, description: description2, mimeType }, read);
|
|
722
721
|
return server;
|
|
723
722
|
}, "build");
|
|
724
723
|
return { session, embedders, build, log, offered: [...commands.map((one) => one.command), ...pictured] };
|
|
@@ -744,7 +743,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
744
743
|
}, "serveOverStdio");
|
|
745
744
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
746
745
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
747
|
-
const { serveOverHttp } = await import("./serve-
|
|
746
|
+
const { serveOverHttp } = await import("./serve-NCJ52MY3.js");
|
|
748
747
|
const appName = messenger.app.command;
|
|
749
748
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
750
749
|
const listening = await serveOverHttp(build, {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|