@wirecat/tg-cli 0.111.0 → 0.113.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.
Files changed (111) hide show
  1. package/README.md +3 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-WFC2JAD4.js → adapter-EQKEFGPB.js} +70 -50
  4. package/dist/bundle/{all-profiles-FEUSGHT7.js → all-profiles-TTBFF663.js} +8 -8
  5. package/dist/bundle/{anthropic-O646SJIJ.js → anthropic-XPZS7267.js} +5 -5
  6. package/dist/bundle/{app-server-7P23Y45A.js → app-server-ZSZ7KRAY.js} +42 -42
  7. package/dist/bundle/{bot-api-WTJCL6VF.js → bot-api-X7BOVNIO.js} +46 -46
  8. package/dist/bundle/{bot-history-5J2Q4SPC.js → bot-history-DWIUIPN5.js} +15 -15
  9. package/dist/bundle/{bun-KUKVEKDW.js → bun-ZGZVAJU2.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-2G5TXHYE.js → bun-sqlite-UN2UJ6SI.js} +4 -4
  11. package/dist/bundle/{chunk-UDYCZ5KB.js → chunk-3MAYYFKY.js} +1 -1
  12. package/dist/bundle/{chunk-3BD24JYK.js → chunk-452UZ2PU.js} +121 -95
  13. package/dist/bundle/{chunk-EB44Z44U.js → chunk-4GLMEES6.js} +1 -1
  14. package/dist/bundle/{chunk-J2Z5E7TO.js → chunk-4SQB5VKL.js} +1 -1
  15. package/dist/bundle/{chunk-BNQOUCL2.js → chunk-5NF7M4MN.js} +1 -1
  16. package/dist/bundle/{chunk-VIEVOF3O.js → chunk-6F6K3LWV.js} +11 -11
  17. package/dist/bundle/{chunk-QLLPZWYZ.js → chunk-6OKGHHRL.js} +4 -4
  18. package/dist/bundle/{chunk-QVM2HKJP.js → chunk-6WJ5M2Q4.js} +4 -4
  19. package/dist/bundle/{chunk-OYVDWHP5.js → chunk-7IWDS2CM.js} +2 -2
  20. package/dist/bundle/{chunk-ABVHA4K6.js → chunk-AGUCXSSM.js} +5 -5
  21. package/dist/bundle/{chunk-2ZH3PUQX.js → chunk-AVUIWZTP.js} +2 -2
  22. package/dist/bundle/{chunk-LLAZSGS7.js → chunk-BI5YJZJB.js} +31 -27
  23. package/dist/bundle/{chunk-COHMFCHD.js → chunk-EGR5IJCG.js} +95 -34
  24. package/dist/bundle/{chunk-7665YBJ7.js → chunk-ENXO43TV.js} +6 -6
  25. package/dist/bundle/{chunk-MSGYLWCH.js → chunk-G74QMORP.js} +2 -2
  26. package/dist/bundle/{chunk-KLHLWKWC.js → chunk-GX4LRLVD.js} +80 -60
  27. package/dist/bundle/{chunk-DREEXESG.js → chunk-HNN7EKIM.js} +114 -79
  28. package/dist/bundle/{chunk-2K6IGVSI.js → chunk-HO53POQG.js} +5 -5
  29. package/dist/bundle/{chunk-43ZFY6TW.js → chunk-IDUYRTPF.js} +2 -2
  30. package/dist/bundle/{chunk-WDRNVSWF.js → chunk-IYKRHDX6.js} +45 -44
  31. package/dist/bundle/{chunk-KE47Y4PW.js → chunk-J6USEBA6.js} +699 -379
  32. package/dist/bundle/{chunk-5ZPLOYTP.js → chunk-JDQSX2JQ.js} +453 -358
  33. package/dist/bundle/{chunk-NIKYFRDQ.js → chunk-JO45BOYE.js} +2 -2
  34. package/dist/bundle/{chunk-ONHHBPV3.js → chunk-JRTZ5I6M.js} +2 -2
  35. package/dist/bundle/{chunk-YG4BO7N3.js → chunk-JW7BMJ6O.js} +2 -2
  36. package/dist/bundle/{chunk-J4QVXR5I.js → chunk-K3F46QVN.js} +2 -2
  37. package/dist/bundle/{chunk-XXOJ7PQY.js → chunk-KK3JVOOV.js} +30 -30
  38. package/dist/bundle/{chunk-UPRYEDAV.js → chunk-KOWQVHXI.js} +3 -3
  39. package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KQ23JWLJ.js} +20 -18
  40. package/dist/bundle/{chunk-ZCV4UEVH.js → chunk-KVLCIZUK.js} +3 -3
  41. package/dist/bundle/{chunk-DEG4JJHG.js → chunk-MTX5EDYJ.js} +813 -542
  42. package/dist/bundle/{chunk-UFIUMPXP.js → chunk-OC4RRFKH.js} +4 -4
  43. package/dist/bundle/{chunk-PNUHAHTF.js → chunk-OQR442B6.js} +1 -1
  44. package/dist/bundle/{chunk-TWZTQHP6.js → chunk-OSBAISA5.js} +6 -6
  45. package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
  46. package/dist/bundle/{chunk-EO563SUX.js → chunk-PCRLXJRH.js} +11 -7
  47. package/dist/bundle/{chunk-XIRASTVS.js → chunk-PHPNA2HU.js} +11 -11
  48. package/dist/bundle/{chunk-7GQLD5TJ.js → chunk-PHYDBR5M.js} +2 -2
  49. package/dist/bundle/{chunk-T6DSAROY.js → chunk-Q264PYGE.js} +51 -14
  50. package/dist/bundle/{chunk-QEAMO2TS.js → chunk-T4TTRFP5.js} +7 -7
  51. package/dist/bundle/{chunk-UMUJHC4M.js → chunk-T5RM4Y35.js} +3 -3
  52. package/dist/bundle/{chunk-ITSSCYLP.js → chunk-TQ6EA7TB.js} +11 -11
  53. package/dist/bundle/{chunk-QAC6Z675.js → chunk-TUD4MU7S.js} +2 -2
  54. package/dist/bundle/{chunk-ZCHC7TYO.js → chunk-U3MJQLZQ.js} +26 -13
  55. package/dist/bundle/{chunk-YFK3DNNP.js → chunk-UE75KPAC.js} +4 -4
  56. package/dist/bundle/{chunk-HN6ZMUAS.js → chunk-UIVLDKWT.js} +1 -1
  57. package/dist/bundle/{chunk-3WUTBGZE.js → chunk-VDATXIO4.js} +6 -6
  58. package/dist/bundle/{chunk-AUWYMMYL.js → chunk-VDEXNNMH.js} +4 -4
  59. package/dist/bundle/{chunk-33HEHPIK.js → chunk-VVA4555T.js} +8 -8
  60. package/dist/bundle/{chunk-PQGWEFJ2.js → chunk-WSAHUQ6K.js} +3 -3
  61. package/dist/bundle/{chunk-K457FHD4.js → chunk-XXNJF3ZM.js} +32 -26
  62. package/dist/bundle/{chunk-NQAV7U7C.js → chunk-XZ2ZHIAO.js} +1 -1
  63. package/dist/bundle/{chunk-5FJQG5UZ.js → chunk-Z6TRIW2O.js} +8 -8
  64. package/dist/bundle/{chunk-CJUSP5X2.js → chunk-ZID2Y4XU.js} +2 -2
  65. package/dist/bundle/command-contract-GV67H22L.js +32 -0
  66. package/dist/bundle/{decode-QJNVAAKJ.js → decode-AMQVTEMW.js} +4 -4
  67. package/dist/bundle/{echarts-2EDY7OUX.js → echarts-ECYONFQJ.js} +2 -2
  68. package/dist/bundle/{embed-PZSXOQJO.js → embed-VZYBZEWI.js} +5 -5
  69. package/dist/bundle/{embedder-O4EGMMUU.js → embedder-GSWBGHRK.js} +8 -8
  70. package/dist/bundle/{entry-DVLMQM6J.js → entry-LALZILY4.js} +5 -5
  71. package/dist/bundle/{first-run-J67KTUWA.js → first-run-LEAI623Q.js} +9 -9
  72. package/dist/bundle/first-screen-MOCVLE23.js +30 -0
  73. package/dist/bundle/{identity-DSYY4FLQ.js → identity-54HA5GN6.js} +3 -3
  74. package/dist/bundle/{instructions-O535XB2L.js → instructions-AXLQQS3G.js} +1 -1
  75. package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
  76. package/dist/bundle/{node-S3VEQNTE.js → node-7JHC5K77.js} +2 -2
  77. package/dist/bundle/{node-sqlite-3DNWF2BW.js → node-sqlite-LYJEK46T.js} +4 -4
  78. package/dist/bundle/{oauth-IU2RAZ3D.js → oauth-BROPKI3K.js} +6 -6
  79. package/dist/bundle/{open-M2IPPXMI.js → open-C6XQ46JK.js} +3 -3
  80. package/dist/bundle/{openai-GDI7HISL.js → openai-VWSU7ZDD.js} +13 -13
  81. package/dist/bundle/{process-3IGMEATV.js → process-QKEFL5HL.js} +1 -1
  82. package/dist/bundle/{program-P7YPHVLD.js → program-ACY7O33O.js} +48 -48
  83. package/dist/bundle/{prompt-S6R7IHDK.js → prompt-EGULVW2F.js} +4 -4
  84. package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-KIMADLQ2.js} +4 -4
  85. package/dist/bundle/{recognize-PFZRQ3P4.js → recognize-UMTKLWVR.js} +3 -3
  86. package/dist/bundle/{remote-Q37V7LUX.js → remote-DABI7PSQ.js} +6 -6
  87. package/dist/bundle/{rerank-V5YQQQAM.js → rerank-ZFATWWBE.js} +6 -6
  88. package/dist/bundle/{serve-5CAD2UVG.js → serve-B7YYCMGN.js} +8 -8
  89. package/dist/bundle/{server-R6YAO2SG.js → server-DGKZISZH.js} +32 -32
  90. package/dist/bundle/server-UC7UWUIS.js +56 -0
  91. package/dist/bundle/{state-Y3A2NEM3.js → state-AQ2PABA5.js} +5 -5
  92. package/dist/bundle/{store-H5K32CNI.js → store-46GJTFLJ.js} +12 -10
  93. package/dist/bundle/store-maintenance-command-FCFKHGRM.js +45 -0
  94. package/dist/bundle/tg.js +4 -4
  95. package/dist/telegram/adapter.d.ts +2 -0
  96. package/dist/telegram/adapter.d.ts.map +1 -1
  97. package/dist/telegram/adapter.js +3 -0
  98. package/dist/telegram/adapter.js.map +1 -1
  99. package/dist/telegram/topics.d.ts +4 -2
  100. package/dist/telegram/topics.d.ts.map +1 -1
  101. package/dist/telegram/topics.js +21 -3
  102. package/dist/telegram/topics.js.map +1 -1
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/package.json +3 -3
  106. package/skills/tg-cli/SKILL.md +2 -0
  107. package/dist/bundle/command-contract-JCRVVL7P.js +0 -32
  108. package/dist/bundle/first-screen-PYEE5NMQ.js +0 -30
  109. package/dist/bundle/server-RUQLAWWS.js +0 -56
  110. package/dist/bundle/store-maintenance-command-QZDC4WKW.js +0 -45
  111. /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.js} +0 -0
