@wirecat/amo-cli 0.3.0 → 0.5.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.
- package/CHANGELOG.md +52 -0
- package/README.md +8 -4
- package/contracts/wirecat.json +15 -14
- package/dist/amo/allow-list.d.ts +1 -1
- package/dist/amo/allow-list.d.ts.map +1 -1
- package/dist/amo/operation.d.ts +1 -1
- package/dist/amo/operation.d.ts.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-EFMUK732.js +41 -0
- package/dist/bundle/{all-profiles-PPUN52SP.js → all-profiles-PIWUQWBA.js} +11 -11
- package/dist/bundle/amo.js +28 -28
- package/dist/bundle/{anthropic-RDNDT6ZP.js → anthropic-47CMXBPQ.js} +5 -5
- package/dist/bundle/{app-server-MMALJDBP.js → app-server-QRBQODF2.js} +70 -69
- package/dist/bundle/areas-QVHVU57Z.js +63 -0
- package/dist/bundle/{bun-Y4FRPURU.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-7NXJGZCO.js → bun-sqlite-7I4X7CZW.js} +6 -6
- package/dist/bundle/{chunk-OMH3WP7F.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-MPXKBF37.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-XI75EKLG.js → chunk-3DEQUYEG.js} +9 -9
- package/dist/bundle/{chunk-TWZF7VO6.js → chunk-3GX6KM2E.js} +1666 -163
- package/dist/bundle/{chunk-E2DLRLJ5.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-D6UPCAPD.js → chunk-3PYE55JY.js} +1 -1
- package/dist/bundle/{chunk-UM6SDFB6.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-JTFAG3BX.js → chunk-43OW5NTG.js} +6 -6
- package/dist/bundle/{chunk-ZIFEIJRK.js → chunk-43PMSR33.js} +13 -9
- package/dist/bundle/{chunk-5DPMNYQT.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-XM2G62YF.js → chunk-4VN7RI4I.js} +5 -7
- package/dist/bundle/{chunk-5POLHHDZ.js → chunk-57HFPNMF.js} +8 -8
- package/dist/bundle/{chunk-CQ472K6W.js → chunk-5UTB3ADZ.js} +11 -11
- package/dist/bundle/{chunk-3NDMVXGS.js → chunk-633NQY2R.js} +3 -3
- package/dist/bundle/{chunk-VPBSZ4HQ.js → chunk-63N46DJU.js} +220 -234
- package/dist/bundle/{chunk-SJZ52MZE.js → chunk-6D4VWSJD.js} +6 -6
- package/dist/bundle/{chunk-Q2YVY7IR.js → chunk-6JTHXWPE.js} +3 -3
- package/dist/bundle/{chunk-QQT7WUR4.js → chunk-6QGUK3H7.js} +4 -4
- package/dist/bundle/{chunk-AYR6FIXN.js → chunk-6WS6GJ4V.js} +2 -2
- package/dist/bundle/{chunk-N4A6E2LL.js → chunk-7IR2G5XY.js} +16 -16
- package/dist/bundle/{chunk-7Z6NYSAN.js → chunk-7IWIFVXH.js} +4 -4
- package/dist/bundle/{chunk-LOSOWTAZ.js → chunk-ABX7BBS4.js} +6 -6
- package/dist/bundle/{chunk-3YOZTGZ6.js → chunk-ADTI5RUO.js} +6 -6
- package/dist/bundle/{chunk-QHA33ZS6.js → chunk-AKRIUNYP.js} +7 -7
- package/dist/bundle/{chunk-KZDBO2FT.js → chunk-BIKOE2IW.js} +7 -7
- package/dist/bundle/{chunk-VY27K2SH.js → chunk-BVVMIAQ6.js} +769 -692
- package/dist/bundle/{chunk-SBQ5MFHM.js → chunk-CGW5R4UD.js} +7 -7
- package/dist/bundle/{chunk-UZLT6VSP.js → chunk-D4NE7EON.js} +3 -3
- package/dist/bundle/{chunk-L2ZQDTDU.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-VFU25P57.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-KEOKH2OZ.js → chunk-DQ6S5TFZ.js} +185 -114
- package/dist/bundle/{chunk-5RXH35ZA.js → chunk-DSJ6EAOA.js} +61 -61
- package/dist/bundle/{chunk-HQH4YPO5.js → chunk-DVZ75WZJ.js} +157 -35
- package/dist/bundle/{chunk-VEGNZPQU.js → chunk-EHK73OSW.js} +38 -24
- package/dist/bundle/{chunk-IEAPNTHT.js → chunk-FNV5HLHX.js} +17 -17
- package/dist/bundle/{chunk-FPDTIQOK.js → chunk-FV4GQNIK.js} +2 -2
- package/dist/bundle/{chunk-7USADF2W.js → chunk-G2TU5RYY.js} +6 -6
- package/dist/bundle/{chunk-IDQ7BNCZ.js → chunk-GDK7ETSB.js} +12 -12
- package/dist/bundle/{chunk-B4ITT55D.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-NJ2LJKNH.js → chunk-GLYWZQY4.js} +3 -3
- package/dist/bundle/{chunk-XDT74W5P.js → chunk-H4AFNENN.js} +34 -29
- package/dist/bundle/{chunk-2YEDK2XV.js → chunk-HOF7GQWW.js} +4 -4
- package/dist/bundle/{chunk-H34RBRS3.js → chunk-HSPEU6S7.js} +8 -8
- package/dist/bundle/{chunk-VJHOBOJR.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-YSOGGUK3.js → chunk-IB55P46L.js} +6 -6
- package/dist/bundle/{chunk-PFZ7WG2B.js → chunk-IG2TJQJ7.js} +3 -3
- package/dist/bundle/{chunk-CUZISGWH.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-MMOEAH5G.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-3RP57VDS.js → chunk-JXT6GY4V.js} +174 -62
- package/dist/bundle/{chunk-7SBAHYZW.js → chunk-K7YY6SXR.js} +19 -15
- package/dist/bundle/{chunk-TCDER3G7.js → chunk-KEKXERBE.js} +14883 -11912
- package/dist/bundle/{chunk-JZ2AITOE.js → chunk-KZ2FIDI3.js} +3 -3
- package/dist/bundle/{chunk-ILUREFWJ.js → chunk-KZN2BG3P.js} +8 -8
- package/dist/bundle/{chunk-L3JDQNBC.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-UA7C57IB.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-FI2TP6TY.js → chunk-M6VZXAJC.js} +3 -3
- package/dist/bundle/{chunk-7VSYOMEH.js → chunk-MDEPJZYJ.js} +2 -2
- package/dist/bundle/{chunk-WBWVBEHH.js → chunk-NB7EOAUZ.js} +8 -1
- package/dist/bundle/{chunk-LYRICHEK.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-VD7HD25M.js → chunk-NSKMNIY6.js} +9 -9
- package/dist/bundle/chunk-PPSAWFJD.js +1293 -0
- package/dist/bundle/{chunk-7E6QSIRQ.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-BKTLAXUK.js → chunk-QFOP3KUP.js} +8 -8
- package/dist/bundle/{chunk-ORFLQGWH.js → chunk-R53XXHEI.js} +4 -4
- package/dist/bundle/{chunk-UOPP6ORQ.js → chunk-RIMPFMZE.js} +28 -179
- package/dist/bundle/{chunk-MYMBPQPQ.js → chunk-RN6RT5CB.js} +4 -4
- package/dist/bundle/{chunk-BYVDMPLX.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-R23DRW2T.js → chunk-S4ZHQMNM.js} +5 -5
- package/dist/bundle/{chunk-GCUFGDKE.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-W4KY5JF5.js → chunk-TAVI73RW.js} +2 -2
- package/dist/bundle/{chunk-KTLCQ7GC.js → chunk-TLG6ECZ2.js} +2 -2
- package/dist/bundle/{chunk-V3ZWYMXT.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-KKXF6TSS.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YVO2YGML.js → chunk-U5RJJ2EC.js} +8 -8
- package/dist/bundle/{chunk-I4QCJZW7.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-SJYVKR54.js → chunk-V2CNGXWX.js} +37 -37
- package/dist/bundle/{chunk-L72UALL5.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-T6D34X5S.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/{chunk-FPIUFSWK.js → chunk-W5JRXIG6.js} +826 -1619
- package/dist/bundle/{chunk-ELJGALVX.js → chunk-WIHN3ELW.js} +19 -19
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-4MVTSMWP.js → chunk-WUFX4TKA.js} +2 -2
- package/dist/bundle/{chunk-GKP7CKW2.js → chunk-WXJYMMEL.js} +6 -6
- package/dist/bundle/{chunk-UT3ODJMI.js → chunk-XCCU2E3Z.js} +4 -4
- package/dist/bundle/{chunk-EHULZEXQ.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-EKNP326Q.js → chunk-XUT7DSM5.js} +2 -2
- package/dist/bundle/{chunk-4EYPFFTN.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-IYUWVMGP.js → chunk-ZLUIRFJX.js} +37 -18
- package/dist/bundle/{cli-GAO7LDDA.js → cli-3NXOSENF.js} +104 -105
- package/dist/bundle/command-contract-LNSAV5LA.js +39 -0
- package/dist/bundle/{command-server-entry-BCDJP7XE.js → command-server-entry-4ZQPNUL4.js} +28 -28
- package/dist/bundle/{decode-OY2GR442.js → decode-K7U7X5EL.js} +5 -5
- package/dist/bundle/{dispatch-JWEJCBTF.js → dispatch-56FECRCU.js} +8 -8
- package/dist/bundle/{echarts-AHEPEA5P.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-RVSUV54Z.js → embed-SWLVG73O.js} +6 -6
- package/dist/bundle/{embedder-GRZXZUXR.js → embedder-EJN75BPV.js} +9 -9
- package/dist/bundle/{failure-DDCSR54L.js → failure-WDSX6H3B.js} +2 -2
- package/dist/bundle/{first-run-G3WI4DH4.js → first-run-WPGUUC4Z.js} +12 -12
- package/dist/bundle/first-screen-JMNEUQ46.js +40 -0
- package/dist/bundle/{instructions-NWQC5IP4.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-KGWT6TGO.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5TKG2RYD.js +24 -0
- package/dist/bundle/{meeting-model-I6T5HIZ5.js → meeting-model-YXXNETKC.js} +11 -11
- package/dist/bundle/{meeting-semantic-47UA5JBF.js → meeting-semantic-U7EUB3ET.js} +6 -6
- package/dist/bundle/{node-7VXN7F4B.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-BSEON57L.js → node-sqlite-YVOGMDSP.js} +7 -7
- package/dist/bundle/{oauth-V6UAT4YD.js → oauth-2SNRBIJM.js} +7 -7
- package/dist/bundle/{open-7LVAY7ZU.js → open-ABCPY5IH.js} +5 -5
- package/dist/bundle/{openai-OIEH342H.js → openai-4D6PXJR7.js} +15 -15
- package/dist/bundle/{process-PTUCNLZ7.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-S5WY5IZP.js → program-CBDQBZZ3.js} +1319 -1079
- package/dist/bundle/{prompt-7XWTEQ62.js → prompt-2QUK5QST.js} +5 -5
- package/dist/bundle/{recognize-HGIAJXDR.js → recognize-QMQSJRIH.js} +4 -4
- package/dist/bundle/{remote-X4SVEMHS.js → remote-U7TC2BLZ.js} +9 -9
- package/dist/bundle/{rerank-QWM3DQMU.js → rerank-5UPVXGVV.js} +7 -7
- package/dist/bundle/{serve-VVG3TXYT.js → serve-VX6GUM6J.js} +9 -9
- package/dist/bundle/{server-EHYK62BJ.js → server-FOPC6DJ3.js} +62 -61
- package/dist/bundle/server-OIVNOMVK.js +87 -0
- package/dist/bundle/source-HWS5SJIV.js +46 -0
- package/dist/bundle/{sqlite-runtime-MCKXDNYC.js → sqlite-runtime-77NKDEXN.js} +6 -6
- package/dist/bundle/{state-MYNYQJCT.js → state-X2HU6GB2.js} +6 -6
- package/dist/bundle/{store-B7O3F3QB.js → store-2U4U6KL4.js} +22 -22
- package/dist/bundle/{store-FPIU2546.js → store-3CHPHFP7.js} +30 -24
- package/dist/bundle/store-Z3747L5F.js +34 -0
- package/dist/bundle/store-maintenance-command-UOSZJTVP.js +74 -0
- package/dist/bundle/surface-MUT72QON.js +73 -0
- package/dist/bundle/writer-RBKQ64ZM.js +48 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +3 -1
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -34
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/amo-cli/SKILL.md +6 -0
- package/dist/bundle/agent-FDNP27SW.js +0 -40
- package/dist/bundle/chunk-77FP6AWC.js +0 -1266
- package/dist/bundle/command-contract-RLIBGIDT.js +0 -39
- package/dist/bundle/first-screen-6MLCMW2U.js +0 -39
- package/dist/bundle/meeting-combined-SVTFVZNJ.js +0 -24
- package/dist/bundle/server-WRPTBVNW.js +0 -86
- package/dist/bundle/source-YISMYLBQ.js +0 -44
- package/dist/bundle/store-A7R2SZVD.js +0 -34
- package/dist/bundle/store-maintenance-command-D55FRTIK.js +0 -73
- package/dist/bundle/surface-3EX6IGHW.js +0 -72
- package/dist/bundle/writer-XDHZ54JD.js +0 -46
|
@@ -2,36 +2,36 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
commandAvailability
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7IWIFVXH.js";
|
|
6
6
|
import {
|
|
7
7
|
lentConnection
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-43OW5NTG.js";
|
|
9
9
|
import {
|
|
10
10
|
QUERY_ARGUMENT
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-K7YY6SXR.js";
|
|
12
12
|
import {
|
|
13
13
|
changesMessenger,
|
|
14
14
|
flatten
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-63N46DJU.js";
|
|
16
16
|
import {
|
|
17
17
|
currentCaller
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CGW5R4UD.js";
|
|
19
19
|
import {
|
|
20
20
|
enclosingTraceId,
|
|
21
21
|
inRun,
|
|
22
22
|
newRunId,
|
|
23
23
|
traceOf
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PPSAWFJD.js";
|
|
25
25
|
import {
|
|
26
26
|
authorityAllowed,
|
|
27
27
|
botApiAllowed
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BIKOE2IW.js";
|
|
29
29
|
import {
|
|
30
30
|
queryDescription
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DSJ6EAOA.js";
|
|
32
32
|
import {
|
|
33
33
|
captureStreams
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WIHN3ELW.js";
|
|
35
35
|
import {
|
|
36
36
|
COMPACT_FLAG,
|
|
37
37
|
SNAKE_CASE,
|
|
@@ -60,18 +60,18 @@ import {
|
|
|
60
60
|
unknown,
|
|
61
61
|
word,
|
|
62
62
|
writes
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-QFOP3KUP.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-S6JG4YUH.js";
|
|
67
67
|
import {
|
|
68
68
|
__name
|
|
69
69
|
} from "./chunk-ZVVMGPBJ.js";
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
72
72
|
import { Readable } from "node:stream";
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
75
75
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
76
76
|
var lintRuleSchema = strictObject({
|
|
77
77
|
id: word,
|
|
@@ -217,7 +217,7 @@ var overrideSchema = strictObject({
|
|
|
217
217
|
});
|
|
218
218
|
var overridesSchema = array(overrideSchema);
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
221
221
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
222
222
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
223
223
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -336,8 +336,23 @@ var FAMILY_SINCE_0_98 = [
|
|
|
336
336
|
review_after: "2026-12-10"
|
|
337
337
|
}
|
|
338
338
|
];
|
|
339
|
+
var CONFIG_UNREADABLE_RENAME = [
|
|
340
|
+
"account-rename.config=config.unreadable=mail.config-unreadable",
|
|
341
|
+
"account-rename.config=config.unreadable",
|
|
342
|
+
"config.unreadable=mail.config-unreadable"
|
|
343
|
+
].map((ids) => ({
|
|
344
|
+
rule: REASON,
|
|
345
|
+
target: `reason ${ids}`,
|
|
346
|
+
reason: "one failure under several names while the CLIs move to cli-core 1.0, which names it config.unreadable",
|
|
347
|
+
review_after: "2026-12-09"
|
|
348
|
+
}));
|
|
339
349
|
var PARITY_GROUPS = defineParityGroups([
|
|
340
|
-
{
|
|
350
|
+
{
|
|
351
|
+
name: "messengers",
|
|
352
|
+
members: ["tg", "max"],
|
|
353
|
+
covers: "tree",
|
|
354
|
+
differences: [...MESSENGERS_SINCE_0_98, ...CONFIG_UNREADABLE_RENAME]
|
|
355
|
+
},
|
|
341
356
|
{
|
|
342
357
|
name: "all",
|
|
343
358
|
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
@@ -428,7 +443,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
428
443
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
429
444
|
]);
|
|
430
445
|
|
|
431
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
446
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
432
447
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
433
448
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
434
449
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -444,7 +459,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
444
459
|
}
|
|
445
460
|
]);
|
|
446
461
|
|
|
447
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
462
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
448
463
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
449
464
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
450
465
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -466,7 +481,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
466
481
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
467
482
|
]);
|
|
468
483
|
|
|
469
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
484
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
|
|
470
485
|
var ACCOUNT_FLAGS = [
|
|
471
486
|
{
|
|
472
487
|
name: "--client-id",
|
|
@@ -503,7 +518,7 @@ var ACCOUNT_FLAGS = [
|
|
|
503
518
|
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
504
519
|
];
|
|
505
520
|
|
|
506
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
521
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
507
522
|
var CALENDAR_FLAGS = [
|
|
508
523
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
509
524
|
{
|
|
@@ -591,7 +606,7 @@ var CALENDAR_FLAGS = [
|
|
|
591
606
|
}
|
|
592
607
|
];
|
|
593
608
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
609
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-content.js
|
|
595
610
|
var CONTENT_FLAGS = [
|
|
596
611
|
{ name: "--slug", value: "<slug>", role: "value", type: "string", meaning: "the last part of its web address" },
|
|
597
612
|
{
|
|
@@ -606,10 +621,30 @@ var CONTENT_FLAGS = [
|
|
|
606
621
|
role: "mode",
|
|
607
622
|
type: "switch",
|
|
608
623
|
meaning: "write the new text over a body the tool cannot fully read back, losing what it could not show"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
name: "--from-template",
|
|
627
|
+
value: "<template>",
|
|
628
|
+
role: "value",
|
|
629
|
+
type: "string",
|
|
630
|
+
meaning: "start the new page from one of the source's page templates, by name or id; not a message --template"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "--cover",
|
|
634
|
+
value: "<link>",
|
|
635
|
+
role: "value",
|
|
636
|
+
type: "string",
|
|
637
|
+
meaning: "the page's cover image, by an https link, or none to take it away; a local image file is --photo"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
name: "--allow-deleting-content",
|
|
641
|
+
role: "mode",
|
|
642
|
+
type: "switch",
|
|
643
|
+
meaning: "let an update delete the child pages and databases its new text leaves out; the source keeps them in its trash, unlike --allow-delete"
|
|
609
644
|
}
|
|
610
645
|
];
|
|
611
646
|
|
|
612
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
647
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
613
648
|
var CRM_FLAGS = [
|
|
614
649
|
{
|
|
615
650
|
name: "--email",
|
|
@@ -773,7 +808,7 @@ var CRM_FLAGS = [
|
|
|
773
808
|
}
|
|
774
809
|
];
|
|
775
810
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
811
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
777
812
|
var HOW_FLAGS = [
|
|
778
813
|
{
|
|
779
814
|
name: "--limit",
|
|
@@ -1766,7 +1801,7 @@ var HOW_FLAGS = [
|
|
|
1766
1801
|
}
|
|
1767
1802
|
];
|
|
1768
1803
|
|
|
1769
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1804
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1770
1805
|
var KNOWLEDGE_FLAGS = [
|
|
1771
1806
|
{
|
|
1772
1807
|
name: "--accept-terms",
|
|
@@ -1822,10 +1857,24 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1822
1857
|
role: "target",
|
|
1823
1858
|
type: "string",
|
|
1824
1859
|
meaning: "every stored thing a search with this query finds, in its query language; the command acts on each"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
name: "--since",
|
|
1863
|
+
value: "<time>",
|
|
1864
|
+
role: "target",
|
|
1865
|
+
type: "time",
|
|
1866
|
+
meaning: "from this time on: a time, or a duration ago such as 1d"
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
name: "--event",
|
|
1870
|
+
value: "<events>",
|
|
1871
|
+
role: "target",
|
|
1872
|
+
type: "list",
|
|
1873
|
+
meaning: "only these kinds of event, comma separated; the command lists them"
|
|
1825
1874
|
}
|
|
1826
1875
|
];
|
|
1827
1876
|
|
|
1828
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1877
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1829
1878
|
var MAIL_FLAGS = [
|
|
1830
1879
|
{
|
|
1831
1880
|
name: "--cc",
|
|
@@ -1855,7 +1904,38 @@ var MAIL_FLAGS = [
|
|
|
1855
1904
|
}
|
|
1856
1905
|
];
|
|
1857
1906
|
|
|
1858
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1907
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mirror.js
|
|
1908
|
+
var MIRROR_FLAGS = [
|
|
1909
|
+
{
|
|
1910
|
+
name: "--keep",
|
|
1911
|
+
value: "<side>",
|
|
1912
|
+
role: "mode",
|
|
1913
|
+
type: "choice",
|
|
1914
|
+
meaning: "settle a conflict with one side: local, the remote by its own name (disk, drive), or both, the other kept as a conflict copy"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
name: "--allow-deletions",
|
|
1918
|
+
value: "<count>",
|
|
1919
|
+
role: "mode",
|
|
1920
|
+
type: "count",
|
|
1921
|
+
meaning: "let this run delete up to this many files when the mirror's guard stops it; owner only"
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
name: "--allow-replacements",
|
|
1925
|
+
value: "<count>",
|
|
1926
|
+
role: "mode",
|
|
1927
|
+
type: "count",
|
|
1928
|
+
meaning: "let this run overwrite up to this many existing files when the mirror's guard stops it; owner only"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
name: "--repin",
|
|
1932
|
+
role: "mode",
|
|
1933
|
+
type: "switch",
|
|
1934
|
+
meaning: "accept that a replaced local or remote folder is the mirror's folder now, and sync it; owner only"
|
|
1935
|
+
}
|
|
1936
|
+
];
|
|
1937
|
+
|
|
1938
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1859
1939
|
var PRIVACY_FLAGS = [
|
|
1860
1940
|
{
|
|
1861
1941
|
name: "--about-text",
|
|
@@ -1916,7 +1996,7 @@ var PRIVACY_FLAGS = [
|
|
|
1916
1996
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1917
1997
|
];
|
|
1918
1998
|
|
|
1919
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1999
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1920
2000
|
var SCHEDULE_FLAGS = [
|
|
1921
2001
|
{
|
|
1922
2002
|
name: "--locale",
|
|
@@ -1949,7 +2029,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1949
2029
|
}
|
|
1950
2030
|
];
|
|
1951
2031
|
|
|
1952
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2032
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-search.js
|
|
1953
2033
|
var SEARCH_FLAGS = [
|
|
1954
2034
|
{
|
|
1955
2035
|
name: "--like",
|
|
@@ -1960,7 +2040,7 @@ var SEARCH_FLAGS = [
|
|
|
1960
2040
|
}
|
|
1961
2041
|
];
|
|
1962
2042
|
|
|
1963
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2043
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1964
2044
|
var WHAT_FLAGS = [
|
|
1965
2045
|
{
|
|
1966
2046
|
name: "--analysis-provider",
|
|
@@ -2372,7 +2452,7 @@ var WHAT_FLAGS = [
|
|
|
2372
2452
|
type: "string",
|
|
2373
2453
|
meaning: "an organization: its id or organization:<id>"
|
|
2374
2454
|
},
|
|
2375
|
-
{ name: "--parent", value: "<id>", role: "target", type: "id", meaning: "the folder or
|
|
2455
|
+
{ name: "--parent", value: "<id>", role: "target", type: "id", meaning: "the folder, task or issue it sits under" },
|
|
2376
2456
|
{
|
|
2377
2457
|
name: "--participant-id",
|
|
2378
2458
|
value: "<id>",
|
|
@@ -2650,7 +2730,6 @@ var WHAT_FLAGS = [
|
|
|
2650
2730
|
type: "choice",
|
|
2651
2731
|
meaning: "how it is closed: done, or dismissed when it needs no answer"
|
|
2652
2732
|
},
|
|
2653
|
-
{ name: "--assignee", value: "<person...>", role: "value", type: "list", meaning: "who does it, by UID" },
|
|
2654
2733
|
{ name: "--at", value: "<hh:mm>", role: "value", type: "string", meaning: "every day at this local time" },
|
|
2655
2734
|
{ name: "--body", value: "<json>", role: "value", type: "string", meaning: "the request body, as JSON" },
|
|
2656
2735
|
{
|
|
@@ -2808,7 +2887,6 @@ var WHAT_FLAGS = [
|
|
|
2808
2887
|
type: "id",
|
|
2809
2888
|
meaning: "pin this chat at the top of it; repeat it for more"
|
|
2810
2889
|
},
|
|
2811
|
-
{ name: "--priority", value: "<n>", role: "value", type: "count", meaning: "0 urgent \u2026 4 low" },
|
|
2812
2890
|
{ name: "--quiz", role: "value", type: "switch", meaning: "a quiz: one answer is right, and a vote is final" },
|
|
2813
2891
|
{
|
|
2814
2892
|
name: "--reason",
|
|
@@ -2957,7 +3035,33 @@ var WHAT_FLAGS = [
|
|
|
2957
3035
|
}
|
|
2958
3036
|
];
|
|
2959
3037
|
|
|
2960
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3038
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-work.js
|
|
3039
|
+
var WORK_FLAGS = [
|
|
3040
|
+
{
|
|
3041
|
+
name: "--assignee",
|
|
3042
|
+
value: "<person...>",
|
|
3043
|
+
role: "value",
|
|
3044
|
+
type: "list",
|
|
3045
|
+
otherValues: ["user"],
|
|
3046
|
+
meaning: "who does it: people by UID (<person...>), or one tracker user by id, name or e-mail (<user>)"
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
name: "--priority",
|
|
3050
|
+
value: "<n>",
|
|
3051
|
+
role: "value",
|
|
3052
|
+
type: "string",
|
|
3053
|
+
meaning: "how urgent: low, medium, high, critical or none, a score from 0.0 to 1.0, or the old 0 urgent \u2026 4 low"
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
name: "--team",
|
|
3057
|
+
value: "<team>",
|
|
3058
|
+
role: "value",
|
|
3059
|
+
type: "string",
|
|
3060
|
+
meaning: "the tracker team that owns an issue, by id, key or name"
|
|
3061
|
+
}
|
|
3062
|
+
];
|
|
3063
|
+
|
|
3064
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2961
3065
|
var FLAG_TYPES = [
|
|
2962
3066
|
"switch",
|
|
2963
3067
|
"count",
|
|
@@ -3115,6 +3219,7 @@ var verbs = [
|
|
|
3115
3219
|
"look at a source before taking anything from it: a chat link without joining, a mailbox without importing"
|
|
3116
3220
|
],
|
|
3117
3221
|
["send", "send a message"],
|
|
3222
|
+
["reply", "answer in a comment thread at the source, under the comment that started it"],
|
|
3118
3223
|
["call", "call one provider API method by its own name, generated from the provider's method list"],
|
|
3119
3224
|
["edit", "change a sent message"],
|
|
3120
3225
|
["forward", "send an existing message on to another chat"],
|
|
@@ -3239,6 +3344,7 @@ var collections = [
|
|
|
3239
3344
|
["teams", "groups in a tracker that own issues, states and labels"],
|
|
3240
3345
|
["states", "the workflow steps a tracker team moves its issues through, each of a type such as started"],
|
|
3241
3346
|
["labels", "a tracker's shared labels on issues, kept by the tracker and not by the owner"],
|
|
3347
|
+
["sprints", "a tracker team's time-boxed runs of work, such as Linear's cycles, each with a start and an end"],
|
|
3242
3348
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
3243
3349
|
["activities", "a CRM's calls, e-mails, meetings, to-dos and comments on its records"],
|
|
3244
3350
|
["changes", "what changed in a copied source over a time: records added, moved, closed or reassigned"],
|
|
@@ -3251,8 +3357,19 @@ var collections = [
|
|
|
3251
3357
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
3252
3358
|
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
3253
3359
|
["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
|
|
3360
|
+
[
|
|
3361
|
+
"databases",
|
|
3362
|
+
"a source's databases, such as Notion's, each a set of rows with typed properties; the local store's are tables"
|
|
3363
|
+
],
|
|
3364
|
+
["rows", "the records of a database at the source, each with typed values; an order's or an invoice's are lines"],
|
|
3254
3365
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
3255
|
-
["
|
|
3366
|
+
["mirrors", "saved pairings of a local folder and a folder in the source, which sync keeps the same both ways"],
|
|
3367
|
+
[
|
|
3368
|
+
"conflicts",
|
|
3369
|
+
"files a mirror's sync found changed on both sides and could not merge, each waiting for a side or a final file"
|
|
3370
|
+
],
|
|
3371
|
+
["versions", "earlier contents of a file that a write replaced or deleted, kept on this computer to be put back"],
|
|
3372
|
+
["comments", "comments people left on a thing in the source: a channel post, a file or an issue"],
|
|
3256
3373
|
["meetings", "stored meetings, from Zoom or another provider"],
|
|
3257
3374
|
["calls", "phone calls a phone system recorded, stored as meetings with their transcripts"],
|
|
3258
3375
|
["calendars", "calendars of an account, each synced or not"],
|
|
@@ -3321,6 +3438,7 @@ var views = [
|
|
|
3321
3438
|
["stats", "a thing's own numbers, such as a post's views, as read at each sync"],
|
|
3322
3439
|
["logs", "the log of a running process"],
|
|
3323
3440
|
["events", "what happened in a thing over time"],
|
|
3441
|
+
["changes", "what a sync changed in the local copy since a time: added, changed, deleted or no longer visible"],
|
|
3324
3442
|
["scheduled", "what is scheduled to happen"],
|
|
3325
3443
|
["context", "what surrounds one thing"],
|
|
3326
3444
|
["path", "where a thing is on this machine"],
|
|
@@ -3331,6 +3449,8 @@ var views = [
|
|
|
3331
3449
|
["transcript", "the text of speech: a voice message or a meeting recording"],
|
|
3332
3450
|
["evidence", "the stored messages or lines a result or a reference rests on"],
|
|
3333
3451
|
["passage", "a cited transcript line with bounded surrounding lines from the same revision"],
|
|
3452
|
+
["summary", "the summary a service wrote of a meeting, with its sections and next steps"],
|
|
3453
|
+
["people", "the people found across stored meetings by name or email, with the meetings they were in"],
|
|
3334
3454
|
["invitation", "the text that invites people to a meeting: how to join it and when"],
|
|
3335
3455
|
["agenda", "what needs a look today"],
|
|
3336
3456
|
["busy", "when calendars or people are taken, without what takes them"],
|
|
@@ -3393,11 +3513,13 @@ var VOCABULARY = defineVocabulary({
|
|
|
3393
3513
|
...CRM_FLAGS,
|
|
3394
3514
|
...SCHEDULE_FLAGS,
|
|
3395
3515
|
...CONTENT_FLAGS,
|
|
3396
|
-
...SEARCH_FLAGS
|
|
3516
|
+
...SEARCH_FLAGS,
|
|
3517
|
+
...MIRROR_FLAGS,
|
|
3518
|
+
...WORK_FLAGS
|
|
3397
3519
|
]
|
|
3398
3520
|
});
|
|
3399
3521
|
|
|
3400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3522
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3401
3523
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3402
3524
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3403
3525
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
exhausted,
|
|
6
6
|
searchError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IG2TJQJ7.js";
|
|
8
8
|
import {
|
|
9
9
|
fold
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2JHVQMVC.js";
|
|
11
11
|
import {
|
|
12
12
|
CATALOG_KINDS,
|
|
13
13
|
CONTRACT_KINDS,
|
|
@@ -26,16 +26,16 @@ import {
|
|
|
26
26
|
parseReference,
|
|
27
27
|
providerLabel,
|
|
28
28
|
providerNamed
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZLUIRFJX.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError,
|
|
32
32
|
singleLine
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-S6JG4YUH.js";
|
|
34
34
|
import {
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/addresses.js
|
|
39
39
|
var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
40
40
|
var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
|
|
41
41
|
var ROLE_ADDRESS_WORDS = {
|
|
@@ -88,16 +88,29 @@ var ROLE_ADDRESS_WORDS = {
|
|
|
88
88
|
var bare = /* @__PURE__ */ __name((word) => word.replace(/[.\-_]/gu, ""), "bare");
|
|
89
89
|
var NO_REPLY = new Set(ROLE_ADDRESS_WORDS.noReply.map(bare));
|
|
90
90
|
var ROLE = new Set([...ROLE_ADDRESS_WORDS.shared, ...ROLE_ADDRESS_WORDS.noReply].map(bare));
|
|
91
|
-
var
|
|
91
|
+
var PART_ONLY = /* @__PURE__ */ new Set(["bounce", "bounces"]);
|
|
92
|
+
var NOTIFY = /* @__PURE__ */ new Set(["notify", "notification", "notifications", "alert", "alerts"]);
|
|
93
|
+
var localPart = /* @__PURE__ */ __name((address) => {
|
|
92
94
|
const local = address.trim().toLowerCase().split("@")[0] ?? "";
|
|
93
|
-
return
|
|
94
|
-
}, "
|
|
95
|
-
var
|
|
95
|
+
return local.split("+")[0] ?? "";
|
|
96
|
+
}, "localPart");
|
|
97
|
+
var localWord = /* @__PURE__ */ __name((address) => bare(localPart(address)), "localWord");
|
|
98
|
+
var SEPARATORS = /[.\-_]/u;
|
|
99
|
+
var partsOf = /* @__PURE__ */ __name((address) => localPart(address).split(SEPARATORS), "partsOf");
|
|
100
|
+
var NO_REPLY_PARTS = ROLE_ADDRESS_WORDS.noReply.map((word) => `.${word.split(SEPARATORS).join(".")}.`);
|
|
101
|
+
var isNoReplyAddress = /* @__PURE__ */ __name((address) => {
|
|
102
|
+
const word = localWord(address);
|
|
103
|
+
const parts = `.${partsOf(address).join(".")}.`;
|
|
104
|
+
if (NO_REPLY_PARTS.some((one) => parts.includes(one)))
|
|
105
|
+
return true;
|
|
106
|
+
return [...NO_REPLY].some((one) => !PART_ONLY.has(one) && (word.startsWith(one) || word.endsWith(one)));
|
|
107
|
+
}, "isNoReplyAddress");
|
|
108
|
+
var isRoleAddress = /* @__PURE__ */ __name((address) => ROLE.has(localWord(address)) || isNoReplyAddress(address), "isRoleAddress");
|
|
96
109
|
var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
|
|
97
110
|
var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
|
|
98
|
-
var
|
|
111
|
+
var isNotificationAddress = /* @__PURE__ */ __name((address) => partsOf(address).some((part) => NOTIFY.has(part)), "isNotificationAddress");
|
|
99
112
|
|
|
100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
113
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
101
114
|
var TAKES = {
|
|
102
115
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
103
116
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -157,7 +170,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
157
170
|
throw wrongAccount(reference, scope, profiles);
|
|
158
171
|
}, "ensureAccount");
|
|
159
172
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
161
174
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
162
175
|
var literal = /* @__PURE__ */ __name((c) => ({
|
|
163
176
|
kind: "char",
|
|
@@ -557,7 +570,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
557
570
|
return out;
|
|
558
571
|
}, "foldRegex");
|
|
559
572
|
|
|
560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
573
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
561
574
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
562
575
|
const padded = ` ${term} `;
|
|
563
576
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -566,7 +579,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
566
579
|
return [...pieces];
|
|
567
580
|
}, "trigrams");
|
|
568
581
|
|
|
569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
582
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
570
583
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
571
584
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
572
585
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -637,7 +650,7 @@ ${lines}`, { candidates });
|
|
|
637
650
|
}, "ambiguous");
|
|
638
651
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
639
652
|
|
|
640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
653
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/display-names.js
|
|
641
654
|
var QUOTES = [
|
|
642
655
|
['"', '"'],
|
|
643
656
|
["'", "'"],
|
|
@@ -695,7 +708,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
|
|
|
695
708
|
}, "nameKey");
|
|
696
709
|
var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
|
|
697
710
|
|
|
698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
711
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
699
712
|
var PHONE_PLANS = [
|
|
700
713
|
{
|
|
701
714
|
country: "us",
|
|
@@ -1075,7 +1088,7 @@ var PHONE_PLANS = [
|
|
|
1075
1088
|
}
|
|
1076
1089
|
];
|
|
1077
1090
|
|
|
1078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1091
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
1079
1092
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
1080
1093
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
1081
1094
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -1150,7 +1163,7 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
|
|
|
1150
1163
|
return found ? `+${found[1]}` : void 0;
|
|
1151
1164
|
}, "storedPhone");
|
|
1152
1165
|
|
|
1153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1166
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
|
|
1154
1167
|
var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
1155
1168
|
var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
1156
1169
|
var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
@@ -1200,7 +1213,7 @@ var arrayOf = /* @__PURE__ */ __name((item, maxItems, description) => ({
|
|
|
1200
1213
|
}), "arrayOf");
|
|
1201
1214
|
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
1202
1215
|
|
|
1203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1216
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/record-types.js
|
|
1204
1217
|
var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
|
|
1205
1218
|
var PARTY = ["person", "organization"];
|
|
1206
1219
|
var ORGANIZATION = ["organization"];
|
|
@@ -1595,7 +1608,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf(type).some(([, role])
|
|
|
1595
1608
|
var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
|
|
1596
1609
|
var article2 = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
|
|
1597
1610
|
|
|
1598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1611
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
1599
1612
|
import { createHash } from "node:crypto";
|
|
1600
1613
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
1601
1614
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -1736,7 +1749,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
|
|
|
1736
1749
|
return found;
|
|
1737
1750
|
}, "fieldReferences");
|
|
1738
1751
|
|
|
1739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1752
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
1740
1753
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
1741
1754
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
1742
1755
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now) => {
|
|
@@ -1755,7 +1768,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
1755
1768
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
1756
1769
|
}, "counterFreshness");
|
|
1757
1770
|
|
|
1758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1771
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
1759
1772
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
1760
1773
|
var AUTHOR_MEASURES = [
|
|
1761
1774
|
"messages",
|
|
@@ -1895,7 +1908,7 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
|
|
|
1895
1908
|
var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
1896
1909
|
var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
|
|
1897
1910
|
|
|
1898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1911
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
|
|
1899
1912
|
var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
|
|
1900
1913
|
var ROLE_LABELS = {
|
|
1901
1914
|
organization: {
|
|
@@ -1938,9 +1951,10 @@ var ROLE_LABELS = {
|
|
|
1938
1951
|
|
|
1939
1952
|
export {
|
|
1940
1953
|
isEmailAddress,
|
|
1954
|
+
isNoReplyAddress,
|
|
1941
1955
|
isRoleAddress,
|
|
1942
1956
|
isPersonLikeRoleAddress,
|
|
1943
|
-
|
|
1957
|
+
isNotificationAddress,
|
|
1944
1958
|
COUNTER_FIELDS,
|
|
1945
1959
|
validCounter,
|
|
1946
1960
|
counterObservationTime,
|