@wirecat/zoom-cli 0.73.0 → 0.75.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 (137) hide show
  1. package/contracts/wirecat.json +5 -4
  2. package/dist/bin/zm.js +2 -2
  3. package/dist/bundle/{all-profiles-V47CUJFK.js → all-profiles-WFLKFKJC.js} +19 -29
  4. package/dist/bundle/answer-policy-XCKC2LLN.js +110 -0
  5. package/dist/bundle/{anthropic-SID7Z3QN.js → anthropic-H45W4P22.js} +2 -2
  6. package/dist/bundle/{app-server-KCMUSY4A.js → app-server-I4FPLBIX.js} +49 -66
  7. package/dist/bundle/{bun-PWMM6L45.js → bun-V5QLYBZU.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-3TLKUN5A.js → bun-sqlite-X2YZPHDS.js} +3 -3
  9. package/dist/bundle/{chunk-PGPHEC2X.js → chunk-2Q4CB4EI.js} +1 -1
  10. package/dist/bundle/{chunk-PACLT6IW.js → chunk-3U3W6YY5.js} +69 -68
  11. package/dist/bundle/{chunk-QVJMFZFW.js → chunk-3URYKAJP.js} +1 -1
  12. package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-3YKAFLXY.js} +1 -1
  13. package/dist/bundle/{chunk-IKNOTHG2.js → chunk-3YRPDNWK.js} +544 -142
  14. package/dist/bundle/{chunk-CMWFYZ45.js → chunk-4J5GJJ2I.js} +1 -1
  15. package/dist/bundle/{chunk-Y3IH7EZC.js → chunk-4XDWV6VJ.js} +16 -16
  16. package/dist/bundle/{chunk-KHBZ4OEP.js → chunk-4YNUQGDP.js} +1 -1
  17. package/dist/bundle/{chunk-35CYSRGJ.js → chunk-532H3KT3.js} +2 -2
  18. package/dist/bundle/{chunk-TI2OANJZ.js → chunk-6XNTELM5.js} +1 -1
  19. package/dist/bundle/chunk-7ZVWV33Z.js +707 -0
  20. package/dist/bundle/{chunk-ERQRY6WZ.js → chunk-A3Q3PG54.js} +1 -1
  21. package/dist/bundle/{chunk-JQF4LM3V.js → chunk-AVCYD4WQ.js} +20 -19
  22. package/dist/bundle/{chunk-P4FU6R3Z.js → chunk-B6Q53CVA.js} +7 -7
  23. package/dist/bundle/{chunk-KSNJK4QM.js → chunk-BY2YPKZZ.js} +12 -12
  24. package/dist/bundle/{chunk-L6YSKCC3.js → chunk-C5WQ57AB.js} +1 -1
  25. package/dist/bundle/{chunk-AIEMFRBU.js → chunk-CAQ5GW3A.js} +1 -1
  26. package/dist/bundle/{chunk-G2TSDMTA.js → chunk-DQBLDZ7M.js} +3 -3
  27. package/dist/bundle/{chunk-ILDGZBZD.js → chunk-DUPFAY35.js} +6 -6
  28. package/dist/bundle/{chunk-GCZMYDKU.js → chunk-ELD5AC7Q.js} +2 -2
  29. package/dist/bundle/{chunk-CIUJEQH4.js → chunk-EOZAJGB4.js} +11 -12
  30. package/dist/bundle/{chunk-VJVYGTPM.js → chunk-F6RB5FHZ.js} +1 -1
  31. package/dist/bundle/{chunk-LVDTSCIN.js → chunk-F7K2V6OA.js} +10 -10
  32. package/dist/bundle/{chunk-4LFFDUUW.js → chunk-FBYGBR4Q.js} +3 -3
  33. package/dist/bundle/{chunk-6AO2RSYH.js → chunk-GPVSGZ4R.js} +1608 -1096
  34. package/dist/bundle/{chunk-2NQPB6MT.js → chunk-GU4FVTJV.js} +17 -1
  35. package/dist/bundle/{chunk-6NI4FE5G.js → chunk-HKPNQL52.js} +3 -3
  36. package/dist/bundle/{chunk-KUL7S5Y3.js → chunk-IDGWBKMH.js} +10 -10
  37. package/dist/bundle/{chunk-QS6DWXDB.js → chunk-IMDTC4MD.js} +34 -20
  38. package/dist/bundle/{chunk-LSVQCI6V.js → chunk-IO3BQ6JU.js} +22 -22
  39. package/dist/bundle/{chunk-V5Q2QKYM.js → chunk-IW245Q5B.js} +23 -25
  40. package/dist/bundle/{chunk-DPSTOVKC.js → chunk-JDTZCZ5K.js} +2 -2
  41. package/dist/bundle/{chunk-JIS34MLC.js → chunk-JTYWSXJG.js} +7 -7
  42. package/dist/bundle/{chunk-K5JFX5TK.js → chunk-K5E5MB4C.js} +18 -18
  43. package/dist/bundle/{chunk-VPPNYUQM.js → chunk-L5UILROP.js} +322 -11
  44. package/dist/bundle/{chunk-DYLYH7VE.js → chunk-LRCSDAYK.js} +3 -3
  45. package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-MHXZ62CU.js} +1 -1
  46. package/dist/bundle/{chunk-OKOJEBHK.js → chunk-MNVT7EJS.js} +2 -2
  47. package/dist/bundle/{chunk-HAMDPWEZ.js → chunk-NE4GYKQA.js} +5 -5
  48. package/dist/bundle/{chunk-PKON63JH.js → chunk-NL6AZ6S2.js} +1 -1
  49. package/dist/bundle/{chunk-N3SOTKXC.js → chunk-NQLL4KRN.js} +5 -5
  50. package/dist/bundle/{chunk-XLY7V2LB.js → chunk-NQQVNLO6.js} +10 -10
  51. package/dist/bundle/{chunk-44YVZIA4.js → chunk-NU4FSSMN.js} +2 -2
  52. package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OUM4ZO53.js} +1 -1
  53. package/dist/bundle/{chunk-OU5OXA6Q.js → chunk-P4ZQQLZF.js} +1772 -718
  54. package/dist/bundle/{chunk-OMLVWOEF.js → chunk-P6MQ6FS4.js} +184 -16
  55. package/dist/bundle/{chunk-NBA2V6LB.js → chunk-PCJRHC5Y.js} +7 -7
  56. package/dist/bundle/{chunk-G3SIY4MQ.js → chunk-PPM7UTCT.js} +22 -21
  57. package/dist/bundle/{chunk-3ADFJ3UP.js → chunk-PX4IMYVB.js} +2 -2
  58. package/dist/bundle/{chunk-FJMRDRPN.js → chunk-QBKKTTA3.js} +1155 -484
  59. package/dist/bundle/{chunk-ZX4QWTMQ.js → chunk-QEO3XTIE.js} +37 -29
  60. package/dist/bundle/{chunk-FZLJ2G7A.js → chunk-QXQUANWE.js} +4 -4
  61. package/dist/bundle/{chunk-MG2CCAVG.js → chunk-RABCFGT3.js} +2 -2
  62. package/dist/bundle/{chunk-SYIOT45G.js → chunk-RBYVQE3S.js} +4 -4
  63. package/dist/bundle/{chunk-6WUTUCKH.js → chunk-RKI4BGWG.js} +2 -2
  64. package/dist/bundle/{chunk-EXWZCI5G.js → chunk-SEJBS7SI.js} +1 -1
  65. package/dist/bundle/{chunk-LQYMN36C.js → chunk-SR5X7YKB.js} +1 -1
  66. package/dist/bundle/{chunk-KK2IVZUQ.js → chunk-T25PR26L.js} +5 -5
  67. package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-T4FMXDDV.js} +2 -2
  68. package/dist/bundle/{chunk-SO52EJ2W.js → chunk-TSHUBGN4.js} +2 -2
  69. package/dist/bundle/{chunk-OFA22L4G.js → chunk-V3UK6E5B.js} +4 -4
  70. package/dist/bundle/{chunk-Q43KX56Z.js → chunk-VLK3X53X.js} +2 -2
  71. package/dist/bundle/{chunk-Z5XCU4S7.js → chunk-VPSQZ2YR.js} +44 -52
  72. package/dist/bundle/{chunk-QWGEOQHA.js → chunk-VUPWDCYV.js} +1 -1
  73. package/dist/bundle/{chunk-K7EMVFJ7.js → chunk-W2AC2RAG.js} +13 -13
  74. package/dist/bundle/{chunk-UIKVP23D.js → chunk-WQOGHND4.js} +1 -1
  75. package/dist/bundle/{chunk-ETQNHS3A.js → chunk-WUWF4EXZ.js} +6 -6
  76. package/dist/bundle/{chunk-HO3GBTIT.js → chunk-XCJGDPMN.js} +1547 -917
  77. package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-XUHQ7DVT.js} +1 -1
  78. package/dist/bundle/{chunk-IE7YBRUO.js → chunk-Y5J5CAG2.js} +1 -1
  79. package/dist/bundle/{chunk-MOKEB656.js → chunk-ZBYKCVSV.js} +1 -1
  80. package/dist/bundle/{chunk-CQBLPBZU.js → chunk-ZVVRRMLW.js} +98 -6
  81. package/dist/bundle/{cli-4ZYJ6OZE.js → cli-NPRYCWFH.js} +112 -83
  82. package/dist/bundle/command-contract-OJYRKQHR.js +41 -0
  83. package/dist/bundle/{command-server-entry-CASONRIJ.js → command-server-entry-BV4SUPUI.js} +24 -26
  84. package/dist/bundle/config-UMEV24OE.js +97 -0
  85. package/dist/bundle/{decode-KEFCVGEB.js → decode-PRMKCHHC.js} +2 -2
  86. package/dist/bundle/{dist-GCQ7KCKN.js → dist-HGLDGKUW.js} +18 -15
  87. package/dist/bundle/{echarts-SDZA2SWG.js → echarts-QIXLXS3G.js} +2 -2
  88. package/dist/bundle/{embed-43VJEPM6.js → embed-OZN2BIJY.js} +3 -3
  89. package/dist/bundle/{embedder-Q4ZHAGRP.js → embedder-RBDHO6Z6.js} +6 -6
  90. package/dist/bundle/{first-run-CPOLQVNA.js → first-run-HNCD7U3B.js} +6 -6
  91. package/dist/bundle/first-screen-374BBMO6.js +39 -0
  92. package/dist/bundle/{instructions-7T6JJIFS.js → instructions-MD2RZT5Z.js} +1 -1
  93. package/dist/bundle/{main-NA3QVPXS.js → main-FPMCCRIQ.js} +15 -15
  94. package/dist/bundle/{meetings-7CVIQJTA.js → meetings-WYCVHAIP.js} +17 -1
  95. package/dist/bundle/{node-BZDMUFTW.js → node-IEVT2FSJ.js} +2 -2
  96. package/dist/bundle/{node-sqlite-QHGB23B4.js → node-sqlite-O4C6IWSM.js} +4 -4
  97. package/dist/bundle/{oauth-BMEMCM2I.js → oauth-6VXOUXSE.js} +4 -4
  98. package/dist/bundle/{open-JGU2NRJP.js → open-AMUIWV3Y.js} +2 -2
  99. package/dist/bundle/{openai-VTXXFNCS.js → openai-MEDN6FSK.js} +10 -10
  100. package/dist/bundle/{process-756VBE7E.js → process-6Q23D3TO.js} +1 -1
  101. package/dist/bundle/{program-XM6CDIJ2.js → program-CF2NKA2A.js} +84 -87
  102. package/dist/bundle/{prompt-2IPFXJ4B.js → prompt-N3UZE4ZR.js} +2 -2
  103. package/dist/bundle/{recognize-672E2RIB.js → recognize-I5F3K3CZ.js} +1 -1
  104. package/dist/bundle/{remote-YLHRVPDS.js → remote-CJF5KMMY.js} +6 -6
  105. package/dist/bundle/{rerank-NBXQG3OS.js → rerank-6WLY6MKY.js} +4 -4
  106. package/dist/bundle/{run-log-3WITBT2F.js → run-log-FKF4ZX4M.js} +55 -57
  107. package/dist/bundle/{serve-FNLOUMYP.js → serve-FOQJ3WMX.js} +6 -6
  108. package/dist/bundle/server-BAGY5HEZ.js +74 -0
  109. package/dist/bundle/{server-7ZB5AK5H.js → server-OEEGRSQD.js} +47 -47
  110. package/dist/bundle/{services-Z4UWN64R.js → services-Q6SFESMS.js} +43 -28
  111. package/dist/bundle/{speech-XSYVCKR3.js → speech-PBVEIG4N.js} +12 -12
  112. package/dist/bundle/{sqlite-runtime-GAPXJNWU.js → sqlite-runtime-IWR65V6I.js} +3 -3
  113. package/dist/bundle/{state-QSA53EF5.js → state-G54C2N6U.js} +3 -3
  114. package/dist/bundle/{store-NOF5EYUC.js → store-7EWMPTTW.js} +20 -16
  115. package/dist/bundle/{store-EKI4OAJH.js → store-D5OLXIFW.js} +14 -14
  116. package/dist/bundle/store-connection-34747SCC.js +90 -0
  117. package/dist/bundle/store-maintenance-command-QBO67F7Z.js +65 -0
  118. package/dist/bundle/{tokens-WJQYQ3FK.js → tokens-J7TFHLEG.js} +4 -4
  119. package/dist/bundle/zm.js +2 -2
  120. package/dist/bundle/{zoom-app-Y7RMWLVU.js → zoom-app-SULPMVN4.js} +2 -2
  121. package/dist/recording-schedule-commands.d.ts.map +1 -1
  122. package/dist/recording-schedule-commands.js +2 -2
  123. package/dist/recording-schedule-commands.js.map +1 -1
  124. package/dist/version.d.ts +1 -1
  125. package/dist/version.js +1 -1
  126. package/package.json +2 -2
  127. package/dist/bundle/answer-policy-W6H72X2R.js +0 -112
  128. package/dist/bundle/chunk-2BAZRRJP.js +0 -1239
  129. package/dist/bundle/chunk-KQD4ZVNC.js +0 -153
  130. package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
  131. package/dist/bundle/chunk-USIMMGWS.js +0 -997
  132. package/dist/bundle/command-contract-FJDDCHYP.js +0 -43
  133. package/dist/bundle/config-4DZHX2WX.js +0 -99
  134. package/dist/bundle/first-screen-XYESRGWW.js +0 -41
  135. package/dist/bundle/server-GGRGD4SH.js +0 -77
  136. package/dist/bundle/store-connection-2OZQGEIO.js +0 -92
  137. package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +0 -67
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
14
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
15
  var QUERY = [
16
16
  ["query.aborted", "the search was stopped before it finished"],
@@ -63,6 +63,8 @@ var PROVIDER_API = [
63
63
  validation("api.unknown-method", "the provider has no method by this name"),
64
64
  ["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
65
65
  ["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
66
+ ["access.denied", "permission_error", "the provider refused this account access to the item"],
67
+ ["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
66
68
  ["file.not-found", "not_found", "the file named, or its folder, does not exist"],
67
69
  validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
68
70
  ["file.denied", "permission_error", "the file cannot be opened: permission denied"]
@@ -160,6 +162,10 @@ var OTHERS = [
160
162
  validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
161
163
  validation("document.changed", "the document changed while it was read; nothing was saved"),
162
164
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
165
+ ["document.not-found", "not_found", "no listed document has that reference"],
166
+ ["meeting.not-found", "not_found", "no meeting row has that event or meeting reference"],
167
+ ["listing.source-not-found", "not_found", "a source: term names no account holding what is listed"],
168
+ validation("query.empty-window", "the time window ends before it starts, so no row can fall in it"),
163
169
  ["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
164
170
  validation("extraction.text-too-long", "the text is too long for memory extraction"),
165
171
  validation("file.locked", "another process holds the file's lock"),
@@ -241,6 +247,16 @@ var OTHERS = [
241
247
  ["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
242
248
  ["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
243
249
  ["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
250
+ ["meetings.server-offline", "permission_error", "meetings list and show ask the service; --offline was given"],
251
+ ["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
252
+ ["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
253
+ ["meetings.server-refused", "permission_error", "the meetings service refused the request"],
254
+ ["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
255
+ [
256
+ "meetings.server-capped",
257
+ "outcome_unknown",
258
+ "the meetings service may hold more matches than the calls and pages one list asks"
259
+ ],
244
260
  ["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
245
261
  ["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
246
262
  ["busy.unanswered", "provider_error", "the provider gave no busy times for a calendar or person that was asked"],
@@ -4,10 +4,10 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-VPPNYUQM.js";
7
+ } from "./chunk-L5UILROP.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-ERQRY6WZ.js";
10
+ } from "./chunk-A3Q3PG54.js";
11
11
  import {
12
12
  CliError
13
13
  } from "./chunk-EA2OB75T.js";
@@ -15,7 +15,7 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // 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/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-ETQNHS3A.js";
5
+ } from "./chunk-WUWF4EXZ.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-PGPHEC2X.js";
8
+ } from "./chunk-2Q4CB4EI.js";
9
9
  import {
10
10
  RECORDS_SCHEMA_VERSION,
11
11
  RECORD_TYPES,
12
12
  pointerOf
13
- } from "./chunk-K5JFX5TK.js";
13
+ } from "./chunk-K5E5MB4C.js";
14
14
  import {
15
15
  indent
16
16
  } from "./chunk-HNWDEDMU.js";
@@ -21,12 +21,12 @@ import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // 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
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/checks.js
25
25
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
26
26
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
27
27
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
28
28
 
29
- // 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
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/markdown.js
30
30
  var MARKERS = [
31
31
  ["**", "bold"],
32
32
  ["~~", "strike"],
@@ -72,7 +72,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
72
72
  return end;
73
73
  }, "closing");
74
74
 
75
- // 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
75
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
76
76
  var STYLES = [
77
77
  ["**", "bold"],
78
78
  ["__", "underline"],
@@ -232,7 +232,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
232
232
  return validateFormattedText(result);
233
233
  }, "parseMarkdownSpans");
234
234
 
235
- // 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
235
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/polls.js
236
236
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
237
237
  const cast = votes.filter((vote) => vote.answers.length > 0);
238
238
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -247,7 +247,7 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
247
247
  };
248
248
  }, "countedPoll");
249
249
 
250
- // 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
250
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/records-table.js
251
251
  var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
252
252
  var TableError = class extends Error {
253
253
  static {
@@ -2237,7 +2237,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
2237
2237
  var qrcode_default = qrcode;
2238
2238
  var stringToBytes = qrcode.stringToBytes;
2239
2239
 
2240
- // 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
2240
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/terminal/qr.js
2241
2241
  var QUIET_ZONE = 4;
2242
2242
  var BLACK_ON_WHITE = "\x1B[30;107m";
2243
2243
  var RESET = "\x1B[0m";
@@ -2284,7 +2284,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
2284
2284
  return lines.join("\n");
2285
2285
  }, "plainQr");
2286
2286
 
2287
- // 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
2287
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
2288
2288
  var MARGIN = 2;
2289
2289
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
2290
2290
  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
  formatMeetingReference,
5
5
  parseMeetingReference
6
- } from "./chunk-IKNOTHG2.js";
6
+ } from "./chunk-3YRPDNWK.js";
7
7
  import {
8
8
  CliError
9
9
  } from "./chunk-EA2OB75T.js";
@@ -14,7 +14,7 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/money.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/money.js
18
18
  var CURRENCY_SCALES = {
19
19
  AED: 2,
20
20
  AMD: 2,
@@ -108,7 +108,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
108
108
  }, "quantityOf");
109
109
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
110
110
 
111
- // 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/deals.js
111
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/deals.js
112
112
  var DEAL_KINDS = ["deal", "lead"];
113
113
  var DEAL_STATUSES = ["open", "won", "lost"];
114
114
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -118,7 +118,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
118
118
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
119
119
  }, "dealLine");
120
120
 
121
- // 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/finance.js
121
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/finance.js
122
122
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
123
123
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
124
124
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -147,7 +147,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
147
147
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
148
148
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
149
149
 
150
- // 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/orders.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/orders.js
151
151
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
152
152
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
153
153
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -158,7 +158,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
158
158
  }, "orderLine");