@@ -7,20 +7,21 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-T6DSAROY.js";
10
+ } from "./chunk-Q264PYGE.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-CJUSP5X2.js";
13
+ } from "./chunk-ZID2Y4XU.js";
14
14
  import {
15
+ QUERY_ARGUMENT,
15
16
  lentConnection,
16
17
  onlineDeps,
17
18
  refuseLacking,
18
19
  servicesFor,
19
20
  storeModeDeps
20
- } from "./chunk-5ZPLOYTP.js";
21
+ } from "./chunk-JDQSX2JQ.js";
21
22
  import {
22
23
  ENTITIES
23
- } from "./chunk-3BD24JYK.js";
24
+ } from "./chunk-452UZ2PU.js";
24
25
  import {
25
26
  DEFAULT_OUTPUT_BYTES,
26
27
  LOCAL_WRITE,
@@ -43,21 +44,24 @@ import {
43
44
  sealed,
44
45
  startRecording,
45
46
  traceOf
46
- } from "./chunk-KLHLWKWC.js";
47
+ } from "./chunk-GX4LRLVD.js";
47
48
  import {
48
49
  currentCaller,
49
50
  keepsSuccess,
50
51
  runContextOf,
51
52
  withCaller
52
- } from "./chunk-5FJQG5UZ.js";
53
+ } from "./chunk-Z6TRIW2O.js";
54
+ import {
55
+ queryDescription
56
+ } from "./chunk-HNN7EKIM.js";
53
57
  import {
54
58
  MAX_BUFFERED_INPUT
55
- } from "./chunk-2ZH3PUQX.js";
59
+ } from "./chunk-AVUIWZTP.js";
56
60
  import {
57
61
  captureStreams,
58
62
  errorObjectOf,
59
63
  mcpErrorResult
60
- } from "./chunk-BWRCPMMC.js";
64
+ } from "./chunk-KQ23JWLJ.js";
61
65
  import {
62
66
  CliError,
63
67
  SNAKE_CASE,
@@ -96,15 +100,15 @@ import {
96
100
  unknown,
97
101
  word,
98
102
  writes
99
- } from "./chunk-EO563SUX.js";
103
+ } from "./chunk-PCRLXJRH.js";
100
104
  import {
101
105
  __name
102
106
  } from "./chunk-ZVVMGPBJ.js";
