@wirecat/tg-cli 0.117.0 → 0.119.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/contracts/wirecat.json +7621 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +15 -8
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-VNQ72MBK.js → adapter-NEQQOANM.js} +47 -48
- package/dist/bundle/{all-profiles-3W2UQTCK.js → all-profiles-QFT46FTF.js} +10 -10
- package/dist/bundle/{anthropic-DFUW2KTG.js → anthropic-UJ4RYCWU.js} +10 -8
- package/dist/bundle/{app-server-5XJIMLHB.js → app-server-NE3EL5IK.js} +43 -43
- package/dist/bundle/{bot-api-HRRBF3W6.js → bot-api-D4H5SCP5.js} +49 -49
- package/dist/bundle/{bot-history-GBH5XE4N.js → bot-history-KF2PUMWA.js} +18 -18
- package/dist/bundle/{bun-ZMOYGG6F.js → bun-F7MH5YKA.js} +2 -2
- package/dist/bundle/{bun-sqlite-6FZFMA7K.js → bun-sqlite-FYDJXUHF.js} +5 -5
- package/dist/bundle/{chunk-HZZGOLGP.js → chunk-23JGV5FQ.js} +11 -11
- package/dist/bundle/{chunk-PTIB7NEE.js → chunk-2BAJ6ORN.js} +1 -1
- package/dist/bundle/{chunk-L5WNE4WS.js → chunk-3EQ7USKJ.js} +2 -2
- package/dist/bundle/{chunk-YIXXH74F.js → chunk-3K65KTXD.js} +16 -3
- package/dist/bundle/{chunk-66FZBLRJ.js → chunk-4AACB23H.js} +13 -13
- package/dist/bundle/{chunk-NUCDEOFC.js → chunk-5EHJWIW4.js} +2 -2
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-5FEEFXJA.js} +1 -1
- package/dist/bundle/{chunk-HWYSRB64.js → chunk-65BWMPCI.js} +2 -2
- package/dist/bundle/{chunk-Q7O4CQDO.js → chunk-6ERQJRL2.js} +2 -2
- package/dist/bundle/{chunk-3GRX7WP6.js → chunk-6K5R3YPN.js} +2 -2
- package/dist/bundle/{chunk-KVTLT4V7.js → chunk-6OE5I3PR.js} +6 -6
- package/dist/bundle/{chunk-B2YPB5AE.js → chunk-72QLHHSO.js} +93 -29
- package/dist/bundle/{chunk-FEKXHILZ.js → chunk-7C6POLLO.js} +1 -1
- package/dist/bundle/{chunk-F6KBVIJP.js → chunk-7VUNJDYU.js} +22 -14
- package/dist/bundle/{chunk-EZTYJ43A.js → chunk-BXIPT2BO.js} +1 -1
- package/dist/bundle/{chunk-GFHNQBD2.js → chunk-CIDFV3IT.js} +1 -1
- package/dist/bundle/{chunk-C6TUVV7E.js → chunk-CX2WCEQU.js} +552 -222
- package/dist/bundle/{chunk-UYK5AXSW.js → chunk-D4Y2KL5V.js} +4 -4
- package/dist/bundle/{chunk-EL6I4WTB.js → chunk-D6YTBJY6.js} +1 -1
- package/dist/bundle/{chunk-X3CD475M.js → chunk-DQELQ7BL.js} +419 -198
- package/dist/bundle/{chunk-4JDGN6OD.js → chunk-F223KYWG.js} +1 -1
- package/dist/bundle/{chunk-RDH2QBUE.js → chunk-FJKP6MMP.js} +5 -3
- package/dist/bundle/{chunk-2452HCIV.js → chunk-FQ3C6DFV.js} +3 -3
- package/dist/bundle/{chunk-7Y3RUEVY.js → chunk-FQZSS3AB.js} +6 -6
- package/dist/bundle/{chunk-V47NPSSV.js → chunk-FRW3CWC7.js} +31 -29
- package/dist/bundle/{chunk-AG6HWPQP.js → chunk-G3MQOH6Z.js} +3 -3
- package/dist/bundle/{chunk-RDSLSV4M.js → chunk-HGMMRT4G.js} +2 -2
- package/dist/bundle/{chunk-SQXB5ZUZ.js → chunk-HPQQ76WF.js} +23 -5
- package/dist/bundle/{chunk-3RJYLN5V.js → chunk-HV5YYAJX.js} +158 -20
- package/dist/bundle/{chunk-3MQOLYAN.js → chunk-IAGX5VFL.js} +4 -4
- package/dist/bundle/{chunk-TFBHDIGY.js → chunk-JKKEMVW3.js} +18 -4
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-KBHK5UGL.js} +1 -1
- package/dist/bundle/{chunk-EPCFXKTX.js → chunk-KC4MQRAB.js} +34 -8
- package/dist/bundle/{chunk-VMCQGZIA.js → chunk-L33G5ARH.js} +2801 -718
- package/dist/bundle/{chunk-V2T7NYNU.js → chunk-MDLSI3EN.js} +25 -23
- package/dist/bundle/chunk-NDSRND3E.js +138 -0
- package/dist/bundle/{chunk-HORGORHK.js → chunk-OG2CG2GS.js} +12 -12
- package/dist/bundle/{chunk-ZPILMEFY.js → chunk-QD27C3BG.js} +8 -21
- package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-QG5U6HCI.js} +61 -21
- package/dist/bundle/{chunk-TG6ZYL4B.js → chunk-QQ3QZFFD.js} +8 -8
- package/dist/bundle/{chunk-56Q5JV3Z.js → chunk-QTFXYR5W.js} +24 -2
- package/dist/bundle/{chunk-FAHHERJ7.js → chunk-RGU2G3KL.js} +4 -4
- package/dist/bundle/{chunk-Z4QKLHJW.js → chunk-ROOUBFUW.js} +10148 -3906
- package/dist/bundle/{chunk-MLHKQDUN.js → chunk-RUNFFBJU.js} +872 -562
- package/dist/bundle/{chunk-G7B5UIE7.js → chunk-S3HAFJVC.js} +37 -11
- package/dist/bundle/{chunk-BXTDAGM4.js → chunk-SMHLQEE2.js} +2 -2
- package/dist/bundle/{chunk-JWIUK3SK.js → chunk-TEZKCH5B.js} +2 -2
- package/dist/bundle/{chunk-VRDVXXXD.js → chunk-TKHEVAEG.js} +9 -8
- package/dist/bundle/{chunk-MP7M6FFU.js → chunk-TT4CIXVH.js} +6 -6
- package/dist/bundle/{chunk-M7V5XRM6.js → chunk-UBCLVM7C.js} +3 -3
- package/dist/bundle/{chunk-YHZFGUAP.js → chunk-V5Z2JO6X.js} +19 -19
- package/dist/bundle/{chunk-6GFUL4OU.js → chunk-W2BIBPRU.js} +237 -38
- package/dist/bundle/{chunk-6HRN7BW6.js → chunk-X5PDWCG7.js} +1 -1
- package/dist/bundle/{chunk-AUBRELCM.js → chunk-XDMJVWWR.js} +3 -3
- package/dist/bundle/{chunk-EA2PGDER.js → chunk-XM3P7LLT.js} +2 -2
- package/dist/bundle/{chunk-UGPZCNYC.js → chunk-YMWPRHXG.js} +1411 -809
- package/dist/bundle/{chunk-2XLKZL6K.js → chunk-Z4CGZAFQ.js} +65 -31
- package/dist/bundle/{chunk-XW5C4TI7.js → chunk-ZEQ7ONPZ.js} +47 -1
- package/dist/bundle/command-contract-7TGMZRBE.js +33 -0
- package/dist/bundle/{decode-YMSOY2AY.js → decode-5N4ERCHC.js} +5 -5
- package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-TBGXBDHE.js} +10 -10
- package/dist/bundle/{echarts-7XS55TQY.js → echarts-YDEBAMXT.js} +2 -2
- package/dist/bundle/{embed-QTOE7NN3.js → embed-T7H62XFR.js} +6 -6
- package/dist/bundle/{embedder-KBBRYSNH.js → embedder-AW3O2TR3.js} +9 -9
- package/dist/bundle/{entry-HGEUYYMX.js → entry-L2LJ2VPY.js} +7 -7
- package/dist/bundle/{failure-4JUQFXJT.js → failure-AWHPW2HE.js} +2 -2
- package/dist/bundle/{first-run-CSGMEJXY.js → first-run-6PBZSRZU.js} +11 -11
- package/dist/bundle/first-screen-UKCD7D2R.js +31 -0
- package/dist/bundle/{instructions-S6ZXCTFH.js → instructions-C3NJERO7.js} +1 -1
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-CWLASTLV.js} +2 -2
- package/dist/bundle/{node-LCIUWXXG.js → node-P3CIIYWU.js} +2 -2
- package/dist/bundle/{node-sqlite-HL4WY4N2.js → node-sqlite-YVHMNRVA.js} +6 -6
- package/dist/bundle/{oauth-U4KIMDKG.js → oauth-5OQYA2SV.js} +7 -7
- package/dist/bundle/{open-EH7OS7M7.js → open-YGWUVSU7.js} +5 -5
- package/dist/bundle/{openai-W5TB3NA5.js → openai-U45JBQ6F.js} +16 -37
- package/dist/bundle/{process-3CVLTCTA.js → process-DCYX5EDG.js} +1 -1
- package/dist/bundle/{program-LOIZTK2P.js → program-UZBFH2EZ.js} +55 -52
- package/dist/bundle/{prompt-IDNH7N3W.js → prompt-HPVTPTFI.js} +7 -5
- package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-D7MCHGSV.js} +5 -5
- package/dist/bundle/{recognize-G5EWYXIF.js → recognize-IJCPFJ76.js} +4 -4
- package/dist/bundle/{remote-4XTBZVZD.js → remote-MWDYQWFW.js} +7 -7
- package/dist/bundle/{rerank-OWSTDLZN.js → rerank-SXG64475.js} +7 -7
- package/dist/bundle/{serve-YCPSEWP3.js → serve-KJQENHEH.js} +9 -9
- package/dist/bundle/{server-ODG4A2KK.js → server-MXVXZWN6.js} +35 -35
- package/dist/bundle/server-RTMCRKQF.js +60 -0
- package/dist/bundle/{state-OL2235G5.js → state-CKKJWH27.js} +6 -6
- package/dist/bundle/{store-5AACYNDM.js → store-R3BE4V56.js} +44 -13
- package/dist/bundle/store-maintenance-command-KDGBSBNU.js +49 -0
- package/dist/bundle/tg.js +38 -14
- package/dist/commands/account-removal.d.ts +3 -0
- package/dist/commands/account-removal.d.ts.map +1 -0
- package/dist/commands/account-removal.js +57 -0
- package/dist/commands/account-removal.js.map +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/http.d.ts +6 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +8 -0
- package/dist/http.js.map +1 -0
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +3 -0
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/registration.d.ts +1 -1
- package/dist/telegram/registration.d.ts.map +1 -1
- package/dist/telegram/registration.js +4 -1
- package/dist/telegram/registration.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -6
- package/dist/bundle/chunk-7NBUT62O.js +0 -33
- package/dist/bundle/command-contract-KMMHARMR.js +0 -33
- package/dist/bundle/first-screen-K2PBNJNE.js +0 -31
- package/dist/bundle/server-KELKX6S3.js +0 -60
- package/dist/bundle/store-maintenance-command-3J7WZYVN.js +0 -50
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-DWX4DE2I.js} +0 -0
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HV5YYAJX.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XM3P7LLT.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
refuseLacking,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YMWPRHXG.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -42,23 +42,26 @@ import {
|
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording,
|
|
44
44
|
traceOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-DQELQ7BL.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QD27C3BG.js";
|
|
52
52
|
import {
|
|
53
53
|
queryDescription
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CX2WCEQU.js";
|
|
55
|
+
import {
|
|
56
|
+
storeDamaged
|
|
57
|
+
} from "./chunk-ZEQ7ONPZ.js";
|
|
55
58
|
import {
|
|
56
59
|
MAX_BUFFERED_INPUT
|
|
57
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HGMMRT4G.js";
|
|
58
61
|
import {
|
|
59
62
|
captureStreams,
|
|
60
63
|
traceIdOf
|
|
61
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-V5Z2JO6X.js";
|
|
62
65
|
import {
|
|
63
66
|
COMPACT_FLAG,
|
|
64
67
|
SNAKE_CASE,
|
|
@@ -97,25 +100,25 @@ import {
|
|
|
97
100
|
unknown,
|
|
98
101
|
word,
|
|
99
102
|
writes
|
|
100
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-KC4MQRAB.js";
|
|
101
104
|
import {
|
|
102
105
|
CliError,
|
|
103
106
|
errorCodes
|
|
104
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-SMHLQEE2.js";
|
|
105
108
|
import {
|
|
106
109
|
__name
|
|
107
110
|
} from "./chunk-ZVVMGPBJ.js";
|
|
108
111
|
|
|
109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
110
113
|
import { Readable } from "node:stream";
|
|
111
114
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
113
116
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
114
117
|
var lintRuleSchema = strictObject({
|
|
115
118
|
id: word,
|
|
116
119
|
severity: picklist(LINT_SEVERITIES),
|
|
117
120
|
/** What the rule looks at; a violation's target names one of these. */
|
|
118
|
-
scope: picklist(["command", "group", "argument", "option", "flag", "key"]),
|
|
121
|
+
scope: picklist(["command", "group", "argument", "option", "flag", "key", "source"]),
|
|
119
122
|
summary: text
|
|
120
123
|
});
|
|
121
124
|
var defineLintRules = /* @__PURE__ */ __name((input) => parseRegistry("lint rules", array(lintRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineLintRules");
|
|
@@ -224,6 +227,18 @@ var LINT_RULES = defineLintRules([
|
|
|
224
227
|
severity: "high",
|
|
225
228
|
scope: "group",
|
|
226
229
|
summary: "the CLI keeps a failed run and reads it back: `runs list`, `runs show`, global `--record` and `--no-record`"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: "raw-network",
|
|
233
|
+
severity: "high",
|
|
234
|
+
scope: "source",
|
|
235
|
+
summary: "the CLI's own source reaches the network only through `hostFetch`: no `node:http`, `https`, `net`, `tls`, `undici`, `axios`, `got`, `node-fetch` or `ws`, no global `fetch`"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "undeclared-host",
|
|
239
|
+
severity: "medium",
|
|
240
|
+
scope: "source",
|
|
241
|
+
summary: "every `http(s)://` host in the CLI's own source is in the manifest's `network.hosts`"
|
|
227
242
|
}
|
|
228
243
|
]);
|
|
229
244
|
var baselineSchema = array(text);
|
|
@@ -237,7 +252,7 @@ var overrideSchema = strictObject({
|
|
|
237
252
|
});
|
|
238
253
|
var overridesSchema = array(overrideSchema);
|
|
239
254
|
|
|
240
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
255
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
241
256
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
242
257
|
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");
|
|
243
258
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -282,11 +297,13 @@ var parityGroupSchema = strictObject({
|
|
|
282
297
|
/** Permanent differences, each with its reason; they count against the override budget of the group. */
|
|
283
298
|
differences: array(strictObject({
|
|
284
299
|
rule: word,
|
|
285
|
-
/** `<clis> <path> <flag>`; with `absent`, only `<path> <flag>`: the CLI list is whoever else
|
|
300
|
+
/** `<clis> <path> <flag>`; with `absent` or `only`, only `<path> <flag>`: the CLI list is whoever else was compared. */
|
|
286
301
|
target: text,
|
|
287
302
|
expected: optional(text),
|
|
288
303
|
/** The CLI that lacks the path or flag by design; the rest must agree, so other CLIs joining do not stale it. */
|
|
289
304
|
absent: optional(word),
|
|
305
|
+
/** The one CLI that has the path or flag by design; every other CLI compared must lack it. */
|
|
306
|
+
only: optional(word),
|
|
290
307
|
reason: pipe(text, minLength(10, "say why, in a sentence"))
|
|
291
308
|
}))
|
|
292
309
|
});
|
|
@@ -294,7 +311,8 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
|
|
|
294
311
|
...duplicates(groups.map((group) => group.name)).map((name) => `"${name}" is listed twice`),
|
|
295
312
|
...groups.flatMap((group) => [
|
|
296
313
|
...duplicates(group.differences.map((entry) => `${entry.rule} ${entry.target}`)).map((both) => `${group.name}: "${both}" is listed twice`),
|
|
297
|
-
...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has
|
|
314
|
+
...group.differences.filter((entry) => (entry.absent || entry.only) && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`${entry.absent ? "absent" : "only"}\`, which measures the values itself; drop \`expected\``),
|
|
315
|
+
...group.differences.filter((entry) => entry.absent && entry.only).map((entry) => `${group.name}: "${entry.target}" has both \`absent\` and \`only\`; keep one`)
|
|
298
316
|
])
|
|
299
317
|
]), "defineParityGroups");
|
|
300
318
|
var MEMO_HAS_NO_PROFILES = [
|
|
@@ -309,13 +327,19 @@ var MEMO_HAS_NO_PROFILES = [
|
|
|
309
327
|
absent: "memo",
|
|
310
328
|
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)"
|
|
311
329
|
}));
|
|
330
|
+
var MEMO_DOCTOR_DEEP = {
|
|
331
|
+
rule: "same-path-contract",
|
|
332
|
+
target: "doctor --deep",
|
|
333
|
+
only: "memo",
|
|
334
|
+
reason: "memo's doctor --deep also checks its own store (cli-memo #672); cli-core's shared doctor leaves --deep to each CLI, and no other CLI has one"
|
|
335
|
+
};
|
|
312
336
|
var PARITY_GROUPS = defineParityGroups([
|
|
313
337
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
314
338
|
{
|
|
315
339
|
name: "all",
|
|
316
340
|
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
317
341
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
318
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
342
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
319
343
|
},
|
|
320
344
|
// mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
|
|
321
345
|
// differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
|
|
@@ -324,7 +348,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
324
348
|
name: "mail-shared",
|
|
325
349
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
|
|
326
350
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
|
|
327
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
351
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
328
352
|
},
|
|
329
353
|
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
330
354
|
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
@@ -340,7 +364,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
340
364
|
name: "shared-roots",
|
|
341
365
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
342
366
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
343
|
-
differences: MEMO_HAS_NO_PROFILES
|
|
367
|
+
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP]
|
|
344
368
|
}
|
|
345
369
|
]);
|
|
346
370
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -354,7 +378,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
354
378
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
355
379
|
]);
|
|
356
380
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
381
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
358
382
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
359
383
|
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");
|
|
360
384
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -370,7 +394,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
370
394
|
}
|
|
371
395
|
]);
|
|
372
396
|
|
|
373
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
397
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
374
398
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
375
399
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
376
400
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -392,7 +416,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
392
416
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
393
417
|
]);
|
|
394
418
|
|
|
395
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
419
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
396
420
|
var CALENDAR_FLAGS = [
|
|
397
421
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
398
422
|
{
|
|
@@ -400,14 +424,14 @@ var CALENDAR_FLAGS = [
|
|
|
400
424
|
value: "<date>",
|
|
401
425
|
role: "value",
|
|
402
426
|
type: "time",
|
|
403
|
-
meaning: "the first day of something that lasts whole days, such as an all-day event"
|
|
427
|
+
meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
|
|
404
428
|
},
|
|
405
429
|
{
|
|
406
430
|
name: "--end-date",
|
|
407
431
|
value: "<date>",
|
|
408
432
|
role: "value",
|
|
409
433
|
type: "time",
|
|
410
|
-
meaning: "the last day of something that lasts whole days, such as an all-day event"
|
|
434
|
+
meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
|
|
411
435
|
},
|
|
412
436
|
{ name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
|
|
413
437
|
{
|
|
@@ -466,7 +490,7 @@ var CALENDAR_FLAGS = [
|
|
|
466
490
|
}
|
|
467
491
|
];
|
|
468
492
|
|
|
469
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
493
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
470
494
|
var CRM_FLAGS = [
|
|
471
495
|
{
|
|
472
496
|
name: "--pipeline",
|
|
@@ -497,16 +521,119 @@ var CRM_FLAGS = [
|
|
|
497
521
|
type: "time",
|
|
498
522
|
meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
|
|
499
523
|
},
|
|
524
|
+
{
|
|
525
|
+
name: "--position",
|
|
526
|
+
value: "<title>",
|
|
527
|
+
role: "value",
|
|
528
|
+
type: "string",
|
|
529
|
+
meaning: "a person's job title on a relationship, stored as position; never the role"
|
|
530
|
+
},
|
|
500
531
|
{
|
|
501
532
|
name: "--owner",
|
|
502
533
|
value: "<user>",
|
|
503
534
|
role: "value",
|
|
504
535
|
type: "id",
|
|
505
536
|
meaning: "the CRM user a record is assigned to, by the CRM's id"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
name: "--status",
|
|
540
|
+
value: "<state>",
|
|
541
|
+
role: "value",
|
|
542
|
+
type: "choice",
|
|
543
|
+
meaning: "the state to put it in; the command lists the states"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
name: "--product",
|
|
547
|
+
value: "<product>",
|
|
548
|
+
role: "value",
|
|
549
|
+
type: "string",
|
|
550
|
+
meaning: "a product or service the owner sells or buys: product:<id>"
|
|
551
|
+
},
|
|
552
|
+
{ name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
|
|
553
|
+
{ name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
|
|
554
|
+
{
|
|
555
|
+
name: "--refund-of",
|
|
556
|
+
value: "<payment>",
|
|
557
|
+
role: "value",
|
|
558
|
+
type: "string",
|
|
559
|
+
meaning: "the payment this one gives money back for: payment:<id>"
|
|
560
|
+
},
|
|
561
|
+
{ name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
|
|
562
|
+
{
|
|
563
|
+
name: "--supplier",
|
|
564
|
+
value: "<party>",
|
|
565
|
+
role: "value",
|
|
566
|
+
type: "string",
|
|
567
|
+
meaning: "who supplies it: person:<uid> or organization:<id>"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
name: "--customer",
|
|
571
|
+
value: "<party>",
|
|
572
|
+
role: "value",
|
|
573
|
+
type: "string",
|
|
574
|
+
meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: "--trial-end-date",
|
|
578
|
+
value: "<date>",
|
|
579
|
+
role: "value",
|
|
580
|
+
type: "time",
|
|
581
|
+
meaning: "the day a free trial ends, YYYY-MM-DD"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
name: "--notice-days",
|
|
585
|
+
value: "<days>",
|
|
586
|
+
role: "value",
|
|
587
|
+
type: "count",
|
|
588
|
+
meaning: "how many days before its end a party must say it will not go on",
|
|
589
|
+
unit: "days"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
name: "--auto-renew",
|
|
593
|
+
value: "<on|off>",
|
|
594
|
+
role: "value",
|
|
595
|
+
type: "choice",
|
|
596
|
+
meaning: "it renews by itself at its end, or it does not"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
name: "--opening-balance",
|
|
600
|
+
value: "<decimal>",
|
|
601
|
+
role: "value",
|
|
602
|
+
type: "string",
|
|
603
|
+
meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
name: "--opening-date",
|
|
607
|
+
value: "<date>",
|
|
608
|
+
role: "value",
|
|
609
|
+
type: "time",
|
|
610
|
+
meaning: "the day of the opening balance, YYYY-MM-DD"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "--institution",
|
|
614
|
+
value: "<text>",
|
|
615
|
+
role: "value",
|
|
616
|
+
type: "string",
|
|
617
|
+
meaning: "the bank or other company that holds it, by name"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
name: "--unit",
|
|
621
|
+
value: "<text>",
|
|
622
|
+
role: "value",
|
|
623
|
+
type: "string",
|
|
624
|
+
meaning: "what one of it is counted in, such as hour or piece"
|
|
625
|
+
},
|
|
626
|
+
{ name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
|
|
627
|
+
{
|
|
628
|
+
name: "--archived",
|
|
629
|
+
value: "<on|off>",
|
|
630
|
+
role: "value",
|
|
631
|
+
type: "choice",
|
|
632
|
+
meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
|
|
506
633
|
}
|
|
507
634
|
];
|
|
508
635
|
|
|
509
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
636
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
510
637
|
var HOW_FLAGS = [
|
|
511
638
|
{
|
|
512
639
|
name: "--limit",
|
|
@@ -740,6 +867,7 @@ var HOW_FLAGS = [
|
|
|
740
867
|
type: "switch",
|
|
741
868
|
meaning: "record the action as the owner's although an agent's terminal runs the tool"
|
|
742
869
|
},
|
|
870
|
+
{ name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
|
|
743
871
|
{
|
|
744
872
|
name: "--allow-any-file",
|
|
745
873
|
role: "mode",
|
|
@@ -1501,7 +1629,39 @@ var HOW_FLAGS = [
|
|
|
1501
1629
|
}
|
|
1502
1630
|
];
|
|
1503
1631
|
|
|
1504
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1632
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
1633
|
+
var KNOWLEDGE_FLAGS = [
|
|
1634
|
+
{
|
|
1635
|
+
name: "--quote",
|
|
1636
|
+
value: "<ref=words...>",
|
|
1637
|
+
role: "value",
|
|
1638
|
+
type: "list",
|
|
1639
|
+
meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
name: "--suggest",
|
|
1643
|
+
value: "<text>",
|
|
1644
|
+
role: "value",
|
|
1645
|
+
type: "string",
|
|
1646
|
+
meaning: "wording offered for the owner to take or leave; it decides nothing"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
name: "--keep-copy",
|
|
1650
|
+
role: "mode",
|
|
1651
|
+
type: "switch",
|
|
1652
|
+
meaning: "keep a copy of the original file as well as its text"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
name: "--max-chars",
|
|
1656
|
+
value: "<n>",
|
|
1657
|
+
role: "budget",
|
|
1658
|
+
type: "count",
|
|
1659
|
+
meaning: "at most this many characters read",
|
|
1660
|
+
unit: "characters"
|
|
1661
|
+
}
|
|
1662
|
+
];
|
|
1663
|
+
|
|
1664
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
1505
1665
|
var MAIL_FLAGS = [
|
|
1506
1666
|
{
|
|
1507
1667
|
name: "--cc",
|
|
@@ -1531,7 +1691,7 @@ var MAIL_FLAGS = [
|
|
|
1531
1691
|
}
|
|
1532
1692
|
];
|
|
1533
1693
|
|
|
1534
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1694
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
1535
1695
|
var PRIVACY_FLAGS = [
|
|
1536
1696
|
{
|
|
1537
1697
|
name: "--about-text",
|
|
@@ -1592,7 +1752,7 @@ var PRIVACY_FLAGS = [
|
|
|
1592
1752
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1593
1753
|
];
|
|
1594
1754
|
|
|
1595
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1755
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
1596
1756
|
var SCHEDULE_FLAGS = [
|
|
1597
1757
|
{
|
|
1598
1758
|
name: "--notify-on",
|
|
@@ -1618,7 +1778,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1618
1778
|
}
|
|
1619
1779
|
];
|
|
1620
1780
|
|
|
1621
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1781
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
1622
1782
|
var WHAT_FLAGS = [
|
|
1623
1783
|
{
|
|
1624
1784
|
name: "--analysis-provider",
|
|
@@ -2344,7 +2504,14 @@ var WHAT_FLAGS = [
|
|
|
2344
2504
|
type: "id",
|
|
2345
2505
|
meaning: "the stored calendar event it is linked to, or none to unlink"
|
|
2346
2506
|
},
|
|
2347
|
-
{
|
|
2507
|
+
{
|
|
2508
|
+
name: "--every",
|
|
2509
|
+
value: "<duration>",
|
|
2510
|
+
role: "value",
|
|
2511
|
+
type: "duration",
|
|
2512
|
+
otherValues: ["count-unit"],
|
|
2513
|
+
meaning: "repeat this often: a length of time for a timer (<duration>), a count and a calendar unit for a charge, such as 1-month (<count-unit>)"
|
|
2514
|
+
},
|
|
2348
2515
|
{
|
|
2349
2516
|
name: "--evidence",
|
|
2350
2517
|
value: "<ref...>",
|
|
@@ -2415,7 +2582,15 @@ var WHAT_FLAGS = [
|
|
|
2415
2582
|
meaning: "what kind of thing it is; the command lists the kinds"
|
|
2416
2583
|
},
|
|
2417
2584
|
{ name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
|
|
2585
|
+
{
|
|
2586
|
+
name: "--button",
|
|
2587
|
+
value: "<text=data>",
|
|
2588
|
+
role: "value",
|
|
2589
|
+
type: "string",
|
|
2590
|
+
meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
|
|
2591
|
+
},
|
|
2418
2592
|
{ name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
|
|
2593
|
+
{ name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
|
|
2419
2594
|
{
|
|
2420
2595
|
name: "--notification",
|
|
2421
2596
|
value: "<text>",
|
|
@@ -2450,6 +2625,13 @@ var WHAT_FLAGS = [
|
|
|
2450
2625
|
},
|
|
2451
2626
|
{ name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
|
|
2452
2627
|
{ name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
|
|
2628
|
+
{
|
|
2629
|
+
name: "--label",
|
|
2630
|
+
value: "<label>",
|
|
2631
|
+
role: "value",
|
|
2632
|
+
type: "string",
|
|
2633
|
+
meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
|
|
2634
|
+
},
|
|
2453
2635
|
{
|
|
2454
2636
|
name: "--scope",
|
|
2455
2637
|
value: "<scope>",
|
|
@@ -2580,7 +2762,7 @@ var WHAT_FLAGS = [
|
|
|
2580
2762
|
}
|
|
2581
2763
|
];
|
|
2582
2764
|
|
|
2583
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2765
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.87.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
|
|
2584
2766
|
var FLAG_TYPES = [
|
|
2585
2767
|
"switch",
|
|
2586
2768
|
"count",
|
|
@@ -2668,6 +2850,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
|
|
|
2668
2850
|
var verbs = [
|
|
2669
2851
|
["list", "show many"],
|
|
2670
2852
|
["show", "show one"],
|
|
2853
|
+
["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
|
|
2671
2854
|
["search", "find by text; the description says where it looks"],
|
|
2672
2855
|
["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
|
|
2673
2856
|
["related", "what is nearest in meaning to one thing, without a query"],
|
|
@@ -2698,7 +2881,7 @@ var verbs = [
|
|
|
2698
2881
|
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2699
2882
|
["install", "install a system unit"],
|
|
2700
2883
|
["uninstall", "remove a system unit"],
|
|
2701
|
-
["cancel", "stop a job
|
|
2884
|
+
["cancel", "stop a job, a pending thing or a subscription"],
|
|
2702
2885
|
[
|
|
2703
2886
|
"sync",
|
|
2704
2887
|
"bring the local store up to date from the source: only what changed, or the whole list where the source cannot say; a mirror syncs both ways"
|
|
@@ -2721,6 +2904,10 @@ var verbs = [
|
|
|
2721
2904
|
// Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
|
|
2722
2905
|
["link", "record that two identities are one person"],
|
|
2723
2906
|
["unlink", "undo a link"],
|
|
2907
|
+
[
|
|
2908
|
+
"match",
|
|
2909
|
+
"link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
|
|
2910
|
+
],
|
|
2724
2911
|
["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
|
|
2725
2912
|
["lookup", "ask the messenger who is behind a phone number"],
|
|
2726
2913
|
[
|
|
@@ -2757,6 +2944,7 @@ var verbs = [
|
|
|
2757
2944
|
["assign", "name the person responsible for work, with their task role"],
|
|
2758
2945
|
["reverse", "record that an accepted decision no longer holds, without replacing it"],
|
|
2759
2946
|
["invalidate", "mark a derived record whose supporting evidence no longer holds"],
|
|
2947
|
+
["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
|
|
2760
2948
|
["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
|
|
2761
2949
|
["confirm", "the owner accepts what an agent proposed"],
|
|
2762
2950
|
["reject", "the owner refuses what an agent proposed"],
|
|
@@ -2806,6 +2994,7 @@ var collections = [
|
|
|
2806
2994
|
["topics", "forum topics in a group"],
|
|
2807
2995
|
["models", "local or remote models"],
|
|
2808
2996
|
["tags", "labels the owner puts on things"],
|
|
2997
|
+
["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
|
|
2809
2998
|
["searches", "the owner's saved searches"],
|
|
2810
2999
|
["copies", "tables kept aside by a repair"],
|
|
2811
3000
|
["tables", "the tables of the local store, with their kind, row count and size"],
|
|
@@ -2816,6 +3005,7 @@ var collections = [
|
|
|
2816
3005
|
["tracking", "the chats whose member lists are fetched daily"],
|
|
2817
3006
|
["documents", "files imported from Google Drive or Docs, or linked in a chat"],
|
|
2818
3007
|
["notes", "text the owner writes, or files from a notes folder"],
|
|
3008
|
+
["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
|
|
2819
3009
|
["projects", "the owner's work units with a task key"],
|
|
2820
3010
|
[
|
|
2821
3011
|
"annotations",
|
|
@@ -2833,7 +3023,14 @@ var collections = [
|
|
|
2833
3023
|
["leads", "possible customers not yet qualified into a deal"],
|
|
2834
3024
|
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2835
3025
|
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2836
|
-
["products", "goods and services the owner sells, with their prices"],
|
|
3026
|
+
["products", "goods and services the owner sells or buys, with their prices"],
|
|
3027
|
+
["lines", "the rows of an order or an invoice: what, how many and at what price"],
|
|
3028
|
+
["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
|
|
3029
|
+
["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
|
|
3030
|
+
["prices", "what a thing costs over time, each price from its start date"],
|
|
3031
|
+
["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
|
|
3032
|
+
["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
|
|
3033
|
+
["splits", "parts of one transaction, each with its own amount and category"],
|
|
2837
3034
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2838
3035
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2839
3036
|
[
|
|
@@ -2843,6 +3040,7 @@ var collections = [
|
|
|
2843
3040
|
["facts", "what happened, with evidence"],
|
|
2844
3041
|
["memories", "what an agent concluded, with evidence and scope"],
|
|
2845
3042
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
3043
|
+
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
2846
3044
|
["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
|
|
2847
3045
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
2848
3046
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
@@ -2973,12 +3171,13 @@ var VOCABULARY = defineVocabulary({
|
|
|
2973
3171
|
...PRIVACY_FLAGS,
|
|
2974
3172
|
...CALENDAR_FLAGS,
|
|
2975
3173
|
...MAIL_FLAGS,
|
|
3174
|
+
...KNOWLEDGE_FLAGS,
|
|
2976
3175
|
...CRM_FLAGS,
|
|
2977
3176
|
...SCHEDULE_FLAGS
|
|
2978
3177
|
]
|
|
2979
3178
|
});
|
|
2980
3179
|
|
|
2981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2982
3181
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2983
3182
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2984
3183
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3201,7 +3400,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3201
3400
|
}
|
|
3202
3401
|
}, "runCommandForAgent");
|
|
3203
3402
|
|
|
3204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3205
3404
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3206
3405
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3207
3406
|
var message = pipe(
|
|
@@ -3457,10 +3656,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
|
|
|
3457
3656
|
var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
3458
3657
|
const judged = judgedEffects(effects);
|
|
3459
3658
|
const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
|
|
3460
|
-
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3659
|
+
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3461
3660
|
}, "failed");
|
|
3462
3661
|
|
|
3463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3464
3663
|
import { randomUUID } from "node:crypto";
|
|
3465
3664
|
var MATCHES = 8;
|
|
3466
3665
|
var ANSWER = answerSchema();
|
|
@@ -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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D6YTBJY6.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V5Z2JO6X.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QD27C3BG.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|