159
159
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
160
160
 
161
- // 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/relations.js
161
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/relations.js
162
162
  var ORGANIZATION_ROLES = [
163
163
  "employee",
164
164
  "contractor",
@@ -265,7 +265,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
265
265
  var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
266
266
  var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
267
267
 
268
- // 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/crm.js
268
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/crm.js
269
269
  var CRM_KINDS = ["organization", "person", "deal", "lead"];
270
270
  var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
271
271
  var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
@@ -275,7 +275,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
275
275
  }, "normalCrmUserId");
276
276
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
277
277
 
278
- // 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/business.js
278
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/business.js
279
279
  var CATALOG_KINDS = ["product", "service"];
280
280
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
281
281
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -304,7 +304,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
304
304
  var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
305
305
  var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
306
306
 
307
- // 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/tags.js
307
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/tags.js
308
308
  var TAG_TYPES = ["chat", "contact", "message", "task"];
309
309
  var TAG = /^[a-z0-9-]{1,32}$/;
310
310
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -318,21 +318,28 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
318
318
  return tag;
319
319
  }, "normalizeTag");
320
320
 
321
- // 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/locator.js
321
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/locator.js
322
322
  var SCHEME = "msg:";
323
323
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
324
324
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
325
325
  var parseLocator = /* @__PURE__ */ __name((reference) => {
326
326
  const trimmed = reference.trim();
327
327
  const parts2 = trimmed.startsWith(SCHEME) ? trimmed.slice(SCHEME.length).split("/") : [];
328
- if (parts2.length !== 4 || parts2.some((part) => part === "")) {
329
- throw new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`);
330
- }
331
- const [provider, account, chat, message] = parts2.map(decodeURIComponent);
328
+ const malformed2 = /* @__PURE__ */ __name(() => new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`), "malformed");
329
+ if (parts2.length !== 4 || parts2.some((part) => part === ""))
330
+ throw malformed2();
331
+ const decoded2 = /* @__PURE__ */ __name((part) => {
332
+ try {
333
+ return decodeURIComponent(part);
334
+ } catch {
335
+ throw malformed2();
336
+ }
337
+ }, "decoded");
338
+ const [provider, account, chat, message] = parts2.map(decoded2);
332
339
  return { provider, account, chat, message };
333
340
  }, "parseLocator");
