@wirecat/mail-cli 0.25.0 → 0.27.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 (157) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +3 -0
  3. package/contracts/wirecat.json +1325 -0
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bin/mail.js.map +1 -1
  6. package/dist/bundle/{all-profiles-QEV2PSOR.js → all-profiles-5XWH7TBM.js} +11 -11
  7. package/dist/bundle/{anthropic-5NKQXIHM.js → anthropic-QEQGUEPW.js} +5 -5
  8. package/dist/bundle/{app-server-G2CJNT4R.js → app-server-YWDU56NR.js} +55 -51
  9. package/dist/bundle/{bun-6HBYWQIX.js → bun-PWMM6L45.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-DXIQ7BVR.js → bun-sqlite-S4QD5YUO.js} +6 -6
  11. package/dist/bundle/{chunk-37F6QYTO.js → chunk-255RGG5W.js} +6 -6
  12. package/dist/bundle/{chunk-DIA56CS7.js → chunk-2FZMIJW7.js} +11 -7
  13. package/dist/bundle/{chunk-S2QRAKQI.js → chunk-4VDWQKDI.js} +17 -17
  14. package/dist/bundle/{chunk-QB3DP2TN.js → chunk-572NWJUN.js} +2 -2
  15. package/dist/bundle/{chunk-PHHH2NQP.js → chunk-5BPOEPYL.js} +15 -113
  16. package/dist/bundle/{chunk-VL6H2BND.js → chunk-5DLPM5AV.js} +18 -17
  17. package/dist/bundle/{chunk-HEIDAHRC.js → chunk-77J5ID2O.js} +2 -2
  18. package/dist/bundle/{chunk-5ZYFV6FD.js → chunk-7BXOFLWJ.js} +129 -74
  19. package/dist/bundle/{chunk-L4QVOEOB.js → chunk-7C6FGWDH.js} +4 -4
  20. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
  21. package/dist/bundle/{chunk-TY644DKQ.js → chunk-7MEVD5PI.js} +57 -28
  22. package/dist/bundle/{chunk-WOAYHCM2.js → chunk-AIEMFRBU.js} +1 -1
  23. package/dist/bundle/{chunk-WX6OYVCH.js → chunk-AIZ225IA.js} +379 -270
  24. package/dist/bundle/{chunk-K2OGF7KC.js → chunk-APLVXHFG.js} +2 -2
  25. package/dist/bundle/{chunk-GY4XCLCO.js → chunk-BZCXAVGP.js} +8 -8
  26. package/dist/bundle/{chunk-434YOD6A.js → chunk-CKFVKHTB.js} +4 -4
  27. package/dist/bundle/{chunk-B7SWTH5O.js → chunk-CZRMT6XV.js} +2 -2
  28. package/dist/bundle/{chunk-Z5T6OW3V.js → chunk-DQO2LX5I.js} +4 -4
  29. package/dist/bundle/{chunk-OLKCJBZY.js → chunk-DSUOYJUL.js} +5 -5
  30. package/dist/bundle/{chunk-IZOYW4Z4.js → chunk-ECZSYLSL.js} +24 -9
  31. package/dist/bundle/{chunk-YNS2YVUR.js → chunk-ELPH22W6.js} +9 -9
  32. package/dist/bundle/{chunk-JG4MNYG2.js → chunk-EXWZCI5G.js} +1 -1
  33. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  34. package/dist/bundle/{chunk-HLXVUMZJ.js → chunk-FOTP6QLO.js} +2 -2
  35. package/dist/bundle/{chunk-SMTBV62X.js → chunk-FVVSBQGK.js} +29 -25
  36. package/dist/bundle/{chunk-XQYKIZMG.js → chunk-HBK6MRAL.js} +12 -9
  37. package/dist/bundle/{chunk-5QYK3LWS.js → chunk-IDOHT4Z3.js} +123 -42
  38. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
  39. package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-KHBZ4OEP.js} +1 -1
  40. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  41. package/dist/bundle/{chunk-CBYBZCQP.js → chunk-MY4LVD64.js} +3 -2
  42. package/dist/bundle/{chunk-OLLIWNFG.js → chunk-NZG6IRDW.js} +3 -3
  43. package/dist/bundle/{chunk-ND5H5ADM.js → chunk-OC3U2JAK.js} +4 -4
  44. package/dist/bundle/{chunk-KFB2X6KE.js → chunk-OCUKQRJ3.js} +201 -160
  45. package/dist/bundle/{chunk-PQMJ5BXH.js → chunk-OEPNLKHI.js} +4 -4
  46. package/dist/bundle/{chunk-GJRYZXBN.js → chunk-OPOEAGVB.js} +9 -9
  47. package/dist/bundle/{chunk-VFU7PVPQ.js → chunk-PA7LDYVX.js} +62 -60
  48. package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-PJ3FKBXG.js} +1 -1
  49. package/dist/bundle/{chunk-A6BPOX5O.js → chunk-PRSXMM4I.js} +3825 -3516
  50. package/dist/bundle/{chunk-HEYVMAAQ.js → chunk-QQTSPQ2D.js} +2 -2
  51. package/dist/bundle/{chunk-IXO4SCKE.js → chunk-QVJMFZFW.js} +1 -1
  52. package/dist/bundle/{chunk-J4OYK4WL.js → chunk-R3A65A4D.js} +12 -12
  53. package/dist/bundle/{chunk-QQUY4MZY.js → chunk-R5FTCNLJ.js} +1 -1
  54. package/dist/bundle/{chunk-XMDEM6BZ.js → chunk-RGQFVVBB.js} +276 -254
  55. package/dist/bundle/{chunk-FZZD4AFY.js → chunk-ROLHKFKB.js} +26 -18
  56. package/dist/bundle/{chunk-PP3YOAWG.js → chunk-RRLAFEPQ.js} +3 -3
  57. package/dist/bundle/{chunk-3XVR2ROR.js → chunk-S2QRW647.js} +35 -31
  58. package/dist/bundle/{chunk-G5LHHAW2.js → chunk-S7H7TAC3.js} +6 -6
  59. package/dist/bundle/{chunk-U6IQ6YQ2.js → chunk-SXKKOOA7.js} +8 -2
  60. package/dist/bundle/{chunk-MBFPFWCO.js → chunk-T7VERZP5.js} +27 -27
  61. package/dist/bundle/{chunk-ADKMBXY4.js → chunk-TI2OANJZ.js} +1 -1
  62. package/dist/bundle/{chunk-EXVY76VO.js → chunk-TKOZCIHU.js} +19 -18
  63. package/dist/bundle/{chunk-BC7PFQL7.js → chunk-UBH4UPZ7.js} +40 -2
  64. package/dist/bundle/{chunk-P6GXNT7Z.js → chunk-UEJVXUIO.js} +13 -13
  65. package/dist/bundle/{chunk-IACWKZWS.js → chunk-UIKVP23D.js} +1 -1
  66. package/dist/bundle/{chunk-LGZPKKBN.js → chunk-VYZ37D2Q.js} +3 -2
  67. package/dist/bundle/{chunk-HJSJBNCJ.js → chunk-WMXUFUV3.js} +28 -9
  68. package/dist/bundle/{chunk-CIWWNBVW.js → chunk-WRHAX53U.js} +8 -8
  69. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-XBL46B4V.js} +63 -5
  70. package/dist/bundle/{chunk-KK4HD3SI.js → chunk-XCYDTIVK.js} +7 -7
  71. package/dist/bundle/{chunk-PGC5TRH6.js → chunk-XM2THVMR.js} +3 -3
  72. package/dist/bundle/{chunk-MWGH3M46.js → chunk-ZSWSFKNE.js} +5 -7
  73. package/dist/bundle/{chunk-T27IMG6X.js → chunk-ZVQDOKDY.js} +1 -1
  74. package/dist/bundle/command-contract-MIJONVVG.js +36 -0
  75. package/dist/bundle/{command-server-entry-XMSSY5ID.js → command-server-entry-VHUFW3OZ.js} +25 -25
  76. package/dist/bundle/{decode-RYGB4PGT.js → decode-TIMTSVXM.js} +5 -5
  77. package/dist/bundle/{dispatch-PLQOIZG5.js → dispatch-DSVN7MNG.js} +8 -8
  78. package/dist/bundle/{dist-GY2AQETI.js → dist-IP25JFTN.js} +19 -15
  79. package/dist/bundle/{echarts-7CM2MCMW.js → echarts-SDZA2SWG.js} +2 -2
  80. package/dist/bundle/{embed-FTBDPOPT.js → embed-4W527BCE.js} +6 -6
  81. package/dist/bundle/{embedder-B43WGNBD.js → embedder-LQE2SBJ3.js} +9 -9
  82. package/dist/bundle/{failure-XP5QYV2T.js → failure-COTPFUP4.js} +2 -2
  83. package/dist/bundle/{first-run-XIIUARNM.js → first-run-KZTKMEI4.js} +12 -12
  84. package/dist/bundle/first-screen-4LG5SJ6D.js +34 -0
  85. package/dist/bundle/{instructions-R7OHVAWH.js → instructions-7T6JJIFS.js} +1 -1
  86. package/dist/bundle/mail.js +15 -20
  87. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  88. package/dist/bundle/{node-3N2JGZ7V.js → node-BZDMUFTW.js} +2 -2
  89. package/dist/bundle/{node-sqlite-WFJXW3CZ.js → node-sqlite-PVSKI4OS.js} +7 -7
  90. package/dist/bundle/{oauth-SVJLQTWV.js → oauth-TGYGAVGF.js} +7 -7
  91. package/dist/bundle/{open-ZDONVKSX.js → open-5YED4Q4C.js} +5 -5
  92. package/dist/bundle/{openai-XVEW6XOU.js → openai-XVJTML22.js} +21 -20
  93. package/dist/bundle/{process-YAHHUFR5.js → process-756VBE7E.js} +1 -1
  94. package/dist/bundle/{program-HU2UVMJE.js → program-TDHDXAQA.js} +1499 -998
  95. package/dist/bundle/{prompt-JAJ2CUJI.js → prompt-HPZANASN.js} +5 -5
  96. package/dist/bundle/{recognize-UFBWUNFR.js → recognize-PP5XQQHH.js} +4 -4
  97. package/dist/bundle/{remote-2GFOVLCR.js → remote-C2LU2WYG.js} +9 -9
  98. package/dist/bundle/{rerank-BGPSMXTL.js → rerank-WRHNOM4Z.js} +7 -7
  99. package/dist/bundle/{serve-CB3XJTH3.js → serve-RE3IV2QB.js} +9 -9
  100. package/dist/bundle/server-43V7HNFY.js +68 -0
  101. package/dist/bundle/{server-M7FQY7TX.js → server-52BJ7UTO.js} +44 -42
  102. package/dist/bundle/{sqlite-runtime-AEV6PGDR.js → sqlite-runtime-CRRL3MYX.js} +6 -6
  103. package/dist/bundle/{state-YLBEQLBI.js → state-YGJRPMWD.js} +6 -6
  104. package/dist/bundle/{store-EKWKY6GG.js → store-6AZ5LVJL.js} +21 -19
  105. package/dist/bundle/{store-CDUL3HKK.js → store-ESQE4VHP.js} +17 -17
  106. package/dist/bundle/store-maintenance-command-AKQMKUYO.js +58 -0
  107. package/dist/commands/rules.d.ts.map +1 -1
  108. package/dist/commands/rules.js +57 -19
  109. package/dist/commands/rules.js.map +1 -1
  110. package/dist/commands/session-start.d.ts.map +1 -1
  111. package/dist/commands/session-start.js +1 -1
  112. package/dist/commands/session-start.js.map +1 -1
  113. package/dist/config.d.ts +1 -0
  114. package/dist/config.d.ts.map +1 -1
  115. package/dist/config.js +13 -12
  116. package/dist/config.js.map +1 -1
  117. package/dist/discovery.d.ts.map +1 -1
  118. package/dist/discovery.js +7 -2
  119. package/dist/discovery.js.map +1 -1
  120. package/dist/identity.d.ts +2 -0
  121. package/dist/identity.d.ts.map +1 -1
  122. package/dist/identity.js +34 -0
  123. package/dist/identity.js.map +1 -1
  124. package/dist/mail/domain-age.d.ts +1 -1
  125. package/dist/mail/domain-age.d.ts.map +1 -1
  126. package/dist/mail/domain-age.js +9 -3
  127. package/dist/mail/domain-age.js.map +1 -1
  128. package/dist/mail/rules/file.d.ts.map +1 -1
  129. package/dist/mail/rules/file.js +4 -1
  130. package/dist/mail/rules/file.js.map +1 -1
  131. package/dist/mail/rules/query.d.ts +2 -1
  132. package/dist/mail/rules/query.d.ts.map +1 -1
  133. package/dist/mail/rules/query.js +16 -3
  134. package/dist/mail/rules/query.js.map +1 -1
  135. package/dist/oauth.d.ts +3 -1
  136. package/dist/oauth.d.ts.map +1 -1
  137. package/dist/oauth.js +48 -34
  138. package/dist/oauth.js.map +1 -1
  139. package/dist/reasons.d.ts.map +1 -1
  140. package/dist/reasons.js +5 -0
  141. package/dist/reasons.js.map +1 -1
  142. package/dist/store.d.ts.map +1 -1
  143. package/dist/store.js +2 -21
  144. package/dist/store.js.map +1 -1
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/dist/wcat.d.ts +3 -0
  148. package/dist/wcat.d.ts.map +1 -0
  149. package/dist/wcat.js +4 -0
  150. package/dist/wcat.js.map +1 -0
  151. package/package.json +10 -9
  152. package/dist/bundle/chunk-K6HR6HCO.js +0 -32
  153. package/dist/bundle/command-contract-XSW2Q33S.js +0 -36
  154. package/dist/bundle/first-screen-Z7HC6PQU.js +0 -34
  155. package/dist/bundle/server-34GEF22R.js +0 -68
  156. package/dist/bundle/store-maintenance-command-XH2JUM5F.js +0 -58
  157. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
