@wirecat/cli-memo 0.131.47 → 0.131.48
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/memo.js +2 -2
- package/dist/bundle/{all-profiles-75EGCXK3.js → all-profiles-5YVSKBEV.js} +9 -9
- package/dist/bundle/{anthropic-PTAYBCPR.js → anthropic-BMK6F36V.js} +6 -6
- package/dist/bundle/{app-server-YSUBXGGB.js → app-server-PUBWKHUG.js} +42 -42
- package/dist/bundle/auto-FXCXORUF.js +86 -0
- package/dist/bundle/{bun-3AIG5ML4.js → bun-ZBM364I6.js} +2 -2
- package/dist/bundle/{bun-sqlite-5FCGI6EO.js → bun-sqlite-YLBILWBE.js} +5 -5
- package/dist/bundle/{chunk-GA3KFYEZ.js → chunk-2O32QNK3.js} +7 -7
- package/dist/bundle/{chunk-KWM7HLAI.js → chunk-3A3KPJHP.js} +4 -4
- package/dist/bundle/{chunk-N63KZFH4.js → chunk-3LA6OE35.js} +9 -9
- package/dist/bundle/{chunk-DWBTCOF2.js → chunk-4FDK7LVF.js} +7 -7
- package/dist/bundle/{chunk-25RDNYKZ.js → chunk-5BDWOMH6.js} +6 -6
- package/dist/bundle/{chunk-N5QQFDNV.js → chunk-66KZBRZN.js} +3 -3
- package/dist/bundle/{chunk-JY34MQW4.js → chunk-7RNHFNHX.js} +4 -4
- package/dist/bundle/{chunk-V3B5COFP.js → chunk-ADV7DNGM.js} +5 -5
- package/dist/bundle/{chunk-G4W42RGE.js → chunk-BRLVX4V6.js} +1 -1
- package/dist/bundle/{chunk-RZ54DSVU.js → chunk-BXTDAGM4.js} +2 -2
- package/dist/bundle/{chunk-ELKK5M66.js → chunk-C3I6L7JZ.js} +6 -6
- package/dist/bundle/{chunk-MCMEBL3C.js → chunk-C6UTJATA.js} +30 -14
- package/dist/bundle/{chunk-UFVGAFID.js → chunk-CSPAEYKK.js} +4 -4
- package/dist/bundle/{chunk-FSAMZHIM.js → chunk-DGLSE6XA.js} +6 -6
- package/dist/bundle/{chunk-32QM6X5H.js → chunk-DHO2JWF7.js} +3 -3
- package/dist/bundle/{chunk-SYTYLLYO.js → chunk-DMI3SFLF.js} +2 -2
- package/dist/bundle/{chunk-3HPFTKDH.js → chunk-DNZYXNMB.js} +4 -4
- package/dist/bundle/{chunk-Y4ZXDJQF.js → chunk-DPQL5JK6.js} +2 -2
- package/dist/bundle/{chunk-6TKWJKPS.js → chunk-E4YCKC3F.js} +12 -12
- package/dist/bundle/{chunk-SN63VOE6.js → chunk-EBNNONF5.js} +8 -8
- package/dist/bundle/{chunk-6QNPOBR5.js → chunk-EGVRMA2C.js} +198 -81
- package/dist/bundle/{chunk-GQLSVXS2.js → chunk-EQ237UYC.js} +22 -22
- package/dist/bundle/{chunk-ZKH6LC5P.js → chunk-F7S25YVA.js} +9 -9
- package/dist/bundle/{chunk-DMTLG2GD.js → chunk-FTRFN3MU.js} +8 -8
- package/dist/bundle/{chunk-W2JVP7GK.js → chunk-H4726KFZ.js} +1 -1
- package/dist/bundle/{chunk-UE4GMPBY.js → chunk-HE56X542.js} +1 -1
- package/dist/bundle/{chunk-IPMBB6W5.js → chunk-IGYOKYG7.js} +4 -4
- package/dist/bundle/{chunk-W3T45MMN.js → chunk-IHFK634F.js} +8 -8
- package/dist/bundle/{chunk-GOFPCOEI.js → chunk-IWEL7QCT.js} +11 -11
- package/dist/bundle/{chunk-V6OYLCCM.js → chunk-J737T3RM.js} +3 -3
- package/dist/bundle/{chunk-CODD5SXC.js → chunk-KNUUZW42.js} +29 -29
- package/dist/bundle/{chunk-HVTW2M6T.js → chunk-LDHFV34C.js} +2 -2
- package/dist/bundle/{chunk-LE7NROV6.js → chunk-LDXCFBIC.js} +34 -34
- package/dist/bundle/{chunk-YMK35KVV.js → chunk-MIMLBSUQ.js} +2 -2
- package/dist/bundle/{chunk-J324GKJM.js → chunk-MKLDUZ7N.js} +2 -2
- package/dist/bundle/{chunk-MMJDQQFX.js → chunk-MN3SFFTU.js} +287 -277
- package/dist/bundle/{chunk-U35N3EC7.js → chunk-NWRITJ7F.js} +2 -2
- package/dist/bundle/{chunk-2R2Z2VWL.js → chunk-O3ZOYXH3.js} +20 -20
- package/dist/bundle/{chunk-CID4MNRQ.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-I2RDACUF.js → chunk-PUZ2G2KS.js} +8 -8
- package/dist/bundle/{chunk-Y5CAKD4X.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-PGVADNDD.js → chunk-QTBFV5RL.js} +3 -3
- package/dist/bundle/{chunk-5N6HWFXN.js → chunk-QUQJZSRF.js} +320 -275
- package/dist/bundle/{chunk-R44PUK7G.js → chunk-RCEDN42Q.js} +1 -1
- package/dist/bundle/{chunk-ZLIARJU4.js → chunk-RSJJGXZP.js} +1 -1
- package/dist/bundle/{chunk-ILK5BCBB.js → chunk-SGDTAVMU.js} +2 -2
- package/dist/bundle/{chunk-KLBZJZD2.js → chunk-T56R3TF2.js} +216 -143
- package/dist/bundle/{chunk-EFQCDCLY.js → chunk-TW643BIA.js} +99 -74
- package/dist/bundle/{chunk-MSBRZ5QD.js → chunk-TYOZC3BU.js} +3 -3
- package/dist/bundle/{chunk-BNIWLVWG.js → chunk-TZROQCQ5.js} +18 -4
- package/dist/bundle/{chunk-F4HMPMET.js → chunk-U2EFWFDN.js} +10 -10
- package/dist/bundle/{chunk-EVZI54B5.js → chunk-U64G664E.js} +6 -6
- package/dist/bundle/{chunk-XRRPQCTS.js → chunk-UHWQ2YXW.js} +1 -1
- package/dist/bundle/{chunk-HCZV537M.js → chunk-UK2MMZFW.js} +2 -2
- package/dist/bundle/{chunk-HYEYRFWX.js → chunk-VICARVCN.js} +1 -1
- package/dist/bundle/{chunk-OSCRP52P.js → chunk-VJJCF52V.js} +640 -399
- package/dist/bundle/{chunk-G3YSCD77.js → chunk-VOJU5FVA.js} +173 -156
- package/dist/bundle/{chunk-LER7G4XY.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-DS4DOK75.js → chunk-X3KMQW2Z.js} +25 -24
- package/dist/bundle/{chunk-6IVHND3S.js → chunk-X7UITQ66.js} +5 -5
- package/dist/bundle/{chunk-DDADFHR7.js → chunk-XR4N2MYB.js} +13 -13
- package/dist/bundle/{chunk-U75ANK5K.js → chunk-YBN7UF2Y.js} +1 -1
- package/dist/bundle/{chunk-IPLPMD6H.js → chunk-YO7AUGUT.js} +2 -2
- package/dist/bundle/{chunk-4LWX2WOB.js → chunk-YZEIVLAG.js} +4 -4
- package/dist/bundle/command-contract-BRZAKY6L.js +32 -0
- package/dist/bundle/{decode-F2A2BLIA.js → decode-WW5ZMB5R.js} +5 -5
- package/dist/bundle/{dispatch-MLRETSNQ.js → dispatch-HCRXCPCF.js} +8 -8
- package/dist/bundle/{echarts-JL55HJCM.js → echarts-ODD3E2RQ.js} +2 -2
- package/dist/bundle/{embed-74KVORNN.js → embed-3ETM2WYU.js} +6 -6
- package/dist/bundle/{embedder-GACNPCZN.js → embedder-6YL3WFBR.js} +9 -9
- package/dist/bundle/{entry-7FI2H4RQ.js → entry-F2UGXKZ3.js} +7 -7
- package/dist/bundle/{failure-UJBGB2GP.js → failure-G4DCTWFD.js} +2 -2
- package/dist/bundle/failure-X7CYCJWD.js +66 -0
- package/dist/bundle/{first-run-D4VBIJ7H.js → first-run-OHQHOP5U.js} +11 -11
- package/dist/bundle/first-screen-ULF26GYG.js +30 -0
- package/dist/bundle/{instructions-QNPIVGKX.js → instructions-RS5VERM7.js} +1 -1
- package/dist/bundle/{mcp-YMXA6IH6.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/mcp-TS2UAN5I.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-SPFML2D5.js → node-BU6NHYHF.js} +2 -2
- package/dist/bundle/{node-sqlite-T3KILRCP.js → node-sqlite-WAF44CWS.js} +6 -6
- package/dist/bundle/{oauth-ZOGSHZF3.js → oauth-T7RCNIYO.js} +7 -7
- package/dist/bundle/{open-XXFVCGCA.js → open-QLX2IVTC.js} +5 -5
- package/dist/bundle/{openai-JRHZLFKD.js → openai-O25HCJEY.js} +10 -10
- package/dist/bundle/{process-OGYYVVLG.js → process-SB2X3TKY.js} +1 -1
- package/dist/bundle/{program-EFCQACPD.js → program-SDLIDODQ.js} +62 -62
- package/dist/bundle/{prompt-53D5WVD3.js → prompt-OHVHUNV4.js} +5 -5
- package/dist/bundle/{recognize-7GYZKJCD.js → recognize-SESVG7O3.js} +4 -4
- package/dist/bundle/{remote-V5GUFZCG.js → remote-DNGLVDYJ.js} +7 -7
- package/dist/bundle/{rerank-FUNVBYFI.js → rerank-SF3OUPEB.js} +7 -7
- package/dist/bundle/{serve-ZLUYFAXC.js → serve-6RK7QFZ2.js} +9 -9
- package/dist/bundle/server-JKWE764O.js +61 -0
- package/dist/bundle/{server-HJRMD3XD.js → server-N6PCX7K7.js} +57 -57
- package/dist/bundle/server-RKGTOY4D.js +48 -0
- package/dist/bundle/{state-4P7H6KBM.js → state-J6WLL4TQ.js} +6 -6
- package/dist/bundle/{store-NILJK24C.js → store-R2PHK3FR.js} +13 -13
- package/dist/bundle/store-maintenance-command-LRZ5R3UM.js +48 -0
- package/dist/bundle/update-RV2WSULI.js +69 -0
- package/dist/doctor/command.d.ts +2 -0
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/auto-GB35FRTV.js +0 -86
- package/dist/bundle/command-contract-YYILWWYQ.js +0 -32
- package/dist/bundle/failure-AHPPXHAW.js +0 -66
- package/dist/bundle/first-screen-D7Q2U7VP.js +0 -30
- package/dist/bundle/mcp-AFXHH33V.js +0 -90
- package/dist/bundle/server-4OJC7ZWM.js +0 -61
- package/dist/bundle/server-CGUUZBLB.js +0 -48
- package/dist/bundle/store-maintenance-command-VP7CIBSS.js +0 -48
- package/dist/bundle/update-NPK4DT2E.js +0 -69
- /package/dist/bundle/{chunk-AT5Y62SD.js → chunk-IO44XLFM.js} +0 -0
- /package/dist/bundle/{chunk-JPGEFBRW.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C6UTJATA.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MIMLBSUQ.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-QUQJZSRF.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -42,23 +42,23 @@ import {
|
|
|
42
42
|
sealed,
|
|
43
43
|
startRecording,
|
|
44
44
|
traceOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VOJU5FVA.js";
|
|
46
46
|
import {
|
|
47
47
|
currentCaller,
|
|
48
48
|
keepsSuccess,
|
|
49
49
|
runContextOf,
|
|
50
50
|
withCaller
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-F7S25YVA.js";
|
|
52
52
|
import {
|
|
53
53
|
queryDescription
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-TW643BIA.js";
|
|
55
55
|
import {
|
|
56
56
|
MAX_BUFFERED_INPUT
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-UK2MMZFW.js";
|
|
58
58
|
import {
|
|
59
59
|
captureStreams,
|
|
60
60
|
traceIdOf
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-O3ZOYXH3.js";
|
|
62
62
|
import {
|
|
63
63
|
COMPACT_FLAG,
|
|
64
64
|
SNAKE_CASE,
|
|
@@ -97,19 +97,19 @@ import {
|
|
|
97
97
|
unknown,
|
|
98
98
|
word,
|
|
99
99
|
writes
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-EBNNONF5.js";
|
|
101
101
|
import {
|
|
102
102
|
CliError,
|
|
103
103
|
errorCodes
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-BXTDAGM4.js";
|
|
105
105
|
import {
|
|
106
106
|
__name
|
|
107
107
|
} from "./chunk-ZVVMGPBJ.js";
|
|
108
108
|
|
|
109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
110
110
|
import { Readable } from "node:stream";
|
|
111
111
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
113
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
114
114
|
var lintRuleSchema = strictObject({
|
|
115
115
|
id: word,
|
|
@@ -237,7 +237,7 @@ var overrideSchema = strictObject({
|
|
|
237
237
|
});
|
|
238
238
|
var overridesSchema = array(overrideSchema);
|
|
239
239
|
|
|
240
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
240
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
241
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
242
242
|
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
243
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -333,6 +333,14 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
333
333
|
members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
|
|
334
334
|
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
335
335
|
differences: []
|
|
336
|
+
},
|
|
337
|
+
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call recordings, not
|
|
338
|
+
// zoom-cli's: both are compared on the root commands every CLI shares, the way gcal and mail are on theirs.
|
|
339
|
+
{
|
|
340
|
+
name: "shared-roots",
|
|
341
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
|
|
342
|
+
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
343
|
+
differences: MEMO_HAS_NO_PROFILES
|
|
336
344
|
}
|
|
337
345
|
]);
|
|
338
346
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -346,7 +354,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
346
354
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
347
355
|
]);
|
|
348
356
|
|
|
349
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
350
358
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
351
359
|
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");
|
|
352
360
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -362,7 +370,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
362
370
|
}
|
|
363
371
|
]);
|
|
364
372
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
373
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
366
374
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
367
375
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
368
376
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -384,7 +392,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
384
392
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
385
393
|
]);
|
|
386
394
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
395
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
388
396
|
var CALENDAR_FLAGS = [
|
|
389
397
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
390
398
|
{
|
|
@@ -458,7 +466,47 @@ var CALENDAR_FLAGS = [
|
|
|
458
466
|
}
|
|
459
467
|
];
|
|
460
468
|
|
|
461
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
469
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
+
var CRM_FLAGS = [
|
|
471
|
+
{
|
|
472
|
+
name: "--pipeline",
|
|
473
|
+
value: "<pipeline>",
|
|
474
|
+
role: "value",
|
|
475
|
+
type: "string",
|
|
476
|
+
meaning: "a CRM pipeline: pipeline:<id>, or a name only one pipeline has"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
name: "--stage",
|
|
480
|
+
value: "<stage>",
|
|
481
|
+
role: "value",
|
|
482
|
+
type: "string",
|
|
483
|
+
meaning: "a stage of the record's pipeline, by the CRM's id or its name"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "--amount",
|
|
487
|
+
value: "<decimal>",
|
|
488
|
+
role: "value",
|
|
489
|
+
type: "string",
|
|
490
|
+
meaning: "a sum of money as a decimal, such as 1500.50, in --currency"
|
|
491
|
+
},
|
|
492
|
+
{ name: "--currency", value: "<code>", role: "value", type: "string", meaning: "an ISO 4217 code, such as EUR" },
|
|
493
|
+
{
|
|
494
|
+
name: "--close-date",
|
|
495
|
+
value: "<date>",
|
|
496
|
+
role: "value",
|
|
497
|
+
type: "time",
|
|
498
|
+
meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: "--owner",
|
|
502
|
+
value: "<user>",
|
|
503
|
+
role: "value",
|
|
504
|
+
type: "id",
|
|
505
|
+
meaning: "the CRM user a record is assigned to, by the CRM's id"
|
|
506
|
+
}
|
|
507
|
+
];
|
|
508
|
+
|
|
509
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
462
510
|
var HOW_FLAGS = [
|
|
463
511
|
{
|
|
464
512
|
name: "--limit",
|
|
@@ -783,6 +831,7 @@ var HOW_FLAGS = [
|
|
|
783
831
|
meaning: "tell the people it concerns about it: the chat's members, or an event's attendees"
|
|
784
832
|
},
|
|
785
833
|
{ name: "--no-notify", role: "mode", type: "switch", meaning: "tell nobody about it" },
|
|
834
|
+
{ name: "--open-new", role: "mode", type: "switch", meaning: "a read again for tasks also opens new tasks" },
|
|
786
835
|
{ name: "--offline", role: "mode", type: "switch", meaning: "answer from what was recorded and never connect" },
|
|
787
836
|
{
|
|
788
837
|
name: "--operation-id",
|
|
@@ -1452,7 +1501,7 @@ var HOW_FLAGS = [
|
|
|
1452
1501
|
}
|
|
1453
1502
|
];
|
|
1454
1503
|
|
|
1455
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1504
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
1456
1505
|
var MAIL_FLAGS = [
|
|
1457
1506
|
{
|
|
1458
1507
|
name: "--cc",
|
|
@@ -1482,7 +1531,94 @@ var MAIL_FLAGS = [
|
|
|
1482
1531
|
}
|
|
1483
1532
|
];
|
|
1484
1533
|
|
|
1485
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1534
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
+
var PRIVACY_FLAGS = [
|
|
1536
|
+
{
|
|
1537
|
+
name: "--about-text",
|
|
1538
|
+
value: "<who>",
|
|
1539
|
+
role: "value",
|
|
1540
|
+
type: "choice",
|
|
1541
|
+
meaning: "who sees the about text: everyone, contacts or nobody"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
name: "--calls",
|
|
1545
|
+
value: "<who>",
|
|
1546
|
+
role: "value",
|
|
1547
|
+
type: "choice",
|
|
1548
|
+
meaning: "whose calls ring: everyone, contacts or nobody"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
name: "--chat-invites",
|
|
1552
|
+
value: "<who>",
|
|
1553
|
+
role: "value",
|
|
1554
|
+
type: "choice",
|
|
1555
|
+
meaning: "who may add the account to groups and channels: everyone, contacts or nobody"
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
name: "--find-by-phone",
|
|
1559
|
+
value: "<who>",
|
|
1560
|
+
role: "value",
|
|
1561
|
+
type: "choice",
|
|
1562
|
+
meaning: "who finds the account by its number: everyone, contacts or nobody"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
name: "--hide-online",
|
|
1566
|
+
value: "<on|off>",
|
|
1567
|
+
role: "value",
|
|
1568
|
+
type: "choice",
|
|
1569
|
+
meaning: "hide online status and last seen"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
name: "--last-seen",
|
|
1573
|
+
value: "<who>",
|
|
1574
|
+
role: "value",
|
|
1575
|
+
type: "choice",
|
|
1576
|
+
meaning: "who sees when the account was last online: everyone, contacts or nobody"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
name: "--phone-number",
|
|
1580
|
+
value: "<who>",
|
|
1581
|
+
role: "value",
|
|
1582
|
+
type: "choice",
|
|
1583
|
+
meaning: "who sees the number: everyone, contacts or nobody"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
name: "--profile-photo",
|
|
1587
|
+
value: "<who>",
|
|
1588
|
+
role: "value",
|
|
1589
|
+
type: "choice",
|
|
1590
|
+
meaning: "who sees the profile photo: everyone, contacts or nobody"
|
|
1591
|
+
},
|
|
1592
|
+
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1593
|
+
];
|
|
1594
|
+
|
|
1595
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
+
var SCHEDULE_FLAGS = [
|
|
1597
|
+
{
|
|
1598
|
+
name: "--notify-on",
|
|
1599
|
+
value: "<when>",
|
|
1600
|
+
role: "value",
|
|
1601
|
+
type: "choice",
|
|
1602
|
+
meaning: "when a scheduled run tells the owner: always, failures or never"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
name: "--deliver-to",
|
|
1606
|
+
value: "<route>",
|
|
1607
|
+
role: "value",
|
|
1608
|
+
type: "string",
|
|
1609
|
+
meaning: "where a scheduled run's result also goes, by the owner's own CLI: telegram-bot:<profile>/<chat> or email:<profile>/<address>; repeat it for more. Not --to, which names who a message is for"
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
name: "--max-cost-per-day",
|
|
1613
|
+
value: "<usd>",
|
|
1614
|
+
role: "budget",
|
|
1615
|
+
type: "number",
|
|
1616
|
+
meaning: "start no run for the rest of the day once the day's runs cost this much; 0 for no cap",
|
|
1617
|
+
unit: "US dollars"
|
|
1618
|
+
}
|
|
1619
|
+
];
|
|
1620
|
+
|
|
1621
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
1486
1622
|
var WHAT_FLAGS = [
|
|
1487
1623
|
{
|
|
1488
1624
|
name: "--analysis-provider",
|
|
@@ -1905,6 +2041,20 @@ var WHAT_FLAGS = [
|
|
|
1905
2041
|
meaning: "look again from this day, for what arrived late"
|
|
1906
2042
|
},
|
|
1907
2043
|
{ name: "--run", value: "<id>", role: "target", type: "id", meaning: "the run it is about" },
|
|
2044
|
+
{
|
|
2045
|
+
name: "--who",
|
|
2046
|
+
value: "<side>",
|
|
2047
|
+
role: "target",
|
|
2048
|
+
type: "choice",
|
|
2049
|
+
meaning: "whose replies are measured: me (the owner's) or others (the other side's)"
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
name: "--write",
|
|
2053
|
+
value: "<id>",
|
|
2054
|
+
role: "target",
|
|
2055
|
+
type: "id",
|
|
2056
|
+
meaning: "one write of a run, by the operation_id its answer listed: undo or act on that write alone"
|
|
2057
|
+
},
|
|
1908
2058
|
{
|
|
1909
2059
|
name: "--target",
|
|
1910
2060
|
value: "<ref>",
|
|
@@ -2107,63 +2257,6 @@ var WHAT_FLAGS = [
|
|
|
2107
2257
|
type: "path",
|
|
2108
2258
|
meaning: "an Ogg Opus file sent as a voice message"
|
|
2109
2259
|
},
|
|
2110
|
-
{
|
|
2111
|
-
name: "--about-text",
|
|
2112
|
-
value: "<who>",
|
|
2113
|
-
role: "value",
|
|
2114
|
-
type: "choice",
|
|
2115
|
-
meaning: "who sees the about text: everyone, contacts or nobody"
|
|
2116
|
-
},
|
|
2117
|
-
{
|
|
2118
|
-
name: "--calls",
|
|
2119
|
-
value: "<who>",
|
|
2120
|
-
role: "value",
|
|
2121
|
-
type: "choice",
|
|
2122
|
-
meaning: "whose calls ring: everyone, contacts or nobody"
|
|
2123
|
-
},
|
|
2124
|
-
{
|
|
2125
|
-
name: "--chat-invites",
|
|
2126
|
-
value: "<who>",
|
|
2127
|
-
role: "value",
|
|
2128
|
-
type: "choice",
|
|
2129
|
-
meaning: "who may add the account to groups and channels: everyone, contacts or nobody"
|
|
2130
|
-
},
|
|
2131
|
-
{
|
|
2132
|
-
name: "--find-by-phone",
|
|
2133
|
-
value: "<who>",
|
|
2134
|
-
role: "value",
|
|
2135
|
-
type: "choice",
|
|
2136
|
-
meaning: "who finds the account by its number: everyone, contacts or nobody"
|
|
2137
|
-
},
|
|
2138
|
-
{
|
|
2139
|
-
name: "--hide-online",
|
|
2140
|
-
value: "<on|off>",
|
|
2141
|
-
role: "value",
|
|
2142
|
-
type: "choice",
|
|
2143
|
-
meaning: "hide online status and last seen"
|
|
2144
|
-
},
|
|
2145
|
-
{
|
|
2146
|
-
name: "--last-seen",
|
|
2147
|
-
value: "<who>",
|
|
2148
|
-
role: "value",
|
|
2149
|
-
type: "choice",
|
|
2150
|
-
meaning: "who sees when the account was last online: everyone, contacts or nobody"
|
|
2151
|
-
},
|
|
2152
|
-
{
|
|
2153
|
-
name: "--phone-number",
|
|
2154
|
-
value: "<who>",
|
|
2155
|
-
role: "value",
|
|
2156
|
-
type: "choice",
|
|
2157
|
-
meaning: "who sees the number: everyone, contacts or nobody"
|
|
2158
|
-
},
|
|
2159
|
-
{
|
|
2160
|
-
name: "--profile-photo",
|
|
2161
|
-
value: "<who>",
|
|
2162
|
-
role: "value",
|
|
2163
|
-
type: "choice",
|
|
2164
|
-
meaning: "who sees the profile photo: everyone, contacts or nobody"
|
|
2165
|
-
},
|
|
2166
|
-
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" },
|
|
2167
2260
|
{
|
|
2168
2261
|
name: "--until",
|
|
2169
2262
|
value: "<time>",
|
|
@@ -2266,6 +2359,13 @@ var WHAT_FLAGS = [
|
|
|
2266
2359
|
type: "id",
|
|
2267
2360
|
meaning: "never show this chat in it; repeat it for more"
|
|
2268
2361
|
},
|
|
2362
|
+
{
|
|
2363
|
+
name: "--field",
|
|
2364
|
+
value: "<key=value>",
|
|
2365
|
+
role: "value",
|
|
2366
|
+
type: "string",
|
|
2367
|
+
meaning: "set one named field on a write, as key=value; repeat it for more"
|
|
2368
|
+
},
|
|
2269
2369
|
{
|
|
2270
2370
|
name: "--file",
|
|
2271
2371
|
value: "<file>",
|
|
@@ -2480,7 +2580,7 @@ var WHAT_FLAGS = [
|
|
|
2480
2580
|
}
|
|
2481
2581
|
];
|
|
2482
2582
|
|
|
2483
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2583
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
2484
2584
|
var FLAG_TYPES = [
|
|
2485
2585
|
"switch",
|
|
2486
2586
|
"count",
|
|
@@ -2729,6 +2829,13 @@ var collections = [
|
|
|
2729
2829
|
["invoices", "bills the owner sends or receives, with their amounts and due dates"],
|
|
2730
2830
|
["orders", "what a customer asked for and the owner owes or delivers"],
|
|
2731
2831
|
["payments", "money that moved in or out, each one matched to the invoices it settles"],
|
|
2832
|
+
["deals", "sales the owner works on, each at a stage of a pipeline, with an amount and an outcome"],
|
|
2833
|
+
["leads", "possible customers not yet qualified into a deal"],
|
|
2834
|
+
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2835
|
+
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2836
|
+
["products", "goods and services the owner sells, with their prices"],
|
|
2837
|
+
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2838
|
+
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2732
2839
|
[
|
|
2733
2840
|
"identities",
|
|
2734
2841
|
"ways to reach a person or an organization: an account in one messenger or mailbox, an e-mail address, a phone"
|
|
@@ -2823,6 +2930,7 @@ var views = [
|
|
|
2823
2930
|
["newcomers", "members observed joining during the selected time window"],
|
|
2824
2931
|
["retention", "whether members of a selected cohort remain or return over time"],
|
|
2825
2932
|
["responses", "observed replies between participants and the time taken to answer"],
|
|
2933
|
+
["waiting", "chats whose newest message waits on the owner's reply"],
|
|
2826
2934
|
["discussion", "source posts compared by known views and observed discussion replies"],
|
|
2827
2935
|
["unanswered", "questions without an observed qualifying answer"],
|
|
2828
2936
|
["me", "the account a profile's token belongs to"],
|
|
@@ -2837,6 +2945,7 @@ var roots = [
|
|
|
2837
2945
|
["serve", "the long-running process"],
|
|
2838
2946
|
["setup", "the guided first run: log in or link the account, then install the agent skill"],
|
|
2839
2947
|
["doctor", "check this machine's setup"],
|
|
2948
|
+
["recover", "repair a damaged store: what it would do, then its run subcommand does it"],
|
|
2840
2949
|
["upgrade", "install a newer version of this tool"],
|
|
2841
2950
|
["commands", "the command tree as data"],
|
|
2842
2951
|
["guide", "scenarios: the commands for a common task, in order, and why each"],
|
|
@@ -2858,10 +2967,18 @@ var VOCABULARY = defineVocabulary({
|
|
|
2858
2967
|
],
|
|
2859
2968
|
views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2860
2969
|
roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2861
|
-
flags: [
|
|
2970
|
+
flags: [
|
|
2971
|
+
...HOW_FLAGS,
|
|
2972
|
+
...WHAT_FLAGS,
|
|
2973
|
+
...PRIVACY_FLAGS,
|
|
2974
|
+
...CALENDAR_FLAGS,
|
|
2975
|
+
...MAIL_FLAGS,
|
|
2976
|
+
...CRM_FLAGS,
|
|
2977
|
+
...SCHEDULE_FLAGS
|
|
2978
|
+
]
|
|
2862
2979
|
});
|
|
2863
2980
|
|
|
2864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2865
2982
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2866
2983
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2867
2984
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3084,7 +3201,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3084
3201
|
}
|
|
3085
3202
|
}, "runCommandForAgent");
|
|
3086
3203
|
|
|
3087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3088
3205
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3089
3206
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3090
3207
|
var message = pipe(
|
|
@@ -3343,7 +3460,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3343
3460
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3344
3461
|
}, "failed");
|
|
3345
3462
|
|
|
3346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3347
3464
|
import { randomUUID } from "node:crypto";
|
|
3348
3465
|
var MATCHES = 8;
|
|
3349
3466
|
var ANSWER = answerSchema();
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
refuseLacking,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QUQJZSRF.js";
|
|
17
17
|
import {
|
|
18
18
|
CEILING_KEY,
|
|
19
19
|
LOG_ATTRIBUTES,
|
|
@@ -38,35 +38,35 @@ import {
|
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf,
|
|
40
40
|
skipFlagFor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VOJU5FVA.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure,
|
|
44
44
|
providerErrorKey
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-F7S25YVA.js";
|
|
46
46
|
import {
|
|
47
47
|
MESSENGER_CHANGE_REFUSAL,
|
|
48
48
|
readOnlyRefusal
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-DMI3SFLF.js";
|
|
50
50
|
import {
|
|
51
51
|
servingProfiles
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-TYOZC3BU.js";
|
|
53
53
|
import {
|
|
54
54
|
openStore
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-VJJCF52V.js";
|
|
56
56
|
import {
|
|
57
57
|
logRecordOf,
|
|
58
58
|
realSleep,
|
|
59
59
|
resolvePaths,
|
|
60
60
|
writeSecurely
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-O3ZOYXH3.js";
|
|
62
62
|
import {
|
|
63
63
|
CliError
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-BXTDAGM4.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.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
70
70
|
import { openSync } from "node:fs";
|
|
71
71
|
import { createInterface } from "node:readline";
|
|
72
72
|
import { ReadStream } from "node:tty";
|
|
@@ -121,10 +121,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
121
121
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
122
122
|
}, "terminalAsker");
|
|
123
123
|
|
|
124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
125
125
|
import { randomUUID } from "node:crypto";
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
128
128
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
129
129
|
import { dirname, join } from "node:path";
|
|
130
130
|
var MOST_DEADLINES = 50;
|
|
@@ -208,11 +208,11 @@ var FloodMemory = class {
|
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
212
212
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
213
213
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
214
214
|
|
|
215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
216
216
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
217
217
|
import { dirname as dirname2 } from "node:path";
|
|
218
218
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -279,7 +279,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
279
279
|
}
|
|
280
280
|
}, "lockTime");
|
|
281
281
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
283
283
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
284
284
|
var SendJournal = class {
|
|
285
285
|
static {
|
|
@@ -356,7 +356,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
356
356
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
357
357
|
}, "withSendId");
|
|
358
358
|
|
|
359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
360
360
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
361
361
|
import { join as join3 } from "node:path";
|
|
362
362
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -468,7 +468,7 @@ var RecipientList = class {
|
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
|
|
471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
472
472
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
473
473
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
474
474
|
"attachments.extract",
|
|
@@ -661,7 +661,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
661
661
|
}), "guardFor");
|
|
662
662
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
663
663
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
665
665
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
666
666
|
import { join as join4 } from "node:path";
|
|
667
667
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -751,7 +751,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
751
751
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
752
752
|
}, "waitForTurn");
|
|
753
753
|
|
|
754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
755
755
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
756
756
|
const words = [];
|
|
757
757
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -811,7 +811,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
811
811
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
812
812
|
}, "refuseUnknownPermissionKeys");
|
|
813
813
|
|
|
814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
815
815
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
816
816
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
817
817
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -908,7 +908,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
908
908
|
});
|
|
909
909
|
}, "flooded");
|
|
910
910
|
|
|
911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
912
912
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
913
913
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
914
914
|
const write = currentOperation();
|
|
@@ -1007,7 +1007,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1007
1007
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1008
1008
|
}, "byPart");
|
|
1009
1009
|
|
|
1010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1011
1011
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1012
1012
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
1013
1013
|
let warned = false;
|
|
@@ -1583,7 +1583,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1583
1583
|
}
|
|
1584
1584
|
}, "keep");
|
|
1585
1585
|
|
|
1586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1587
1587
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1588
1588
|
let opened;
|
|
1589
1589
|
return {
|