@wirecat/cli-memo 0.131.76 → 0.131.77
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/dist/bin/memo.js +2 -2
- package/dist/bin/memo.js.map +1 -1
- package/dist/bundle/{all-profiles-CGQTLFDM.js → all-profiles-4UWCPMRQ.js} +10 -8
- package/dist/bundle/{anthropic-C744EPRR.js → anthropic-HECHQVOK.js} +7 -5
- package/dist/bundle/{app-server-LOH7WXAB.js → app-server-GQEQWFYQ.js} +42 -40
- package/dist/bundle/auto-3O7JD27U.js +91 -0
- package/dist/bundle/{bun-SQWZDSWT.js → bun-IWGIAD7H.js} +2 -2
- package/dist/bundle/{bun-sqlite-YVBFXNWB.js → bun-sqlite-VJFM4TVN.js} +7 -5
- package/dist/bundle/{chunk-7OZEQIK7.js → chunk-2DLCQ4AK.js} +1 -1
- package/dist/bundle/{chunk-W46O6RJ5.js → chunk-2IQWMWMC.js} +42 -130
- package/dist/bundle/{chunk-4O2MYFYC.js → chunk-3EPBPSP6.js} +1 -1
- package/dist/bundle/{chunk-KEBL3PY4.js → chunk-3QBRLN6T.js} +2 -2
- package/dist/bundle/{chunk-NE3UIK5P.js → chunk-3URQNBDV.js} +2 -2
- package/dist/bundle/{chunk-SF2OLWBU.js → chunk-4EFQOTNQ.js} +7 -7
- package/dist/bundle/{chunk-5NY7U6CM.js → chunk-4VO2RJAE.js} +12 -10
- package/dist/bundle/{chunk-AUCXJVUI.js → chunk-5APYWW46.js} +34 -32
- package/dist/bundle/{chunk-VYCLOFPC.js → chunk-6A37YXAL.js} +6 -184
- package/dist/bundle/{chunk-RTSRESGX.js → chunk-6RN34ZWU.js} +6 -6
- package/dist/bundle/{chunk-7PSGKP3R.js → chunk-6VISMU6R.js} +8 -8
- package/dist/bundle/{chunk-AI6PMW7L.js → chunk-76T57Y3Q.js} +6 -6
- package/dist/bundle/{chunk-V6CRCAWN.js → chunk-7YALAAL4.js} +364 -305
- package/dist/bundle/{chunk-KA5MDFLU.js → chunk-A3QZXQI3.js} +1 -1
- package/dist/bundle/{chunk-YSOTOUHJ.js → chunk-A54EZ6DV.js} +15 -15
- package/dist/bundle/{chunk-MODHP5VA.js → chunk-AH6V2UJZ.js} +22 -18
- package/dist/bundle/{chunk-2EZFUIL4.js → chunk-BA6GHX5B.js} +27 -27
- package/dist/bundle/{chunk-TPWAXJUQ.js → chunk-BFEXVALS.js} +1 -1
- package/dist/bundle/{chunk-H3WELZYK.js → chunk-BNOSAHVH.js} +3 -3
- package/dist/bundle/{chunk-Z3NRIW4M.js → chunk-C3HS26N5.js} +1 -1
- package/dist/bundle/{chunk-6RPLAGAL.js → chunk-CFZZUGUD.js} +22 -22
- package/dist/bundle/{chunk-KYLKZKQ7.js → chunk-CPKS7JKX.js} +2 -2
- package/dist/bundle/{chunk-4DTJF6E7.js → chunk-D7KQYLAN.js} +8 -8
- package/dist/bundle/{chunk-N2FIIVJV.js → chunk-DE5BNDIA.js} +4 -4
- package/dist/bundle/{chunk-LLBZDBPT.js → chunk-DJYMK7EI.js} +4 -4
- package/dist/bundle/{chunk-YRJ2576I.js → chunk-DNPE4LOZ.js} +11 -11
- package/dist/bundle/chunk-EXFRC4OT.js +106 -0
- package/dist/bundle/{chunk-ODCHYVTW.js → chunk-EY46RMMS.js} +158 -154
- package/dist/bundle/{chunk-C7OOLF5J.js → chunk-HFZHXP4U.js} +6 -6
- package/dist/bundle/{chunk-Y7YXXWQI.js → chunk-HKDUGTWQ.js} +3 -3
- package/dist/bundle/{chunk-7XFJRX6F.js → chunk-HWIKY7KF.js} +3 -3
- package/dist/bundle/{chunk-ZHAHSVQO.js → chunk-INXIJXU2.js} +7 -7
- package/dist/bundle/{chunk-YNXQAB4X.js → chunk-IYINNZQE.js} +11 -11
- package/dist/bundle/{chunk-42UNPXTC.js → chunk-JKLJM7EG.js} +2 -2
- package/dist/bundle/{chunk-GB64N6DP.js → chunk-JSGRDE5Q.js} +298 -297
- package/dist/bundle/{chunk-O3KNZVDZ.js → chunk-JTLPFUIQ.js} +4 -4
- package/dist/bundle/{chunk-TXVXEE7L.js → chunk-KTBPBMNR.js} +6 -6
- package/dist/bundle/{chunk-NM4QMIOQ.js → chunk-KYW7RWGE.js} +3 -3
- package/dist/bundle/{chunk-OEH5JUAL.js → chunk-LHVNZ25W.js} +13 -13
- package/dist/bundle/{chunk-OJU774SG.js → chunk-LO74ISD6.js} +4 -4
- package/dist/bundle/{chunk-GBU4U55M.js → chunk-M4MM4QUM.js} +1 -1
- package/dist/bundle/{chunk-TD4HM7XL.js → chunk-MRUE3BWX.js} +1 -1
- package/dist/bundle/{chunk-ZIA7AU7L.js → chunk-MZHH5XMX.js} +2 -2
- package/dist/bundle/{chunk-3NCRQMEN.js → chunk-NGWUFB4K.js} +1 -1
- package/dist/bundle/{chunk-DDSKTPU7.js → chunk-OAWNQZ3V.js} +4 -4
- package/dist/bundle/{chunk-YD7XTYEC.js → chunk-OB3OPV55.js} +6 -6
- package/dist/bundle/{chunk-5AQIET5P.js → chunk-OQSIFLZS.js} +2 -2
- package/dist/bundle/{chunk-6YRVBXFH.js → chunk-PPARTGFE.js} +10 -10
- package/dist/bundle/{chunk-VFJAGY3L.js → chunk-QNJ6O6J4.js} +3 -3
- package/dist/bundle/{chunk-TGURQ4YH.js → chunk-S5T4SO7I.js} +2 -2
- package/dist/bundle/{chunk-W5ARY4U2.js → chunk-SHO3T3F2.js} +4 -4
- package/dist/bundle/{chunk-HAMGOLFU.js → chunk-TFXKS2WG.js} +1 -1
- package/dist/bundle/{chunk-47WS4BML.js → chunk-TIHQFMH2.js} +12 -10
- package/dist/bundle/{chunk-EVLOYNXC.js → chunk-TXXKLYJQ.js} +4 -4
- package/dist/bundle/{chunk-2KGYREGD.js → chunk-UD5JUJES.js} +357 -357
- package/dist/bundle/{chunk-S54Z74G2.js → chunk-UDRKGCDS.js} +2 -2
- package/dist/bundle/{chunk-4IWOPJL4.js → chunk-UIS44ZMF.js} +7 -7
- package/dist/bundle/{chunk-XGPSFPLH.js → chunk-VIY77EDM.js} +48 -48
- package/dist/bundle/{chunk-DUON3SRD.js → chunk-VMTTWF2M.js} +8 -8
- package/dist/bundle/{chunk-YU7KZW5I.js → chunk-W36BMC6F.js} +5 -5
- package/dist/bundle/{chunk-FUATAPSB.js → chunk-WZZ426CJ.js} +83 -81
- package/dist/bundle/chunk-X2SA73EE.js +200 -0
- package/dist/bundle/{chunk-3PLYUZAR.js → chunk-XLZPP5MB.js} +1 -1
- package/dist/bundle/{chunk-FH753LZS.js → chunk-YABNPKKQ.js} +2 -2
- package/dist/bundle/{chunk-PFNEOHCY.js → chunk-YZ4J67GU.js} +3 -3
- package/dist/bundle/{chunk-RLRKBPLJ.js → chunk-ZPB3VTS7.js} +17 -13
- package/dist/bundle/{chunk-MFQTOOHR.js → chunk-ZPPMGXER.js} +35 -35
- package/dist/bundle/command-contract-SEDOYJIJ.js +34 -0
- package/dist/bundle/{command-server-entry-472XWNSN.js → command-server-entry-TQBKNSM3.js} +22 -20
- package/dist/bundle/{decode-SFZ67QJN.js → decode-VFRSEIBD.js} +7 -5
- package/dist/bundle/{dispatch-PHB2Y6ZL.js → dispatch-N73TJNYM.js} +3 -3
- package/dist/bundle/{echarts-3U34KH7O.js → echarts-DP2GC2C6.js} +2 -2
- package/dist/bundle/{embed-ZEZXJ45Q.js → embed-BIINGRNY.js} +8 -6
- package/dist/bundle/{embedder-AASO2I4Z.js → embedder-2AUO2PHQ.js} +11 -9
- package/dist/bundle/entry-APUFP74B.js +23 -0
- package/dist/bundle/entry-LGJ2Y7AS.js +78 -0
- package/dist/bundle/failure-5QSMH2CD.js +71 -0
- package/dist/bundle/{failure-OBT7CUVW.js → failure-IPHFR3KW.js} +3 -2
- package/dist/bundle/{first-run-YL3TIUU3.js → first-run-7UMKRQL7.js} +11 -9
- package/dist/bundle/first-screen-H5CQSLIX.js +32 -0
- package/dist/bundle/{instructions-HG2ZZ7AP.js → instructions-WDKCHEG6.js} +1 -1
- package/dist/bundle/mcp-3HKOGYHL.js +92 -0
- package/dist/bundle/memo.js +9 -56
- package/dist/bundle/{node-7AQN6OTR.js → node-QBL3F2VF.js} +2 -2
- package/dist/bundle/{node-sqlite-55KMFPGI.js → node-sqlite-WFKC73E5.js} +8 -6
- package/dist/bundle/{oauth-S2GLD4PY.js → oauth-4PT7N4SE.js} +9 -7
- package/dist/bundle/{open-6R4UPST5.js → open-I7XENSGI.js} +7 -5
- package/dist/bundle/openai-DUSBTUFI.js +26 -0
- package/dist/bundle/{process-C7J3IT7Q.js → process-TVXEHAK6.js} +1 -1
- package/dist/bundle/{program-KWI6M5IB.js → program-3X4EPBEW.js} +298 -148
- package/dist/bundle/{prompt-EEFKVWSA.js → prompt-QRYXTON7.js} +7 -5
- package/dist/bundle/{recognize-STYHVWQ6.js → recognize-ZLDPIN36.js} +6 -4
- package/dist/bundle/{remote-6MXZXHYY.js → remote-3GRP5YE3.js} +9 -7
- package/dist/bundle/{rerank-IMX2ONZG.js → rerank-6B2FI6LN.js} +9 -7
- package/dist/bundle/serve-ZP3TEANT.js +24 -0
- package/dist/bundle/{server-L6OS2MJ5.js → server-3SJJNNSX.js} +62 -59
- package/dist/bundle/server-72VZYABL.js +50 -0
- package/dist/bundle/server-UY47EXPQ.js +64 -0
- package/dist/bundle/{state-7MP4KKPG.js → state-JDH2X2CY.js} +8 -6
- package/dist/bundle/{store-EMAKEEYI.js → store-FDNYGJUF.js} +14 -12
- package/dist/bundle/store-maintenance-command-5LFS45JM.js +49 -0
- package/dist/bundle/update-257J2SPM.js +74 -0
- package/dist/run/entry.d.ts +7 -0
- package/dist/run/entry.d.ts.map +1 -0
- package/dist/run/entry.js +62 -0
- package/dist/run/entry.js.map +1 -0
- package/dist/sources/command.d.ts.map +1 -1
- package/dist/sources/command.js +29 -3
- package/dist/sources/command.js.map +1 -1
- package/dist/sources/read.d.ts +16 -2
- package/dist/sources/read.d.ts.map +1 -1
- package/dist/sources/read.js +40 -4
- package/dist/sources/read.js.map +1 -1
- package/dist/sources/readers/ai-model.d.ts +4 -0
- package/dist/sources/readers/ai-model.d.ts.map +1 -0
- package/dist/sources/readers/ai-model.js +74 -0
- package/dist/sources/readers/ai-model.js.map +1 -0
- package/dist/sources/readers/index.d.ts +1 -0
- package/dist/sources/readers/index.d.ts.map +1 -1
- package/dist/sources/readers/index.js +3 -1
- package/dist/sources/readers/index.js.map +1 -1
- package/dist/sources/readers/keys.js +1 -1
- package/dist/sources/readers/keys.js.map +1 -1
- package/dist/sources/readers/types.d.ts +5 -2
- package/dist/sources/readers/types.d.ts.map +1 -1
- package/dist/sources/readers/types.js +1 -1
- package/dist/sources/readers/types.js.map +1 -1
- package/dist/sources/suggest-command.d.ts.map +1 -1
- package/dist/sources/suggest-command.js +16 -5
- package/dist/sources/suggest-command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-R3ABUML7.js +0 -89
- package/dist/bundle/command-contract-IEUSFI3B.js +0 -32
- package/dist/bundle/entry-7VHMR3LD.js +0 -21
- package/dist/bundle/failure-DJSK3LGN.js +0 -69
- package/dist/bundle/first-screen-OQVOWRYM.js +0 -30
- package/dist/bundle/mcp-EUFDOVMI.js +0 -90
- package/dist/bundle/openai-JK5GCSDK.js +0 -24
- package/dist/bundle/serve-ZNN464BH.js +0 -22
- package/dist/bundle/server-4CHUUMVI.js +0 -48
- package/dist/bundle/server-VCZCAQOB.js +0 -62
- package/dist/bundle/store-maintenance-command-LWN6OUFA.js +0 -47
- package/dist/bundle/update-I4X2UO6J.js +0 -72
- /package/dist/bundle/{chunk-IKIYW7FW.js → chunk-6AALVDEA.js} +0 -0
|
@@ -3,16 +3,18 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HWIKY7KF.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YABNPKKQ.js";
|
|
10
10
|
import {
|
|
11
11
|
createRecordLog,
|
|
12
12
|
resolvePaths,
|
|
13
|
-
traceIdOf,
|
|
14
13
|
writeSecurely
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2IQWMWMC.js";
|
|
15
|
+
import {
|
|
16
|
+
traceIdOf
|
|
17
|
+
} from "./chunk-EXFRC4OT.js";
|
|
16
18
|
import {
|
|
17
19
|
RegistryError,
|
|
18
20
|
SNAKE_CASE,
|
|
@@ -46,28 +48,28 @@ import {
|
|
|
46
48
|
union,
|
|
47
49
|
unknown,
|
|
48
50
|
variant
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6A37YXAL.js";
|
|
50
52
|
import {
|
|
51
53
|
CliError,
|
|
52
54
|
isCliError,
|
|
53
55
|
singleLine,
|
|
54
56
|
visibleControls
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-BA6GHX5B.js";
|
|
56
58
|
import {
|
|
57
59
|
__name
|
|
58
60
|
} from "./chunk-ZVVMGPBJ.js";
|
|
59
61
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
61
63
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
62
64
|
import { randomBytes } from "node:crypto";
|
|
63
65
|
|
|
64
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
65
67
|
import { randomUUID } from "node:crypto";
|
|
66
68
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
67
69
|
import { userInfo } from "node:os";
|
|
68
70
|
import { join, sep } from "node:path";
|
|
69
71
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
71
73
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
72
74
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
73
75
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -80,7 +82,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
80
82
|
error: /* @__PURE__ */ __name((event2, message) => logger.error(logAttributes(event2), message), "error")
|
|
81
83
|
}), "snakeLogger");
|
|
82
84
|
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
84
86
|
var diagnostic = {
|
|
85
87
|
event: true,
|
|
86
88
|
operation: true,
|
|
@@ -154,7 +156,7 @@ var LOG_ATTRIBUTES = [
|
|
|
154
156
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
155
157
|
].sort();
|
|
156
158
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
158
160
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
159
161
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
160
162
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -521,7 +523,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
521
523
|
};
|
|
522
524
|
}, "metadataOf");
|
|
523
525
|
|
|
524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
525
527
|
var scopes = new AsyncLocalStorage();
|
|
526
528
|
var processScope;
|
|
527
529
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -567,7 +569,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
567
569
|
var attempts = new AsyncLocalStorage();
|
|
568
570
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
569
571
|
|
|
570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
571
573
|
var CURRENCY_SCALES = {
|
|
572
574
|
AED: 2,
|
|
573
575
|
AMD: 2,
|
|
@@ -661,7 +663,7 @@ var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
|
661
663
|
}, "quantityOf");
|
|
662
664
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
663
665
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
665
667
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
666
668
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
667
669
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -690,7 +692,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
690
692
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
691
693
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
692
694
|
|
|
693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
694
696
|
var CATALOG_KINDS = ["product", "service"];
|
|
695
697
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
696
698
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -718,7 +720,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
718
720
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
719
721
|
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
720
722
|
|
|
721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
722
724
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
723
725
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
724
726
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -1654,7 +1656,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
1654
1656
|
details: [...SPAN, ...details]
|
|
1655
1657
|
})));
|
|
1656
1658
|
|
|
1657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
1658
1660
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
1659
1661
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
1660
1662
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -1691,7 +1693,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
1691
1693
|
}, "parseMeetingReference");
|
|
1692
1694
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
1693
1695
|
|
|
1694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
1695
1697
|
var text = string();
|
|
1696
1698
|
var count = pipe(number(), integer(), minValue(0));
|
|
1697
1699
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1756,7 +1758,7 @@ var MEETING_QUERY = {
|
|
|
1756
1758
|
})
|
|
1757
1759
|
};
|
|
1758
1760
|
|
|
1759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1760
1762
|
var text2 = string();
|
|
1761
1763
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1762
1764
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1991,7 +1993,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1991
1993
|
};
|
|
1992
1994
|
}, "meetingHitsList");
|
|
1993
1995
|
|
|
1994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1995
1997
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1996
1998
|
const parsed = urlOf(url);
|
|
1997
1999
|
if (!parsed)
|
|
@@ -2025,7 +2027,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
2025
2027
|
}
|
|
2026
2028
|
}, "urlOf");
|
|
2027
2029
|
|
|
2028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
2029
2031
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
2030
2032
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
2031
2033
|
var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
|
|
@@ -2062,7 +2064,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
2062
2064
|
return kept;
|
|
2063
2065
|
}, "entryMetadata");
|
|
2064
2066
|
|
|
2065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
2066
2068
|
import { createHash } from "node:crypto";
|
|
2067
2069
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
2068
2070
|
reference: cue2.reference,
|
|
@@ -2076,7 +2078,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
2076
2078
|
text: cue2.text
|
|
2077
2079
|
})).digest("hex"), "meetingCueFingerprint");
|
|
2078
2080
|
|
|
2079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
2080
2082
|
var EVENT_QUERY = defineQuery({
|
|
2081
2083
|
entity: "event",
|
|
2082
2084
|
backend: "sql",
|
|
@@ -2092,7 +2094,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
2092
2094
|
]
|
|
2093
2095
|
});
|
|
2094
2096
|
|
|
2095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
2096
2098
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
2097
2099
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
2098
2100
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -2115,7 +2117,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
2115
2117
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
2116
2118
|
}, "entryInWindow");
|
|
2117
2119
|
|
|
2118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
2119
2121
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
2120
2122
|
const current = await store.meeting(details.meeting.id);
|
|
2121
2123
|
if (!current)
|
|
@@ -2158,7 +2160,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
2158
2160
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
2159
2161
|
}, "linkEvent");
|
|
2160
2162
|
|
|
2161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
2162
2164
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
2163
2165
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
2164
2166
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -2182,7 +2184,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
2182
2184
|
};
|
|
2183
2185
|
}, "validateMeetingParticipantSearch");
|
|
2184
2186
|
|
|
2185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
2186
2188
|
var MeetingError = class extends CliError {
|
|
2187
2189
|
static {
|
|
2188
2190
|
__name(this, "MeetingError");
|
|
@@ -2314,7 +2316,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
2314
2316
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
2315
2317
|
}, "meetingSummaryAnswer");
|
|
2316
2318
|
|
|
2317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
2318
2320
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
2319
2321
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
2320
2322
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -2410,10 +2412,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
2410
2412
|
};
|
|
2411
2413
|
}, "exportMeeting");
|
|
2412
2414
|
|
|
2413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2414
2416
|
import { createHash as createHash2 } from "node:crypto";
|
|
2415
2417
|
|
|
2416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
2417
2419
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2418
2420
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
2419
2421
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -2507,7 +2509,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
2507
2509
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
2508
2510
|
}, "paymentTitle");
|
|
2509
2511
|
|
|
2510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
2511
2513
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
2512
2514
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
2513
2515
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -2518,7 +2520,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
2518
2520
|
return new Date(value).toISOString();
|
|
2519
2521
|
}, "meetingTimestamp");
|
|
2520
2522
|
|
|
2521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
2522
2524
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
2523
2525
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
2524
2526
|
throw new CliError("validation_error", message);
|
|
@@ -2693,7 +2695,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
2693
2695
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
2694
2696
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
2695
2697
|
|
|
2696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
2697
2699
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
2698
2700
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
2699
2701
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -2704,7 +2706,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
2704
2706
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
2705
2707
|
var meetingFindingFingerprint = findingFingerprint;
|
|
2706
2708
|
|
|
2707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
2708
2710
|
var context = {
|
|
2709
2711
|
command: "search meetings",
|
|
2710
2712
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -2824,7 +2826,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text6) => {
|
|
|
2824
2826
|
return { version: 1, language: "lucene-v1", root };
|
|
2825
2827
|
}, "meetingWordsQuery");
|
|
2826
2828
|
|
|
2827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2828
2830
|
var LATIN_WORDS = {
|
|
2829
2831
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2830
2832
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2873,7 +2875,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2873
2875
|
return null;
|
|
2874
2876
|
}, "transcriptLanguage");
|
|
2875
2877
|
|
|
2876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2877
2879
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2878
2880
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2879
2881
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2910,7 +2912,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2910
2912
|
return time2;
|
|
2911
2913
|
}, "timestamp");
|
|
2912
2914
|
|
|
2913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2914
2916
|
var TranscriptTextError = class extends Error {
|
|
2915
2917
|
static {
|
|
2916
2918
|
__name(this, "TranscriptTextError");
|
|
@@ -2965,7 +2967,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2965
2967
|
return { header, lines };
|
|
2966
2968
|
}, "parseTranscriptText");
|
|
2967
2969
|
|
|
2968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2969
2971
|
var VttError = class extends Error {
|
|
2970
2972
|
static {
|
|
2971
2973
|
__name(this, "VttError");
|
|
@@ -3017,7 +3019,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
3017
3019
|
return cues;
|
|
3018
3020
|
}, "parseVtt");
|
|
3019
3021
|
|
|
3020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
3021
3023
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
3022
3024
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
3023
3025
|
for (const file of files) {
|
|
@@ -3050,10 +3052,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
3050
3052
|
return report;
|
|
3051
3053
|
}, "importFiles");
|
|
3052
3054
|
|
|
3053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
3054
3056
|
var CHAT_MESSAGES_READ = 1e5;
|
|
3055
3057
|
|
|
3056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
3057
3059
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
3058
3060
|
const provider = scope2?.provider;
|
|
3059
3061
|
const account = scope2?.account;
|
|
@@ -3062,7 +3064,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
3062
3064
|
return Object.freeze({ provider, account });
|
|
3063
3065
|
}, "snapshotMeetingScope");
|
|
3064
3066
|
|
|
3065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
3066
3068
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
3067
3069
|
if (typeof value !== "string" || !value.trim())
|
|
3068
3070
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -3113,7 +3115,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
3113
3115
|
return Object.freeze(result);
|
|
3114
3116
|
}, "validateMeetingChange");
|
|
3115
3117
|
|
|
3116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
3117
3119
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
3118
3120
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
3119
3121
|
if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
|
|
@@ -3126,7 +3128,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
3126
3128
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
3127
3129
|
}, "validateMeetingPassage");
|
|
3128
3130
|
|
|
3129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
3130
3132
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
3131
3133
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3132
3134
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -3151,7 +3153,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
3151
3153
|
return { ...input, limit, maxReadBytes };
|
|
3152
3154
|
}, "validateMeetingPreparationContext");
|
|
3153
3155
|
|
|
3154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
3155
3157
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
3156
3158
|
var id = pipe(string(), minLength(1));
|
|
3157
3159
|
var meetingProjectEvidence = strictObject({
|
|
@@ -3272,7 +3274,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
3272
3274
|
};
|
|
3273
3275
|
}, "meetingProjectEvidenceAnswer");
|
|
3274
3276
|
|
|
3275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
3276
3278
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
3277
3279
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
3278
3280
|
if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
|
|
@@ -3292,7 +3294,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
3292
3294
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
3293
3295
|
}, "validateMeetingHitSearch");
|
|
3294
3296
|
|
|
3295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
3296
3298
|
var ids = {
|
|
3297
3299
|
meeting_id: "meetingId",
|
|
3298
3300
|
identity_id: "participantIdentityId",
|
|
@@ -3383,7 +3385,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
3383
3385
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
3384
3386
|
}, "prepareMeetingProjectEvidence");
|
|
3385
3387
|
|
|
3386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
3387
3389
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
3388
3390
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
3389
3391
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -3391,7 +3393,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
3391
3393
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
3392
3394
|
}, "readMeetingProjectEvidence");
|
|
3393
3395
|
|
|
3394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
3395
3397
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
3396
3398
|
const { identityExternalId, ...fields } = p;
|
|
3397
3399
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -3553,7 +3555,7 @@ unlinked`, format)],
|
|
|
3553
3555
|
return report;
|
|
3554
3556
|
}, "pull");
|
|
3555
3557
|
|
|
3556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3557
3559
|
var text3 = string();
|
|
3558
3560
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
3559
3561
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -3747,10 +3749,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3747
3749
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3748
3750
|
}), "eventItem");
|
|
3749
3751
|
|
|
3750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3751
3753
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3752
3754
|
|
|
3753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3754
3756
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3755
3757
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3756
3758
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3780,7 +3782,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3780
3782
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3781
3783
|
}, "validateMeetingRelatedHistory");
|
|
3782
3784
|
|
|
3783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
3784
3786
|
var text4 = string();
|
|
3785
3787
|
var identifier = pipe(text4, minLength(1));
|
|
3786
3788
|
var nullableText = nullable(text4);
|
|
@@ -3914,14 +3916,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3914
3916
|
meeting_repair: repair
|
|
3915
3917
|
};
|
|
3916
3918
|
|
|
3917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3918
3920
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3919
3921
|
|
|
3920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3921
3923
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3922
3924
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3923
3925
|
|
|
3924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3925
3927
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3926
3928
|
input.signal?.throwIfAborted();
|
|
3927
3929
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3942,7 +3944,7 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3942
3944
|
return { ...input, limit, maxReadBytes };
|
|
3943
3945
|
}, "validateMeetingSeriesHistory");
|
|
3944
3946
|
|
|
3945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3946
3948
|
var invalid4 = /* @__PURE__ */ __name((field) => {
|
|
3947
3949
|
throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
|
|
3948
3950
|
}, "invalid");
|
|
@@ -4011,7 +4013,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
|
|
|
4011
4013
|
return result;
|
|
4012
4014
|
}, "readOccurrenceSchedule");
|
|
4013
4015
|
|
|
4014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
4015
4017
|
function invalid5(field, response = false) {
|
|
4016
4018
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
4017
4019
|
}
|
|
@@ -4040,7 +4042,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
4040
4042
|
cursorDetails(value);
|
|
4041
4043
|
}, "validateMeetingSeriesInventoryCursor");
|
|
4042
4044
|
|
|
4043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
4044
4046
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
4045
4047
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
4046
4048
|
const zone = timeZone ?? "UTC";
|
|
@@ -4175,10 +4177,10 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
4175
4177
|
};
|
|
4176
4178
|
}, "aggregateMeetingStats");
|
|
4177
4179
|
|
|
4178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
4179
4181
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
4180
4182
|
|
|
4181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
|
|
4182
4184
|
var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
4183
4185
|
if (!signal?.aborted)
|
|
4184
4186
|
return;
|
|
@@ -4248,7 +4250,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope2, port) => {
|
|
|
4248
4250
|
};
|
|
4249
4251
|
}, "createUpcomingMeetingReader");
|
|
4250
4252
|
|
|
4251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
4252
4254
|
var SCHEME = "msg:";
|
|
4253
4255
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
4254
4256
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -4262,7 +4264,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
4262
4264
|
return { provider, account, chat, message };
|
|
4263
4265
|
}, "parseLocator");
|
|
4264
4266
|
|
|
4265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
4266
4268
|
var SIMPLE_REFERENCES = [
|
|
4267
4269
|
"note",
|
|
4268
4270
|
"document",
|
|
@@ -4418,14 +4420,14 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
4418
4420
|
return match !== null && byPrefix.has(match[1]);
|
|
4419
4421
|
}, "looksLikeReference");
|
|
4420
4422
|
|
|
4421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
4422
4424
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
4423
4425
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
4424
4426
|
var ERASED_TEXT = "[source erased]";
|
|
4425
4427
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
4426
4428
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
4427
4429
|
|
|
4428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
4429
4431
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
4430
4432
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
4431
4433
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -4440,7 +4442,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
4440
4442
|
}
|
|
4441
4443
|
__name(closeTask, "closeTask");
|
|
4442
4444
|
|
|
4443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
4444
4446
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
4445
4447
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
4446
4448
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -4469,13 +4471,13 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
4469
4471
|
}, "priorityOf");
|
|
4470
4472
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
4471
4473
|
|
|
4472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
4473
4475
|
function matches2(task, filter) {
|
|
4474
4476
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
4475
4477
|
}
|
|
4476
4478
|
__name(matches2, "matches");
|
|
4477
4479
|
|
|
4478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
4479
4481
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
4480
4482
|
async function find(id4) {
|
|
4481
4483
|
const task = await store.get(id4);
|
|
@@ -4535,7 +4537,7 @@ function median(values) {
|
|
|
4535
4537
|
}
|
|
4536
4538
|
__name(median, "median");
|
|
4537
4539
|
|
|
4538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
4539
4541
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
4540
4542
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
4541
4543
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -4543,10 +4545,10 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
4543
4545
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
4544
4546
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
4545
4547
|
|
|
4546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
4547
4549
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
4548
4550
|
|
|
4549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
4550
4552
|
var DEAL_KINDS = ["deal", "lead"];
|
|
4551
4553
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
4552
4554
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -4556,7 +4558,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
4556
4558
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
4557
4559
|
}, "dealLine");
|
|
4558
4560
|
|
|
4559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
4560
4562
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
4561
4563
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
4562
4564
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -4567,7 +4569,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
4567
4569
|
}, "orderLine");
|
|
4568
4570
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
4569
4571
|
|
|
4570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
4571
4573
|
var ORGANIZATION_ROLES = [
|
|
4572
4574
|
"employee",
|
|
4573
4575
|
"contractor",
|
|
@@ -4668,7 +4670,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
4668
4670
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
4669
4671
|
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
4670
4672
|
|
|
4671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
4672
4674
|
var text5 = string();
|
|
4673
4675
|
var id3 = pipe(string(), minLength(1));
|
|
4674
4676
|
var time = isoTime;
|
|
@@ -4693,7 +4695,7 @@ var author = strictObject({
|
|
|
4693
4695
|
name: nullable(text5)
|
|
4694
4696
|
});
|
|
4695
4697
|
|
|
4696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
4697
4699
|
var organization = strictObject({
|
|
4698
4700
|
id: id3,
|
|
4699
4701
|
ref: reference,
|
|
@@ -4723,7 +4725,7 @@ var reminder = strictObject({
|
|
|
4723
4725
|
receipt: nullable(text5)
|
|
4724
4726
|
});
|
|
4725
4727
|
|
|
4726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
4727
4729
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
4728
4730
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
4729
4731
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4737,7 +4739,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
4737
4739
|
return tag;
|
|
4738
4740
|
}, "normalizeTag");
|
|
4739
4741
|
|
|
4740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
4741
4743
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
4742
4744
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
4743
4745
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -4747,7 +4749,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
4747
4749
|
};
|
|
4748
4750
|
}, "sourceOf");
|
|
4749
4751
|
|
|
4750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
4751
4753
|
var LINK_KINDS = [
|
|
4752
4754
|
"links-to",
|
|
4753
4755
|
"blocked-by",
|
|
@@ -4771,7 +4773,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
4771
4773
|
var linkKind = /* @__PURE__ */ __name((kind2) => `'${kind2}'`, "linkKind");
|
|
4772
4774
|
var COUNTERPART_ROLE = "counterpart";
|
|
4773
4775
|
|
|
4774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
4775
4777
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
4776
4778
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
4777
4779
|
var PROVIDERS = [
|
|
@@ -4934,7 +4936,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
4934
4936
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
4935
4937
|
var kindOf2 = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
4936
4938
|
|
|
4937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
4938
4940
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
4939
4941
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
4940
4942
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -4957,7 +4959,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
4957
4959
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
4958
4960
|
}, "sourceOf");
|
|
4959
4961
|
|
|
4960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
4961
4963
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
4962
4964
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
4963
4965
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|