@wirecat/yandex-disk-cli 0.0.0-stage → 0.1.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 (235) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE +204 -0
  3. package/README.md +243 -2
  4. package/contracts/wirecat.json +1554 -0
  5. package/dist/bin/ydisk.d.ts +3 -0
  6. package/dist/bin/ydisk.d.ts.map +1 -0
  7. package/dist/bin/ydisk.js +40 -0
  8. package/dist/bin/ydisk.js.map +1 -0
  9. package/dist/bundle/all-profiles-4OLZF3RT.js +279 -0
  10. package/dist/bundle/anthropic-DKB4OJXZ.js +91 -0
  11. package/dist/bundle/app-server-G4545SSV.js +247 -0
  12. package/dist/bundle/bun-RXEQKFED.js +169 -0
  13. package/dist/bundle/bun-sqlite-VHT5LN7U.js +76 -0
  14. package/dist/bundle/chunk-2BITUXGC.js +12289 -0
  15. package/dist/bundle/chunk-2CLWDQKA.js +39330 -0
  16. package/dist/bundle/chunk-2JFDOPKA.js +9575 -0
  17. package/dist/bundle/chunk-3GVI2MAO.js +106 -0
  18. package/dist/bundle/chunk-3SZBWBMI.js +131 -0
  19. package/dist/bundle/chunk-44VSEXW6.js +4054 -0
  20. package/dist/bundle/chunk-4YPRRQBE.js +95 -0
  21. package/dist/bundle/chunk-5COYRL5B.js +379 -0
  22. package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
  23. package/dist/bundle/chunk-5DM7DIZL.js +1402 -0
  24. package/dist/bundle/chunk-6R2DVTVZ.js +24 -0
  25. package/dist/bundle/chunk-762BS35H.js +2787 -0
  26. package/dist/bundle/chunk-AG64V7AB.js +1233 -0
  27. package/dist/bundle/chunk-BC5HGIXB.js +334 -0
  28. package/dist/bundle/chunk-BH7LFEX7.js +36 -0
  29. package/dist/bundle/chunk-BLNPGY7N.js +53 -0
  30. package/dist/bundle/chunk-CNIA2LJF.js +372 -0
  31. package/dist/bundle/chunk-COSXMDC7.js +230 -0
  32. package/dist/bundle/chunk-D72URWJE.js +532 -0
  33. package/dist/bundle/chunk-D7FO33KU.js +785 -0
  34. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  35. package/dist/bundle/chunk-DJH26PQ3.js +1396 -0
  36. package/dist/bundle/chunk-DJPT7IUC.js +64567 -0
  37. package/dist/bundle/chunk-DTMSCZDW.js +209 -0
  38. package/dist/bundle/chunk-E6LGZ5LX.js +16 -0
  39. package/dist/bundle/chunk-E6YRIHS5.js +92 -0
  40. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  41. package/dist/bundle/chunk-F3DDSZTF.js +78 -0
  42. package/dist/bundle/chunk-F4WWTQNL.js +188 -0
  43. package/dist/bundle/chunk-FDDAUASC.js +1028 -0
  44. package/dist/bundle/chunk-FMNPG6N2.js +170 -0
  45. package/dist/bundle/chunk-FOKJ4POB.js +274 -0
  46. package/dist/bundle/chunk-G22C7JG6.js +731 -0
  47. package/dist/bundle/chunk-GA442SYZ.js +161 -0
  48. package/dist/bundle/chunk-GEBSW7UK.js +6848 -0
  49. package/dist/bundle/chunk-GGRKWAOK.js +594 -0
  50. package/dist/bundle/chunk-HHINRNZA.js +788 -0
  51. package/dist/bundle/chunk-HUZCL33L.js +128 -0
  52. package/dist/bundle/chunk-IALSIQVT.js +142 -0
  53. package/dist/bundle/chunk-IOXR2QBX.js +398 -0
  54. package/dist/bundle/chunk-J5CXR6VX.js +63 -0
  55. package/dist/bundle/chunk-J5PWSTOX.js +82 -0
  56. package/dist/bundle/chunk-J7BVAEHR.js +364 -0
  57. package/dist/bundle/chunk-JH46HMZW.js +1334 -0
  58. package/dist/bundle/chunk-JOBO7F6W.js +52 -0
  59. package/dist/bundle/chunk-JXZ5B3L5.js +2333 -0
  60. package/dist/bundle/chunk-KBIAMDZN.js +66 -0
  61. package/dist/bundle/chunk-KFVDL2QS.js +146 -0
  62. package/dist/bundle/chunk-LNHTLSR5.js +288 -0
  63. package/dist/bundle/chunk-M24RAKMJ.js +58 -0
  64. package/dist/bundle/chunk-MDQ57Q3H.js +1197 -0
  65. package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
  66. package/dist/bundle/chunk-MLXQ4X5L.js +206 -0
  67. package/dist/bundle/chunk-NQAKARHE.js +54 -0
  68. package/dist/bundle/chunk-OF7VVUDQ.js +23 -0
  69. package/dist/bundle/chunk-OQVPE3XK.js +324 -0
  70. package/dist/bundle/chunk-OR3QG7UR.js +259 -0
  71. package/dist/bundle/chunk-OUUYVROP.js +76 -0
  72. package/dist/bundle/chunk-PQBAM64O.js +168 -0
  73. package/dist/bundle/chunk-PYVIA7WF.js +88 -0
  74. package/dist/bundle/chunk-Q6HK3PHE.js +72 -0
  75. package/dist/bundle/chunk-QB3KECV2.js +218 -0
  76. package/dist/bundle/chunk-QGWXSFYN.js +73 -0
  77. package/dist/bundle/chunk-RC5QAAAE.js +29 -0
  78. package/dist/bundle/chunk-RMJ26HLB.js +18 -0
  79. package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
  80. package/dist/bundle/chunk-T7ZUDA4C.js +72 -0
  81. package/dist/bundle/chunk-TRCSMVV5.js +72 -0
  82. package/dist/bundle/chunk-UD2BQEKA.js +46 -0
  83. package/dist/bundle/chunk-V4TL55GS.js +1068 -0
  84. package/dist/bundle/chunk-VJNWN5VU.js +4072 -0
  85. package/dist/bundle/chunk-VRRNBLMA.js +1227 -0
  86. package/dist/bundle/chunk-WUCMMNFJ.js +771 -0
  87. package/dist/bundle/chunk-XDESE3NY.js +44 -0
  88. package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
  89. package/dist/bundle/chunk-XQUUANA2.js +24600 -0
  90. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  91. package/dist/bundle/chunk-Z2QEON7B.js +2275 -0
  92. package/dist/bundle/chunk-ZMJ56GME.js +7 -0
  93. package/dist/bundle/chunk-ZTSB3D7Q.js +100 -0
  94. package/dist/bundle/chunk-ZVJWD3FK.js +38 -0
  95. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  96. package/dist/bundle/command-contract-YIOYGPJA.js +40 -0
  97. package/dist/bundle/command-server-entry-MHBQDXS4.js +169 -0
  98. package/dist/bundle/decode-NUGJIOUW.js +297 -0
  99. package/dist/bundle/definitions-AILHKEQT.js +2005 -0
  100. package/dist/bundle/dispatch-5LC4UEGY.js +411 -0
  101. package/dist/bundle/dist-4I2W6X2I.js +7577 -0
  102. package/dist/bundle/echarts-MHSH6PGC.js +42501 -0
  103. package/dist/bundle/embed-ZDXTHHYS.js +38 -0
  104. package/dist/bundle/embedder-XFEELFUL.js +111 -0
  105. package/dist/bundle/failure-5S7VPBYK.js +25 -0
  106. package/dist/bundle/first-run-JHCHT3RJ.js +29 -0
  107. package/dist/bundle/first-screen-FHGQ6QRV.js +40 -0
  108. package/dist/bundle/instructions-WKSMBUFX.js +11 -0
  109. package/dist/bundle/mcp-HS2ZDUVR.js +167 -0
  110. package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
  111. package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
  112. package/dist/bundle/meeting-combined-K4U4NYRZ.js +25 -0
  113. package/dist/bundle/meeting-model-KCEG6Y5O.js +26 -0
  114. package/dist/bundle/meeting-semantic-VYGSV3H6.js +22 -0
  115. package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
  116. package/dist/bundle/node-CM6NC6UE.js +176 -0
  117. package/dist/bundle/node-KM3CUABH.js +2340 -0
  118. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  119. package/dist/bundle/node-sqlite-5YDQ3LIJ.js +74 -0
  120. package/dist/bundle/notes-search-PGO7KM2U.js +62 -0
  121. package/dist/bundle/oauth-NY4C5UCK.js +20 -0
  122. package/dist/bundle/open-YNUTA6ZE.js +23 -0
  123. package/dist/bundle/openai-4CVT5PHH.js +241 -0
  124. package/dist/bundle/process-2XT3TL27.js +91 -0
  125. package/dist/bundle/program-FMIVF5T6.js +31904 -0
  126. package/dist/bundle/prompt-VNWY3H6S.js +17 -0
  127. package/dist/bundle/recognize-JS4PBPSZ.js +26 -0
  128. package/dist/bundle/remote-RCLFH4V2.js +32 -0
  129. package/dist/bundle/rerank-EG6VKYGO.js +52 -0
  130. package/dist/bundle/schemas-ED2LHKXK.js +645 -0
  131. package/dist/bundle/serve-AHG25QXB.js +199 -0
  132. package/dist/bundle/server-5FTB7WM3.js +78 -0
  133. package/dist/bundle/server-JNZVSAZE.js +209 -0
  134. package/dist/bundle/sqlite-runtime-XSZOAQPF.js +20 -0
  135. package/dist/bundle/state-XGVAJFF7.js +36 -0
  136. package/dist/bundle/store-OHSCWZEV.js +177 -0
  137. package/dist/bundle/store-PKSPKJXL.js +293 -0
  138. package/dist/bundle/store-maintenance-command-KAWGBSWK.js +69 -0
  139. package/dist/bundle/ydisk.js +183 -0
  140. package/dist/commands/api.d.ts +9 -0
  141. package/dist/commands/api.d.ts.map +1 -0
  142. package/dist/commands/api.js +59 -0
  143. package/dist/commands/api.js.map +1 -0
  144. package/dist/commands/comments.d.ts +3 -0
  145. package/dist/commands/comments.d.ts.map +1 -0
  146. package/dist/commands/comments.js +114 -0
  147. package/dist/commands/comments.js.map +1 -0
  148. package/dist/commands/files.d.ts +3 -0
  149. package/dist/commands/files.d.ts.map +1 -0
  150. package/dist/commands/files.js +272 -0
  151. package/dist/commands/files.js.map +1 -0
  152. package/dist/commands/library.d.ts +13 -0
  153. package/dist/commands/library.d.ts.map +1 -0
  154. package/dist/commands/library.js +118 -0
  155. package/dist/commands/library.js.map +1 -0
  156. package/dist/commands/session.d.ts +3 -0
  157. package/dist/commands/session.d.ts.map +1 -0
  158. package/dist/commands/session.js +99 -0
  159. package/dist/commands/session.js.map +1 -0
  160. package/dist/config.d.ts +18 -0
  161. package/dist/config.d.ts.map +1 -0
  162. package/dist/config.js +62 -0
  163. package/dist/config.js.map +1 -0
  164. package/dist/context.d.ts +80 -0
  165. package/dist/context.d.ts.map +1 -0
  166. package/dist/context.js +77 -0
  167. package/dist/context.js.map +1 -0
  168. package/dist/generated/definitions.d.ts +3 -0
  169. package/dist/generated/definitions.d.ts.map +1 -0
  170. package/dist/generated/definitions.js +2001 -0
  171. package/dist/generated/definitions.js.map +1 -0
  172. package/dist/generated/manifest.d.ts +6 -0
  173. package/dist/generated/manifest.d.ts.map +1 -0
  174. package/dist/generated/manifest.js +1473 -0
  175. package/dist/generated/manifest.js.map +1 -0
  176. package/dist/generated/schemas.d.ts +127 -0
  177. package/dist/generated/schemas.d.ts.map +1 -0
  178. package/dist/generated/schemas.js +545 -0
  179. package/dist/generated/schemas.js.map +1 -0
  180. package/dist/generated/types.d.ts +829 -0
  181. package/dist/generated/types.d.ts.map +1 -0
  182. package/dist/generated/types.js +5 -0
  183. package/dist/generated/types.js.map +1 -0
  184. package/dist/identity.d.ts +10 -0
  185. package/dist/identity.d.ts.map +1 -0
  186. package/dist/identity.js +33 -0
  187. package/dist/identity.js.map +1 -0
  188. package/dist/index.d.ts +3 -0
  189. package/dist/index.d.ts.map +1 -0
  190. package/dist/index.js +3 -0
  191. package/dist/index.js.map +1 -0
  192. package/dist/program.d.ts +6 -0
  193. package/dist/program.d.ts.map +1 -0
  194. package/dist/program.js +65 -0
  195. package/dist/program.js.map +1 -0
  196. package/dist/sample/comments.d.ts +61 -0
  197. package/dist/sample/comments.d.ts.map +1 -0
  198. package/dist/sample/comments.js +39 -0
  199. package/dist/sample/comments.js.map +1 -0
  200. package/dist/sample/records.d.ts +16 -0
  201. package/dist/sample/records.d.ts.map +1 -0
  202. package/dist/sample/records.js +22 -0
  203. package/dist/sample/records.js.map +1 -0
  204. package/dist/sample/transport.d.ts +42 -0
  205. package/dist/sample/transport.d.ts.map +1 -0
  206. package/dist/sample/transport.js +153 -0
  207. package/dist/sample/transport.js.map +1 -0
  208. package/dist/version.d.ts +2 -0
  209. package/dist/version.d.ts.map +1 -0
  210. package/dist/version.js +2 -0
  211. package/dist/version.js.map +1 -0
  212. package/dist/wcat.d.ts +3 -0
  213. package/dist/wcat.d.ts.map +1 -0
  214. package/dist/wcat.js +4 -0
  215. package/dist/wcat.js.map +1 -0
  216. package/dist/yandex/source.d.ts +39 -0
  217. package/dist/yandex/source.d.ts.map +1 -0
  218. package/dist/yandex/source.js +189 -0
  219. package/dist/yandex/source.js.map +1 -0
  220. package/dist/yandex/transport.d.ts +41 -0
  221. package/dist/yandex/transport.d.ts.map +1 -0
  222. package/dist/yandex/transport.js +152 -0
  223. package/dist/yandex/transport.js.map +1 -0
  224. package/dist/yandex/writes.d.ts +27 -0
  225. package/dist/yandex/writes.d.ts.map +1 -0
  226. package/dist/yandex/writes.js +61 -0
  227. package/dist/yandex/writes.js.map +1 -0
  228. package/package.json +88 -4
  229. package/skills/yandex-disk-cli/SKILL.md +46 -0
  230. package/skills/yandex-disk-cli/references/api/api-disk-operations-operation-id.md +13 -0
  231. package/skills/yandex-disk-cli/references/api/api-disk-public-resources.md +50 -0
  232. package/skills/yandex-disk-cli/references/api/api-disk-resources.md +171 -0
  233. package/skills/yandex-disk-cli/references/api/api-disk-trash-resources.md +48 -0
  234. package/skills/yandex-disk-cli/references/api/api-disk.md +13 -0
  235. package/skills/yandex-disk-cli/references/api.md +17 -0