334
341
 
335
- // 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/references.js
342
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/references.js
336
343
  var SIMPLE_REFERENCES = [
337
344
  "note",
338
345
  "document",
@@ -360,11 +367,18 @@ var SIMPLE_REFERENCES = [
360
367
  var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
361
368
  reason: "ref.malformed"
362
369
  }), "malformed");
370
+ var decoded = /* @__PURE__ */ __name((part, text, shape) => {
371
+ try {
372
+ return decodeURIComponent(part);
373
+ } catch {
374
+ throw malformed(text, shape);
375
+ }
376
+ }, "decoded");
363
377
  var parts = /* @__PURE__ */ __name((rest, count, text, shape) => {
364
378
  const split = rest.split("/");
365
379
  if (split.length !== count || split.some((part) => part === ""))
366
380
  throw malformed(text, shape);
367
- return split.map(decodeURIComponent);
381
+ return split.map((part) => decoded(part, text, shape));
368
382
  }, "parts");
369
383
  var encoded = /* @__PURE__ */ __name((...values) => values.map(encodeURIComponent).join("/"), "encoded");
370
384
  var folderPath = /* @__PURE__ */ __name((path) => {
@@ -426,8 +440,8 @@ var REF_KINDS = [
426
440
  shape: "folder:<id>[/<path>]",
427
441
  parse: /* @__PURE__ */ __name((rest, text) => {
428
442
  const slash = rest.indexOf("/");
429
- const id = decodeURIComponent(slash < 0 ? rest : rest.slice(0, slash));
430
- const path = slash < 0 ? null : folderPath(decodeURIComponent(rest.slice(slash + 1)));
443
+ const id = decoded(slash < 0 ? rest : rest.slice(0, slash), text, "folder:<id>[/<path>]");
444
+ const path = slash < 0 ? null : folderPath(decoded(rest.slice(slash + 1), text, "folder:<id>[/<path>]"));
431
445
  if (!id.trim() || path === "")
432
446
  throw malformed(text, "folder:<id>[/<path>]");
433
447
  return { type: "folder", id, path };
@@ -488,7 +502,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
488
502
  return match !== null && byPrefix.has(match[1]);
489
503
  }, "looksLikeReference");
490
504
 
491
- // 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/providers.js
505
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/providers.js
492
506
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
493
507
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
494
508
  var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
@@ -505,7 +519,7 @@ var PROVIDERS = [
505
519
  { name: "obsidian", kind: "notes", aliases: [] },
506
520
  { name: "added", kind: "notes", aliases: [] },
507
521
  { name: "zoom", kind: "meetings", aliases: [] },
508
- { name: "google-meet", kind: "meetings", aliases: [], command: "meet" },
522
+ { name: "google-meet", kind: "meetings", aliases: [], command: "gmeet" },
509
523
  // Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
510
524
  { name: "telemost", kind: "meetings", aliases: [] },
511
525
  // A phone export's records: its SMS and its calls in the one account the import names.
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure,
5
5
  isStoreDamage
6
- } from "./chunk-UYBLNGZ2.js";
6
+ } from "./chunk-3YKAFLXY.js";
7
7
  import {
8
8
  ADDED_PROVIDER,
9
9
  INTERNAL_NOTES,
@@ -17,10 +17,10 @@ import {
17
17
  kindsIn,
18
18
  providerNamed,
19
19
  providers
20
- } from "./chunk-QS6DWXDB.js";
20
+ } from "./chunk-IMDTC4MD.js";
21
21
  import {
22
22
  refuseOwnerStoreInTests
23
- } from "./chunk-ERQRY6WZ.js";
23
+ } from "./chunk-A3Q3PG54.js";
24
24
  import {
25
25
  createRecordLog,
26
26
  resolvePaths,
@@ -53,13 +53,13 @@ import {
53
53
  __name
54
54
  } from "./chunk-ZVVMGPBJ.js";
55
55
 
56
- // 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/runs/run.js
56
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
57
57
  import { randomUUID } from "node:crypto";
58
58
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
59
59
  import { userInfo } from "node:os";
60
60
  import { join, sep } from "node:path";
61
61
 
62
- // 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/runs/log-keys.js
62
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
63
63
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
64
64
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
65
65
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -72,7 +72,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
72
72
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
73
73
  }), "snakeLogger");