103
107
 
104
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
108
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
105
109
  import { Readable } from "node:stream";
106
110
 
107
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
111
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
108
112
  var LINT_SEVERITIES = ["high", "medium", "low"];
109
113
  var lintRuleSchema = strictObject({
110
114
  id: word,
@@ -231,7 +235,7 @@ var overridesSchema = array(strictObject({
231
235
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
232
236
  }));
233
237
 
234
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
238
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
235
239
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
236
240
  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");
237
241
  var AUDIT_RULES = defineAuditRules([
@@ -291,18 +295,34 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
291
295
  ...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`absent\`, which measures the values itself; drop \`expected\``)
292
296
  ])
293
297
  ]), "defineParityGroups");
298
+ var MEMO_HAS_NO_PROFILES = [
299
+ "mcp serve",
300
+ "mcp revoke",
301
+ "mcp server start",
302
+ "mcp server status",
303
+ "mcp server stop"
304
+ ].map((path) => ({
305
+ rule: "same-path-contract",
306
+ target: `${path} --profiles`,
307
+ absent: "memo",
308
+ 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)"
309
+ }));
294
310
  var PARITY_GROUPS = defineParityGroups([
295
311
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
296
312
  {
297
313
  name: "all",
298
- members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
314
+ members: ["tg", "max", "memo", "drive", "zm", "wa"],
299
315
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
300
- differences: ["mcp serve", "mcp revoke", "mcp server start", "mcp server status", "mcp server stop"].map((path) => ({
301
- rule: "same-path-contract",
302
- target: `${path} --profiles`,
303
- absent: "memo",
304
- 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)"
305
- }))
316
+ differences: MEMO_HAS_NO_PROFILES
317
+ },
318
+ // mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
319
+ // differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
320
+ // and moves back into "all" once its search is aligned with the messengers' or renamed.
321
+ {
322
+ name: "mail-shared",
323
+ members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
324
+ covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
325
+ differences: MEMO_HAS_NO_PROFILES
306
326
  },
307
327
  // gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
308
328
  // CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
@@ -324,7 +344,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
324
344
  { path: ["upgrade"], meaning: "updates the CLI" }
325
345
  ]);
