@wirecat/tg-cli 0.116.0 → 0.118.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 (125) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bot/transport.d.ts +1 -1
  3. package/dist/bot/transport.d.ts.map +1 -1
  4. package/dist/bot/transport.js +42 -30
  5. package/dist/bot/transport.js.map +1 -1
  6. package/dist/bundle/{adapter-6CLMTQOV.js → adapter-4YNP6VCO.js} +70 -61
  7. package/dist/bundle/{all-profiles-R2UZMH24.js → all-profiles-MIQDYAGO.js} +10 -10
  8. package/dist/bundle/{anthropic-QKIPHV2Z.js → anthropic-NTASPJYE.js} +6 -6
  9. package/dist/bundle/{app-server-AZB2MFK6.js → app-server-UJZBJ2SK.js} +49 -46
  10. package/dist/bundle/{bot-api-2IM243J4.js → bot-api-JZAD4L3N.js} +49 -49
  11. package/dist/bundle/{bot-history-G6CRVCL2.js → bot-history-OUDHH3NU.js} +18 -18
  12. package/dist/bundle/{bun-JDKPISPX.js → bun-EC4HDIRD.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-X5PY5IQT.js → bun-sqlite-A4HJR6KO.js} +5 -5
  14. package/dist/bundle/{chunk-SD5PUYKF.js → chunk-2KQHUBTV.js} +12 -12
  15. package/dist/bundle/{chunk-QHBVGKC3.js → chunk-2NA5KVP6.js} +210 -82
  16. package/dist/bundle/{chunk-PPLFOIYX.js → chunk-3MQOLYAN.js} +4 -4
  17. package/dist/bundle/{chunk-QGL2UGML.js → chunk-4BV4UMBB.js} +738 -235
  18. package/dist/bundle/{chunk-Y6VWGJ4Q.js → chunk-57LKX6N2.js} +4 -2
  19. package/dist/bundle/{chunk-BGMV66FC.js → chunk-5IIU7X4S.js} +1 -1
  20. package/dist/bundle/{chunk-H72UEHNG.js → chunk-5LDWBEWU.js} +55 -33
  21. package/dist/bundle/{chunk-XQUTJITP.js → chunk-5QYU7B27.js} +763 -130
  22. package/dist/bundle/chunk-65XV5PPI.js +64 -0
  23. package/dist/bundle/{chunk-NUYRMU56.js → chunk-6AXUEJGL.js} +2 -2
  24. package/dist/bundle/{chunk-N42VUNTO.js → chunk-6RI4TEIC.js} +2 -2
  25. package/dist/bundle/{chunk-VQPLHOVQ.js → chunk-6ZMTEUVU.js} +6 -6
  26. package/dist/bundle/{chunk-MQ7MCVZV.js → chunk-76EKXFX2.js} +2 -2
  27. package/dist/bundle/{chunk-K62YATVD.js → chunk-BNEP5EOV.js} +18 -4
  28. package/dist/bundle/{chunk-EB2IULWB.js → chunk-BXTDAGM4.js} +2 -2
  29. package/dist/bundle/{chunk-HBUJNNZD.js → chunk-CEY43D3A.js} +31 -29
  30. package/dist/bundle/chunk-DKFC5ZZ3.js +208 -0
  31. package/dist/bundle/{chunk-FDI4GOIP.js → chunk-DSZJREEO.js} +463 -358
  32. package/dist/bundle/{chunk-76CX2YPT.js → chunk-EPCFXKTX.js} +8 -8
  33. package/dist/bundle/{chunk-KA6EGOJY.js → chunk-EPXVRJAX.js} +2 -2
  34. package/dist/bundle/{chunk-4IQZRW4O.js → chunk-EQJ6NLF5.js} +13 -13
  35. package/dist/bundle/{chunk-4D5AUWAY.js → chunk-FHMK6OK4.js} +43 -25
  36. package/dist/bundle/{chunk-RSDIPQXP.js → chunk-G3RT2EQI.js} +2 -2
  37. package/dist/bundle/{chunk-IR4S7POE.js → chunk-GI4MTNA2.js} +8 -8
  38. package/dist/bundle/{chunk-HK6SIIGG.js → chunk-GIM37COQ.js} +3 -3
  39. package/dist/bundle/{chunk-UCSFO5GW.js → chunk-GLRRCKP6.js} +3 -3
  40. package/dist/bundle/{chunk-YYKJN6H5.js → chunk-GXCJ47SJ.js} +1499 -710
  41. package/dist/bundle/{chunk-GV7ZJ33M.js → chunk-H6S3C3MH.js} +4 -4
  42. package/dist/bundle/{chunk-LXH3SKY3.js → chunk-HJNRIK5X.js} +8 -8
  43. package/dist/bundle/{chunk-5VFPUOJO.js → chunk-I4TI5HDJ.js} +11 -11
  44. package/dist/bundle/{chunk-RSNGMNU5.js → chunk-JLJKGKU2.js} +6 -6
  45. package/dist/bundle/{chunk-T7CDLV33.js → chunk-JPVFYMSQ.js} +22 -14
  46. package/dist/bundle/{chunk-B4UOCWM4.js → chunk-JWIUK3SK.js} +2 -2
  47. package/dist/bundle/{chunk-LSKGCJWD.js → chunk-JWPSVS6C.js} +21246 -4044
  48. package/dist/bundle/{chunk-JJMQA272.js → chunk-JZETEZHC.js} +8 -21
  49. package/dist/bundle/{chunk-42GK3XRS.js → chunk-KEDHX6XG.js} +2 -2
  50. package/dist/bundle/{chunk-QAKL3GXB.js → chunk-MBH7IKLT.js} +1 -1
  51. package/dist/bundle/{chunk-HLNYJPAB.js → chunk-MZNOASAW.js} +2 -2
  52. package/dist/bundle/{chunk-YLRTLZF6.js → chunk-NKFTZVQU.js} +1 -1
  53. package/dist/bundle/{chunk-577MFPCP.js → chunk-NMT2VGEI.js} +3 -3
  54. package/dist/bundle/{chunk-5ZIBAYIZ.js → chunk-NUCDEOFC.js} +2 -2
  55. package/dist/bundle/{chunk-NL3PAFAE.js → chunk-OTQDJUES.js} +6 -6
  56. package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
  57. package/dist/bundle/{chunk-TZVL4U7U.js → chunk-PB252TT3.js} +4 -2
  58. package/dist/bundle/{chunk-HUOXUI2M.js → chunk-PO74BDER.js} +58 -47
  59. package/dist/bundle/{chunk-LFKEKSI5.js → chunk-PW3HFIJA.js} +523 -239
  60. package/dist/bundle/{chunk-5FCONCJO.js → chunk-PWCQC56A.js} +1 -1
  61. package/dist/bundle/{chunk-XBIPSSKI.js → chunk-QOGYHU3Q.js} +4 -4
  62. package/dist/bundle/{chunk-JFTCOV37.js → chunk-RG2E7ZQZ.js} +180 -25
  63. package/dist/bundle/{chunk-R52RMHWF.js → chunk-TMTEWOQS.js} +3 -3
  64. package/dist/bundle/{chunk-I6JF43YP.js → chunk-TSTEZNSX.js} +3 -3
  65. package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
  66. package/dist/bundle/{chunk-SKZ2E3WC.js → chunk-Y64SI2RO.js} +47 -1
  67. package/dist/bundle/{chunk-DP5LRU7K.js → chunk-YEOSV6JC.js} +1 -1
  68. package/dist/bundle/{chunk-OX6EWGSG.js → chunk-YHZFGUAP.js} +19 -19
  69. package/dist/bundle/{chunk-N6TIFJHW.js → chunk-YPRUWRKE.js} +1 -1
  70. package/dist/bundle/{chunk-PPSUA3IZ.js → chunk-ZMUC3UQO.js} +3 -3
  71. package/dist/bundle/{chunk-PXMHBTK3.js → chunk-ZXXTJF4Z.js} +4 -4
  72. package/dist/bundle/command-contract-7GZ6HAA6.js +33 -0
  73. package/dist/bundle/{decode-W6YPTGJA.js → decode-NMNPLKNR.js} +5 -5
  74. package/dist/bundle/{dispatch-H7EFNBEH.js → dispatch-OP27MWX5.js} +8 -8
  75. package/dist/bundle/{echarts-YAWDIC5D.js → echarts-S46LEIPS.js} +2 -2
  76. package/dist/bundle/{embed-EN4UTLV5.js → embed-I5ZYHGYC.js} +6 -6
  77. package/dist/bundle/{embedder-HEKHRL7E.js → embedder-LTJI67N2.js} +9 -9
  78. package/dist/bundle/{entry-2KB6MTCG.js → entry-O6BUPXF7.js} +7 -7
  79. package/dist/bundle/{failure-3DU3HLBQ.js → failure-4JUQFXJT.js} +2 -2
  80. package/dist/bundle/{first-run-LBG26WWO.js → first-run-PMZNCDGD.js} +11 -11
  81. package/dist/bundle/first-screen-BGML5DSO.js +31 -0
  82. package/dist/bundle/{instructions-HA62QNPR.js → instructions-AUEGY3VO.js} +1 -1
  83. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
  84. package/dist/bundle/{node-MZ2VWSQQ.js → node-XRA7RBCQ.js} +2 -2
  85. package/dist/bundle/{node-sqlite-KNNS6DCM.js → node-sqlite-DEZO6LRS.js} +6 -6
  86. package/dist/bundle/{oauth-KWUABBSQ.js → oauth-DAVC7WCD.js} +7 -7
  87. package/dist/bundle/{open-JXMCYCIV.js → open-DE2YO4T7.js} +5 -5
  88. package/dist/bundle/{openai-HL3IR4VT.js → openai-5BKGAULH.js} +14 -14
  89. package/dist/bundle/{process-K2FICLWY.js → process-4ZHPNUIQ.js} +1 -1
  90. package/dist/bundle/{program-IFOMT4JS.js → program-EGTKSNB4.js} +51 -51
  91. package/dist/bundle/{prompt-HVD3Q77P.js → prompt-HWCWHHPE.js} +5 -5
  92. package/dist/bundle/{proxy-transport-PA5SGMRY.js → proxy-transport-4DPZB2W2.js} +5 -5
  93. package/dist/bundle/{recognize-HHLVETKI.js → recognize-NG6RXNGF.js} +4 -4
  94. package/dist/bundle/{remote-HUAKXJCS.js → remote-ZKXIIGYH.js} +7 -7
  95. package/dist/bundle/{rerank-NWFIV7OF.js → rerank-TX5QFURV.js} +7 -7
  96. package/dist/bundle/{serve-ANUKAJJN.js → serve-XAS6DECW.js} +9 -9
  97. package/dist/bundle/{server-7Q7WAOHO.js → server-CNPIWBYU.js} +35 -35
  98. package/dist/bundle/server-FRTKLHZF.js +60 -0
  99. package/dist/bundle/{state-Y2AJ5XTP.js → state-3HTUETTS.js} +6 -6
  100. package/dist/bundle/{store-S3IG5KWL.js → store-B5VZWJHN.js} +23 -13
  101. package/dist/bundle/store-maintenance-command-VG3CLELA.js +50 -0
  102. package/dist/bundle/tg.js +13 -13
  103. package/dist/telegram/account.d.ts.map +1 -1
  104. package/dist/telegram/account.js +4 -1
  105. package/dist/telegram/account.js.map +1 -1
  106. package/dist/telegram/errors.d.ts.map +1 -1
  107. package/dist/telegram/errors.js +2 -1
  108. package/dist/telegram/errors.js.map +1 -1
  109. package/dist/telegram/feature.d.ts +4 -1
  110. package/dist/telegram/feature.d.ts.map +1 -1
  111. package/dist/telegram/feature.js +5 -2
  112. package/dist/telegram/feature.js.map +1 -1
  113. package/dist/telegram/sending.d.ts.map +1 -1
  114. package/dist/telegram/sending.js +24 -10
  115. package/dist/telegram/sending.js.map +1 -1
  116. package/dist/version.d.ts +1 -1
  117. package/dist/version.js +1 -1
  118. package/package.json +3 -3
  119. package/dist/bundle/chunk-K2RYCCTP.js +0 -48
  120. package/dist/bundle/chunk-ZDIAPICE.js +0 -132
  121. package/dist/bundle/command-contract-DPXM4SZT.js +0 -33
  122. package/dist/bundle/first-screen-TGTSLUI6.js +0 -31
  123. package/dist/bundle/server-HCQS4YDQ.js +0 -60
  124. package/dist/bundle/store-maintenance-command-V2WC4G6J.js +0 -50
  125. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-JFTCOV37.js";