74
74
 
75
- // 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/runs/log-attributes.js
75
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
76
76
  var diagnostic = {
77
77
  event: true,
78
78
  operation: true,
@@ -146,7 +146,7 @@ var LOG_ATTRIBUTES = [
146
146
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
147
147
  ].sort();
148
148
 
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/runs/run.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/run.js
150
150
  var KEEP_RUNS_FOR_DAYS = 30;
151
151
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
152
152
  var KEEP_STORE_RUNS_FOR_DAYS = 3;
@@ -513,7 +513,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
513
513
  };
514
514
  }, "metadataOf");
515
515
 
516
- // 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/runs/scope.js
516
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/scope.js
517
517
  import { AsyncLocalStorage } from "node:async_hooks";
518
518
  import { randomBytes } from "node:crypto";
519
519
  var scopes = new AsyncLocalStorage();
@@ -566,14 +566,14 @@ var attempts = new AsyncLocalStorage();
566
566
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
567
567
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
568
568
 
569
- // 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/store/source-review.js
569
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/source-review.js
570
570
  var SOURCE_REVIEW_KIND = "memory_source_review";
571
571
  var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
572
572
  var ERASED_TEXT = "[source erased]";
573
573
  var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
574
574
  var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
575
575
 
576
- // 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/tasks/model.js
576
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/model.js
577
577
  var TASK_KINDS = ["question", "request", "mention", "promise"];