@@ -0,0 +1,1197 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ storePath
5
+ } from "./chunk-NQAKARHE.js";
6
+ import {
7
+ resolvePaths,
8
+ writeSecurely
9
+ } from "./chunk-762BS35H.js";
10
+ import {
11
+ CliError,
12
+ singleLine
13
+ } from "./chunk-T7ZUDA4C.js";
14
+ import {
15
+ __name
16
+ } from "./chunk-ZVVMGPBJ.js";
17
+
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.692.0_@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_comm_daa46dda8170ab81fe68d59b38277e40/node_modules/@wirecat/cli-core/dist/store/shared-config.js
19
+ import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
20
+ import { dirname, join, resolve } from "node:path";
21
+
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.692.0_@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_comm_daa46dda8170ab81fe68d59b38277e40/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
23
+ var REPAIR_WORDS = {
24
+ byte_order_mark: "an invisible byte-order mark at the start",
25
+ comment: "a comment, which JSON does not allow",
26
+ trailing_comma: "a comma before a closing bracket",
27
+ missing_comma: "a missing comma",
28
+ unquoted_key: "a key without double quotes",
29
+ single_quotes: "text in single quotes",
30
+ missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
31
+ };
32
+ var GiveUp = class {
33
+ static {
34
+ __name(this, "GiveUp");
35
+ }
36
+ at;
37
+ why;
38
+ constructor(at, why) {
39
+ this.at = at;
40
+ this.why = why;
41
+ }
42
+ };
43
+ var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
44
+ var LITERAL = /^(true|false|null)/;
45
+ var KEY = /^[A-Za-z_$][\w$.-]*/;
46
+ var ENDS_VALUE = /^[\s,\]}/]?$/;
47
+ var repairConfigText = /* @__PURE__ */ __name((text) => {
48
+ try {
49
+ JSON.parse(text);
50
+ return { state: "valid" };
51
+ } catch {
52
+ }
53
+ const fixes = [];
54
+ const lineAt = /* @__PURE__ */ __name((offset) => text.slice(0, offset).split("\n").length, "lineAt");
55
+ const fix = /* @__PURE__ */ __name((kind, offset) => fixes.push({ kind, line: lineAt(offset) }), "fix");
56
+ const giveUp = /* @__PURE__ */ __name((why, offset = at) => {
57
+ throw new GiveUp(offset, why);
58
+ }, "giveUp");
59
+ let at = 0;
60
+ let truncated = false;
61
+ let last = "open";
62
+ let lastEnd = 0;
63
+ const previous = /* @__PURE__ */ __name(() => last, "previous");
64
+ const skip = /* @__PURE__ */ __name(() => {
65
+ for (; ; ) {
66
+ while (/\s/.test(text[at] ?? ""))
67
+ at++;
68
+ if (text.startsWith("//", at)) {
69
+ fix("comment", at);
70
+ while (at < text.length && text[at] !== "\n")
71
+ at++;
72
+ } else if (text.startsWith("/*", at)) {
73
+ const end = text.indexOf("*/", at + 2);
74
+ if (end < 0)
75
+ giveUp("a /* comment is never closed");
76
+ fix("comment", at);
77
+ at = end + 2;
78
+ } else
79
+ return;
80
+ }
81
+ }, "skip");
82
+ const string = /* @__PURE__ */ __name(() => {
83
+ const quote = text[at];
84
+ const start = at;
85
+ if (quote === "'")
86
+ fix("single_quotes", at);
87
+ at++;
88
+ let body = "";
89
+ for (; ; ) {
90
+ if (at >= text.length)
91
+ giveUp("the file stops inside a quoted text", start);
92
+ const char = text[at];
93
+ if (char === quote)
94
+ break;
95
+ if (text.charCodeAt(at) < 32)
96
+ giveUp("a line break inside a quoted text");
97
+ if (char === "\\") {
98
+ const next = text[at + 1] ?? "";
99
+ if (quote === "'" && next === "'")
100
+ body += "'";
101
+ else if (/^["\\/bfnrt]$/.test(next))
102
+ body += `\\${next}`;
103
+ else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text.slice(at + 2, at + 6))) {
104
+ body += text.slice(at, at + 6);
105
+ at += 4;
106
+ } else
107
+ giveUp("an escape JSON has no meaning for");
108
+ at += 2;
109
+ continue;
110
+ }
111
+ body += char === '"' ? '\\"' : char;
112
+ at++;
113
+ }
114
+ at++;
115
+ return JSON.parse(`"${body}"`);
116
+ }, "string");
117
+ const key = /* @__PURE__ */ __name(() => {
118
+ const char = text[at] ?? "";
119
+ if (char === '"' || char === "'")
120
+ return string();
121
+ const word = KEY.exec(text.slice(at))?.[0];
122
+ if (!word)
123
+ return giveUp("something other than a key where a key should be");
124
+ fix("unquoted_key", at);
125
+ at += word.length;
126
+ return word;
127
+ }, "key");
128
+ const scalar = /* @__PURE__ */ __name(() => {
129
+ const char = text[at] ?? "";
130
+ if (char === '"' || char === "'")
131
+ return { json: JSON.stringify(string()) };
132
+ const word = (NUMBER.exec(text.slice(at)) ?? LITERAL.exec(text.slice(at)))?.[0];
133
+ if (!word || !ENDS_VALUE.test(text[at + word.length] ?? ""))
134
+ return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
135
+ if (at + word.length === text.length && NUMBER.test(word))
136
+ giveUp("the file stops inside a number");
137
+ at += word.length;
138
+ return { json: word };
139
+ }, "scalar");
140
+ const members = /* @__PURE__ */ __name((close, one) => {
141
+ const out = [];
142
+ at++;
143
+ last = "open";
144
+ let comma = -1;
145
+ for (; ; ) {
146
+ skip();
147
+ if (truncated)
148
+ return out;
149
+ if (at >= text.length) {
150
+ if (previous() === "close")
151
+ giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
152
+ if (previous() === "comma")
153
+ fix("trailing_comma", comma);
154
+ fix("missing_closer", text.length);
155
+ truncated = true;
156
+ return out;
157
+ }
158
+ const char = text[at];
159
+ if (char === close) {
160
+ if (previous() === "comma")
161
+ fix("trailing_comma", comma);
162
+ at++;
163
+ last = "close";
164
+ return out;
165
+ }
166
+ if (char === "}" || char === "]")
167
+ giveUp(`a ${char} where ${close} should close`);
168
+ if (char === ",") {
169
+ if (previous() !== "value" && previous() !== "close")
170
+ giveUp("a comma with nothing before it");
171
+ comma = at;
172
+ at++;
173
+ last = "comma";
174
+ continue;
175
+ }
176
+ if (previous() === "value" || previous() === "close") {
177
+ if (lineAt(at) === lineAt(lastEnd))
178
+ giveUp("two entries on one line with no comma between them");
179
+ fix("missing_comma", lastEnd);
180
+ }
181
+ out.push(one());
182
+ }
183
+ }, "members");
184
+ const value = /* @__PURE__ */ __name(() => {
185
+ const char = text[at] ?? "";
186
+ let node;
187
+ if (char === "{") {
188
+ const seen = /* @__PURE__ */ new Set();
189
+ node = {
190
+ object: members("}", () => {
191
+ const start = at;
192
+ const name = key();
193
+ if (seen.has(name))
194
+ giveUp("a key appears twice in one object", start);
195
+ seen.add(name);
196
+ skip();
197
+ if (at >= text.length)
198
+ giveUp("the file stops after a key, before its value");
199
+ if (text[at] !== ":")
200
+ giveUp("a key with no colon after it");
201
+ at++;
202
+ skip();
203
+ if (at >= text.length)
204
+ giveUp("the file stops after a key, before its value");
205
+ return [name, value()];
206
+ })
207
+ };
208
+ } else if (char === "[") {
209
+ node = {
210
+ array: members("]", () => {
211
+ return value();
212
+ })
213
+ };
214
+ } else
215
+ node = scalar();
216
+ if (!truncated) {
217
+ last = "json" in node ? "value" : "close";
218
+ lastEnd = at;
219
+ }
220
+ return node;
221
+ }, "value");
222
+ try {
223
+ if (text.includes("\0") || text.includes(String.fromCharCode(65533)))
224
+ giveUp("the file is not text", 0);
225
+ if (text.charCodeAt(0) === 65279) {
226
+ fix("byte_order_mark", 0);
227
+ at = 1;
228
+ }
229
+ skip();
230
+ if (text[at] !== "{")
231
+ giveUp(at >= text.length ? "the file is empty" : "the file does not start with {");
232
+ const root = value();
233
+ skip();
234
+ if (at < text.length)
235
+ giveUp("more text after the closing }");
236
+ const repaired = `${serialise(root, "")}
237
+ `;
238
+ JSON.parse(repaired);
239
+ return { state: "repaired", text: repaired, fixes };
240
+ } catch (error) {
241
+ if (!(error instanceof GiveUp))
242
+ throw error;
243
+ const before = text.slice(0, error.at).split("\n");
244
+ return {
245
+ state: "refused",
246
+ line: before.length,
247
+ column: (before.at(-1)?.length ?? 0) + 1,
248
+ why: error.why
249
+ };
250
+ }
251
+ }, "repairConfigText");
252
+ var serialise = /* @__PURE__ */ __name((node, indent) => {
253
+ if ("json" in node)
254
+ return node.json;
255
+ const inner = `${indent} `;
256
+ const parts = "object" in node ? node.object.map(([name, item]) => `${inner}${JSON.stringify(name)}: ${serialise(item, inner)}`) : node.array.map((item) => `${inner}${serialise(item, inner)}`);
257
+ const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
258
+ return parts.length === 0 ? `${open}${close}` : `${open}
259
+ ${parts.join(",\n")}
260
+ ${indent}${close}`;
261
+ }, "serialise");
262
+ var SAFE_REPAIRS = /* @__PURE__ */ new Set([
263
+ "byte_order_mark",
264
+ "comment",
265
+ "trailing_comma",
266
+ "missing_comma"
267
+ ]);
268
+ var FIX_FOR = {
269
+ unquoted_key: /* @__PURE__ */ __name((line) => `put the key on line ${line} in double quotes`, "unquoted_key"),
270
+ single_quotes: /* @__PURE__ */ __name((line) => `use double quotes for the text on line ${line}`, "single_quotes"),
271
+ missing_closer: /* @__PURE__ */ __name((line) => `add the closing } or ] the file lacks after line ${line}, and check that nothing after it was lost`, "missing_closer")
272
+ };
273
+ var FIX_FOR_REFUSAL = [
274
+ [/no comma between/, (line, before) => `add a comma after ${before} on line ${line}`],
275
+ [/no colon after/, (line) => `add a colon after the key on line ${line}`],
276
+ [/comma with nothing before/, (line) => `remove the extra comma on line ${line}`],
277
+ [/inside a quoted text/, (line) => `close the quotes on line ${line}`],
278
+ [/value that is not JSON/, (line) => `put the value on line ${line} in double quotes`],
279
+ [/key appears twice/, (line) => `keep one of the two keys named on line ${line}; the file holds both`]
280
+ ];
281
+ var shown = /* @__PURE__ */ __name((line) => line.trim().replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[^\s"',:{}[\]]+)(\s*:)?/g, (token, _value, key) => key || /^(true|false|null)$/.test(token) ? token : '"\u2026"'), "shown");
282
+ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
283
+ const lines = text.replace(/^\uFEFF/u, "").split(/\r?\n/);
284
+ const around = /* @__PURE__ */ __name((line2) => {
285
+ const near = lines[line2 - 1]?.trim() ? lines[line2 - 1] : lines[line2 - 2];
286
+ return near ? ` \u2014 near \`${shown(near)}\`` : "";
287
+ }, "around");
288
+ if (result.state === "repaired") {
289
+ const asked = result.fixes.find((one) => !SAFE_REPAIRS.has(one.kind)) ?? result.fixes[0];
290
+ if (!asked)
291
+ return "it is not valid JSON";
292
+ const fix2 = FIX_FOR[asked.kind]?.(asked.line);
293
+ return `line ${asked.line} has ${REPAIR_WORDS[asked.kind]}${around(asked.line)}${fix2 ? `; likely fix: ${fix2}` : ""}`;
294
+ }
295
+ if (result.state === "valid")
296
+ return "it is valid JSON";
297
+ const { line, why } = result;
298
+ const column = line === 1 && text.charCodeAt(0) === 65279 ? result.column - 1 : result.column;
299
+ const head = (lines[line - 1] ?? "").slice(0, column - 1);
300
+ const entry = head.slice(Math.max(head.lastIndexOf(","), head.lastIndexOf("{"), head.lastIndexOf("[")) + 1);
301
+ const before = shown(entry) || shown(lines[line - 2] ?? "");
302
+ const fix = FIX_FOR_REFUSAL.find(([pattern]) => pattern.test(why))?.[1](line, `\`${before}\``);
303
+ return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
304
+ }, "explainBrokenJson");
305
+
306
+ // node_modules/.pnpm/@wirecat+cli-core@0.692.0_@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_comm_daa46dda8170ab81fe68d59b38277e40/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
307
+ var DEFAULT_TASK_CATEGORIES = [
308
+ {
309
+ name: "taxes",
310
+ meaning: "tax returns, the accountant, the tax office",
311
+ triggers: {
312
+ en: ["tax", "taxes", "accountant", "vat", "hmrc"],
313
+ ru: ["\u043D\u0430\u043B\u043E\u0433", "\u043D\u0430\u043B\u043E\u0433\u043E\u0432\u0430\u044F", "\u0434\u0435\u043A\u043B\u0430\u0440\u0430\u0446\u0438\u044F", "\u0431\u0443\u0445\u0433\u0430\u043B\u0442\u0435\u0440", "\u043D\u0434\u0444\u043B", "\u0438\u0444\u043D\u0441", "\u0432\u044B\u0447\u0435\u0442"],
314
+ es: ["impuesto", "impuestos", "hacienda", "iva", "irpf", "gestor", "gestor\xEDa"]
315
+ }
316
+ },
317
+ {
318
+ name: "investments",
319
+ meaning: "stocks, funds, crypto, a broker",
320
+ triggers: {
321
+ en: [
322
+ "invest",
323
+ "investment",
324
+ "investments",
325
+ "stocks",
326
+ "broker",
327
+ "brokerage",
328
+ "portfolio",
329
+ "crypto",
330
+ "etf",
331
+ "dividend",
332
+ "dividends"
333
+ ],
334
+ ru: ["\u0438\u043D\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u0438", "\u0438\u043D\u0432\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C", "\u0431\u0440\u043E\u043A\u0435\u0440", "\u043E\u0431\u043B\u0438\u0433\u0430\u0446\u0438\u0438", "\u043F\u043E\u0440\u0442\u0444\u0435\u043B\u044C", "\u043A\u0440\u0438\u043F\u0442\u0430", "\u043A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u0430", "\u0434\u0438\u0432\u0438\u0434\u0435\u043D\u0434\u044B"],
335
+ es: ["inversi\xF3n", "invertir", "br\xF3ker", "dividendos", "cripto", "bolsa"]
336
+ }
337
+ },
338
+ {
339
+ name: "subscriptions",
340
+ meaning: "a service subscription to start, cancel or renew",
341
+ triggers: {
342
+ en: ["subscription", "subscriptions", "subscribe", "unsubscribe", "renewal", "membership", "trial"],
343
+ ru: ["\u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0430", "\u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0443", "\u0430\u0431\u043E\u043D\u0435\u043D\u0442\u0441\u043A\u0430\u044F", "\u0430\u0431\u043E\u043D\u0435\u043C\u0435\u043D\u0442", "\u043F\u0440\u043E\u0434\u043B\u0435\u043D\u0438\u0435"],
344
+ es: ["suscripci\xF3n", "suscribirse", "renovaci\xF3n", "membres\xEDa"]
345
+ }
346
+ },
347
+ {
348
+ name: "bills",
349
+ meaning: "a recurring bill: utilities, phone, internet",
350
+ triggers: {
351
+ en: ["utility", "utilities", "electricity", "heating"],
352
+ ru: ["\u043A\u043E\u043C\u043C\u0443\u043D\u0430\u043B\u043A\u0430", "\u043A\u043E\u043C\u043C\u0443\u043D\u0430\u043B\u044C\u043D\u044B\u0435", "\u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u0442\u0432\u043E", "\u0433\u0430\u0437", "\u043A\u0432\u0438\u0442\u0430\u043D\u0446\u0438\u044F", "\u043F\u043E\u043A\u0430\u0437\u0430\u043D\u0438\u044F"],
353
+ es: ["recibo", "recibos", "suministro", "suministros", "electricidad"]
354
+ }
355
+ },
356
+ {
357
+ name: "donations",
358
+ meaning: "a donation, a fundraiser, a charity",
359
+ triggers: {
360
+ en: ["donate", "donation", "donations", "charity", "fundraiser", "crowdfunding", "patreon"],
361
+ ru: ["\u043F\u043E\u0436\u0435\u0440\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435", "\u043F\u043E\u0436\u0435\u0440\u0442\u0432\u043E\u0432\u0430\u0442\u044C", "\u0431\u043B\u0430\u0433\u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C", "\u0434\u043E\u043D\u0430\u0442", "\u0444\u043E\u043D\u0434"],
362
+ es: ["donaci\xF3n", "donar", "ben\xE9fico", "beneficencia", "ong"]
363
+ }
364
+ },
365
+ {
366
+ name: "insurance",
367
+ meaning: "an insurance policy or claim",
368
+ triggers: {
369
+ en: ["insurance", "insurer", "insured", "coverage"],
370
+ ru: ["\u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0430", "\u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F", "\u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435", "\u043F\u043E\u043B\u0438\u0441", "\u043E\u0441\u0430\u0433\u043E", "\u043A\u0430\u0441\u043A\u043E", "\u0434\u043C\u0441"],
371
+ es: ["aseguradora", "p\xF3liza", "siniestro", "mutua"]
372
+ }
373
+ },
374
+ {
375
+ name: "bank",
376
+ meaning: "cards, bank accounts, wire transfers, a bank's request",
377
+ triggers: {
378
+ en: ["bank", "banking", "card", "iban", "swift", "wire", "overdraft"],
379
+ ru: ["\u0431\u0430\u043D\u043A", "\u043A\u0430\u0440\u0442\u0430", "\u043A\u0430\u0440\u0442\u0443", "\u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u044B", "\u0432\u044B\u043F\u0438\u0441\u043A\u0430", "iban", "swift"],
380
+ es: ["banco", "tarjeta", "iban", "swift"]
381
+ }
382
+ },
383
+ {
384
+ name: "civic",
385
+ meaning: "voting, a petition, a census, jury duty, the local council",
386
+ triggers: {
387
+ en: ["vote", "voting", "election", "elections", "petition", "census", "jury", "ballot"],
388
+ ru: ["\u0432\u044B\u0431\u043E\u0440\u044B", "\u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435", "\u043F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C", "\u043F\u0435\u0442\u0438\u0446\u0438\u044F", "\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044C", "\u0434\u0435\u043F\u0443\u0442\u0430\u0442"],
389
+ es: ["elecciones", "votar", "votaci\xF3n", "censo", "refer\xE9ndum"]
390
+ }
391
+ },
392
+ {
393
+ name: "government",
394
+ meaning: "a visa, residence, a permit, an appointment at a public office",
395
+ triggers: {
396
+ en: ["visa", "residence", "permit", "embassy", "consulate", "passport", "citizenship", "nie"],
397
+ ru: [
398
+ "\u0432\u0438\u0437\u0430",
399
+ "\u0432\u043D\u0436",
400
+ "\u0433\u0440\u0430\u0436\u0434\u0430\u043D\u0441\u0442\u0432\u043E",
401
+ "\u043F\u043E\u0441\u043E\u043B\u044C\u0441\u0442\u0432\u043E",
402
+ "\u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0441\u0442\u0432\u043E",
403
+ "\u0433\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438",
404
+ "\u043C\u0444\u0446",
405
+ "\u043F\u0430\u0441\u043F\u043E\u0440\u0442",
406
+ "\u0437\u0430\u0433\u0440\u0430\u043D\u043F\u0430\u0441\u043F\u043E\u0440\u0442",
407
+ "\u043F\u0440\u043E\u043F\u0438\u0441\u043A\u0430"
408
+ ],
409
+ es: [
410
+ "visado",
411
+ "residencia",
412
+ "extranjer\xEDa",
413
+ "empadronamiento",
414
+ "padr\xF3n",
415
+ "ayuntamiento",
416
+ "consulado",
417
+ "embajada",
418
+ "pasaporte",
419
+ "nie"
420
+ ]
421
+ }
422
+ },
423
+ {
424
+ name: "legal",
425
+ meaning: "a lawyer, a notary, a court or a dispute",
426
+ triggers: {
427
+ en: ["lawyer", "attorney", "notary", "court", "lawsuit", "dispute", "legal"],
428
+ ru: ["\u044E\u0440\u0438\u0441\u0442", "\u0430\u0434\u0432\u043E\u043A\u0430\u0442", "\u043D\u043E\u0442\u0430\u0440\u0438\u0443\u0441", "\u0438\u0441\u043A", "\u043F\u0440\u0435\u0442\u0435\u043D\u0437\u0438\u044F", "\u0434\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u043E\u0441\u0442\u044C", "\u0441\u0443\u0434\u0435\u0431\u043D\u044B\u0439"],
429
+ es: ["abogado", "notario", "juzgado", "demanda", "tribunal", "litigio"]
430
+ }
431
+ },
432
+ {
433
+ name: "hiring",
434
+ meaning: "candidates, interviews, job offers",
435
+ triggers: {
436
+ en: ["candidate", "candidates", "interview", "hire", "hiring", "recruiter", "vacancy", "resume", "cv"],
437
+ ru: ["\u043A\u0430\u043D\u0434\u0438\u0434\u0430\u0442", "\u0441\u043E\u0431\u0435\u0441\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435", "\u0432\u0430\u043A\u0430\u043D\u0441\u0438\u044F", "\u0440\u0435\u0437\u044E\u043C\u0435", "\u043E\u0444\u0444\u0435\u0440", "\u043D\u0430\u0439\u043C", "\u0440\u0435\u043A\u0440\u0443\u0442\u0435\u0440"],
438
+ es: ["candidato", "entrevista", "vacante", "curr\xEDculum", "contrataci\xF3n"]
439
+ }
440
+ },
441
+ {
442
+ name: "sales",
443
+ meaning: "leads, deals, quotes",
444
+ triggers: {
445
+ en: ["quote", "pipeline", "prospect", "crm", "sales"],
446
+ ru: ["\u043B\u0438\u0434", "\u043B\u0438\u0434\u044B", "\u0441\u0434\u0435\u043B\u043A\u0430", "\u043F\u0440\u043E\u0434\u0430\u0436\u0438", "\u043A\u043E\u043C\u043C\u0435\u0440\u0447\u0435\u0441\u043A\u043E\u0435"],
447
+ es: ["venta", "ventas", "presupuesto"]
448
+ }
449
+ },
450
+ {
451
+ name: "partners",
452
+ meaning: "a partnership or an integration with another company",
453
+ triggers: {
454
+ en: ["partner", "partners", "partnership", "integration", "affiliate", "reseller"],
455
+ ru: ["\u043F\u0430\u0440\u0442\u043D\u0451\u0440", "\u043F\u0430\u0440\u0442\u043D\u0451\u0440\u044B", "\u043F\u0430\u0440\u0442\u043D\u0451\u0440\u0441\u0442\u0432\u043E", "\u0438\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044F"],
456
+ es: ["socio", "alianza", "integraci\xF3n", "colaboraci\xF3n"]
457
+ }
458
+ },
459
+ {
460
+ name: "support",
461
+ meaning: "a user's or customer's problem to solve",
462
+ triggers: {
463
+ en: ["support", "complaint", "helpdesk", "outage"],
464
+ ru: ["\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430", "\u0436\u0430\u043B\u043E\u0431\u0430", "\u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435", "\u0442\u0438\u043A\u0435\u0442"],
465
+ es: ["soporte", "incidencia", "queja", "reclamaci\xF3n"]
466
+ }
467
+ },
468
+ {
469
+ name: "security",
470
+ meaning: "a hacked account, a scam, 2FA, a leak or breach",
471
+ triggers: {
472
+ en: ["hacked", "hack", "scam", "phishing", "breach", "2fa", "malware", "fraud", "spam"],
473
+ ru: ["\u0432\u0437\u043B\u043E\u043C", "\u0432\u0437\u043B\u043E\u043C\u0430\u043B\u0438", "\u043C\u043E\u0448\u0435\u043D\u043D\u0438\u043A\u0438", "\u043C\u043E\u0448\u0435\u043D\u043D\u0438\u0447\u0435\u0441\u0442\u0432\u043E", "\u0444\u0438\u0448\u0438\u043D\u0433", "\u0443\u0442\u0435\u0447\u043A\u0430", "\u0441\u043F\u0430\u043C"],
474
+ es: ["hackeado", "estafa", "fraude", "phishing", "suplantaci\xF3n"]
475
+ }
476
+ },
477
+ {
478
+ name: "access",
479
+ meaning: "a login, password, key, invite or permission to give or get",
480
+ triggers: {
481
+ en: ["access", "password", "credentials", "invite", "permission", "key", "keys", "token", "vpn"],
482
+ ru: ["\u0434\u043E\u0441\u0442\u0443\u043F", "\u043F\u0430\u0440\u043E\u043B\u044C", "\u043B\u043E\u0433\u0438\u043D", "\u043A\u043B\u044E\u0447", "\u043A\u043B\u044E\u0447\u0438", "\u043F\u0440\u0438\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u0435", "\u0430\u043A\u043A\u0430\u0443\u043D\u0442"],
483
+ es: ["acceso", "contrase\xF1a", "llave", "llaves", "clave", "invitaci\xF3n", "permiso"]
484
+ }
485
+ },
486
+ {
487
+ name: "tech",
488
+ meaning: "code, servers, bugs, builds, deploys",
489
+ triggers: {
490
+ en: [
491
+ "bug",
492
+ "deploy",
493
+ "deployment",
494
+ "server",
495
+ "build",
496
+ "code",
497
+ "merge",
498
+ "crash",
499
+ "flaky",
500
+ "database",
501
+ "api",
502
+ "release",
503
+ "prod"
504
+ ],
505
+ ru: ["\u0431\u0430\u0433", "\u0434\u0435\u043F\u043B\u043E\u0439", "\u0441\u0435\u0440\u0432\u0435\u0440", "\u0441\u0431\u043E\u0440\u043A\u0430", "\u043A\u043E\u0434", "\u043F\u0443\u043B\u0440\u0435\u043A\u0432\u0435\u0441\u0442", "\u043F\u0440\u043E\u0434", "\u0440\u0435\u043B\u0438\u0437"],
506
+ es: ["fallo", "servidor", "despliegue", "c\xF3digo"]
507
+ }
508
+ },
509
+ {
510
+ name: "media",
511
+ meaning: "the press, a journalist, a podcast or an interview for the media",
512
+ triggers: {
513
+ en: ["press", "journalist", "podcast", "media"],
514
+ ru: ["\u0436\u0443\u0440\u043D\u0430\u043B\u0438\u0441\u0442", "\u043F\u0440\u0435\u0441\u0441\u0430", "\u0441\u043C\u0438", "\u043F\u043E\u0434\u043A\u0430\u0441\u0442", "\u0438\u043D\u0442\u0435\u0440\u0432\u044C\u044E", "\u0440\u0435\u0434\u0430\u043A\u0446\u0438\u044F"],
515
+ es: ["prensa", "periodista", "podcast", "entrevistarte"]
516
+ }
517
+ },
518
+ {
519
+ name: "marketing",
520
+ meaning: "campaigns, ads, SEO, newsletters, social media",
521
+ triggers: {
522
+ en: ["marketing", "campaign", "ads", "advertising", "seo", "promo", "newsletter", "instagram"],
523
+ ru: ["\u043C\u0430\u0440\u043A\u0435\u0442\u0438\u043D\u0433", "\u0440\u0435\u043A\u043B\u0430\u043C\u0430", "\u0440\u0435\u043A\u043B\u0430\u043C\u0443", "\u0442\u0430\u0440\u0433\u0435\u0442", "\u043A\u0430\u043C\u043F\u0430\u043D\u0438\u044F", "\u0440\u0430\u0441\u0441\u044B\u043B\u043A\u0430", "\u043F\u0440\u043E\u0434\u0432\u0438\u0436\u0435\u043D\u0438\u0435"],
524
+ es: ["marketing", "campa\xF1a", "publicidad", "anuncio", "anuncios", "bolet\xEDn"]
525
+ }
526
+ },
527
+ {
528
+ name: "design",
529
+ meaning: "UI, mockups, a logo or a brand to design or review",
530
+ triggers: {
531
+ en: ["design", "designer", "mockup", "mockups", "logo", "brand", "branding", "figma", "wireframe", "ui", "ux"],
532
+ ru: ["\u0434\u0438\u0437\u0430\u0439\u043D", "\u0434\u0438\u0437\u0430\u0439\u043D\u0435\u0440", "\u043C\u0430\u043A\u0435\u0442", "\u043C\u0430\u043A\u0435\u0442\u044B", "\u043B\u043E\u0433\u043E\u0442\u0438\u043F", "\u0444\u0438\u0433\u043C\u0430", "\u0431\u0440\u0435\u043D\u0434\u0438\u043D\u0433"],
533
+ es: ["dise\xF1o", "dise\xF1ador", "logotipo", "maqueta", "marca"]
534
+ }
535
+ },
536
+ {
537
+ name: "research",
538
+ meaning: "research, a survey, an analysis or a benchmark",
539
+ triggers: {
540
+ en: ["research", "survey", "benchmark", "analysis", "experiment", "dataset"],
541
+ ru: ["\u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435", "\u043E\u043F\u0440\u043E\u0441", "\u0431\u0435\u043D\u0447\u043C\u0430\u0440\u043A", "\u044D\u043A\u0441\u043F\u0435\u0440\u0438\u043C\u0435\u043D\u0442", "\u0434\u0430\u0442\u0430\u0441\u0435\u0442"],
542
+ es: ["investigaci\xF3n", "encuesta", "experimento"]
543
+ }
544
+ },
545
+ {
546
+ name: "content",
547
+ meaning: "posts, articles, videos to write, film or review",
548
+ triggers: {
549
+ en: ["article", "blog", "video", "draft", "copywriting"],
550
+ ru: ["\u043F\u043E\u0441\u0442", "\u0431\u043B\u043E\u0433", "\u0432\u0438\u0434\u0435\u043E", "\u0440\u043E\u043B\u0438\u043A", "\u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A"],
551
+ es: ["art\xEDculo", "publicaci\xF3n", "v\xEDdeo", "video", "borrador"]
552
+ }
553
+ },
554
+ {
555
+ name: "vendors",
556
+ meaning: "a supplier, contractor or agency you pay for a service",
557
+ triggers: {
558
+ en: ["vendor", "vendors", "supplier", "suppliers", "contractor", "freelancer", "agency", "outsourcing"],
559
+ ru: ["\u043F\u043E\u0441\u0442\u0430\u0432\u0449\u0438\u043A", "\u043F\u043E\u0434\u0440\u044F\u0434\u0447\u0438\u043A", "\u0444\u0440\u0438\u043B\u0430\u043D\u0441\u0435\u0440", "\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E", "\u0438\u0441\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C"],
560
+ es: ["proveedor", "proveedores", "contratista", "agencia"]
561
+ }
562
+ },
563
+ {
564
+ name: "car",
565
+ meaning: "the car: repairs, parking, fines, inspection",
566
+ triggers: {
567
+ en: ["car", "parking", "mechanic", "garage", "tyres", "tires", "mot"],
568
+ ru: ["\u043C\u0430\u0448\u0438\u043D\u0430", "\u0430\u0432\u0442\u043E", "\u043F\u0430\u0440\u043A\u043E\u0432\u043A\u0430", "\u0448\u0442\u0440\u0430\u0444", "\u0433\u0438\u0431\u0434\u0434", "\u0448\u0438\u043D\u043E\u043C\u043E\u043D\u0442\u0430\u0436", "\u0442\u0435\u0445\u043E\u0441\u043C\u043E\u0442\u0440"],
569
+ es: ["coche", "aparcamiento", "multa", "taller", "itv", "neum\xE1ticos"]
570
+ }
571
+ },
572
+ {
573
+ name: "travel",
574
+ meaning: "flights, trains, hotels, trips",
575
+ triggers: {
576
+ en: ["flight", "flights", "hotel", "airport", "trip", "train", "airbnb", "boarding"],
577
+ ru: ["\u0440\u0435\u0439\u0441", "\u043F\u0435\u0440\u0435\u043B\u0451\u0442", "\u0441\u0430\u043C\u043E\u043B\u0451\u0442", "\u0433\u043E\u0441\u0442\u0438\u043D\u0438\u0446\u0430", "\u043E\u0442\u0435\u043B\u044C", "\u0430\u044D\u0440\u043E\u043F\u043E\u0440\u0442", "\u043F\u043E\u0435\u0437\u0434", "\u043F\u043E\u0435\u0437\u0434\u043A\u0430", "\u043A\u043E\u043C\u0430\u043D\u0434\u0438\u0440\u043E\u0432\u043A\u0430"],
578
+ es: ["vuelo", "vuelos", "hotel", "aeropuerto", "viaje", "tren"]
579
+ }
580
+ },
581
+ {
582
+ name: "pets",
583
+ meaning: "a pet: the vet, food, a sitter, walks",
584
+ triggers: {
585
+ en: ["pet", "pets", "vet", "dog", "cat", "puppy", "kitten", "grooming"],
586
+ ru: ["\u0432\u0435\u0442\u0435\u0440\u0438\u043D\u0430\u0440", "\u0432\u0435\u0442\u043A\u043B\u0438\u043D\u0438\u043A\u0430", "\u0441\u043E\u0431\u0430\u043A\u0430", "\u0441\u043E\u0431\u0430\u043A\u0443", "\u043A\u043E\u0448\u043A\u0430", "\u043A\u043E\u0442", "\u0449\u0435\u043D\u043E\u043A", "\u043A\u043E\u0442\u0451\u043D\u043E\u043A", "\u0433\u0440\u0443\u043C\u0438\u043D\u0433"],
587
+ es: ["veterinario", "perro", "gato", "mascota", "cachorro"]
588
+ }
589
+ },
590
+ {
591
+ name: "fitness",
592
+ meaning: "the gym, training, a sport",
593
+ triggers: {
594
+ en: ["gym", "workout", "trainer", "yoga", "pilates", "fitness", "marathon", "swimming"],
595
+ ru: ["\u0441\u043F\u043E\u0440\u0442\u0437\u0430\u043B", "\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043A\u0430", "\u0442\u0440\u0435\u043D\u0435\u0440", "\u0439\u043E\u0433\u0430", "\u0444\u0438\u0442\u043D\u0435\u0441", "\u0431\u0430\u0441\u0441\u0435\u0439\u043D", "\u043F\u0440\u043E\u0431\u0435\u0436\u043A\u0430"],
596
+ es: ["gimnasio", "entrenador", "entrenamiento", "yoga", "pilates", "piscina"]
597
+ }
598
+ },
599
+ {
600
+ name: "beauty",
601
+ meaning: "a haircut, nails, cosmetics, a salon",
602
+ triggers: {
603
+ en: ["haircut", "hairdresser", "barber", "salon", "manicure", "nails", "cosmetics", "spa"],
604
+ ru: ["\u043F\u0430\u0440\u0438\u043A\u043C\u0430\u0445\u0435\u0440", "\u0441\u0442\u0440\u0438\u0436\u043A\u0430", "\u043C\u0430\u043D\u0438\u043A\u044E\u0440", "\u043A\u043E\u0441\u043C\u0435\u0442\u043E\u043B\u043E\u0433", "\u0431\u0430\u0440\u0431\u0435\u0440\u0448\u043E\u043F", "\u0441\u0430\u043B\u043E\u043D", "\u043A\u043E\u0441\u043C\u0435\u0442\u0438\u043A\u0430"],
605
+ es: ["peluquer\xEDa", "peluquero", "manicura", "u\xF1as", "est\xE9tica", "cosm\xE9tica"]
606
+ }
607
+ },
608
+ {
609
+ name: "health",
610
+ meaning: "doctors, prescriptions, medicines",
611
+ triggers: {
612
+ en: ["doctor", "dentist", "clinic", "hospital", "prescription", "pharmacy", "medicine", "medicines", "vitamins"],
613
+ ru: [
614
+ "\u0432\u0440\u0430\u0447",
615
+ "\u0441\u0442\u043E\u043C\u0430\u0442\u043E\u043B\u043E\u0433",
616
+ "\u043E\u043A\u0443\u043B\u0438\u0441\u0442",
617
+ "\u043A\u0430\u0440\u0434\u0438\u043E\u043B\u043E\u0433",
618
+ "\u0431\u043E\u043B\u044C\u043D\u0438\u0446\u0430",
619
+ "\u043F\u043E\u043B\u0438\u043A\u043B\u0438\u043D\u0438\u043A\u0430",
620
+ "\u043B\u0435\u043A\u0430\u0440\u0441\u0442\u0432\u043E",
621
+ "\u043B\u0435\u043A\u0430\u0440\u0441\u0442\u0432\u0430",
622
+ "\u0440\u0435\u0446\u0435\u043F\u0442",
623
+ "\u0430\u043F\u0442\u0435\u043A\u0430",
624
+ "\u0430\u043D\u0430\u043B\u0438\u0437\u044B",
625
+ "\u0432\u0438\u0442\u0430\u043C\u0438\u043D\u044B"
626
+ ],
627
+ es: ["m\xE9dico", "dentista", "cl\xEDnica", "hospital", "receta", "farmacia", "medicamento"]
628
+ }
629
+ },
630
+ {
631
+ name: "education",
632
+ meaning: "courses, books, languages, studies at school or university",
633
+ triggers: {
634
+ en: ["course", "lesson", "tutor", "university", "exam", "homework", "study"],
635
+ ru: ["\u043A\u0443\u0440\u0441\u044B", "\u0443\u0440\u043E\u043A", "\u0440\u0435\u043F\u0435\u0442\u0438\u0442\u043E\u0440", "\u0443\u043D\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442", "\u044D\u043A\u0437\u0430\u043C\u0435\u043D", "\u0443\u0447\u0451\u0431\u0430", "\u043B\u0435\u043A\u0446\u0438\u044F", "\u043A\u043D\u0438\u0433\u0430"],
636
+ es: ["curso", "universidad", "examen", "libro", "idioma"]
637
+ }
638
+ },
639
+ {
640
+ name: "celebrations",
641
+ meaning: "a birthday, wedding, anniversary or holiday to plan or mark",
642
+ triggers: {
643
+ en: ["birthday", "anniversary", "christmas", "celebration", "celebrate"],
644
+ ru: ["\u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", "\u0441\u0432\u0430\u0434\u044C\u0431\u0430", "\u044E\u0431\u0438\u043B\u0435\u0439", "\u0433\u043E\u0434\u043E\u0432\u0449\u0438\u043D\u0430", "\u043F\u0440\u0430\u0437\u0434\u043D\u0438\u043A", "\u043F\u0440\u0430\u0437\u0434\u043D\u043E\u0432\u0430\u0442\u044C"],
645
+ es: ["cumplea\xF1os", "boda", "aniversario", "navidad", "celebrar", "celebraci\xF3n"]
646
+ }
647
+ },
648
+ {
649
+ name: "childcare",
650
+ meaning: "a nanny, a babysitter, kindergarten, kids' clubs",
651
+ triggers: {
652
+ en: ["nanny", "babysitter", "babysitting", "kindergarten", "daycare", "nursery"],
653
+ ru: ["\u043D\u044F\u043D\u044F", "\u0441\u0430\u0434\u0438\u043A", "\u0434\u0435\u0442\u0441\u0430\u0434", "\u043A\u0440\u0443\u0436\u043E\u043A", "\u043F\u0440\u043E\u0434\u043B\u0451\u043D\u043A\u0430"],
654
+ es: ["ni\xF1era", "guarder\xEDa", "canguro", "extraescolares"]
655
+ }
656
+ },
657
+ {
658
+ name: "elder-care",
659
+ meaning: "care for an older relative: a carer, a care home",
660
+ triggers: {
661
+ en: ["carer", "caregiver", "eldercare", "elderly"],
662
+ ru: ["\u0441\u0438\u0434\u0435\u043B\u043A\u0430", "\u043F\u0430\u043D\u0441\u0438\u043E\u043D\u0430\u0442", "\u043F\u043E\u0436\u0438\u043B\u043E\u0439", "\u043F\u043E\u0436\u0438\u043B\u044B\u0445"],
663
+ es: ["cuidadora", "cuidador", "geri\xE1trico", "mayores"]
664
+ }
665
+ },
666
+ {
667
+ name: "family",
668
+ meaning: "kids, school, parents and relatives",
669
+ triggers: {
670
+ en: [
671
+ "mum",
672
+ "mom",
673
+ "dad",
674
+ "kids",
675
+ "kid",
676
+ "school",
677
+ "grandma",
678
+ "grandpa",
679
+ "wife",
680
+ "husband",
681
+ "daughter",
682
+ "parents"
683
+ ],
684
+ ru: [
685
+ "\u043C\u0430\u043C\u0430",
686
+ "\u043F\u0430\u043F\u0430",
687
+ "\u0431\u0430\u0431\u0443\u0448\u043A\u0430",
688
+ "\u0434\u0435\u0434\u0443\u0448\u043A\u0430",
689
+ "\u0434\u0435\u0442\u0438",
690
+ "\u0440\u0435\u0431\u0451\u043D\u043E\u043A",
691
+ "\u0441\u044B\u043D",
692
+ "\u0434\u043E\u0447\u044C",
693
+ "\u043C\u0443\u0436",
694
+ "\u0436\u0435\u043D\u0430",
695
+ "\u0448\u043A\u043E\u043B\u0430",
696
+ "\u0443\u0447\u0438\u0442\u0435\u043B\u044C",
697
+ "\u043A\u043B\u0430\u0441\u0441",
698
+ "\u0440\u043E\u0434\u0438\u0442\u0435\u043B\u0438",
699
+ "\u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0435",
700
+ "\u0434\u043D\u0435\u0432\u043D\u0438\u043A",
701
+ "\u0442\u0451\u0442\u044F"
702
+ ],
703
+ es: ["mam\xE1", "pap\xE1", "hijos", "hijo", "hija", "colegio", "abuela", "abuelo", "padres", "ni\xF1os"]
704
+ }
705
+ },
706
+ {
707
+ name: "real-estate",
708
+ meaning: "buying, selling or letting a property; a mortgage",
709
+ triggers: {
710
+ en: ["mortgage", "property", "realtor", "tenant", "tenants"],
711
+ ru: ["\u0438\u043F\u043E\u0442\u0435\u043A\u0430", "\u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u044C", "\u0440\u0438\u0435\u043B\u0442\u043E\u0440", "\u0440\u0438\u044D\u043B\u0442\u043E\u0440", "\u0430\u0440\u0435\u043D\u0434\u0430\u0442\u043E\u0440", "\u0430\u0440\u0435\u043D\u0434\u0430\u0442\u043E\u0440\u044B"],
712
+ es: ["hipoteca", "inmobiliaria", "inmueble", "compraventa", "tasaci\xF3n", "inquilino"]
713
+ }
714
+ },
715
+ {
716
+ name: "moving",
717
+ meaning: "moving house: movers, boxes, a new address",
718
+ triggers: {
719
+ en: ["movers", "relocation", "relocate", "removals"],
720
+ ru: ["\u043F\u0435\u0440\u0435\u0435\u0437\u0434", "\u043F\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044C", "\u043F\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u043C", "\u0433\u0440\u0443\u0437\u0447\u0438\u043A\u0438"],
721
+ es: ["mudanza", "mudarse", "mudanzas"]
722
+ }
723
+ },
724
+ {
725
+ name: "home",
726
+ meaning: "the flat: repairs, rent, the landlord, neighbours",
727
+ triggers: {
728
+ en: [
729
+ "flat",
730
+ "apartment",
731
+ "landlord",
732
+ "rent",
733
+ "plumber",
734
+ "leak",
735
+ "electrician",
736
+ "neighbours",
737
+ "boiler",
738
+ "intercom",
739
+ "repair"
740
+ ],
741
+ ru: [
742
+ "\u043A\u0432\u0430\u0440\u0442\u0438\u0440\u0430",
743
+ "\u0430\u0440\u0435\u043D\u0434\u0430",
744
+ "\u0440\u0435\u043C\u043E\u043D\u0442",
745
+ "\u0441\u0430\u043D\u0442\u0435\u0445\u043D\u0438\u043A",
746
+ "\u043F\u0440\u043E\u0442\u0435\u0447\u043A\u0430",
747
+ "\u044D\u043B\u0435\u043A\u0442\u0440\u0438\u043A",
748
+ "\u0441\u043E\u0441\u0435\u0434\u0438",
749
+ "\u043F\u043E\u0434\u044A\u0435\u0437\u0434",
750
+ "\u0434\u043E\u043C\u043E\u0444\u043E\u043D",
751
+ "\u043F\u043E\u0434\u0432\u0430\u043B",
752
+ "\u0447\u0435\u0440\u0434\u0430\u043A",
753
+ "\u044D\u0442\u0430\u0436",
754
+ "\u043A\u043E\u0440\u0438\u0434\u043E\u0440",
755
+ "\u0436\u0438\u043B\u044C\u0446\u044B"
756
+ ],
757
+ es: ["piso", "alquiler", "casero", "fontanero", "aver\xEDa", "vecinos", "portal", "reforma", "calefacci\xF3n"]
758
+ }
759
+ },
760
+ {
761
+ name: "delivery",
762
+ meaning: "a parcel, order or courier to send, track or collect",
763
+ triggers: {
764
+ en: ["delivery", "deliver", "parcel", "package", "shipment", "ship", "courier", "tracking", "pickup", "order"],
765
+ ru: ["\u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0430", "\u043F\u043E\u0441\u044B\u043B\u043A\u0430", "\u043A\u0443\u0440\u044C\u0435\u0440", "\u0442\u0440\u0435\u043A", "\u0432\u044B\u0434\u0430\u0447\u0438", "\u0441\u0434\u044D\u043A", "\u043E\u0437\u043E\u043D", "\u0437\u0430\u043A\u0430\u0437"],
766
+ es: ["entrega", "paquete", "env\xEDo", "pedido", "mensajero", "repartidor", "correos"]
767
+ }
768
+ },
769
+ {
770
+ name: "devices",
771
+ meaning: "a phone, laptop or gadget to buy, fix or set up",
772
+ triggers: {
773
+ en: ["laptop", "iphone", "smartphone", "printer", "router", "charger", "headphones", "macbook", "gadget"],
774
+ ru: ["\u043D\u043E\u0443\u0442\u0431\u0443\u043A", "\u0441\u043C\u0430\u0440\u0442\u0444\u043E\u043D", "\u0430\u0439\u0444\u043E\u043D", "\u043F\u0440\u0438\u043D\u0442\u0435\u0440", "\u0440\u043E\u0443\u0442\u0435\u0440", "\u0437\u0430\u0440\u044F\u0434\u043A\u0430", "\u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438", "\u043C\u0430\u043A\u0431\u0443\u043A", "\u0433\u0430\u0434\u0436\u0435\u0442"],
775
+ es: ["port\xE1til", "impresora", "cargador", "auriculares", "router", "smartphone"]
776
+ }
777
+ },
778
+ {
779
+ name: "food",
780
+ meaning: "groceries, cooking, a restaurant",
781
+ triggers: {
782
+ en: ["groceries", "restaurant", "cook", "cooking", "recipe", "takeaway"],
783
+ ru: ["\u043F\u0440\u043E\u0434\u0443\u043A\u0442\u044B", "\u0440\u0435\u0441\u0442\u043E\u0440\u0430\u043D", "\u0441\u0442\u043E\u043B\u0438\u043A", "\u0433\u043E\u0442\u043E\u0432\u0438\u0442\u044C", "\u043A\u0443\u043B\u0438\u043D\u0430\u0440\u0438\u044F"],
784
+ es: ["restaurante", "comida", "cocinar", "mercadona"]
785
+ }
786
+ },
787
+ {
788
+ name: "shopping",
789
+ meaning: "things to buy",
790
+ triggers: {
791
+ en: ["buy", "purchase", "shop", "shopping"],
792
+ ru: ["\u043A\u0443\u043F\u0438\u0442\u044C", "\u043F\u043E\u043A\u0443\u043F\u043A\u0430", "\u043C\u0430\u0433\u0430\u0437\u0438\u043D"],
793
+ es: ["comprar", "compra", "tienda", "supermercado"]
794
+ }
795
+ },
796
+ {
797
+ name: "hobbies",
798
+ meaning: "a hobby: music, photography, crafts, a game you play",
799
+ triggers: {
800
+ en: ["hobby", "guitar", "piano", "photography", "painting", "knitting", "fishing", "chess"],
801
+ ru: ["\u0445\u043E\u0431\u0431\u0438", "\u0433\u0438\u0442\u0430\u0440\u0430", "\u0444\u043E\u0440\u0442\u0435\u043F\u0438\u0430\u043D\u043E", "\u0440\u0438\u0441\u043E\u0432\u0430\u043D\u0438\u0435", "\u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F", "\u0440\u044B\u0431\u0430\u043B\u043A\u0430", "\u0448\u0430\u0445\u043C\u0430\u0442\u044B"],
802
+ es: ["afici\xF3n", "guitarra", "piano", "fotograf\xEDa", "pintura", "pesca", "ajedrez"]
803
+ }
804
+ },
805
+ {
806
+ name: "entertainment",
807
+ meaning: "films, series, concerts, games, shows",
808
+ triggers: {
809
+ en: ["film", "movie", "cinema", "series", "concert", "game", "theatre", "theater", "netflix"],
810
+ ru: ["\u0444\u0438\u043B\u044C\u043C", "\u0441\u0435\u0440\u0438\u0430\u043B", "\u043A\u043E\u043D\u0446\u0435\u0440\u0442", "\u0438\u0433\u0440\u0430", "\u0442\u0435\u0430\u0442\u0440", "\u0441\u043F\u0435\u043A\u0442\u0430\u043A\u043B\u044C", "\u043C\u0430\u0442\u0447", "\u043A\u0438\u043D\u043E\u0442\u0435\u0430\u0442\u0440"],
811
+ es: ["pel\xEDcula", "cine", "serie", "concierto", "juego", "teatro"]
812
+ }
813
+ },
814
+ {
815
+ name: "events",
816
+ meaning: "an event, tickets, a venue, an RSVP",
817
+ triggers: {
818
+ en: ["event", "tickets", "ticket", "rsvp", "venue", "conference", "festival", "party", "reservation"],
819
+ ru: ["\u043C\u0435\u0440\u043E\u043F\u0440\u0438\u044F\u0442\u0438\u0435", "\u0431\u0438\u043B\u0435\u0442\u044B", "\u043A\u043E\u043D\u0444\u0435\u0440\u0435\u043D\u0446\u0438\u044F", "\u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043B\u044C", "\u0432\u0435\u0447\u0435\u0440\u0438\u043D\u043A\u0430"],
820
+ es: ["evento", "entradas", "fiesta", "congreso", "conferencia"]
821
+ }
822
+ },
823
+ {
824
+ name: "religion",
825
+ meaning: "church, a service, a religious holiday or rite",
826
+ triggers: {
827
+ en: ["church", "mosque", "synagogue", "temple", "prayer", "priest", "baptism"],
828
+ ru: ["\u0446\u0435\u0440\u043A\u043E\u0432\u044C", "\u0445\u0440\u0430\u043C", "\u0431\u0430\u0442\u044E\u0448\u043A\u0430", "\u043C\u043E\u043B\u0438\u0442\u0432\u0430", "\u043A\u0440\u0435\u0449\u0435\u043D\u0438\u0435", "\u043B\u0438\u0442\u0443\u0440\u0433\u0438\u044F"],
829
+ es: ["iglesia", "misa", "parroquia", "bautizo", "sacerdote"]
830
+ }
831
+ },
832
+ {
833
+ name: "community",
834
+ meaning: "a group or club you run or help: members, moderation, admin work",
835
+ triggers: {
836
+ en: ["community", "club", "members", "volunteer", "moderator"],
837
+ ru: ["\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u043E", "\u043A\u043B\u0443\u0431", "\u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0438", "\u043C\u043E\u0434\u0435\u0440\u0430\u0446\u0438\u044F", "\u0432\u043E\u043B\u043E\u043D\u0442\u0451\u0440"],
838
+ es: ["comunidad", "voluntario", "miembros"]
839
+ }
840
+ },
841
+ {
842
+ name: "intro",
843
+ meaning: "introduce people, or ask for an introduction",
844
+ triggers: {
845
+ en: ["intro", "introduce", "introduction", "referral"],
846
+ ru: ["\u043F\u043E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C", "\u043F\u043E\u0437\u043D\u0430\u043A\u043E\u043C\u044C", "\u0437\u043D\u0430\u043A\u043E\u043C\u0441\u0442\u0432\u043E"],
847
+ es: ["presentarte", "presentaros"]
848
+ }
849
+ },
850
+ {
851
+ name: "money",
852
+ meaning: "pay, invoice, refund, a price or a debt",
853
+ triggers: {
854
+ en: [
855
+ "pay",
856
+ "payment",
857
+ "invoice",
858
+ "refund",
859
+ "price",
860
+ "money",
861
+ "transfer",
862
+ "debt",
863
+ "owe",
864
+ "cost",
865
+ "reimburse",
866
+ "expenses"
867
+ ],
868
+ ru: [
869
+ "\u043E\u043F\u043B\u0430\u0442\u0430",
870
+ "\u043E\u043F\u043B\u0430\u0442\u0438\u0442\u044C",
871
+ "\u043F\u043B\u0430\u0442\u0451\u0436",
872
+ "\u0441\u0447\u0451\u0442",
873
+ "\u0434\u0435\u043D\u044C\u0433\u0438",
874
+ "\u043F\u0435\u0440\u0435\u0432\u043E\u0434",
875
+ "\u043F\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438",
876
+ "\u0434\u043E\u043B\u0433",
877
+ "\u0446\u0435\u043D\u0430",
878
+ "\u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C",
879
+ "\u0432\u043E\u0437\u0432\u0440\u0430\u0442",
880
+ "\u0432\u0435\u0440\u043D\u0443\u0442\u044C",
881
+ "\u0441\u043A\u0438\u043D\u0443\u0442\u044C\u0441\u044F"
882
+ ],
883
+ es: ["pagar", "pago", "factura", "dinero", "transferencia", "deuda", "precio", "reembolso", "cobrar"]
884
+ }
885
+ },
886
+ {
887
+ name: "documents",
888
+ meaning: "a contract, scan, form or signature to send or receive",
889
+ triggers: {
890
+ en: [
891
+ "document",
892
+ "documents",
893
+ "contract",
894
+ "scan",
895
+ "sign",
896
+ "signature",
897
+ "form",
898
+ "certificate",
899
+ "pdf",
900
+ "agreement",
901
+ "nda"
902
+ ],
903
+ ru: ["\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442", "\u0434\u043E\u0433\u043E\u0432\u043E\u0440", "\u0441\u043A\u0430\u043D", "\u043F\u043E\u0434\u043F\u0438\u0441\u0430\u0442\u044C", "\u043F\u043E\u0434\u043F\u0438\u0441\u044C", "\u0430\u043D\u043A\u0435\u0442\u0430", "\u0441\u043F\u0440\u0430\u0432\u043A\u0430", "\u0430\u043A\u0442", "\u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435", "\u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B"],
904
+ es: ["documento", "contrato", "escaneo", "firmar", "firma", "formulario", "certificado"]
905
+ }
906
+ },
907
+ {
908
+ name: "admin",
909
+ meaning: "office admin: supplies, errands, paperwork with no closer area",
910
+ triggers: {
911
+ en: ["admin", "paperwork", "errand", "errands", "stationery", "supplies"],
912
+ ru: ["\u043A\u0430\u043D\u0446\u0435\u043B\u044F\u0440\u0438\u044F", "\u043A\u0430\u043D\u0446\u0442\u043E\u0432\u0430\u0440\u044B", "\u043F\u043E\u0440\u0443\u0447\u0435\u043D\u0438\u0435", "\u0431\u0443\u043C\u0430\u0436\u043A\u0438"],
913
+ es: ["papeleo", "recado", "recados", "gestiones"]
914
+ }
915
+ },
916
+ {
917
+ name: "meeting",
918
+ meaning: "a call, meeting or appointment to arrange or attend",
919
+ triggers: {
920
+ en: ["meeting", "meet", "call", "appointment", "schedule", "zoom", "reschedule", "agenda", "sync", "standup"],
921
+ ru: ["\u0432\u0441\u0442\u0440\u0435\u0447\u0430", "\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u044C\u0441\u044F", "\u0441\u043E\u0437\u0432\u043E\u043D", "\u0441\u043E\u0437\u0432\u043E\u043D\u0438\u0442\u044C\u0441\u044F", "\u0437\u0432\u043E\u043D\u043E\u043A", "\u043F\u043E\u0437\u0432\u043E\u043D\u0438\u0442\u044C", "\u0441\u043E\u0431\u0440\u0430\u043D\u0438\u0435"],
922
+ es: ["reuni\xF3n", "reunirse", "llamada", "cita", "agenda", "videollamada"]
923
+ }
924
+ },
925
+ {
926
+ name: "clients",
927
+ meaning: "a client's request, a proposal, a client follow-up",
928
+ triggers: {
929
+ en: ["client", "clients", "customer", "proposal"],
930
+ ru: ["\u043A\u043B\u0438\u0435\u043D\u0442", "\u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A"],
931
+ es: ["cliente", "propuesta"]
932
+ }
933
+ },
934
+ {
935
+ name: "projects",
936
+ meaning: "deliverables, deadlines, launches",
937
+ triggers: {
938
+ en: ["project", "deadline", "launch", "milestone", "deliverable", "roadmap", "sprint"],
939
+ ru: ["\u043F\u0440\u043E\u0435\u043A\u0442", "\u0434\u0435\u0434\u043B\u0430\u0439\u043D", "\u0437\u0430\u043F\u0443\u0441\u043A", "\u0441\u043F\u0440\u0438\u043D\u0442"],
940
+ es: ["proyecto", "lanzamiento", "plazo"]
941
+ }
942
+ },
943
+ {
944
+ name: "team",
945
+ meaning: "colleagues, reviews, one-to-ones, time off",
946
+ triggers: {
947
+ en: ["team", "colleague", "colleagues", "vacation", "onboarding", "manager"],
948
+ ru: ["\u043A\u043E\u043C\u0430\u043D\u0434\u0430", "\u043A\u043E\u043B\u043B\u0435\u0433\u0430", "\u043A\u043E\u043B\u043B\u0435\u0433\u0438", "\u043E\u0442\u043F\u0443\u0441\u043A", "\u043E\u043D\u0431\u043E\u0440\u0434\u0438\u043D\u0433", "\u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C"],
949
+ es: ["equipo", "compa\xF1ero", "vacaciones"]
950
+ }
951
+ },
952
+ {
953
+ name: "follow-up",
954
+ meaning: "you wait for someone: chase them",
955
+ triggers: {
956
+ en: ["remind", "reminder", "chase", "nudge", "followup"],
957
+ ru: ["\u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u044E", "\u043D\u0430\u043F\u043E\u043C\u043D\u0438\u0442\u044C", "\u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u043D\u0438\u0435", "\u043F\u0438\u043D\u0433"],
958
+ es: ["recordatorio", "recordar"]
959
+ }
960
+ },
961
+ {
962
+ name: "reply",
963
+ meaning: "someone waits for your answer",
964
+ triggers: {
965
+ en: ["reply", "respond", "answer"],
966
+ ru: ["\u043E\u0442\u0432\u0435\u0442\u044C", "\u043E\u0442\u0432\u0435\u0442\u0438\u0442\u044C", "\u043E\u0442\u0432\u0435\u0442"],
967
+ es: ["responder", "respuesta", "contestar", "contesta"]
968
+ }
969
+ },
970
+ {
971
+ name: "work",
972
+ meaning: "a job task with no closer category",
973
+ triggers: {
974
+ en: ["work", "job", "office", "task"],
975
+ ru: ["\u0440\u0430\u0431\u043E\u0442\u0430", "\u043E\u0444\u0438\u0441", "\u0437\u0430\u0434\u0430\u0447\u0430", "\u043D\u0430\u0447\u0430\u043B\u044C\u043D\u0438\u043A"],
976
+ es: ["trabajo", "oficina", "tarea", "jefe"]
977
+ }
978
+ },
979
+ {
980
+ name: "personal",
981
+ meaning: "friends, gifts, favours",
982
+ triggers: {
983
+ en: ["friend", "friends", "gift", "favour", "favor"],
984
+ ru: ["\u043F\u043E\u0434\u0440\u0443\u0433\u0430", "\u043F\u043E\u0434\u0430\u0440\u043E\u043A", "\u043F\u0440\u043E\u0441\u044C\u0431\u0430", "\u0434\u0440\u0443\u0437\u044C\u044F"],
985
+ es: ["amigo", "amiga", "regalo", "favor"]
986
+ }
987
+ },
988
+ { name: "other", meaning: "none of the above", triggers: { en: [], ru: [], es: [] } }
989
+ ];
990
+ var FALLBACK_CATEGORY = "other";
991
+ var unlistedNote = /* @__PURE__ */ __name((unlisted, tool) => unlisted.map(({ name, open, total }) => `${total} task${total === 1 ? "" : "s"} (${open} open) still use ${name}, which is not in the list: ${tool} tasks list category:${name} shows them, ${tool} tasks update <id> --category <name> moves one`), "unlistedNote");
992
+ var LANGUAGES = ["en", "ru", "es"];
993
+ var NAME = /^[a-z][a-z0-9-]{0,29}$/;
994
+ var MAX_CATEGORIES = 80;
995
+ var parseTaskCategory = /* @__PURE__ */ __name((name, value) => {
996
+ const named = name.trim().toLowerCase();
997
+ if (!NAME.test(named))
998
+ throw new CliError("validation_error", `a category name is a lower-case word of letters, digits and -, up to 30 \u2014 not "${singleLine(name)}"`);
999
+ const [meaning = "", words = ""] = value.split("|", 2).map((part) => part.trim());
1000
+ if (!meaning || meaning.length > 200)
1001
+ throw new CliError("validation_error", 'a category takes "<meaning> | <trigger words, comma-separated>", the meaning up to 200 characters');
1002
+ const triggers = { en: [], ru: [], es: [] };
1003
+ for (const typed of words.split(",").map((word) => word.trim()).filter(Boolean)) {
1004
+ const tagged = /^(en|ru|es):\s*(.+)$/i.exec(typed);
1005
+ const word = (tagged?.[2] ?? typed).toLowerCase();
1006
+ const language = tagged?.[1]?.toLowerCase() ?? (new RegExp("\\p{Script=Cyrillic}", "u").test(word) ? "ru" : "en");
1007
+ if (!triggers[language].includes(word))
1008
+ triggers[language].push(word.slice(0, 60));
1009
+ }
1010
+ if (Object.values(triggers).flat().length > 100)
1011
+ throw new CliError("validation_error", "a category takes up to 100 trigger words");
1012
+ return { name: named, meaning, triggers };
1013
+ }, "parseTaskCategory");
1014
+ var withTaskCategory = /* @__PURE__ */ __name((list, name, value) => {
1015
+ const named = name.trim().toLowerCase();
1016
+ if (value === void 0) {
1017
+ if (named === FALLBACK_CATEGORY)
1018
+ throw new CliError("validation_error", `${FALLBACK_CATEGORY} stays: a rule picks it when no trigger word matches`);
1019
+ if (!list.some((one) => one.name === named))
1020
+ throw new CliError("not_found", `no task category ${singleLine(named)} \u2014 tasks categories lists them`);
1021
+ return list.filter((one) => one.name !== named);
1022
+ }
1023
+ const category = parseTaskCategory(named, value);
1024
+ if (list.some((one) => one.name === named))
1025
+ return list.map((one) => one.name === named ? category : one);
1026
+ if (list.length >= MAX_CATEGORIES)
1027
+ throw new CliError("validation_error", `the category list takes up to ${MAX_CATEGORIES} categories`);
1028
+ const fallback = list.findIndex((one) => one.name === FALLBACK_CATEGORY);
1029
+ return fallback < 0 ? [...list, category] : [...list.slice(0, fallback), category, ...list.slice(fallback)];
1030
+ }, "withTaskCategory");
1031
+ var taskCategoryValue = /* @__PURE__ */ __name(({ meaning, triggers }) => {
1032
+ const words = LANGUAGES.flatMap((language) => triggers[language].map((word) => `${language}:${word}`));
1033
+ return words.length === 0 ? meaning : `${meaning} | ${words.join(", ")}`;
1034
+ }, "taskCategoryValue");
1035
+ var wordsOf = /* @__PURE__ */ __name((words) => Array.isArray(words) ? words.map(String) : [], "wordsOf");
1036
+ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
1037
+ try {
1038
+ const parsed = JSON.parse(json);
1039
+ if (!Array.isArray(parsed))
1040
+ return void 0;
1041
+ const list = parsed.map((one) => {
1042
+ const { name, meaning, triggers } = one;
1043
+ if (typeof name !== "string" || typeof meaning !== "string" || typeof triggers !== "object")
1044
+ throw new Error();
1045
+ return {
1046
+ name,
1047
+ meaning,
1048
+ triggers: {
1049
+ en: wordsOf(triggers.en),
1050
+ ru: wordsOf(triggers.ru),
1051
+ es: wordsOf(triggers.es)
1052
+ }
1053
+ };
1054
+ });
1055
+ return list.some((one) => one.name === FALLBACK_CATEGORY) ? list : void 0;
1056
+ } catch {
1057
+ return void 0;
1058
+ }
1059
+ }, "storedTaskCategories");
1060
+
1061
+ // node_modules/.pnpm/@wirecat+cli-core@0.692.0_@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_comm_daa46dda8170ab81fe68d59b38277e40/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1062
+ var SECTION = "task_categories";
1063
+ var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
1064
+ const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
1065
+ if (env.WIRECAT_CONFIG_DIR)
1066
+ return join(paths.config, "config.json");
1067
+ return resolve(store) === resolve(storePath({ ...env, MESSAGING_STORE: void 0 })) ? join(paths.config, "config.json") : join(dirname(store), "config.json");
1068
+ }, "sharedConfigPath");
1069
+ var backupPathFor = /* @__PURE__ */ __name((file) => {
1070
+ const stamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
1071
+ let path = `${file}.bak-${stamp}`;
1072
+ for (let n = 2; existsSync(path); n++)
1073
+ path = `${file}.bak-${stamp}-${n}`;
1074
+ return path;
1075
+ }, "backupPathFor");
1076
+ var mended = /* @__PURE__ */ __name((path, bytes) => {
1077
+ const text = bytes.toString("utf8");
1078
+ const result = repairConfigText(text);
1079
+ if (result.state === "repaired" && result.fixes.every((one) => SAFE_REPAIRS.has(one.kind))) {
1080
+ try {
1081
+ writeSecurely(backupPathFor(path), bytes, statSync(path).mode & 511);
1082
+ writeSecurely(path, result.text, 384);
1083
+ } catch {
1084
+ }
1085
+ return JSON.parse(result.text);
1086
+ }
1087
+ throw new CliError("configuration_error", `${path} is not valid JSON, ${explainBrokenJson(text, result)}`, {
1088
+ reason: "config.invalid_json",
1089
+ file: path
1090
+ });
1091
+ }, "mended");
1092
+ var readJson = /* @__PURE__ */ __name((path) => {
1093
+ let bytes;
1094
+ try {
1095
+ bytes = readFileSync(path);
1096
+ } catch (error) {
1097
+ if (error.code === "ENOENT")
1098
+ return void 0;
1099
+ throw error;
1100
+ }
1101
+ let parsed;
1102
+ try {
1103
+ parsed = JSON.parse(bytes.toString("utf8"));
1104
+ } catch {
1105
+ parsed = mended(path, bytes);
1106
+ }
1107
+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed))
1108
+ throw new CliError("configuration_error", `${path} must hold a JSON object`);
1109
+ return parsed;
1110
+ }, "readJson");
1111
+ var readTaskCategoryEdits = /* @__PURE__ */ __name((path) => {
1112
+ const section = readSharedSection(path, SECTION);
1113
+ if (section === void 0)
1114
+ return void 0;
1115
+ if (section === null || typeof section !== "object" || Array.isArray(section))
1116
+ throw new CliError("configuration_error", `${path}: ${SECTION} must be an object of "<name>": "<meaning> | <words>"`);
1117
+ for (const [name, value] of Object.entries(section))
1118
+ if (value !== null && typeof value !== "string")
1119
+ throw new CliError("configuration_error", `${path}: ${SECTION}.${name} takes "<meaning> | <words>", or null to drop the category`);
1120
+ return section;
1121
+ }, "readTaskCategoryEdits");
1122
+ var applyTaskCategoryEdits = /* @__PURE__ */ __name((base, edits, path) => Object.entries(edits).reduce((list, [name, value]) => {
1123
+ if (value === null && !list.some((one) => one.name === name.trim().toLowerCase()))
1124
+ return list;
1125
+ try {
1126
+ return withTaskCategory(list, name, value ?? void 0);
1127
+ } catch (error) {
1128
+ if (error instanceof CliError)
1129
+ throw new CliError("configuration_error", `${path}: ${error.message}`);
1130
+ throw error;
1131
+ }
1132
+ }, base), "applyTaskCategoryEdits");
1133
+ var editsFrom = /* @__PURE__ */ __name((list) => {
1134
+ const edits = {};
1135
+ const kept = new Map(list.map((one) => [one.name, one]));
1136
+ for (const one of DEFAULT_TASK_CATEGORIES)
1137
+ if (!kept.has(one.name) && one.name !== FALLBACK_CATEGORY)
1138
+ edits[one.name] = null;
1139
+ for (const one of list) {
1140
+ const value = taskCategoryValue(one);
1141
+ const before = DEFAULT_TASK_CATEGORIES.find(({ name }) => name === one.name);
1142
+ if (!before || taskCategoryValue(before) !== value)
1143
+ edits[one.name] = value;
1144
+ }
1145
+ return edits;
1146
+ }, "editsFrom");
1147
+ var readSharedSection = /* @__PURE__ */ __name((path, section) => readJson(path)?.[section], "readSharedSection");
1148
+ var writeSharedSection = /* @__PURE__ */ __name((path, section, value) => {
1149
+ const file = readJson(path) ?? {};
1150
+ if (value === void 0)
1151
+ delete file[section];
1152
+ else
1153
+ file[section] = value;
1154
+ mkdirSync(dirname(path), { recursive: true, mode: 448 });
1155
+ const temporary = `${path}.${process.pid}.tmp`;
1156
+ writeFileSync(temporary, `${JSON.stringify(file, null, 2)}
1157
+ `, { mode: 384 });
1158
+ renameSync(temporary, path);
1159
+ }, "writeSharedSection");
1160
+ var writeTaskCategoryEdits = /* @__PURE__ */ __name((path, edits) => writeSharedSection(path, SECTION, edits === void 0 || Object.keys(edits).length === 0 ? void 0 : edits), "writeTaskCategoryEdits");
1161
+ var taskCategoriesReader = /* @__PURE__ */ __name((path) => {
1162
+ let seen;
1163
+ return (base) => {
1164
+ let stamp = "none";
1165
+ try {
1166
+ const { mtimeMs, size } = statSync(path);
1167
+ stamp = `${mtimeMs}:${size}`;
1168
+ } catch {
1169
+ }
1170
+ if (seen?.stamp === stamp && seen.base === base)
1171
+ return seen.list;
1172
+ const edits = readTaskCategoryEdits(path);
1173
+ const list = edits ? applyTaskCategoryEdits(base, edits, path) : base;
1174
+ seen = { stamp, base, list };
1175
+ return list;
1176
+ };
1177
+ }, "taskCategoriesReader");
1178
+
1179
+ export {
1180
+ REPAIR_WORDS,
1181
+ repairConfigText,
1182
+ DEFAULT_TASK_CATEGORIES,
1183
+ FALLBACK_CATEGORY,
1184
+ unlistedNote,
1185
+ withTaskCategory,
1186
+ taskCategoryValue,
1187
+ storedTaskCategories,
1188
+ sharedConfigPath,
1189
+ backupPathFor,
1190
+ readTaskCategoryEdits,
1191
+ applyTaskCategoryEdits,
1192
+ editsFrom,
1193
+ readSharedSection,
1194
+ writeSharedSection,
1195
+ writeTaskCategoryEdits,
1196
+ taskCategoriesReader
1197
+ };