10
+ } from "./chunk-RG2E7ZQZ.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-42GK3XRS.js";
13
+ } from "./chunk-KEDHX6XG.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-FDI4GOIP.js";
21
+ } from "./chunk-DSZJREEO.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -42,23 +42,26 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-LFKEKSI5.js";
45
+ } from "./chunk-PW3HFIJA.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-JJMQA272.js";
51
+ } from "./chunk-JZETEZHC.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-QGL2UGML.js";
54
+ } from "./chunk-4BV4UMBB.js";
55
+ import {
56
+ storeDamaged
57
+ } from "./chunk-Y64SI2RO.js";
55
58
  import {
56
59
  MAX_BUFFERED_INPUT
57
- } from "./chunk-NUYRMU56.js";
60
+ } from "./chunk-6AXUEJGL.js";
58
61
  import {
59
62
  captureStreams,
60
63
  traceIdOf
61
- } from "./chunk-OX6EWGSG.js";
64
+ } from "./chunk-YHZFGUAP.js";
62
65
  import {
63
66
  COMPACT_FLAG,
64
67
  SNAKE_CASE,
@@ -97,19 +100,19 @@ import {
97
100
  unknown,
98
101
  word,
99
102
  writes
100
- } from "./chunk-76CX2YPT.js";
103
+ } from "./chunk-EPCFXKTX.js";
101
104
  import {
102
105
  CliError,
103
106
  errorCodes
104
- } from "./chunk-EB2IULWB.js";
107
+ } from "./chunk-BXTDAGM4.js";
105
108
  import {
106
109
  __name
107
110
  } from "./chunk-ZVVMGPBJ.js";