578
578
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
579
579
  var CLOSED_STATES = ["done", "dismissed"];
@@ -588,7 +588,7 @@ function closeTask(task, state, by, at, reason) {
588
588
  }
589
589
  __name(closeTask, "closeTask");
590
590
 
591
- // 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/tasks/priority.js
591
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/priority.js
592
592
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
593
593
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
594
594
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -617,7 +617,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
617
617
  }, "priorityOf");
618
618
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
619
619
 
620
- // 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/tasks/service.js
620
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/service.js
621
621
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
622
622
  async function find(id2) {
623
623
  const task = await store.get(id2);
@@ -677,13 +677,13 @@ function median(values) {
677
677
  }
678
678
  __name(median, "median");
679
679
 
680
- // 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/tasks/store.js
680
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/tasks/store.js
681
681
  function matches(task, filter) {
682
682
  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);
683
683
  }
684
684
  __name(matches, "matches");
685
685
 
686
- // 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/knowledge.js
686
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
687
687
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
688
688
  var MEMORY_KINDS = ["summary", "digest", "preference"];
689
689
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -691,10 +691,10 @@ var MEMORY_SCOPES = ["personal", "work"];
691
691
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
692
692
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
693
693
 
694
- // 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/categories.js
694
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/categories.js
695
695
  var CATEGORIES = ["client", "supplier", "partner", "employer"];