@@ -2,9 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  commandPathOf,
5
- findCommand,
6
5
  outputOf
7
- } from "./chunk-OLKCJBZY.js";
6
+ } from "./chunk-DSUOYJUL.js";
8
7
  import {
9
8
  wrapAnsi
10
9
  } from "./chunk-HTQTIKWP.js";
@@ -18,119 +17,18 @@ import {
18
17
  environmentOf,
19
18
  metaOf,
20
19
  takesProfile
21
- } from "./chunk-KFB2X6KE.js";
20
+ } from "./chunk-OCUKQRJ3.js";
22
21
  import {
23
22
  writes
24
- } from "./chunk-IZOYW4Z4.js";
23
+ } from "./chunk-ECZSYLSL.js";
25
24
  import {
26
25
  CliError
27
- } from "./chunk-VUBZFMGP.js";
26
+ } from "./chunk-7KCBPAQS.js";
28
27
  import {
29
28
  __name
30
29
  } from "./chunk-ZVVMGPBJ.js";
31
30
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
- var SECTIONS = {
34
- read: "Read",
35
- write: "Write",
36
- organise: "Organise",
37
- automate: "Automate",
38
- setup: "Set up",
39
- other: "Other"
40
- };
41
- var sections = /* @__PURE__ */ new WeakMap();
42
- var sectionOf = /* @__PURE__ */ __name((command) => {
43
- for (let at = command; at; at = at.parent) {
44
- const section = sections.get(at) ?? (at.parent && !at.parent.parent ? CORE_SECTIONS[at.name()] : void 0);
45
- if (section)
46
- return section;
47
- }
48
- return "other";
49
- }, "sectionOf");
50
- var CORE_SECTIONS = {
51
- attachments: "read",
52
- chats: "read",
53
- contacts: "read",
54
- conversations: "read",
55
- images: "read",
56
- inbox: "read",
57
- meetings: "read",
58
- mentions: "read",
59
- messages: "read",
60
- review: "read",
61
- search: "read",
62
- stats: "read",
63
- topics: "read",
64
- watch: "read",
65
- flood: "write",
66
- polls: "write",
67
- reactions: "write",
68
- recipients: "write",
69
- sends: "write",
70
- metadata: "organise",
71
- searches: "organise",
72
- tags: "organise",
73
- tasks: "organise",
74
- bot: "automate",
75
- mcp: "automate",
76
- replies: "automate",
77
- runs: "automate",
78
- schedule: "automate",
79
- templates: "automate",
80
- serve: "automate",
81
- server: "automate",
82
- account: "setup",
83
- commands: "setup",
84
- complete: "setup",
85
- config: "setup",
86
- doctor: "setup",
87
- guide: "setup",
88
- models: "setup",
89
- skill: "setup",
90
- store: "setup",
91
- upgrade: "setup"
92
- };
93
-
94
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
95
- var DESCRIPTION = 90;
96
- var COLUMN = 52;
97
- var short = /* @__PURE__ */ __name((text) => {
98
- const line = text.replace(/\s+/g, " ").trim();
99
- if (line.length <= DESCRIPTION)
100
- return line;
101
- const cut = line.slice(0, DESCRIPTION);
102
- return `${cut.slice(0, Math.max(cut.lastIndexOf(" "), DESCRIPTION / 2))}\u2026`;
103
- }, "short");
104
- var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
105
- const cli = root.name();
106
- const runs = /* @__PURE__ */ __name((info) => [
107
- ...info.commands.length === 0 || info.runnable ? [info] : [],
108
- ...info.commands.flatMap(runs)
109
- ], "runs");
110
- const bySection = new Map(Object.keys(SECTIONS).map((key) => [key, []]));
111
- for (const info of commands.flatMap(runs))
112
- bySection.get(sectionOf(findCommand(root, info.path)))?.push(info);
113
- const where = scope ? `${cli} ${scope.join(" ")}` : cli;
114
- const lines = [
115
- `${where} commands, by section. One command's arguments and options: ${cli} <command> --help.`,
116
- `As JSON: ${cli} commands${scope ? ` ${scope.join(" ")}` : ""} --json. (writes) marks a command that changes something.`
117
- ];
118
- for (const [section, infos] of bySection) {
119
- if (infos.length === 0)
120
- continue;
121
- lines.push("", SECTIONS[section]);
122
- for (const { usage, summary, description, effects, availability } of infos) {
123
- const what = short(summary ?? description);
124
- const mark = effects === void 0 || writes(effects) ? " (writes)" : "";
125
- const access = availability?.available === false ? ` [unavailable: ${availability.reason}]` : "";
126
- lines.push(` ${usage.padEnd(COLUMN)} ${what}${mark}${access}`.trimEnd());
127
- }
128
- }
129
- return `${lines.join("\n")}
130
- `;
131
- }, "commandsText");
132
-
133
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
134
32
  var ARGUMENT_KINDS = {
135
33
  chat: "chat",
136
34
  chats: "chat",
@@ -204,8 +102,8 @@ var SAMPLES = {
204
102
  var MAX_NEXT = 3;
205
103
  var choices = /* @__PURE__ */ new WeakMap();
206
104
  var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
207
- var runsItself = /* @__PURE__ */ __name((command) => command._actionHandler != null, "runsItself");
208
- var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => child.commands.length === 0 ? [child] : [...runsItself(child) ? [child] : [], ...leaves(child)]), "leaves");
105
+ var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || Boolean(command._actionHandler), "runs");
106
+ var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child._hidden).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
209
107
  var rootOf = /* @__PURE__ */ __name((command) => {
210
108
  let at = command;
211
109
  while (at.parent)
@@ -228,7 +126,7 @@ var returnsOf = /* @__PURE__ */ __name((command) => {
228
126
  const output = metaOf(command).output;
229
127
  const { item, coverage } = outputOf(command);
230
128
  if (!output || coverage !== "declared-entity")
231
- return short(command.summary() || command.description()) || "not declared";
129
+ return "";
232
130
  const fields = [...new Set(fieldsOf(item))];
233
131
  const noun = (output.view ? `${output.entity} ${output.view}` : output.entity).replaceAll("_", " ");
234
132
  const more = fields.length > 8 ? `, and ${fields.length - 8} more` : "";
@@ -310,7 +208,7 @@ var commandHelpText = /* @__PURE__ */ __name((command) => {
310
208
  return [
311
209
  "",
312
210
  ...access,
313
- ...rows("Returns:", [returns]),
211
+ ...rows("Returns:", returns ? [returns] : []),
314
212
  ...rows("Next usually:", next),
315
213
  ...rows("Example:", examples),
316
214
  ""
@@ -323,7 +221,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
323
221
  command.addHelpText("after", () => commandHelpText(command));
324
222
  }, "installCommandHelp");
325
223
 
326
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
224
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
327
225
  var WIRECAT_TOOLS = [
328
226
  {
329
227
  command: "tg",
@@ -370,6 +268,11 @@ var WIRECAT_TOOLS = [
370
268
  command: "b24",
371
269
  package: "@wirecat/bitrix24-cli",
372
270
  does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
271
+ },
272
+ {
273
+ command: "pbx",
274
+ package: "@wirecat/asterisk-cli",
275
+ does: "Asterisk PBX calls and recordings, searchable with your other WireCat data"
373
276
  }
374
277
  ];
375
278
  var WIDTH = 100;
@@ -461,7 +364,6 @@ var installHelp = /* @__PURE__ */ __name((program, screen = {}) => {
461
364
  }, "installHelp");
462
365
 
463
366
  export {
464
- commandsText,
465
367
  WIRECAT_TOOLS,
466
368
  firstScreen,
467
369
  installHelp
@@ -2,34 +2,34 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-GJRYZXBN.js";
5
+ } from "./chunk-OPOEAGVB.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-QB3DP2TN.js";
8
+ } from "./chunk-572NWJUN.js";
9
9
  import {
10
10
  RECORDS_SCHEMA_VERSION,
11
11
  RECORD_TYPES,
12
12
  pointerOf
13
- } from "./chunk-XMDEM6BZ.js";
13
+ } from "./chunk-RGQFVVBB.js";
14
14
  import {
15
15
  parseReference
16
- } from "./chunk-5ZYFV6FD.js";
16
+ } from "./chunk-7BXOFLWJ.js";
17
17
  import {
18
18
  indent
19
- } from "./chunk-TY644DKQ.js";
19
+ } from "./chunk-7MEVD5PI.js";
20
20
  import {
21
21
  CliError
22
- } from "./chunk-VUBZFMGP.js";
22
+ } from "./chunk-7KCBPAQS.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/checks.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/checks.js
28
28
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
29
29
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
30
30
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/links.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/links.js
33
33
  var LINK_VERSION = "v1";
34
34
  var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
35
35
  var APP_PREFIX = "wirecat://open";
@@ -146,7 +146,7 @@ var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG,
146
146
  return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
147
147
  }, "linkFor");