108
111
 
109
- // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/mcp/agent.js
112
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/agent.js
110
113
  import { Readable } from "node:stream";
111
114
 
112
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
115
+ // 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
116
  var LINT_SEVERITIES = ["high", "medium", "low"];
114
117
  var lintRuleSchema = strictObject({
115
118
  id: word,
@@ -237,7 +240,7 @@ var overrideSchema = strictObject({
237
240
  });
238
241
  var overridesSchema = array(overrideSchema);
239
242
 
240
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
243
+ // 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
244
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
242
245
  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
246
  var AUDIT_RULES = defineAuditRules([
@@ -333,6 +336,14 @@ var PARITY_GROUPS = defineParityGroups([
333
336
  members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
334
337
  covers: ["commands", "upgrade", "notes", "meetings"],
335
338
  differences: []
339
+ },
340
+ // bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's meetings take call recordings, not
341
+ // zoom-cli's: both are compared on the root commands every CLI shares, the way gcal and mail are on theirs.
342
+ {
343
+ name: "shared-roots",
344
+ members: ["tg", "max", "memo", "drive", "zm", "wa", "b24", "beeline"],
345
+ covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
346
+ differences: MEMO_HAS_NO_PROFILES
336
347
  }
337
348
  ]);
338
349
  var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
@@ -346,7 +357,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
346
357
  { path: ["upgrade"], meaning: "updates the CLI" }
347
358
  ]);
348
359
 
349
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
360
+ // 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
361
  var fieldRuleSchema = strictObject({ id: word, rule: text });
351
362
  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
363
  var FIELD_RULES = defineFieldRules([
@@ -362,7 +373,7 @@ var FIELD_RULES = defineFieldRules([
362
373
  }
363
374
  ]);
364
375
 
365
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
376
+ // 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
377
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
367
378
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
368
379
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -384,7 +395,7 @@ var IDENTIFIERS = defineIdentifiers([
384
395
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
385
396
  ]);
386
397
 
387
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
398
+ // 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
399
  var CALENDAR_FLAGS = [
389
400
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
390
401
  {
@@ -458,7 +469,47 @@ var CALENDAR_FLAGS = [
458
469
  }
459
470
  ];
460
471
 
461
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
472
+ // 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
473
+ var CRM_FLAGS = [
474
+ {
475
+ name: "--pipeline",
476
+ value: "<pipeline>",
477
+ role: "value",
478
+ type: "string",
479
+ meaning: "a CRM pipeline: pipeline:<id>, or a name only one pipeline has"
480
+ },
481
+ {
482
+ name: "--stage",
483
+ value: "<stage>",
484
+ role: "value",
485
+ type: "string",
486
+ meaning: "a stage of the record's pipeline, by the CRM's id or its name"
487
+ },
488
+ {
489
+ name: "--amount",
490
+ value: "<decimal>",
491
+ role: "value",
492
+ type: "string",
493
+ meaning: "a sum of money as a decimal, such as 1500.50, in --currency"
494
+ },
495
+ { name: "--currency", value: "<code>", role: "value", type: "string", meaning: "an ISO 4217 code, such as EUR" },
496
+ {
497
+ name: "--close-date",
498
+ value: "<date>",
499
+ role: "value",
500
+ type: "time",
501
+ meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
502
+ },
503
+ {
504
+ name: "--owner",
505
+ value: "<user>",
506
+ role: "value",
507
+ type: "id",
508
+ meaning: "the CRM user a record is assigned to, by the CRM's id"
509
+ }
510
+ ];
511
+
512
+ // 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
513
  var HOW_FLAGS = [
463
514
  {
464
515
  name: "--limit",
@@ -783,6 +834,7 @@ var HOW_FLAGS = [
783
834
  meaning: "tell the people it concerns about it: the chat's members, or an event's attendees"
784
835
  },
785
836
  { name: "--no-notify", role: "mode", type: "switch", meaning: "tell nobody about it" },
837
+ { name: "--open-new", role: "mode", type: "switch", meaning: "a read again for tasks also opens new tasks" },
786
838
  { name: "--offline", role: "mode", type: "switch", meaning: "answer from what was recorded and never connect" },
787
839
  {
788
840
  name: "--operation-id",
@@ -1452,7 +1504,7 @@ var HOW_FLAGS = [
1452
1504
  }
1453
1505
  ];
1454
1506
 
1455
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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-mail.js
1507
+ // 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
1508
  var MAIL_FLAGS = [
1457
1509
  {
1458
1510
  name: "--cc",
@@ -1482,7 +1534,94 @@ var MAIL_FLAGS = [
1482
1534
  }
1483
1535
  ];
1484
1536
 
1485
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
1537
+ // 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
1538
+ var PRIVACY_FLAGS = [
1539
+ {
1540
+ name: "--about-text",
1541
+ value: "<who>",
1542
+ role: "value",
1543
+ type: "choice",
1544
+ meaning: "who sees the about text: everyone, contacts or nobody"
1545
+ },
1546
+ {
1547
+ name: "--calls",
1548
+ value: "<who>",
1549
+ role: "value",
1550
+ type: "choice",
1551
+ meaning: "whose calls ring: everyone, contacts or nobody"
1552
+ },
1553
+ {
1554
+ name: "--chat-invites",
1555
+ value: "<who>",
1556
+ role: "value",
1557
+ type: "choice",
1558
+ meaning: "who may add the account to groups and channels: everyone, contacts or nobody"
1559
+ },
1560
+ {
1561
+ name: "--find-by-phone",
1562
+ value: "<who>",
1563
+ role: "value",
1564
+ type: "choice",
1565
+ meaning: "who finds the account by its number: everyone, contacts or nobody"
1566
+ },
1567
+ {
1568
+ name: "--hide-online",
1569
+ value: "<on|off>",
1570
+ role: "value",
1571
+ type: "choice",
1572
+ meaning: "hide online status and last seen"
1573
+ },
1574
+ {
1575
+ name: "--last-seen",
1576
+ value: "<who>",
1577
+ role: "value",
1578
+ type: "choice",
1579
+ meaning: "who sees when the account was last online: everyone, contacts or nobody"
1580
+ },
1581
+ {
1582
+ name: "--phone-number",
1583
+ value: "<who>",
1584
+ role: "value",
1585
+ type: "choice",
1586
+ meaning: "who sees the number: everyone, contacts or nobody"
1587
+ },
1588
+ {
1589
+ name: "--profile-photo",
1590
+ value: "<who>",
1591
+ role: "value",
1592
+ type: "choice",
1593
+ meaning: "who sees the profile photo: everyone, contacts or nobody"
1594
+ },
1595
+ { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1596
+ ];
1597
+
1598
+ // 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
1599
+ var SCHEDULE_FLAGS = [
1600
+ {
1601
+ name: "--notify-on",
1602
+ value: "<when>",
1603
+ role: "value",
1604
+ type: "choice",
1605
+ meaning: "when a scheduled run tells the owner: always, failures or never"
1606
+ },
1607
+ {
1608
+ name: "--deliver-to",
1609
+ value: "<route>",
1610
+ role: "value",
1611
+ type: "string",
1612
+ 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"
1613
+ },
1614
+ {
1615
+ name: "--max-cost-per-day",
1616
+ value: "<usd>",
1617
+ role: "budget",
1618
+ type: "number",
1619
+ meaning: "start no run for the rest of the day once the day's runs cost this much; 0 for no cap",
1620
+ unit: "US dollars"
1621
+ }
1622
+ ];
1623
+
1624
+ // 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
1625
  var WHAT_FLAGS = [
1487
1626
  {
1488
1627
  name: "--analysis-provider",
@@ -1905,6 +2044,20 @@ var WHAT_FLAGS = [
1905
2044
  meaning: "look again from this day, for what arrived late"
1906
2045
  },
1907
2046
  { name: "--run", value: "<id>", role: "target", type: "id", meaning: "the run it is about" },
2047
+ {
2048
+ name: "--who",
2049
+ value: "<side>",
2050
+ role: "target",
2051
+ type: "choice",
2052
+ meaning: "whose replies are measured: me (the owner's) or others (the other side's)"
2053
+ },
2054
+ {
2055
+ name: "--write",
2056
+ value: "<id>",
2057
+ role: "target",
2058
+ type: "id",
2059
+ meaning: "one write of a run, by the operation_id its answer listed: undo or act on that write alone"
2060
+ },
1908
2061
  {
1909
2062
  name: "--target",
1910
2063
  value: "<ref>",
@@ -2107,63 +2260,6 @@ var WHAT_FLAGS = [
2107
2260
  type: "path",
2108
2261
  meaning: "an Ogg Opus file sent as a voice message"
2109
2262
  },
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
2263
  {
2168
2264
  name: "--until",
2169
2265
  value: "<time>",
@@ -2266,6 +2362,13 @@ var WHAT_FLAGS = [
2266
2362
  type: "id",
2267
2363
  meaning: "never show this chat in it; repeat it for more"
2268
2364
  },
2365
+ {
2366
+ name: "--field",
2367
+ value: "<key=value>",
2368
+ role: "value",
2369
+ type: "string",
2370
+ meaning: "set one named field on a write, as key=value; repeat it for more"
2371
+ },
2269
2372
  {
2270
2373
  name: "--file",
2271
2374
  value: "<file>",
@@ -2480,7 +2583,7 @@ var WHAT_FLAGS = [
2480
2583
  }
2481
2584
  ];
2482
2585
 
2483
- // node_modules/.pnpm/@wirecat+cli-base@0.77.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
2586
+ // 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
2587
  var FLAG_TYPES = [
2485
2588
  "switch",
2486
2589
  "count",
@@ -2621,6 +2724,7 @@ var verbs = [
2621
2724
  // Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
2622
2725
  ["link", "record that two identities are one person"],
2623
2726
  ["unlink", "undo a link"],
2727
+ ["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
2624
2728
  ["lookup", "ask the messenger who is behind a phone number"],
2625
2729
  [
2626
2730
  "inspect",
@@ -2721,6 +2825,20 @@ var collections = [
2721
2825
  "derived records attached to a selected entity, with explicit coverage of included and omitted facets"
2722
2826
  ],
2723
2827
  ["organizations", "companies, teams, families or communities"],
2828
+ [
2829
+ "records",
2830
+ "documents of the owner's business, such as an invoice or a receipt, kept with the things they are about"
2831
+ ],
2832
+ ["invoices", "bills the owner sends or receives, with their amounts and due dates"],
2833
+ ["orders", "what a customer asked for and the owner owes or delivers"],
2834
+ ["payments", "money that moved in or out, each one matched to the invoices it settles"],
2835
+ ["deals", "sales the owner works on, each at a stage of a pipeline, with an amount and an outcome"],
2836
+ ["leads", "possible customers not yet qualified into a deal"],
2837
+ ["pipelines", "ordered sets of stages a deal moves through"],
2838
+ ["stages", "steps of a pipeline, each open, won or lost"],
2839
+ ["products", "goods and services the owner sells, with their prices"],
2840
+ ["users", "people who work in the owner's account at a service, such as a CRM's employees"],
2841
+ ["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
2724
2842
  [
2725
2843
  "identities",
2726
2844
  "ways to reach a person or an organization: an account in one messenger or mailbox, an e-mail address, a phone"
@@ -2815,6 +2933,7 @@ var views = [
2815
2933
  ["newcomers", "members observed joining during the selected time window"],
2816
2934
  ["retention", "whether members of a selected cohort remain or return over time"],
2817
2935
  ["responses", "observed replies between participants and the time taken to answer"],
2936
+ ["waiting", "chats whose newest message waits on the owner's reply"],
2818
2937
  ["discussion", "source posts compared by known views and observed discussion replies"],
2819
2938
  ["unanswered", "questions without an observed qualifying answer"],
2820
2939
  ["me", "the account a profile's token belongs to"],
@@ -2829,6 +2948,7 @@ var roots = [
2829
2948
  ["serve", "the long-running process"],
2830
2949
  ["setup", "the guided first run: log in or link the account, then install the agent skill"],
2831
2950
  ["doctor", "check this machine's setup"],
2951
+ ["recover", "repair a damaged store: what it would do, then its run subcommand does it"],
2832
2952
  ["upgrade", "install a newer version of this tool"],
2833
2953
  ["commands", "the command tree as data"],
2834
2954
  ["guide", "scenarios: the commands for a common task, in order, and why each"],
@@ -2850,10 +2970,18 @@ var VOCABULARY = defineVocabulary({
2850
2970
  ],
2851
2971
  views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
2852
2972
  roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
2853
- flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2973
+ flags: [
2974
+ ...HOW_FLAGS,
2975
+ ...WHAT_FLAGS,
2976
+ ...PRIVACY_FLAGS,
2977
+ ...CALENDAR_FLAGS,
2978
+ ...MAIL_FLAGS,
2979
+ ...CRM_FLAGS,
2980
+ ...SCHEDULE_FLAGS
2981
+ ]
2854
2982
  });
2855
2983
 
2856
- // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2984
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2857
2985
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2858
2986
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2859
2987
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3076,7 +3204,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3076
3204
  }
3077
3205
  }, "runCommandForAgent");
3078
3206
 
3079
- // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3207
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3080
3208
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3081
3209
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3082
3210
  var message = pipe(
@@ -3332,10 +3460,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
3332
3460
  var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3333
3461
  const judged = judgedEffects(effects);
3334
3462
  const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
3335
- return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3463
+ return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3336
3464
  }, "failed");
3337
3465
 
3338
- // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3466
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3339
3467
  import { randomUUID } from "node:crypto";
3340
3468
  var MATCHES = 8;
3341
3469
  var ANSWER = answerSchema();
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-YPF6OS37.js";
6
+ } from "./chunk-VW6BF6M7.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-OX6EWGSG.js";
13
+ } from "./chunk-YHZFGUAP.js";
14
14
  import {
15
15
  number,
16
16
  object,
17
17
  optional,
18
18
  string
19
- } from "./chunk-76CX2YPT.js";
19
+ } from "./chunk-EPCFXKTX.js";
20
20
  import {
21
21
  __name,
22
22
  __toESM
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
25
+ // 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/update/index.js
26
26
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
27
27
  import { existsSync } from "node:fs";
28
28
  var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {