@wirecat/drive-cli 0.63.0 → 0.64.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/README.md +2 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-GZJS3UKC.js → all-profiles-BPPT2AK5.js} +13 -13
- package/dist/bundle/{anthropic-RGV3WXX5.js → anthropic-JW6GOJUD.js} +13 -11
- package/dist/bundle/{app-server-AA2PJ7PV.js → app-server-KAQIOJMZ.js} +53 -53
- package/dist/bundle/{bun-OXZYIA3R.js → bun-UT7GNTPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-D45NSDM3.js → bun-sqlite-2OIVV3LS.js} +8 -8
- package/dist/bundle/{chunk-EOOGWUTP.js → chunk-2FEZ24DK.js} +10 -10
- package/dist/bundle/{chunk-TWUH22Z5.js → chunk-2W464HAE.js} +4 -4
- package/dist/bundle/{chunk-YIP7ELON.js → chunk-34BIDKF4.js} +275 -419
- package/dist/bundle/{chunk-2NIC72HH.js → chunk-36GPBPWM.js} +1 -1
- package/dist/bundle/{chunk-44SBK6KB.js → chunk-3J5KAFNA.js} +1601 -877
- package/dist/bundle/{chunk-ZM5J6ZMB.js → chunk-3NULZGQU.js} +2 -2
- package/dist/bundle/{chunk-DJHLVUL6.js → chunk-46CD64J2.js} +152 -36
- package/dist/bundle/{chunk-2TFXK3R4.js → chunk-4CNTID2X.js} +4 -4
- package/dist/bundle/{chunk-WYGWWHZP.js → chunk-4YRENUB5.js} +2 -2
- package/dist/bundle/{chunk-L37LMMRJ.js → chunk-5HSRQ53R.js} +2 -2
- package/dist/bundle/{chunk-XR6ESRU6.js → chunk-5OFA5EXE.js} +2 -2
- package/dist/bundle/{chunk-3QINVLZI.js → chunk-5ZBR55US.js} +1 -1
- package/dist/bundle/{chunk-LMAVCYLQ.js → chunk-66AF4FBW.js} +4 -4
- package/dist/bundle/{chunk-Y6GNA7HE.js → chunk-6B37XO6B.js} +23 -5
- package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-2TDUGC5D.js → chunk-AHB4OJCI.js} +1885 -565
- package/dist/bundle/{chunk-E4SDKMBJ.js → chunk-B67BLRAI.js} +3 -3
- package/dist/bundle/{chunk-YGU6ULU5.js → chunk-B7XBIOMR.js} +12 -12
- package/dist/bundle/{chunk-FEZF3TII.js → chunk-BDYWZ7JE.js} +50 -6
- package/dist/bundle/{chunk-BKYMKVHT.js → chunk-BEUAICUD.js} +2 -2
- package/dist/bundle/{chunk-ABYGSJZ4.js → chunk-BEZJA44H.js} +7 -7
- package/dist/bundle/{chunk-TF23BZW5.js → chunk-BZ2ZKILM.js} +3 -3
- package/dist/bundle/{chunk-FUITWY7O.js → chunk-C7WBNOYW.js} +1 -1
- package/dist/bundle/{chunk-V3NVXIQR.js → chunk-CPMRM3GQ.js} +231 -191
- package/dist/bundle/{chunk-AEX37ETW.js → chunk-DD7EFG6B.js} +2 -2
- package/dist/bundle/{chunk-PDCCYHCH.js → chunk-E2LBCCTG.js} +5 -5
- package/dist/bundle/{chunk-O2XOX4HB.js → chunk-EC2XGDKJ.js} +50 -34
- package/dist/bundle/{chunk-4OSSOWDM.js → chunk-EJ4PNHPP.js} +1 -1
- package/dist/bundle/{chunk-4S4JMW6I.js → chunk-EQEGJVO2.js} +1 -1
- package/dist/bundle/{chunk-XNVFKMVR.js → chunk-EWGVDFPT.js} +957 -533
- package/dist/bundle/{chunk-CE2TJBLP.js → chunk-EZ6O3ST3.js} +3 -3
- package/dist/bundle/{chunk-FRIJUILO.js → chunk-F2VDAG32.js} +3 -3
- package/dist/bundle/{chunk-HZZCEQTH.js → chunk-G3NULXOM.js} +4 -4
- package/dist/bundle/{chunk-OD4U7GUY.js → chunk-G4KEKKDE.js} +20 -20
- package/dist/bundle/{chunk-OTROVC4E.js → chunk-GSMYXGFR.js} +1 -1
- package/dist/bundle/{chunk-4CIZWCXV.js → chunk-GW3U6OLD.js} +1 -1
- package/dist/bundle/{chunk-6EY46GAN.js → chunk-HW4UPST2.js} +2 -2
- package/dist/bundle/{chunk-2HF2MRXI.js → chunk-IDAK4DDK.js} +1 -1
- package/dist/bundle/{chunk-27YUUGXQ.js → chunk-IK6KH3RE.js} +1 -1
- package/dist/bundle/{chunk-DJ3SDJZY.js → chunk-IX7NQJLY.js} +8 -8
- package/dist/bundle/{chunk-534OBX5Y.js → chunk-J62DI53V.js} +1 -1
- package/dist/bundle/{chunk-PO5RQQIG.js → chunk-JRXFW7HE.js} +5 -5
- package/dist/bundle/{chunk-XIUDS3OK.js → chunk-K6BSB53R.js} +1 -1
- package/dist/bundle/{chunk-ND6LLYGF.js → chunk-KE4XPPRQ.js} +27 -27
- package/dist/bundle/{chunk-UQLWMGSD.js → chunk-KG2XKEHL.js} +5 -5
- package/dist/bundle/{chunk-MOTRI3SY.js → chunk-KIN6PDFE.js} +24 -2
- package/dist/bundle/{chunk-VAUMOZU5.js → chunk-KVW4XNKB.js} +16 -16
- package/dist/bundle/{chunk-33MGFUED.js → chunk-LOMW6F2E.js} +194 -229
- package/dist/bundle/{chunk-5PPL7JDM.js → chunk-M73NNJ3X.js} +2 -2
- package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-N622LRPM.js} +4 -4
- package/dist/bundle/{chunk-3BZRKLJ6.js → chunk-O2QO5UZC.js} +13 -13
- package/dist/bundle/{chunk-SXM6MHRR.js → chunk-OEVHZOHC.js} +12 -12
- package/dist/bundle/{chunk-6MQSQ4LX.js → chunk-OH3K2E7X.js} +402 -184
- package/dist/bundle/{chunk-J24ZFCWM.js → chunk-P7DEGRZA.js} +21 -21
- package/dist/bundle/{chunk-YUWPNG7B.js → chunk-PBMSBCVB.js} +1 -1
- package/dist/bundle/{chunk-S4RXABDR.js → chunk-QEAD2LF4.js} +3 -3
- package/dist/bundle/{chunk-OXY6SSZG.js → chunk-QXCKJUZY.js} +33 -18
- package/dist/bundle/{chunk-LZEOQW7S.js → chunk-SIOIMO62.js} +36 -36
- package/dist/bundle/{chunk-RKELRWH7.js → chunk-TNV2FXVK.js} +5 -5
- package/dist/bundle/{chunk-UPOSDTPT.js → chunk-UD55VB2N.js} +3 -3
- package/dist/bundle/{chunk-6KQJSFYF.js → chunk-UIEA6FIV.js} +22 -22
- package/dist/bundle/{chunk-XDC3TWTL.js → chunk-UJR272CP.js} +28 -28
- package/dist/bundle/{chunk-3HK5WMI5.js → chunk-USLZE36C.js} +6 -6
- package/dist/bundle/{chunk-ZOJU7ZFI.js → chunk-VIJ6ACYB.js} +8 -8
- package/dist/bundle/{chunk-VKPCONDQ.js → chunk-VPLFD5RJ.js} +4 -4
- package/dist/bundle/{chunk-VJEOGKAN.js → chunk-VT2UFYPJ.js} +7 -7
- package/dist/bundle/{chunk-Q5DJTRKV.js → chunk-WWCYTMAV.js} +2 -2
- package/dist/bundle/{chunk-7EMQ26BA.js → chunk-XPXKD63J.js} +13 -13
- package/dist/bundle/{chunk-J4DIHPZ6.js → chunk-ZF6GUZCE.js} +1 -1
- package/dist/bundle/{chunk-Z42YYLTS.js → chunk-ZRZ4HTCK.js} +52 -34
- package/dist/bundle/{chunk-NEFSGCVA.js → chunk-ZSZJLJIA.js} +10 -10
- package/dist/bundle/command-contract-H5OYJOPF.js +38 -0
- package/dist/bundle/{decode-G5YEIPNC.js → decode-HTOQ6S3V.js} +8 -8
- package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-SH5SP6LA.js} +11 -11
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-W2CWHNXR.js → echarts-KFHB6SLX.js} +2 -2
- package/dist/bundle/{embed-OBFFPVF4.js → embed-YATFB2PN.js} +9 -9
- package/dist/bundle/{embedder-NGCBQHIG.js → embedder-MQPDFGTJ.js} +12 -12
- package/dist/bundle/entry-YZBB647C.js +22 -0
- package/dist/bundle/{failure-GV77W3CD.js → failure-4FQL4XJI.js} +4 -4
- package/dist/bundle/first-run-5JT3UQZB.js +30 -0
- package/dist/bundle/first-screen-BEMDEWO7.js +36 -0
- package/dist/bundle/{google-CIWUVJ5C.js → google-DVADVICN.js} +13 -13
- package/dist/bundle/{google-api-Z3NSTBBR.js → google-api-QMFGCXBM.js} +55 -56
- package/dist/bundle/grants-WKB2E4TA.js +103 -0
- package/dist/bundle/{identity-OM6GFZ7T.js → identity-FYVDK4M2.js} +6 -6
- package/dist/bundle/{instructions-YQBQSYSS.js → instructions-D3GF3B7M.js} +1 -1
- package/dist/bundle/{login-7RYSDVN3.js → login-COFZ2IWP.js} +61 -62
- package/dist/bundle/{mcp-GWDA3HOA.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/{node-IVU33RL7.js → node-OFICOKX3.js} +2 -2
- package/dist/bundle/{node-sqlite-SIH5BEW2.js → node-sqlite-DNBTDOXD.js} +9 -9
- package/dist/bundle/oauth-PDQHWFBF.js +22 -0
- package/dist/bundle/{open-IAO2SNII.js → open-PTPR2YWX.js} +8 -8
- package/dist/bundle/{openai-SGOUBHXP.js → openai-2KV5LUW4.js} +17 -17
- package/dist/bundle/{process-BPBMV3AT.js → process-EAW6NST2.js} +1 -1
- package/dist/bundle/{program-MYKKJ4F6.js → program-6UV5Q5YN.js} +306 -276
- package/dist/bundle/prompt-634TPMJK.js +19 -0
- package/dist/bundle/{reasons-57J2D77K.js → reasons-DDWCEYSQ.js} +5 -5
- package/dist/bundle/{recognize-A5C5RPB3.js → recognize-SJO6QUDW.js} +7 -7
- package/dist/bundle/{remote-VWYFLRGO.js → remote-6JXZITKF.js} +10 -10
- package/dist/bundle/{rerank-4NGQWREA.js → rerank-MD5VOPQ6.js} +10 -10
- package/dist/bundle/{serve-Y6LQTFH5.js → serve-LZTROA2M.js} +12 -12
- package/dist/bundle/server-GT7X666D.js +69 -0
- package/dist/bundle/{server-6AUHIIUA.js → server-NSA3UAFY.js} +43 -43
- package/dist/bundle/{services-2W4J7EMW.js → services-F5A6XQCV.js} +63 -33
- package/dist/bundle/{sqlite-runtime-P6BBDX2H.js → sqlite-runtime-7YF6REKS.js} +9 -9
- package/dist/bundle/{start-AFFA3LKM.js → start-MUFLE6FA.js} +30 -8
- package/dist/bundle/{state-PXKKXR3R.js → state-UC54F3YZ.js} +9 -9
- package/dist/bundle/{store-IVV2BAGZ.js → store-F5FJGWMR.js} +28 -20
- package/dist/bundle/{store-CN6JEUC4.js → store-J53YNAH6.js} +35 -18
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +58 -0
- package/dist/bundle/tokens-H2EJKGA5.js +101 -0
- package/dist/commands/account.d.ts +4 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +33 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/profile-lock.d.ts +1 -0
- package/dist/profile-lock.d.ts.map +1 -1
- package/dist/profile-lock.js +1 -0
- package/dist/profile-lock.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-Z5KC7XBR.js +0 -33
- package/dist/bundle/command-contract-BRW3AP44.js +0 -38
- package/dist/bundle/entry-ET6HGM7A.js +0 -22
- package/dist/bundle/first-run-JG52UZVO.js +0 -30
- package/dist/bundle/first-screen-CIL3GFAA.js +0 -36
- package/dist/bundle/grants-3S4RL3WB.js +0 -104
- package/dist/bundle/oauth-PT4JEHLL.js +0 -22
- package/dist/bundle/prompt-3ZM64DCB.js +0 -17
- package/dist/bundle/server-PFHI35HA.js +0 -69
- package/dist/bundle/store-maintenance-command-MSY2QNEH.js +0 -59
- package/dist/bundle/tokens-P4LPNUFW.js +0 -102
- /package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-SW6C6WH5.js} +0 -0
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2FEZ24DK.js";
|
|
12
12
|
import {
|
|
13
13
|
isCliFailure,
|
|
14
14
|
isStoreDamage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-B67BLRAI.js";
|
|
16
16
|
import {
|
|
17
17
|
refuseOwnerStoreInTests
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DD7EFG6B.js";
|
|
19
19
|
import {
|
|
20
20
|
singleLine,
|
|
21
21
|
visibleControls
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IDAK4DDK.js";
|
|
23
23
|
import {
|
|
24
24
|
STEPS,
|
|
25
25
|
array,
|
|
@@ -46,15 +46,15 @@ import {
|
|
|
46
46
|
string,
|
|
47
47
|
union,
|
|
48
48
|
unknown
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BDYWZ7JE.js";
|
|
50
50
|
import {
|
|
51
51
|
CliError
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
53
53
|
import {
|
|
54
54
|
__name
|
|
55
55
|
} from "./chunk-ZVVMGPBJ.js";
|
|
56
56
|
|
|
57
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
58
58
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
59
59
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
60
60
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -148,7 +148,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
148
148
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
149
149
|
}, "paymentTitle");
|
|
150
150
|
|
|
151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
152
152
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
153
153
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
154
154
|
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)))
|
|
@@ -161,7 +161,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
161
161
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
162
162
|
}, "validateMeetingPassage");
|
|
163
163
|
|
|
164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
165
165
|
var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
166
166
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
167
167
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -198,7 +198,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
198
198
|
}, "parseMeetingReference");
|
|
199
199
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
200
200
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
202
202
|
var text = string();
|
|
203
203
|
var count = pipe(number(), integer(), minValue(0));
|
|
204
204
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -263,7 +263,7 @@ var MEETING_QUERY = {
|
|
|
263
263
|
})
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
267
267
|
var text2 = string();
|
|
268
268
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
269
269
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -466,10 +466,10 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
|
|
|
466
466
|
var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search meetings", args = {}, meta = {}) => {
|
|
467
467
|
const items = found.items.map(meetingHitItem);
|
|
468
468
|
const cursor = found.hasMore && found.nextCursor !== null ? found.nextCursor : void 0;
|
|
469
|
-
const
|
|
469
|
+
const pending2 = found.coverage.indexing === "pending";
|
|
470
470
|
const next = [
|
|
471
471
|
...cursor === void 0 ? [] : [stepOf(PAGE_NEXT, { command, args: { ...args, cursor, limit }, values: { shown: items.length } })],
|
|
472
|
-
...
|
|
472
|
+
...pending2 ? [
|
|
473
473
|
stepOf(SEARCH_AGAIN, {
|
|
474
474
|
command,
|
|
475
475
|
args: Object.fromEntries(Object.entries(args).filter(([key]) => key !== "cursor"))
|
|
@@ -485,7 +485,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
485
485
|
...cursor === void 0 ? {} : { next_cursor: cursor }
|
|
486
486
|
},
|
|
487
487
|
...next.length > 0 ? { next } : {},
|
|
488
|
-
...
|
|
488
|
+
...pending2 ? {
|
|
489
489
|
missing: [
|
|
490
490
|
{
|
|
491
491
|
field: "excerpt",
|
|
@@ -498,7 +498,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
498
498
|
};
|
|
499
499
|
}, "meetingHitsList");
|
|
500
500
|
|
|
501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
502
502
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
503
503
|
const parsed = urlOf(url);
|
|
504
504
|
if (!parsed)
|
|
@@ -532,7 +532,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
532
532
|
}
|
|
533
533
|
}, "urlOf");
|
|
534
534
|
|
|
535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
536
536
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
537
537
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
538
538
|
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");
|
|
@@ -569,7 +569,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
569
569
|
return kept;
|
|
570
570
|
}, "entryMetadata");
|
|
571
571
|
|
|
572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
573
573
|
import { createHash } from "node:crypto";
|
|
574
574
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
575
575
|
reference: cue2.reference,
|
|
@@ -583,7 +583,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
583
583
|
text: cue2.text
|
|
584
584
|
})).digest("hex"), "meetingCueFingerprint");
|
|
585
585
|
|
|
586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
587
587
|
var EVENT_QUERY = defineQuery({
|
|
588
588
|
entity: "event",
|
|
589
589
|
backend: "sql",
|
|
@@ -599,7 +599,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
599
599
|
]
|
|
600
600
|
});
|
|
601
601
|
|
|
602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
603
603
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
604
604
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
605
605
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -622,7 +622,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
622
622
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
623
623
|
}, "entryInWindow");
|
|
624
624
|
|
|
625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
626
626
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
627
627
|
const current = await store.meeting(details.meeting.id);
|
|
628
628
|
if (!current)
|
|
@@ -665,7 +665,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
665
665
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
666
666
|
}, "linkEvent");
|
|
667
667
|
|
|
668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
669
669
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
670
670
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
671
671
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -689,7 +689,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
689
689
|
};
|
|
690
690
|
}, "validateMeetingParticipantSearch");
|
|
691
691
|
|
|
692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
693
693
|
var MeetingError = class extends CliError {
|
|
694
694
|
static {
|
|
695
695
|
__name(this, "MeetingError");
|
|
@@ -821,7 +821,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
|
|
|
821
821
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
822
822
|
}, "meetingSummaryAnswer");
|
|
823
823
|
|
|
824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
825
825
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
826
826
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
827
827
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -917,10 +917,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
|
|
|
917
917
|
};
|
|
918
918
|
}, "exportMeeting");
|
|
919
919
|
|
|
920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
921
921
|
import { createHash as createHash2 } from "node:crypto";
|
|
922
922
|
|
|
923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
924
924
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
925
925
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
926
926
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -931,7 +931,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
931
931
|
return new Date(value).toISOString();
|
|
932
932
|
}, "meetingTimestamp");
|
|
933
933
|
|
|
934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
935
935
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
936
936
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
937
937
|
throw new CliError("validation_error", message);
|
|
@@ -1104,7 +1104,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1104
1104
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1105
1105
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1106
1106
|
|
|
1107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1108
1108
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1109
1109
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1110
1110
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1115,7 +1115,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1115
1115
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1116
1116
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1117
1117
|
|
|
1118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1119
1119
|
var context = {
|
|
1120
1120
|
command: "search meetings",
|
|
1121
1121
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1235,7 +1235,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
1235
1235
|
return { version: 1, language: "lucene-v1", root };
|
|
1236
1236
|
}, "meetingWordsQuery");
|
|
1237
1237
|
|
|
1238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1239
1239
|
var LATIN_WORDS = {
|
|
1240
1240
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1241
1241
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -1284,7 +1284,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1284
1284
|
return null;
|
|
1285
1285
|
}, "transcriptLanguage");
|
|
1286
1286
|
|
|
1287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1288
1288
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
1289
1289
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
1290
1290
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1321,7 +1321,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1321
1321
|
return time2;
|
|
1322
1322
|
}, "timestamp");
|
|
1323
1323
|
|
|
1324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1325
1325
|
var TranscriptTextError = class extends Error {
|
|
1326
1326
|
static {
|
|
1327
1327
|
__name(this, "TranscriptTextError");
|
|
@@ -1376,7 +1376,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1376
1376
|
return { header, lines };
|
|
1377
1377
|
}, "parseTranscriptText");
|
|
1378
1378
|
|
|
1379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1380
1380
|
var VttError = class extends Error {
|
|
1381
1381
|
static {
|
|
1382
1382
|
__name(this, "VttError");
|
|
@@ -1428,7 +1428,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1428
1428
|
return cues;
|
|
1429
1429
|
}, "parseVtt");
|
|
1430
1430
|
|
|
1431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1432
1432
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1433
1433
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1434
1434
|
for (const file of files) {
|
|
@@ -1461,10 +1461,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
1461
1461
|
return report;
|
|
1462
1462
|
}, "importFiles");
|
|
1463
1463
|
|
|
1464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
1465
1465
|
var CHAT_MESSAGES_READ = 1e5;
|
|
1466
1466
|
|
|
1467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
1468
1468
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
1469
1469
|
const provider = scope2?.provider;
|
|
1470
1470
|
const account = scope2?.account;
|
|
@@ -1473,7 +1473,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
1473
1473
|
return Object.freeze({ provider, account });
|
|
1474
1474
|
}, "snapshotMeetingScope");
|
|
1475
1475
|
|
|
1476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1477
1477
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1478
1478
|
if (typeof value !== "string" || !value.trim())
|
|
1479
1479
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1539,7 +1539,7 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
|
|
|
1539
1539
|
return { applied: true, value: await dispatch(signal) };
|
|
1540
1540
|
}, "dispatchMeetingMutation");
|
|
1541
1541
|
|
|
1542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1543
1543
|
var id = /* @__PURE__ */ __name((value) => {
|
|
1544
1544
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
1545
1545
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
@@ -1661,7 +1661,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
|
|
|
1661
1661
|
};
|
|
1662
1662
|
}, "createMeetingContext");
|
|
1663
1663
|
|
|
1664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
1665
1665
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
1666
1666
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
1667
1667
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -1686,7 +1686,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
1686
1686
|
return { ...input, limit, maxReadBytes };
|
|
1687
1687
|
}, "validateMeetingPreparationContext");
|
|
1688
1688
|
|
|
1689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
1690
1690
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1691
1691
|
var id2 = pipe(string(), minLength(1));
|
|
1692
1692
|
var meetingProjectEvidence = strictObject({
|
|
@@ -1807,7 +1807,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
1807
1807
|
};
|
|
1808
1808
|
}, "meetingProjectEvidenceAnswer");
|
|
1809
1809
|
|
|
1810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
1811
1811
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
1812
1812
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
1813
1813
|
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) || [
|
|
@@ -1827,7 +1827,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
1827
1827
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
1828
1828
|
}, "validateMeetingHitSearch");
|
|
1829
1829
|
|
|
1830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
1831
1831
|
var ids = {
|
|
1832
1832
|
meeting_id: "meetingId",
|
|
1833
1833
|
identity_id: "participantIdentityId",
|
|
@@ -1918,7 +1918,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
1918
1918
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
1919
1919
|
}, "prepareMeetingProjectEvidence");
|
|
1920
1920
|
|
|
1921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
1922
1922
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
1923
1923
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
1924
1924
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -1926,7 +1926,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
1926
1926
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
1927
1927
|
}, "readMeetingProjectEvidence");
|
|
1928
1928
|
|
|
1929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
1930
1930
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
1931
1931
|
const { identityExternalId, ...fields2 } = p;
|
|
1932
1932
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2088,7 +2088,7 @@ unlinked`, format)],
|
|
|
2088
2088
|
return report;
|
|
2089
2089
|
}, "pull");
|
|
2090
2090
|
|
|
2091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2092
2092
|
var text4 = string();
|
|
2093
2093
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2094
2094
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -2282,10 +2282,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2282
2282
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2283
2283
|
}), "eventItem");
|
|
2284
2284
|
|
|
2285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2286
2286
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2287
2287
|
|
|
2288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2289
2289
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2290
2290
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2291
2291
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2315,7 +2315,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2315
2315
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2316
2316
|
}, "validateMeetingRelatedHistory");
|
|
2317
2317
|
|
|
2318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2319
2319
|
var text5 = string();
|
|
2320
2320
|
var identifier = pipe(text5, minLength(1));
|
|
2321
2321
|
var nullableText = nullable(text5);
|
|
@@ -2448,14 +2448,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2448
2448
|
meeting_repair: repair
|
|
2449
2449
|
};
|
|
2450
2450
|
|
|
2451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2452
2452
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2453
2453
|
|
|
2454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2455
2455
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2456
2456
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2457
2457
|
|
|
2458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2459
2459
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2460
2460
|
input.signal?.throwIfAborted();
|
|
2461
2461
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2476,10 +2476,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2476
2476
|
return { ...input, limit, maxReadBytes };
|
|
2477
2477
|
}, "validateMeetingSeriesHistory");
|
|
2478
2478
|
|
|
2479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2480
2480
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2481
2481
|
|
|
2482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2483
2483
|
function invalid4(field, response = false) {
|
|
2484
2484
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2485
2485
|
}
|
|
@@ -2508,7 +2508,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2508
2508
|
cursorDetails(value);
|
|
2509
2509
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2510
2510
|
|
|
2511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2512
2512
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
2513
2513
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2514
2514
|
const zone = timeZone ?? "UTC";
|
|
@@ -2643,7 +2643,158 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2643
2643
|
};
|
|
2644
2644
|
}, "aggregateMeetingStats");
|
|
2645
2645
|
|
|
2646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
2647
|
+
var CURRENCY_SCALES = {
|
|
2648
|
+
AED: 2,
|
|
2649
|
+
AMD: 2,
|
|
2650
|
+
AUD: 2,
|
|
2651
|
+
BHD: 3,
|
|
2652
|
+
BYN: 2,
|
|
2653
|
+
CAD: 2,
|
|
2654
|
+
CHF: 2,
|
|
2655
|
+
CLP: 0,
|
|
2656
|
+
CNY: 2,
|
|
2657
|
+
CZK: 2,
|
|
2658
|
+
DKK: 2,
|
|
2659
|
+
EUR: 2,
|
|
2660
|
+
GBP: 2,
|
|
2661
|
+
GEL: 2,
|
|
2662
|
+
HUF: 2,
|
|
2663
|
+
ILS: 2,
|
|
2664
|
+
INR: 2,
|
|
2665
|
+
ISK: 0,
|
|
2666
|
+
JPY: 0,
|
|
2667
|
+
KGS: 2,
|
|
2668
|
+
KRW: 0,
|
|
2669
|
+
KWD: 3,
|
|
2670
|
+
KZT: 2,
|
|
2671
|
+
NOK: 2,
|
|
2672
|
+
PLN: 2,
|
|
2673
|
+
RSD: 2,
|
|
2674
|
+
RUB: 2,
|
|
2675
|
+
SEK: 2,
|
|
2676
|
+
THB: 2,
|
|
2677
|
+
TRY: 2,
|
|
2678
|
+
UAH: 2,
|
|
2679
|
+
USD: 2,
|
|
2680
|
+
UZS: 2,
|
|
2681
|
+
VND: 0
|
|
2682
|
+
};
|
|
2683
|
+
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
2684
|
+
throw new CliError("validation_error", message, { reason });
|
|
2685
|
+
}, "refuse");
|
|
2686
|
+
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
2687
|
+
var parseDecimal = /* @__PURE__ */ __name((text7, scale) => {
|
|
2688
|
+
const match = DECIMAL.exec(text7.trim());
|
|
2689
|
+
if (!match || (match[2] ?? "").length > scale)
|
|
2690
|
+
return void 0;
|
|
2691
|
+
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
2692
|
+
}, "parseDecimal");
|
|
2693
|
+
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
2694
|
+
const value = BigInt(units);
|
|
2695
|
+
if (value < 0n)
|
|
2696
|
+
return `-${formatDecimal(-value, scale)}`;
|
|
2697
|
+
const digits = value.toString().padStart(scale + 1, "0");
|
|
2698
|
+
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
2699
|
+
}, "formatDecimal");
|
|
2700
|
+
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
2701
|
+
const [whole = "0", fraction] = decimal.split(".");
|
|
2702
|
+
const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
2703
|
+
return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
|
|
2704
|
+
}, "groupDigits");
|
|
2705
|
+
var currencyOf = /* @__PURE__ */ __name((text7) => {
|
|
2706
|
+
const code = typeof text7 === "string" ? text7.trim().toUpperCase() : "";
|
|
2707
|
+
if (CURRENCY_SCALES[code] === void 0)
|
|
2708
|
+
return refuse(`${typeof text7 === "string" && text7.trim() ? text7.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
2709
|
+
return code;
|
|
2710
|
+
}, "currencyOf");
|
|
2711
|
+
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
2712
|
+
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
2713
|
+
const scale = scaleOf(currency);
|
|
2714
|
+
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
2715
|
+
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
2716
|
+
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
2717
|
+
return Number(units);
|
|
2718
|
+
}, "minorUnits");
|
|
2719
|
+
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
2720
|
+
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
2721
|
+
return minorUnits(amount, currency, what);
|
|
2722
|
+
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
2723
|
+
return units === 0 ? 0 : -units;
|
|
2724
|
+
}, "signedMinorUnits");
|
|
2725
|
+
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
2726
|
+
amount: formatDecimal(units, scaleOf(currency)),
|
|
2727
|
+
currency
|
|
2728
|
+
}), "moneyOf");
|
|
2729
|
+
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
2730
|
+
var QUANTITY_SCALE = 3;
|
|
2731
|
+
var quantityOf = /* @__PURE__ */ __name((text7) => {
|
|
2732
|
+
const thousandths = typeof text7 === "string" ? parseDecimal(text7, QUANTITY_SCALE) : void 0;
|
|
2733
|
+
if (thousandths === void 0 || thousandths === 0n)
|
|
2734
|
+
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
2735
|
+
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
2736
|
+
return { text: plain, thousandths };
|
|
2737
|
+
}, "quantityOf");
|
|
2738
|
+
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
2739
|
+
|
|
2740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
2741
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
2742
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
2743
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
2744
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
2745
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
2746
|
+
if (current === "draft" || current === "void")
|
|
2747
|
+
return current;
|
|
2748
|
+
if (paid <= 0)
|
|
2749
|
+
return "issued";
|
|
2750
|
+
return paid < total ? "partly_paid" : "paid";
|
|
2751
|
+
}, "settledStatus");
|
|
2752
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
2753
|
+
var notes = /* @__PURE__ */ __name((...words2) => {
|
|
2754
|
+
const kept = words2.filter((word) => word !== null);
|
|
2755
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
2756
|
+
}, "notes");
|
|
2757
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
2758
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
2759
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
2760
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
2761
|
+
}, "invoiceLine");
|
|
2762
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
2763
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
2764
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
2765
|
+
}, "paymentLine");
|
|
2766
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
2767
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
2768
|
+
|
|
2769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
2770
|
+
var CATALOG_KINDS = ["product", "service"];
|
|
2771
|
+
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
2772
|
+
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
2773
|
+
var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
|
|
2774
|
+
var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
|
|
2775
|
+
var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
|
|
2776
|
+
var TRANSACTION_STATUSES = ["pending", "booked"];
|
|
2777
|
+
var ORDER_DIRECTIONS = ["purchase", "sale"];
|
|
2778
|
+
var intervalOf = /* @__PURE__ */ __name((text7, reason = "subscription.interval") => {
|
|
2779
|
+
const match = typeof text7 === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text7.trim()) : null;
|
|
2780
|
+
if (!match)
|
|
2781
|
+
throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
|
|
2782
|
+
return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
|
|
2783
|
+
}, "intervalOf");
|
|
2784
|
+
var intervalText = /* @__PURE__ */ __name(({ count: count7, unit }) => `${count7}-${unit}`, "intervalText");
|
|
2785
|
+
var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
|
|
2786
|
+
var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
|
|
2787
|
+
var productLine = /* @__PURE__ */ __name((product) => {
|
|
2788
|
+
const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
|
|
2789
|
+
const per = price && product.unit !== null ? ` per ${product.unit}` : "";
|
|
2790
|
+
return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
|
|
2791
|
+
}, "productLine");
|
|
2792
|
+
var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
|
|
2793
|
+
var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
|
|
2794
|
+
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
2795
|
+
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");
|
|
2796
|
+
|
|
2797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2647
2798
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2648
2799
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2649
2800
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -2658,7 +2809,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2658
2809
|
}
|
|
2659
2810
|
__name(closeTask, "closeTask");
|
|
2660
2811
|
|
|
2661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2662
2813
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2663
2814
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2664
2815
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -2687,7 +2838,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
2687
2838
|
}, "priorityOf");
|
|
2688
2839
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
2689
2840
|
|
|
2690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2691
2842
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2692
2843
|
async function find(id5) {
|
|
2693
2844
|
const task = await store.get(id5);
|
|
@@ -2747,13 +2898,13 @@ function median(values) {
|
|
|
2747
2898
|
}
|
|
2748
2899
|
__name(median, "median");
|
|
2749
2900
|
|
|
2750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2751
2902
|
function matches(task, filter) {
|
|
2752
2903
|
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);
|
|
2753
2904
|
}
|
|
2754
2905
|
__name(matches, "matches");
|
|
2755
2906
|
|
|
2756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2757
2908
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
2758
2909
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
2759
2910
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -2761,7 +2912,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
2761
2912
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
2762
2913
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
2763
2914
|
|
|
2764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
2765
2916
|
var text6 = string();
|
|
2766
2917
|
var id4 = pipe(string(), minLength(1));
|
|
2767
2918
|
var time = isoTime;
|
|
@@ -2785,7 +2936,7 @@ var author = strictObject({
|
|
|
2785
2936
|
name: nullable(text6)
|
|
2786
2937
|
});
|
|
2787
2938
|
|
|
2788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
2789
2940
|
var organization = strictObject({
|
|
2790
2941
|
id: id4,
|
|
2791
2942
|
ref: reference,
|
|
@@ -2815,7 +2966,7 @@ var reminder = strictObject({
|
|
|
2815
2966
|
receipt: nullable(text6)
|
|
2816
2967
|
});
|
|
2817
2968
|
|
|
2818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
2819
2970
|
import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
2820
2971
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
2821
2972
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -2916,130 +3067,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
2916
3067
|
return { previous, cleared };
|
|
2917
3068
|
}, "recordDeepCheck");
|
|
2918
3069
|
|
|
2919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2920
|
-
var CURRENCY_SCALES = {
|
|
2921
|
-
AED: 2,
|
|
2922
|
-
AMD: 2,
|
|
2923
|
-
AUD: 2,
|
|
2924
|
-
BHD: 3,
|
|
2925
|
-
BYN: 2,
|
|
2926
|
-
CAD: 2,
|
|
2927
|
-
CHF: 2,
|
|
2928
|
-
CLP: 0,
|
|
2929
|
-
CNY: 2,
|
|
2930
|
-
CZK: 2,
|
|
2931
|
-
DKK: 2,
|
|
2932
|
-
EUR: 2,
|
|
2933
|
-
GBP: 2,
|
|
2934
|
-
GEL: 2,
|
|
2935
|
-
HUF: 2,
|
|
2936
|
-
ILS: 2,
|
|
2937
|
-
INR: 2,
|
|
2938
|
-
ISK: 0,
|
|
2939
|
-
JPY: 0,
|
|
2940
|
-
KGS: 2,
|
|
2941
|
-
KRW: 0,
|
|
2942
|
-
KWD: 3,
|
|
2943
|
-
KZT: 2,
|
|
2944
|
-
NOK: 2,
|
|
2945
|
-
PLN: 2,
|
|
2946
|
-
RSD: 2,
|
|
2947
|
-
RUB: 2,
|
|
2948
|
-
SEK: 2,
|
|
2949
|
-
THB: 2,
|
|
2950
|
-
TRY: 2,
|
|
2951
|
-
UAH: 2,
|
|
2952
|
-
USD: 2,
|
|
2953
|
-
UZS: 2,
|
|
2954
|
-
VND: 0
|
|
2955
|
-
};
|
|
2956
|
-
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
2957
|
-
throw new CliError("validation_error", message, { reason });
|
|
2958
|
-
}, "refuse");
|
|
2959
|
-
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
2960
|
-
var parseDecimal = /* @__PURE__ */ __name((text7, scale) => {
|
|
2961
|
-
const match = DECIMAL.exec(text7.trim());
|
|
2962
|
-
if (!match || (match[2] ?? "").length > scale)
|
|
2963
|
-
return void 0;
|
|
2964
|
-
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
2965
|
-
}, "parseDecimal");
|
|
2966
|
-
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
2967
|
-
const value = BigInt(units);
|
|
2968
|
-
if (value < 0n)
|
|
2969
|
-
return `-${formatDecimal(-value, scale)}`;
|
|
2970
|
-
const digits = value.toString().padStart(scale + 1, "0");
|
|
2971
|
-
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
2972
|
-
}, "formatDecimal");
|
|
2973
|
-
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
2974
|
-
const [whole = "0", fraction] = decimal.split(".");
|
|
2975
|
-
const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
2976
|
-
return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
|
|
2977
|
-
}, "groupDigits");
|
|
2978
|
-
var currencyOf = /* @__PURE__ */ __name((text7) => {
|
|
2979
|
-
const code = typeof text7 === "string" ? text7.trim().toUpperCase() : "";
|
|
2980
|
-
if (CURRENCY_SCALES[code] === void 0)
|
|
2981
|
-
return refuse(`${typeof text7 === "string" && text7.trim() ? text7.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
2982
|
-
return code;
|
|
2983
|
-
}, "currencyOf");
|
|
2984
|
-
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
2985
|
-
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
2986
|
-
const scale = scaleOf(currency);
|
|
2987
|
-
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
2988
|
-
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
2989
|
-
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
2990
|
-
return Number(units);
|
|
2991
|
-
}, "minorUnits");
|
|
2992
|
-
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
2993
|
-
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
2994
|
-
return minorUnits(amount, currency, what);
|
|
2995
|
-
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
2996
|
-
return units === 0 ? 0 : -units;
|
|
2997
|
-
}, "signedMinorUnits");
|
|
2998
|
-
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
2999
|
-
amount: formatDecimal(units, scaleOf(currency)),
|
|
3000
|
-
currency
|
|
3001
|
-
}), "moneyOf");
|
|
3002
|
-
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
3003
|
-
var QUANTITY_SCALE = 3;
|
|
3004
|
-
var quantityOf = /* @__PURE__ */ __name((text7) => {
|
|
3005
|
-
const thousandths = typeof text7 === "string" ? parseDecimal(text7, QUANTITY_SCALE) : void 0;
|
|
3006
|
-
if (thousandths === void 0 || thousandths === 0n)
|
|
3007
|
-
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
3008
|
-
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
3009
|
-
return { text: plain, thousandths };
|
|
3010
|
-
}, "quantityOf");
|
|
3011
|
-
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3012
|
-
|
|
3013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3014
|
-
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3015
|
-
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3016
|
-
var MONEY_DIRECTIONS = ["in", "out"];
|
|
3017
|
-
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
3018
|
-
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
3019
|
-
if (current === "draft" || current === "void")
|
|
3020
|
-
return current;
|
|
3021
|
-
if (paid <= 0)
|
|
3022
|
-
return "issued";
|
|
3023
|
-
return paid < total ? "partly_paid" : "paid";
|
|
3024
|
-
}, "settledStatus");
|
|
3025
|
-
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
3026
|
-
var notes = /* @__PURE__ */ __name((...words2) => {
|
|
3027
|
-
const kept = words2.filter((word) => word !== null);
|
|
3028
|
-
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
3029
|
-
}, "notes");
|
|
3030
|
-
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
3031
|
-
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
3032
|
-
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
3033
|
-
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
3034
|
-
}, "invoiceLine");
|
|
3035
|
-
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
3036
|
-
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
3037
|
-
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
3038
|
-
}, "paymentLine");
|
|
3039
|
-
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3040
|
-
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3041
|
-
|
|
3042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
3070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
3043
3071
|
var DEAL_KINDS = ["deal", "lead"];
|
|
3044
3072
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
3045
3073
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -3049,7 +3077,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
3049
3077
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
3050
3078
|
}, "dealLine");
|
|
3051
3079
|
|
|
3052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3053
3081
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3054
3082
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3055
3083
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -3059,7 +3087,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
3059
3087
|
}, "orderLine");
|
|
3060
3088
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3061
3089
|
|
|
3062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
3063
3091
|
var ORGANIZATION_ROLES = [
|
|
3064
3092
|
"employee",
|
|
3065
3093
|
"contractor",
|
|
@@ -3134,7 +3162,7 @@ var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" ||
|
|
|
3134
3162
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE 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");
|
|
3135
3163
|
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");
|
|
3136
3164
|
|
|
3137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3138
3166
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3139
3167
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3140
3168
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3148,7 +3176,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
3148
3176
|
return tag;
|
|
3149
3177
|
}, "normalizeTag");
|
|
3150
3178
|
|
|
3151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
3152
3180
|
var LINK_KINDS = [
|
|
3153
3181
|
"links-to",
|
|
3154
3182
|
"blocked-by",
|
|
@@ -3275,12 +3303,24 @@ export {
|
|
|
3275
3303
|
MONEY_DIRECTIONS,
|
|
3276
3304
|
FINANCE_REVIEWS,
|
|
3277
3305
|
settledStatus,
|
|
3278
|
-
dayMonth,
|
|
3279
|
-
notes,
|
|
3280
3306
|
invoiceLine,
|
|
3281
3307
|
paymentLine,
|
|
3282
3308
|
invoiceTitle,
|
|
3283
3309
|
paymentEntryTitle,
|
|
3310
|
+
CATALOG_KINDS,
|
|
3311
|
+
BUSINESS_KINDS,
|
|
3312
|
+
CONTRACT_KINDS,
|
|
3313
|
+
CONTRACT_STATUSES,
|
|
3314
|
+
SUBSCRIPTION_STATUSES,
|
|
3315
|
+
WALLET_KINDS,
|
|
3316
|
+
TRANSACTION_STATUSES,
|
|
3317
|
+
ORDER_DIRECTIONS,
|
|
3318
|
+
intervalOf,
|
|
3319
|
+
productLine,
|
|
3320
|
+
contractLine,
|
|
3321
|
+
subscriptionLine,
|
|
3322
|
+
walletLine,
|
|
3323
|
+
transactionLine,
|
|
3284
3324
|
DEAL_KINDS,
|
|
3285
3325
|
DEAL_STATUSES,
|
|
3286
3326
|
STAGE_OUTCOMES,
|