696
696
 
697
- // 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/entities/fields.js
697
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/fields.js
698
698
  var text = string();
699
699
  var id = pipe(string(), minLength(1));
700
700
  var time = isoTime;
@@ -719,7 +719,7 @@ var author = strictObject({
719
719
  name: nullable(text)
720
720
  });
721
721
 
722
- // 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/entities/knowledge-lists.js
722
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
723
723
  var organization = strictObject({
724
724
  id,
725
725
  ref: reference,
@@ -749,7 +749,7 @@ var reminder = strictObject({
749
749
  receipt: nullable(text)
750
750
  });
751
751
 
752
- // 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/store/marks.js
752
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/marks.js
753
753
  import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
754
754
  var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
755
755
  var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
@@ -870,7 +870,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
870
870
  return { previous, cleared };
871
871
  }, "recordDeepCheck");
872
872
 
873
- // 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/search/query.js
873
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/query.js
874
874
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
875
875
  var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
876
876
  var fail = /* @__PURE__ */ __name((message) => {
@@ -893,7 +893,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
893
893
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
894
894
  }, "sourceOf");
895
895
 
896
- // 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/search/account-list.js
896
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/account-list.js
897
897
  var ACCOUNT_GROUPS = "accountGroups";
898
898
  var ACCOUNT_GROUPS_SETTING = "account_groups";
899
899
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -1103,7 +1103,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
1103
1103
  return { accounts: [...chosen.values()], skipped };
1104
1104
  }, "fitting");
1105
1105
 
1106
- // 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/store/sqlite/link-source.js
1106
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
1107
1107
  var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
1108
1108
  var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1109
1109
  const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
@@ -1113,7 +1113,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
1113
1113
  };
1114
1114
  }, "sourceOf");
1115
1115
 
1116
- // 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/store/sqlite/link-kinds.js
1116
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
1117
1117
  var LINK_KINDS = [
1118
1118
  "links-to",
1119
1119
  "blocked-by",