326
346
 
327
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
347
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
328
348
  var fieldRuleSchema = strictObject({ id: word, rule: text });
329
349
  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");
330
350
  var FIELD_RULES = defineFieldRules([
@@ -340,7 +360,7 @@ var FIELD_RULES = defineFieldRules([
340
360
  }
341
361
  ]);
342
362
 
343
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
363
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
344
364
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
345
365
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
346
366
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -362,7 +382,7 @@ var IDENTIFIERS = defineIdentifiers([
362
382
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
363
383
  ]);
364
384
 
365
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
385
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
366
386
  var CALENDAR_FLAGS = [
367
387
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
368
388
  {
@@ -436,7 +456,7 @@ var CALENDAR_FLAGS = [
436
456
  }
437
457
  ];
438
458
 
439
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
459
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
440
460
  var HOW_FLAGS = [
441
461
  {
442
462
  name: "--limit",
@@ -1423,7 +1443,31 @@ var HOW_FLAGS = [
1423
1443
  }
1424
1444
  ];
1425
1445
 
1426
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1446
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
1447
+ var MAIL_FLAGS = [
1448
+ {
1449
+ name: "--cc",
1450
+ value: "<address>",
1451
+ role: "value",
1452
+ type: "string",
1453
+ meaning: "an e-mail address that gets a copy; repeat it for more"
1454
+ },
1455
+ {
1456
+ name: "--bcc",
1457
+ value: "<address>",
1458
+ role: "value",
1459
+ type: "string",
1460
+ meaning: "an e-mail address that gets a blind copy; repeat it for more"
1461
+ },
1462
+ {
1463
+ name: "--reply-all",
1464
+ role: "value",
1465
+ type: "switch",
1466
+ meaning: "with --reply-to, an e-mail reply also goes to everyone the message went to"
1467
+ }
1468
+ ];
1469
+
1470
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
1427
1471
  var WHAT_FLAGS = [
1428
1472
  {
1429
1473
  name: "--analysis-provider",
@@ -1868,7 +1912,14 @@ var WHAT_FLAGS = [
1868
1912
  meaning: "keep a token an operation returns only in this bot profile's keyring; never print it"
1869
1913
  },
1870
1914
  { name: "--task", value: "<id>", role: "target", type: "id", meaning: "a task, by id" },
1871
- { name: "--to", value: "<chat>", role: "target", type: "id", meaning: "the chat it goes to" },
1915
+ {
1916
+ name: "--to",
1917
+ value: "<chat>",
1918
+ role: "target",
1919
+ type: "id",
1920
+ otherValues: ["address"],
1921
+ meaning: "who it goes to: a chat in a messenger (<chat>), an e-mail address in mail (<address>, repeated for more)"
1922
+ },
1872
1923
  {
1873
1924
  name: "--topic-name",
1874
1925
  value: "<name>",
@@ -2318,7 +2369,8 @@ var WHAT_FLAGS = [
2318
2369
  value: "<ref>",
2319
2370
  role: "value",
2320
2371
  type: "string",
2321
- meaning: "what it is about, as a reference",
2372
+ otherValues: ["text"],
2373
+ meaning: "what it is about: a reference in a note or task (<ref>), the subject line in mail (<text>)",
2322
2374
  replaces: ["--about"]
2323
2375
  },
2324
2376
  {
@@ -2413,7 +2465,7 @@ var WHAT_FLAGS = [
2413
2465
  }
2414
2466
  ];
2415
2467
 
2416
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2468
+ // node_modules/.pnpm/@wirecat+cli-base@0.73.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
2417
2469
  var FLAG_TYPES = [
2418
2470
  "switch",
2419
2471
  "count",
@@ -2455,6 +2507,11 @@ var flagSchema = strictObject({
2455
2507
  type: picklist(FLAG_TYPES),
2456
2508
  role: picklist(Object.keys(FLAG_ROLES)),
2457
2509
  meaning: text,
2510
+ /**
2511
+ * Value names a domain other than the main one gives the flag, such as mail's `--to <address>` beside the
2512
+ * messengers' `<chat>`. The meaning for each says which is which. `flag-two-meanings` accepts these and no others.
2513
+ */
2514
+ otherValues: optional(array(pipe(string(), regex(/^[a-z][a-z0-9-]*$/, "a value name such as address")))),
2458
2515
  unit: optional(text),
2459
2516
  /** Other names for the same flag, which `flag-synonym` refuses. */
2460
2517
  replaces: optional(array(pipe(string(), regex(/^--[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a long flag"))))
@@ -2564,6 +2621,7 @@ var verbs = [
2564
2621
  ["vote", "answer a poll"],
2565
2622
  ["answer", "reply to a button someone pressed under a bot's message"],
2566
2623
  ["respond", "answer an invitation: accept, tentatively accept or decline it"],
2624
+ ["remind", "tell the owner once about what starts soon: print it, or run the owner's own program for it"],
2567
2625
  ["press", "press a button under a bot's message; the bot sees who pressed it"],
2568
2626
  ["action", "show what a bot is doing in a chat, such as typing, for a few seconds"],
2569
2627
  ["watch", "follow new events as they come, and keep them"],
@@ -2618,6 +2676,7 @@ var collections = [
2618
2676
  ["chats", "conversations in a messenger"],
2619
2677
  ["contacts", "identities in a messenger's contact list"],
2620
2678
  ["messages", "posts in a messenger chat, or emails"],
2679
+ ["drafts", "e-mails saved in a mailbox's Drafts folder, written and not sent"],
2621
2680
  ["polls", "polls in a chat"],
2622
2681
  ["reactions", "reactions to a message"],
2623
2682
  ["recipients", "who a message goes to"],
@@ -2764,10 +2823,10 @@ var VOCABULARY = defineVocabulary({
2764
2823
  ],
2765
2824
  views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
2766
2825
  roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
2767
- flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2826
+ flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2768
2827
  });
2769
2828
 
2770
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2829
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2771
2830
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2772
2831
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2773
2832
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2826,8 +2885,10 @@ var optionField = /* @__PURE__ */ __name((option, long, negated) => {
2826
2885
  }, "argv")
2827
2886
  };
2828
2887
  }, "optionField");
2829
- var argumentField = /* @__PURE__ */ __name((argument) => {
2830
- const one = argument.choices ? pipe(picklist(argument.choices), description(argument.description)) : text2(argument.description || argument.name);
2888
+ var argumentField = /* @__PURE__ */ __name((argument, query) => {
2889
+ const own = argument.description || argument.name;
2890
+ const about = query && argument.name === "query" ? own === QUERY_ARGUMENT ? queryDescription(query) : `${own}; ${queryDescription(query)}` : own;
2891
+ const one = argument.choices ? pipe(picklist(argument.choices), description(argument.description)) : text2(about);
2831
2892
  return {
2832
2893
  name: snake(argument.name),
2833
2894
  required: argument.required,
@@ -2853,7 +2914,7 @@ var stdinField = /* @__PURE__ */ __name(({ name, description: description2, json
2853
2914
  argv: /* @__PURE__ */ __name(() => [], "argv")
2854
2915
  }), "stdinField");
2855
2916
  var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin }) => {
2856
- const fields = info.arguments.map(argumentField);
2917
+ const fields = info.arguments.map((argument) => argumentField(argument, info.query));
2857
2918
  const read = stdin?.(info.path);
2858
2919
  if (read)
2859
2920
  fields.push(stdinField(read));
@@ -2988,7 +3049,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2988
3049
  }
2989
3050
  }, "runCommandForAgent");
2990
3051
 
2991
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3052
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2992
3053
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2993
3054
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2994
3055
  var message = pipe(
@@ -3247,7 +3308,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3247
3308
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3248
3309
  }, "failed");
3249
3310
 
3250
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3311
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3251
3312
  import { randomUUID } from "node:crypto";
3252
3313
  var MATCHES = 8;
3253
3314
  var ANSWER = answerSchema();
@@ -5,10 +5,10 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-AUWYMMYL.js";
8
+ } from "./chunk-VDEXNNMH.js";
9
9
  import {
10
10
  CliError
11
- } from "./chunk-EO563SUX.js";
11
+ } from "./chunk-PCRLXJRH.js";
12
12
  import {
13
13
  importFrom
14
14
  } from "./chunk-Y5E2WNWB.js";
@@ -16,12 +16,12 @@ import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
678
  return Unzip2;
679
679
  })();
680
680
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
684
684
  name,
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
858
858
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
859
859
  }, "openSession");
860
860
 
861
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
862
862
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
863
863
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
864
864
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-TWZTQHP6.js";
5
+ } from "./chunk-OSBAISA5.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
9
- } from "./chunk-EO563SUX.js";
9
+ } from "./chunk-PCRLXJRH.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";