148
148
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/markdown.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/markdown.js
150
150
  var MARKERS = [
151
151
  ["**", "bold"],
152
152
  ["~~", "strike"],
@@ -192,7 +192,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
192
192
  return end;
193
193
  }, "closing");
194
194
 
195
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
195
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
196
196
  var STYLES = [
197
197
  ["**", "bold"],
198
198
  ["__", "underline"],
@@ -352,7 +352,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
352
352
  return validateFormattedText(result);
353
353
  }, "parseMarkdownSpans");
354
354
 
355
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/polls.js
355
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/polls.js
356
356
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
357
357
  const cast = votes.filter((vote) => vote.answers.length > 0);
358
358
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -367,8 +367,8 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
367
367
  };
368
368
  }, "countedPoll");
369
369
 
370
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/records-table.js
371
- var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => !RECORD_TYPES[type].importOnly);
370
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/records-table.js
371
+ var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
372
372
  var TableError = class extends Error {
373
373
  static {
374
374
  __name(this, "TableError");
@@ -430,7 +430,7 @@ var roleColumn = /* @__PURE__ */ __name((name, role) => ({
430
430
  }), "roleColumn");
431
431
  var recordColumns = /* @__PURE__ */ __name((type) => {
432
432
  const spec = specOf(type);
433
- if (!spec || spec.importOnly)
433
+ if (!spec || spec.sheet === false)
434
434
  return [];
435
435
  const fields = spec.fields.properties ?? {};
436
436
  const required = spec.fields.required ?? [];
@@ -494,7 +494,8 @@ var recordTemplate = /* @__PURE__ */ __name((type, format, { source, separator =
494
494
  const envelope = {
495
495
  schema_version: RECORDS_SCHEMA_VERSION,
496
496
  source: {
497
- provider: source?.provider ?? "sheet",
497
+ // An import-only type is refused under a sheet's provider: `import` is the one any folder or export may use.
498
+ provider: source?.provider ?? (specOf(type)?.importOnly ? "import" : "sheet"),
498
499
  account: source?.account ?? "main",
499
500
  batch_id: source?.batch_id ?? "first-import"
500
501
  },
@@ -2356,7 +2357,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
2356
2357
  var qrcode_default = qrcode;
2357
2358
  var stringToBytes = qrcode.stringToBytes;
2358
2359
 
2359
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2360
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2360
2361
  var QUIET_ZONE = 4;
2361
2362
  var BLACK_ON_WHITE = "\x1B[30;107m";
2362
2363
  var RESET = "\x1B[0m";
@@ -2403,7 +2404,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
2403
2404
  return lines.join("\n");
2404
2405
  }, "plainQr");
2405
2406
 
2406
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2407
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2407
2408
  var MARGIN = 2;
2408
2409
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
2409
2410
  var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-37F6QYTO.js";
6
+ } from "./chunk-255RGG5W.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";