@wirecat/mail-cli 0.7.0 → 0.8.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/CHANGELOG.md +20 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-SI67TKZM.js → all-profiles-MXGDUBAM.js} +9 -9
- package/dist/bundle/{anthropic-DALMLC3Y.js → anthropic-A2QA4W7L.js} +6 -6
- package/dist/bundle/{app-server-XOH327Z2.js → app-server-PMIMK6FK.js} +48 -48
- package/dist/bundle/{bun-ORL67CJ6.js → bun-3UW3LFNL.js} +2 -2
- package/dist/bundle/{bun-sqlite-DGXFNFHI.js → bun-sqlite-TGFZFKAX.js} +5 -5
- package/dist/bundle/{chunk-IYZHM3ZN.js → chunk-2KZJWBXB.js} +3 -3
- package/dist/bundle/{chunk-2M4K7HYR.js → chunk-2MQXXPPK.js} +17 -17
- package/dist/bundle/{chunk-VBOMKZ4E.js → chunk-4QDBMYK4.js} +70 -53
- package/dist/bundle/{chunk-23IEVVL2.js → chunk-5PWKPRTD.js} +4 -4
- package/dist/bundle/{chunk-RQVWZBW3.js → chunk-5W74YMCK.js} +3 -3
- package/dist/bundle/{chunk-7K6KJWTO.js → chunk-6J3DKKOV.js} +12 -12
- package/dist/bundle/{chunk-4NYWHINR.js → chunk-6JK46V5X.js} +6 -6
- package/dist/bundle/{chunk-CAKBG5FC.js → chunk-6U6Z3GXR.js} +6 -6
- package/dist/bundle/{chunk-V4TDG4KF.js → chunk-7JUTNCQX.js} +14 -14
- package/dist/bundle/{chunk-6XNPXAJU.js → chunk-AO3XYONW.js} +23 -23
- package/dist/bundle/{chunk-JFMUI4H6.js → chunk-BCDPLG7T.js} +1 -1
- package/dist/bundle/{chunk-PDL4UREY.js → chunk-BEUQ2X7U.js} +8 -8
- package/dist/bundle/{chunk-DXGMPMFP.js → chunk-CMNFLAUG.js} +4 -4
- package/dist/bundle/{chunk-U6UJ3HRS.js → chunk-CRS63C3T.js} +2 -2
- package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
- package/dist/bundle/{chunk-XQJWMBDY.js → chunk-DM4ULDS3.js} +6 -6
- package/dist/bundle/{chunk-BGUMGCUY.js → chunk-DYCPBLUC.js} +2 -2
- package/dist/bundle/{chunk-3TYEJRMZ.js → chunk-EN3UZPGB.js} +4 -4
- package/dist/bundle/{chunk-DKQWTQVY.js → chunk-EU35YQXE.js} +23 -23
- package/dist/bundle/{chunk-GJUUTUK4.js → chunk-EVO77D3Y.js} +8 -8
- package/dist/bundle/{chunk-S4YUR4S3.js → chunk-FSBKLJXM.js} +219 -206
- package/dist/bundle/{chunk-EYT33MM3.js → chunk-J5RKMQ6A.js} +46 -46
- package/dist/bundle/{chunk-ZNGQ3NZ4.js → chunk-J6ACLZKV.js} +9 -9
- package/dist/bundle/{chunk-45KA5667.js → chunk-KBKEZV4L.js} +13 -13
- package/dist/bundle/{chunk-73OJJGZE.js → chunk-KEZHPPMI.js} +17 -3
- package/dist/bundle/{chunk-4ULY3GDL.js → chunk-KF4YULWC.js} +10 -10
- package/dist/bundle/{chunk-HFJNEXU7.js → chunk-L2ZHPIFC.js} +2 -2
- package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
- package/dist/bundle/{chunk-FTFNWGIR.js → chunk-LN7TNZIS.js} +8 -8
- package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
- package/dist/bundle/{chunk-5JEYIHS6.js → chunk-NEBO3NZU.js} +3 -3
- package/dist/bundle/{chunk-VNJMO5F6.js → chunk-NI6WX55Z.js} +2 -2
- package/dist/bundle/{chunk-M2JCUVCJ.js → chunk-NSODLSEL.js} +94 -94
- package/dist/bundle/{chunk-6RMMAUUW.js → chunk-NWKLBZN5.js} +30 -30
- package/dist/bundle/{chunk-5BSEGMNE.js → chunk-OAQ4UB6V.js} +4 -4
- package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
- package/dist/bundle/{chunk-NNIXREJH.js → chunk-PXCIM6D5.js} +7 -7
- package/dist/bundle/{chunk-6LK7KTWB.js → chunk-Q5DOXSBM.js} +1 -1
- package/dist/bundle/{chunk-35KD2CI2.js → chunk-QBBKSCQD.js} +286 -252
- package/dist/bundle/{chunk-MHQKHWCJ.js → chunk-RFWTPSJX.js} +34 -28
- package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
- package/dist/bundle/{chunk-AP7V256W.js → chunk-RVZ4JIRR.js} +1 -1
- package/dist/bundle/{chunk-MMXMVGA6.js → chunk-SZ5PKNDF.js} +7 -7
- package/dist/bundle/{chunk-VSHJWTX5.js → chunk-TCWJYOZV.js} +6 -6
- package/dist/bundle/{chunk-HV3EIYX4.js → chunk-TMQA4KR7.js} +1 -1
- package/dist/bundle/{chunk-VKPWP3AK.js → chunk-U4IF2MOB.js} +2 -2
- package/dist/bundle/{chunk-ZKCNMW7G.js → chunk-UR6WHUJF.js} +2 -2
- package/dist/bundle/{chunk-MCJ7LKYR.js → chunk-VGR3AGAC.js} +6 -6
- package/dist/bundle/{chunk-R5MML3FC.js → chunk-VSDVH2M2.js} +67 -59
- package/dist/bundle/{chunk-E3DRM6YP.js → chunk-W5J6I5GW.js} +3 -3
- package/dist/bundle/{chunk-FPOGVDLS.js → chunk-W7H3PZ67.js} +2 -2
- package/dist/bundle/{chunk-BEMLGWY4.js → chunk-WS4L47DG.js} +1 -1
- package/dist/bundle/{chunk-ZKZABB4K.js → chunk-WWNAQ75T.js} +3 -3
- package/dist/bundle/{chunk-Q44AYEOB.js → chunk-XWNCXFR5.js} +2 -2
- package/dist/bundle/{chunk-LZ5J3UXD.js → chunk-YS2WUWY7.js} +4 -4
- package/dist/bundle/{chunk-OHTR4WFO.js → chunk-Z5GDZ3QF.js} +2 -2
- package/dist/bundle/{chunk-Q2C3VMSU.js → chunk-ZISFMUYB.js} +18 -18
- package/dist/bundle/{chunk-3GZK5GTU.js → chunk-ZKAT6I2I.js} +1 -1
- package/dist/bundle/command-contract-Q32SL5KX.js +34 -0
- package/dist/bundle/{decode-KOBURZIQ.js → decode-NF4TGOR3.js} +5 -5
- package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
- package/dist/bundle/{dist-T7HMT675.js → dist-DVYY3YFG.js} +13 -13
- package/dist/bundle/{echarts-LEWTQO6H.js → echarts-F3USGP5B.js} +2 -2
- package/dist/bundle/{embed-PUFE4BSQ.js → embed-2RXV3BEC.js} +6 -6
- package/dist/bundle/{embedder-3G4BQQ6X.js → embedder-I2SJMC6N.js} +9 -9
- package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
- package/dist/bundle/{first-run-FLXOC53U.js → first-run-3GA7YCKZ.js} +11 -11
- package/dist/bundle/first-screen-JFIXKYAK.js +32 -0
- package/dist/bundle/{instructions-HGSXDCBT.js → instructions-VHI5CWH5.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
- package/dist/bundle/{node-5Z7PS4F5.js → node-4RBB3RDY.js} +2 -2
- package/dist/bundle/{node-sqlite-OAW7APIX.js → node-sqlite-FWYX3P2D.js} +5 -5
- package/dist/bundle/{oauth-ZFZWPAJN.js → oauth-6JKKRGLX.js} +7 -7
- package/dist/bundle/{open-ZQMBZVH4.js → open-7JSNC3MR.js} +4 -4
- package/dist/bundle/{openai-XT2RIXAK.js → openai-ASLWL3D6.js} +14 -14
- package/dist/bundle/{process-VVEQIHPE.js → process-AB2D2G2Q.js} +1 -1
- package/dist/bundle/{program-RD3BBDNY.js → program-ZJPQ3IDU.js} +447 -382
- package/dist/bundle/{prompt-PU7GE4Z4.js → prompt-JDFVQR3L.js} +5 -5
- package/dist/bundle/{recognize-AG4A3KUK.js → recognize-PKYA4HRC.js} +4 -4
- package/dist/bundle/{remote-D6TQ6T7F.js → remote-USBVVO4O.js} +7 -7
- package/dist/bundle/{rerank-GO24HJPF.js → rerank-UBMV6KO6.js} +7 -7
- package/dist/bundle/{serve-WCHJAH6G.js → serve-SVS3YOYS.js} +9 -9
- package/dist/bundle/{server-CAVNBG3P.js → server-7PZMYXY6.js} +38 -38
- package/dist/bundle/server-KA7Q5XCL.js +63 -0
- package/dist/bundle/{sqlite-runtime-ANXC4AW2.js → sqlite-runtime-IDPTXAM7.js} +5 -5
- package/dist/bundle/{state-EGJ66A62.js → state-6G2TSVP7.js} +6 -6
- package/dist/bundle/{store-OON7FCMQ.js → store-7A464D4X.js} +15 -15
- package/dist/bundle/{store-SBFA444C.js → store-L56GFI4P.js} +13 -13
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +52 -0
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +1 -0
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/server-search.d.ts.map +1 -1
- package/dist/commands/server-search.js +3 -2
- package/dist/commands/server-search.js.map +1 -1
- package/dist/providers.d.ts +8 -0
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -0
- package/dist/providers.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-CB5BII3S.js +0 -34
- package/dist/bundle/first-screen-VUZEDSQW.js +0 -32
- package/dist/bundle/server-5KJJ3D6P.js +0 -63
- package/dist/bundle/store-maintenance-command-UEOJLYMJ.js +0 -52
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
|
@@ -6,26 +6,27 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7JUTNCQX.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KEZHPPMI.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NI6WX55Z.js";
|
|
16
16
|
import {
|
|
17
|
+
QUERY_ARGUMENT,
|
|
17
18
|
lentConnection,
|
|
18
19
|
onlineDeps,
|
|
19
20
|
refuseLacking,
|
|
20
21
|
servicesFor,
|
|
21
22
|
storeModeDeps
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FSBKLJXM.js";
|
|
23
24
|
import {
|
|
24
25
|
MAX_BUFFERED_INPUT
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DYCPBLUC.js";
|
|
26
27
|
import {
|
|
27
28
|
ENTITIES
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NSODLSEL.js";
|
|
29
30
|
import {
|
|
30
31
|
DEFAULT_OUTPUT_BYTES,
|
|
31
32
|
LOCAL_WRITE,
|
|
@@ -43,24 +44,27 @@ import {
|
|
|
43
44
|
sealed,
|
|
44
45
|
startRecording,
|
|
45
46
|
traceOf
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-VSDVH2M2.js";
|
|
47
48
|
import {
|
|
48
49
|
authorityAllowed,
|
|
49
50
|
botApiAllowed,
|
|
50
51
|
keyForCommand,
|
|
51
52
|
levelFor,
|
|
52
53
|
readKeysForCommand
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-TCWJYOZV.js";
|
|
54
55
|
import {
|
|
55
56
|
currentCaller,
|
|
56
57
|
keepsSuccess,
|
|
57
58
|
runContextOf,
|
|
58
59
|
withCaller
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-J6ACLZKV.js";
|
|
61
|
+
import {
|
|
62
|
+
queryDescription
|
|
63
|
+
} from "./chunk-4QDBMYK4.js";
|
|
60
64
|
import {
|
|
61
65
|
captureStreams,
|
|
62
66
|
traceIdOf
|
|
63
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ZISFMUYB.js";
|
|
64
68
|
import {
|
|
65
69
|
SNAKE_CASE,
|
|
66
70
|
array,
|
|
@@ -98,19 +102,19 @@ import {
|
|
|
98
102
|
unknown,
|
|
99
103
|
word,
|
|
100
104
|
writes
|
|
101
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
102
106
|
import {
|
|
103
107
|
CliError,
|
|
104
108
|
errorCodes
|
|
105
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
106
110
|
import {
|
|
107
111
|
__name
|
|
108
112
|
} from "./chunk-ZVVMGPBJ.js";
|
|
109
113
|
|
|
110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
111
115
|
import { Readable } from "node:stream";
|
|
112
116
|
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
117
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
114
118
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
115
119
|
var lintRuleSchema = strictObject({
|
|
116
120
|
id: word,
|
|
@@ -237,7 +241,7 @@ var overridesSchema = array(strictObject({
|
|
|
237
241
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
238
242
|
}));
|
|
239
243
|
|
|
240
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
244
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
245
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
242
246
|
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
247
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -346,7 +350,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
346
350
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
347
351
|
]);
|
|
348
352
|
|
|
349
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
353
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
350
354
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
351
355
|
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
356
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -362,7 +366,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
362
366
|
}
|
|
363
367
|
]);
|
|
364
368
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
369
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
366
370
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
367
371
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
368
372
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -384,7 +388,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
384
388
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
385
389
|
]);
|
|
386
390
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
391
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
388
392
|
var CALENDAR_FLAGS = [
|
|
389
393
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
390
394
|
{
|
|
@@ -458,7 +462,7 @@ var CALENDAR_FLAGS = [
|
|
|
458
462
|
}
|
|
459
463
|
];
|
|
460
464
|
|
|
461
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
465
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
462
466
|
var HOW_FLAGS = [
|
|
463
467
|
{
|
|
464
468
|
name: "--limit",
|
|
@@ -1445,7 +1449,7 @@ var HOW_FLAGS = [
|
|
|
1445
1449
|
}
|
|
1446
1450
|
];
|
|
1447
1451
|
|
|
1448
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1452
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
1449
1453
|
var MAIL_FLAGS = [
|
|
1450
1454
|
{
|
|
1451
1455
|
name: "--cc",
|
|
@@ -1469,7 +1473,7 @@ var MAIL_FLAGS = [
|
|
|
1469
1473
|
}
|
|
1470
1474
|
];
|
|
1471
1475
|
|
|
1472
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1476
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
1473
1477
|
var WHAT_FLAGS = [
|
|
1474
1478
|
{
|
|
1475
1479
|
name: "--analysis-provider",
|
|
@@ -2467,7 +2471,7 @@ var WHAT_FLAGS = [
|
|
|
2467
2471
|
}
|
|
2468
2472
|
];
|
|
2469
2473
|
|
|
2470
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2474
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.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
|
|
2471
2475
|
var FLAG_TYPES = [
|
|
2472
2476
|
"switch",
|
|
2473
2477
|
"count",
|
|
@@ -2827,7 +2831,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2827
2831
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2828
2832
|
});
|
|
2829
2833
|
|
|
2830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2831
2835
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2832
2836
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2833
2837
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2886,8 +2890,10 @@ var optionField = /* @__PURE__ */ __name((option, long, negated) => {
|
|
|
2886
2890
|
}, "argv")
|
|
2887
2891
|
};
|
|
2888
2892
|
}, "optionField");
|
|
2889
|
-
var argumentField = /* @__PURE__ */ __name((argument) => {
|
|
2890
|
-
const
|
|
2893
|
+
var argumentField = /* @__PURE__ */ __name((argument, query) => {
|
|
2894
|
+
const own = argument.description || argument.name;
|
|
2895
|
+
const about = query && argument.name === "query" ? own === QUERY_ARGUMENT ? queryDescription(query) : `${own}; ${queryDescription(query)}` : own;
|
|
2896
|
+
const one = argument.choices ? pipe(picklist(argument.choices), description(argument.description)) : text2(about);
|
|
2891
2897
|
return {
|
|
2892
2898
|
name: snake(argument.name),
|
|
2893
2899
|
required: argument.required,
|
|
@@ -2913,7 +2919,7 @@ var stdinField = /* @__PURE__ */ __name(({ name, description: description2, json
|
|
|
2913
2919
|
argv: /* @__PURE__ */ __name(() => [], "argv")
|
|
2914
2920
|
}), "stdinField");
|
|
2915
2921
|
var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin }) => {
|
|
2916
|
-
const fields = info.arguments.map(argumentField);
|
|
2922
|
+
const fields = info.arguments.map((argument) => argumentField(argument, info.query));
|
|
2917
2923
|
const read = stdin?.(info.path);
|
|
2918
2924
|
if (read)
|
|
2919
2925
|
fields.push(stdinField(read));
|
|
@@ -3048,7 +3054,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3048
3054
|
}
|
|
3049
3055
|
}, "runCommandForAgent");
|
|
3050
3056
|
|
|
3051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3052
3058
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3053
3059
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3054
3060
|
var message = pipe(
|
|
@@ -3307,7 +3313,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3307
3313
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3308
3314
|
}, "failed");
|
|
3309
3315
|
|
|
3310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3311
3317
|
import { randomUUID } from "node:crypto";
|
|
3312
3318
|
var MATCHES = 8;
|
|
3313
3319
|
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-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/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,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
12
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
13
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -22,7 +22,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
22
22
|
}
|
|
23
23
|
__name(closeTask, "closeTask");
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
26
26
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
27
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
28
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -51,7 +51,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
51
51
|
}, "priorityOf");
|
|
52
52
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
53
53
|
|
|
54
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
55
55
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
56
56
|
async function find(id) {
|
|
57
57
|
const task = await store.get(id);
|
|
@@ -111,13 +111,13 @@ function median(values) {
|
|
|
111
111
|
}
|
|
112
112
|
__name(median, "median");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
115
115
|
function matches(task, filter) {
|
|
116
116
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
117
117
|
}
|
|
118
118
|
__name(matches, "matches");
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
121
121
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
122
122
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
123
123
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -126,7 +126,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
126
126
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
127
127
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
130
130
|
var LINK_KINDS = [
|
|
131
131
|
"links-to",
|
|
132
132
|
"blocked-by",
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZISFMUYB.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
18
18
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
19
19
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
20
20
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -409,7 +409,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
409
409
|
}
|
|
410
410
|
}, "assertRetentionEvidenceRead");
|
|
411
411
|
|
|
412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
413
413
|
var named = /* @__PURE__ */ __name((work) => {
|
|
414
414
|
try {
|
|
415
415
|
return work();
|
|
@@ -436,7 +436,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
436
436
|
return projectFields(value, fields);
|
|
437
437
|
}), "projectFields");
|
|
438
438
|
|
|
439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
440
440
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
441
441
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
442
442
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -466,7 +466,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
466
466
|
return value;
|
|
467
467
|
}, "atDetail");
|
|
468
468
|
|
|
469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/output.js
|
|
470
470
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
471
471
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
472
472
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/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.",
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
singleLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
12
12
|
var SCHEME = "msg:";
|
|
13
13
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
14
14
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -22,7 +22,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
22
22
|
return { provider, account, chat, message };
|
|
23
23
|
}, "parseLocator");
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
26
26
|
var SIMPLE_REFERENCES = [
|
|
27
27
|
"note",
|
|
28
28
|
"document",
|
|
@@ -94,7 +94,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
|
|
|
94
94
|
}, "folderPath");
|
|
95
95
|
var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
98
98
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
99
99
|
var PROVIDERS = [
|
|
100
100
|
{ name: "telegram", kind: "messages", aliases: ["tg"] },
|
|
@@ -188,7 +188,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
188
188
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
189
189
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
190
190
|
|
|
191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
192
192
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
193
193
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
194
194
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -225,7 +225,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
225
225
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
226
226
|
}, "counterFreshness");
|
|
227
227
|
|
|
228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
229
229
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
230
230
|
var AUTHOR_MEASURES = [
|
|
231
231
|
"messages",
|