@wirecat/drive-cli 0.65.0 → 0.66.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/contracts/wirecat.json +2871 -0
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/browse.d.ts +1 -1
- package/dist/browse.d.ts.map +1 -1
- package/dist/browse.js +1 -1
- package/dist/bundle/{all-profiles-PD7GJHFA.js → all-profiles-WCQLIHUG.js} +14 -14
- package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-5RJMB6O7.js} +20 -13
- package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-3RGYXPKG.js} +67 -56
- package/dist/bundle/{bun-P54TGES2.js → bun-L34VEKGG.js} +2 -2
- package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-H6IAXQXI.js} +9 -9
- package/dist/bundle/{chunk-VHQYWFWV.js → chunk-2AF77WMH.js} +1 -1
- package/dist/bundle/{chunk-CWLL63JD.js → chunk-2S3E2HVV.js} +17 -17
- package/dist/bundle/{chunk-I272E6UR.js → chunk-3NYH756U.js} +49 -117
- package/dist/bundle/{chunk-UTNRBOEN.js → chunk-3QFUDXMQ.js} +2 -2
- package/dist/bundle/{chunk-RNHGQ35R.js → chunk-3SDJIMZB.js} +1 -1
- package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-4UHBJSMI.js} +22086 -29123
- package/dist/bundle/{chunk-OWMZUWCM.js → chunk-5HVJK3ZJ.js} +6 -14
- package/dist/bundle/chunk-5K54RZBK.js +70 -0
- package/dist/bundle/{chunk-SIWXYB4E.js → chunk-5PLINHEY.js} +2987 -2717
- package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-5VDVGDOC.js} +1 -1
- package/dist/bundle/{chunk-B2LPCHQN.js → chunk-5XLU4NN6.js} +4 -4
- package/dist/bundle/{chunk-5XSBCMAF.js → chunk-6UJCCOZC.js} +4 -4
- package/dist/bundle/{chunk-7AQGVX5O.js → chunk-6X3KUFRQ.js} +60 -29
- package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-7EP4AU6A.js} +3 -3
- package/dist/bundle/{chunk-GW3LBY3T.js → chunk-7LT2G5BC.js} +146 -133
- package/dist/bundle/{chunk-ZILALBYQ.js → chunk-7ZGJRVBH.js} +7 -5
- package/dist/bundle/{chunk-PLP5527C.js → chunk-ALE67WRR.js} +5 -5
- package/dist/bundle/{chunk-EHU6EYGO.js → chunk-AP4MX247.js} +12 -12
- package/dist/bundle/{chunk-NI5PD5KM.js → chunk-BIJW6AYA.js} +14124 -12049
- package/dist/bundle/{chunk-54V4H6PM.js → chunk-BQXSE645.js} +12 -12
- package/dist/bundle/{chunk-EM7NL5ES.js → chunk-COGWKO2T.js} +3 -3
- package/dist/bundle/{chunk-II4S2DBJ.js → chunk-D4MIMH2N.js} +12 -6
- package/dist/bundle/{chunk-42G2XNPN.js → chunk-D7KOAPG6.js} +2 -2
- package/dist/bundle/{chunk-NQRTKYJB.js → chunk-E2F2XIX6.js} +47 -80
- package/dist/bundle/{chunk-VDZY3L7U.js → chunk-FA2TNA5X.js} +1 -1
- package/dist/bundle/{chunk-A4QNADEX.js → chunk-FHBTQPA3.js} +49 -49
- package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-FKKPVPZR.js} +196 -112
- package/dist/bundle/{chunk-2AFI4KGI.js → chunk-G4TNKBDX.js} +7 -7
- package/dist/bundle/{chunk-ECEP4SO3.js → chunk-GVA3KTCD.js} +10 -10
- package/dist/bundle/{chunk-PHOL2DZM.js → chunk-GY4DAJSK.js} +34 -5
- package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-H7XL6WTW.js} +2 -2
- package/dist/bundle/{chunk-SE352DBY.js → chunk-HHRJPLFO.js} +1 -1
- package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-HPKE2GDP.js} +45 -22
- package/dist/bundle/{chunk-D7WB54P7.js → chunk-HPSHQVJU.js} +540 -456
- package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-HQBLJLYH.js} +7 -7
- package/dist/bundle/{chunk-IMHW7VIV.js → chunk-I5R5CMQR.js} +5 -5
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-IIHZTV6V.js} +1 -1
- package/dist/bundle/{chunk-M7ELUGU6.js → chunk-IRNDYNQX.js} +4 -4
- package/dist/bundle/{chunk-TTP4NOP3.js → chunk-JCHF7LZT.js} +4 -4
- package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-JHMEETXI.js} +2 -2
- package/dist/bundle/{chunk-4EDWLR22.js → chunk-JLCR24UM.js} +1 -1
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-JQXK3M5M.js} +1 -1
- package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-KOY5HUBY.js} +14 -5
- package/dist/bundle/{chunk-IBO23OID.js → chunk-KRG5X5PH.js} +2 -2
- package/dist/bundle/{chunk-FA6JNXCC.js → chunk-LVAPSAHF.js} +8 -8
- package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-M7543RUJ.js} +18 -15
- package/dist/bundle/{chunk-A27UVLPK.js → chunk-MZWXTJ4O.js} +3 -3
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-NK4GVFJH.js} +4 -4
- package/dist/bundle/chunk-NYECVHFH.js +10283 -0
- package/dist/bundle/{chunk-W2XY6C5S.js → chunk-NYZS2LKF.js} +2 -2
- package/dist/bundle/{chunk-4AOINPN2.js → chunk-O53WLYX3.js} +8 -2
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
- package/dist/bundle/{chunk-SS4LKLD7.js → chunk-OT7SQQJK.js} +371 -362
- package/dist/bundle/chunk-OZOQLAWK.js +72 -0
- package/dist/bundle/{chunk-DA63E2UM.js → chunk-P7HQFII6.js} +18 -15
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
- package/dist/bundle/{chunk-F56DRBGY.js → chunk-PKM55ZRR.js} +75 -20
- package/dist/bundle/{chunk-SNLSEYJO.js → chunk-PUMDOCAF.js} +1 -1
- package/dist/bundle/{chunk-LMKPP2JP.js → chunk-QF7VL4C3.js} +1 -1
- package/dist/bundle/{chunk-D6Z43SOG.js → chunk-QJ57PV55.js} +383 -361
- package/dist/bundle/{chunk-EU5MD24W.js → chunk-QSELSDWE.js} +13 -13
- package/dist/bundle/{chunk-TMHF4BCL.js → chunk-SOOU5WO6.js} +2 -2
- package/dist/bundle/{chunk-3ONWN3IA.js → chunk-SZ6JFOL4.js} +137 -45
- package/dist/bundle/{chunk-WVJHZIDH.js → chunk-T3ULDA7C.js} +3 -3
- package/dist/bundle/{chunk-XYE7XZPB.js → chunk-TAHISPDE.js} +5 -5
- package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-TYLEICTX.js} +3 -3
- package/dist/bundle/{chunk-Y5PKRITX.js → chunk-UAKX6DP4.js} +5 -5
- package/dist/bundle/{chunk-VLXWAH5E.js → chunk-UG3GHFGY.js} +4 -4
- package/dist/bundle/{chunk-X7YGGWXI.js → chunk-ULXEW6FT.js} +3 -2
- package/dist/bundle/{chunk-JPPPLKAO.js → chunk-UNTIVT47.js} +1 -2
- package/dist/bundle/{chunk-SEQWBZYH.js → chunk-UQPW42HF.js} +1 -1
- package/dist/bundle/{chunk-JMJIH6JH.js → chunk-V2WXTILT.js} +6 -6
- package/dist/bundle/{chunk-TOVWMURV.js → chunk-VQKNKJYL.js} +22 -7
- package/dist/bundle/{chunk-OFJXHEFT.js → chunk-VR3YKXHL.js} +93 -31
- package/dist/bundle/{chunk-VMAMRFFC.js → chunk-VUUPFDRU.js} +26 -27
- package/dist/bundle/{chunk-FBHSWQU7.js → chunk-WYTYHUFH.js} +319 -102
- package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-XLGDNI4S.js} +1 -1
- package/dist/bundle/{chunk-O6K2E7OA.js → chunk-XVZNFA2P.js} +1507 -1107
- package/dist/bundle/chunk-Y5U4HIZS.js +71 -0
- package/dist/bundle/chunk-YTIPTHEE.js +47 -0
- package/dist/bundle/cli-KW6QQVS5.js +1101 -0
- package/dist/bundle/command-contract-CE543JBN.js +41 -0
- package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-OC4E4DED.js} +31 -30
- package/dist/bundle/{decode-T5ZW57WZ.js → decode-AH5ZLLDK.js} +8 -8
- package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-CDWZZ54Q.js} +9 -9
- package/dist/bundle/drive.js +13 -13
- package/dist/bundle/{echarts-KQ44LPSF.js → echarts-VC7MTXWY.js} +2 -2
- package/dist/bundle/{embed-Q7XST53J.js → embed-EPSQY6QG.js} +9 -9
- package/dist/bundle/{embedder-RWZSBVW2.js → embedder-TK4U4TJR.js} +12 -12
- package/dist/bundle/entry-3VN23M7M.js +25 -0
- package/dist/bundle/{failure-7NP4QPIN.js → failure-WSVZOPFE.js} +4 -4
- package/dist/bundle/first-run-7ZYJ7EB3.js +30 -0
- package/dist/bundle/first-screen-CZDH7QY3.js +39 -0
- package/dist/bundle/google-OBZMWA7J.js +45 -0
- package/dist/bundle/{google-api-P5DRHD7L.js → google-api-AV4X2JH3.js} +68 -63
- package/dist/bundle/grants-WTRLN4ZI.js +111 -0
- package/dist/bundle/{identity-VDV6CHRW.js → identity-CGHHF7AK.js} +8 -6
- package/dist/bundle/{instructions-Q45FVY6H.js → instructions-24PHDBBE.js} +1 -1
- package/dist/bundle/{login-XKN3NI6X.js → login-XHFESAFM.js} +73 -70
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
- package/dist/bundle/{node-MSW565D3.js → node-GIDULTV5.js} +2 -2
- package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-LINBOAWK.js} +10 -10
- package/dist/bundle/oauth-JHUX3KE3.js +22 -0
- package/dist/bundle/{open-P7UQG7XJ.js → open-RYFKPNCJ.js} +8 -8
- package/dist/bundle/{openai-DDHJ57KZ.js → openai-Q7YYUHJF.js} +28 -21
- package/dist/bundle/{process-NMUB5SHK.js → process-VPIZTIJR.js} +1 -1
- package/dist/bundle/{program-PJNWP6JW.js → program-IUXFRBZA.js} +213 -555
- package/dist/bundle/{prompt-VOSMK4C2.js → prompt-LF4KX3XL.js} +8 -8
- package/dist/bundle/{reasons-KDAXOC5S.js → reasons-JPYOU5GV.js} +5 -5
- package/dist/bundle/{recognize-GZIY63HS.js → recognize-KEWTJXFH.js} +7 -7
- package/dist/bundle/{remote-V3YGN7LN.js → remote-HGGLB76S.js} +13 -10
- package/dist/bundle/{rerank-XRU6AVN7.js → rerank-TDUKETFT.js} +10 -10
- package/dist/bundle/{serve-NDOAFA57.js → serve-XFYMKW5W.js} +12 -12
- package/dist/bundle/server-BDEV3CZJ.js +74 -0
- package/dist/bundle/{server-BKGWJYMC.js → server-PXIPSGFP.js} +47 -45
- package/dist/bundle/{services-TYDMFQCA.js → services-2BOCGMJU.js} +44 -34
- package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-R7M5XUMW.js} +9 -9
- package/dist/bundle/{start-2ZLDP2OE.js → start-YRLT4MQZ.js} +7 -7
- package/dist/bundle/{state-6SP27J2K.js → state-NZ7WRJWH.js} +9 -9
- package/dist/bundle/{store-EJN27MXI.js → store-7LCVDO7G.js} +23 -21
- package/dist/bundle/{store-4UUY545Q.js → store-ICDGPSEN.js} +21 -19
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +65 -0
- package/dist/bundle/tokens-FGTBE7VW.js +111 -0
- package/dist/commands/discovery.d.ts +0 -1
- package/dist/commands/discovery.d.ts.map +1 -1
- package/dist/commands/discovery.js +6 -26
- package/dist/commands/discovery.js.map +1 -1
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +7 -6
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +11 -8
- package/dist/commands/search.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -2
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +16 -4
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +86 -410
- package/dist/contract-overrides.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +4 -0
- package/dist/errors.js.map +1 -1
- package/dist/google-api.d.ts.map +1 -1
- package/dist/google-api.js +4 -1
- package/dist/google-api.js.map +1 -1
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +22 -0
- package/dist/identity.js.map +1 -1
- package/dist/knowledge.js +2 -2
- package/dist/knowledge.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +2 -2
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -6
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.js.map +1 -1
- package/dist/store-transition.js +2 -2
- package/dist/store-transition.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +7 -7
- package/dist/store.js.map +1 -1
- package/dist/tokens.d.ts +9 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +18 -15
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -7
- package/dist/bundle/chunk-CGQRZRTH.js +0 -26
- package/dist/bundle/chunk-IKHOIXJR.js +0 -27
- package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
- package/dist/bundle/command-contract-25E4PYMD.js +0 -40
- package/dist/bundle/dist-PY3MVR3G.js +0 -21
- package/dist/bundle/entry-HPLW4QL2.js +0 -25
- package/dist/bundle/first-run-RL3RKYZW.js +0 -30
- package/dist/bundle/first-screen-NX3TM2VJ.js +0 -38
- package/dist/bundle/google-DPD5N6AQ.js +0 -42
- package/dist/bundle/grants-TX4MHLI4.js +0 -109
- package/dist/bundle/oauth-6R7AWAES.js +0 -22
- package/dist/bundle/server-QD2MUJJZ.js +0 -72
- package/dist/bundle/store-maintenance-command-LETURZDC.js +0 -60
- package/dist/bundle/tokens-MTFJPTYT.js +0 -107
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GVA3KTCD.js";
|
|
12
12
|
import {
|
|
13
13
|
isCliFailure,
|
|
14
14
|
isStoreDamage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-O53WLYX3.js";
|
|
16
16
|
import {
|
|
17
17
|
refuseOwnerStoreInTests
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3QFUDXMQ.js";
|
|
19
19
|
import {
|
|
20
20
|
createRecordLog,
|
|
21
21
|
resolvePaths,
|
|
22
22
|
writeSecurely
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6X3KUFRQ.js";
|
|
24
24
|
import {
|
|
25
25
|
singleLine,
|
|
26
26
|
visibleControls
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JQXK3M5M.js";
|
|
28
28
|
import {
|
|
29
29
|
traceIdOf
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NYZS2LKF.js";
|
|
31
31
|
import {
|
|
32
32
|
STEPS,
|
|
33
33
|
array,
|
|
@@ -54,25 +54,21 @@ import {
|
|
|
54
54
|
string,
|
|
55
55
|
union,
|
|
56
56
|
unknown
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-VQKNKJYL.js";
|
|
58
58
|
import {
|
|
59
59
|
CliError
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-IIHZTV6V.js";
|
|
61
61
|
import {
|
|
62
62
|
__name
|
|
63
63
|
} from "./chunk-ZVVMGPBJ.js";
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
67
|
-
import { randomBytes } from "node:crypto";
|
|
68
|
-
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
70
66
|
import { randomUUID } from "node:crypto";
|
|
71
67
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
72
68
|
import { userInfo } from "node:os";
|
|
73
69
|
import { join, sep } from "node:path";
|
|
74
70
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
76
72
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
77
73
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
78
74
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -85,7 +81,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
85
81
|
error: /* @__PURE__ */ __name((event2, message) => logger.error(logAttributes(event2), message), "error")
|
|
86
82
|
}), "snakeLogger");
|
|
87
83
|
|
|
88
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
84
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
89
85
|
var diagnostic = {
|
|
90
86
|
event: true,
|
|
91
87
|
operation: true,
|
|
@@ -159,7 +155,7 @@ var LOG_ATTRIBUTES = [
|
|
|
159
155
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
160
156
|
].sort();
|
|
161
157
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
163
159
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
164
160
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
165
161
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -526,7 +522,9 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
526
522
|
};
|
|
527
523
|
}, "metadataOf");
|
|
528
524
|
|
|
529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
526
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
527
|
+
import { randomBytes } from "node:crypto";
|
|
530
528
|
var scopes = new AsyncLocalStorage();
|
|
531
529
|
var processScope;
|
|
532
530
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -577,7 +575,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
577
575
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
578
576
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
579
577
|
|
|
580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
581
579
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
582
580
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
583
581
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -671,7 +669,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
671
669
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
672
670
|
}, "paymentTitle");
|
|
673
671
|
|
|
674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
675
673
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
676
674
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
677
675
|
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)))
|
|
@@ -684,7 +682,141 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
684
682
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
685
683
|
}, "validateMeetingPassage");
|
|
686
684
|
|
|
687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
686
|
+
var text = string();
|
|
687
|
+
var identifier = pipe(text, minLength(1));
|
|
688
|
+
var nullableText = nullable(text);
|
|
689
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
690
|
+
var flag = boolean();
|
|
691
|
+
var scope = strictObject({ provider: text, account: text });
|
|
692
|
+
var run = strictObject({
|
|
693
|
+
meetings: count,
|
|
694
|
+
participants: count,
|
|
695
|
+
transcript_rows: count,
|
|
696
|
+
summaries: count,
|
|
697
|
+
warnings: array(strictObject({ external_id: text, message: text })),
|
|
698
|
+
timezone: optional(text)
|
|
699
|
+
});
|
|
700
|
+
var exported = union([
|
|
701
|
+
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text, content: text }),
|
|
702
|
+
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text })
|
|
703
|
+
]);
|
|
704
|
+
var eventChange = strictObject({
|
|
705
|
+
action: literal("event.link"),
|
|
706
|
+
event_id: nullable(identifier),
|
|
707
|
+
expected_event_id: optional(nullable(identifier))
|
|
708
|
+
});
|
|
709
|
+
var personChange = strictObject({
|
|
710
|
+
action: literal("person.link"),
|
|
711
|
+
participant_id: identifier,
|
|
712
|
+
person_uid: text,
|
|
713
|
+
expected_person_uid: optional(nullableText),
|
|
714
|
+
target_account_ids: optional(array(identifier))
|
|
715
|
+
});
|
|
716
|
+
var eventResult = strictObject({
|
|
717
|
+
meeting_id: identifier,
|
|
718
|
+
event_id: nullable(identifier),
|
|
719
|
+
previous_event_id: nullable(identifier),
|
|
720
|
+
changed: flag
|
|
721
|
+
});
|
|
722
|
+
var personResult = strictObject({
|
|
723
|
+
meeting_id: identifier,
|
|
724
|
+
participant_id: identifier,
|
|
725
|
+
person_uid: text,
|
|
726
|
+
previous_person_uid: nullableText,
|
|
727
|
+
changed: flag,
|
|
728
|
+
proposal: optional(text)
|
|
729
|
+
});
|
|
730
|
+
var meetingChange = strictObject({
|
|
731
|
+
scope,
|
|
732
|
+
account_id: identifier,
|
|
733
|
+
meeting_id: identifier,
|
|
734
|
+
change: union([eventChange, personChange]),
|
|
735
|
+
applied: flag,
|
|
736
|
+
result: optional(union([eventResult, personResult]))
|
|
737
|
+
});
|
|
738
|
+
var recognition = strictObject({
|
|
739
|
+
engine: text,
|
|
740
|
+
model: text,
|
|
741
|
+
version: optional(text),
|
|
742
|
+
timing: optional(picklist(["fixed-windows", "recognition-segments"]))
|
|
743
|
+
});
|
|
744
|
+
var transcription = union([
|
|
745
|
+
strictObject({
|
|
746
|
+
applied: literal(false),
|
|
747
|
+
account_id: identifier,
|
|
748
|
+
external_id: text,
|
|
749
|
+
segments: count,
|
|
750
|
+
media: strictObject({
|
|
751
|
+
id: text,
|
|
752
|
+
content_hash: text,
|
|
753
|
+
size: count,
|
|
754
|
+
duration_ms: count,
|
|
755
|
+
format: text,
|
|
756
|
+
sample_rate: count,
|
|
757
|
+
channels: count,
|
|
758
|
+
recognition
|
|
759
|
+
})
|
|
760
|
+
}),
|
|
761
|
+
strictObject({
|
|
762
|
+
applied: literal(true),
|
|
763
|
+
account_id: identifier,
|
|
764
|
+
external_id: text,
|
|
765
|
+
meeting_id: identifier,
|
|
766
|
+
created: flag,
|
|
767
|
+
inserted_transcripts: count,
|
|
768
|
+
replayed_transcripts: count,
|
|
769
|
+
superseded_transcripts: count,
|
|
770
|
+
segments: count,
|
|
771
|
+
media_sha256: text,
|
|
772
|
+
engine: text,
|
|
773
|
+
model: text,
|
|
774
|
+
model_version: nullableText,
|
|
775
|
+
timing: picklist(["fixed-windows", "recognition-segments"])
|
|
776
|
+
})
|
|
777
|
+
]);
|
|
778
|
+
var embeddingModel = strictObject({ key: text, dims: count, kind: picklist(["local", "remote"]), model: text });
|
|
779
|
+
var embedding = union([
|
|
780
|
+
strictObject({
|
|
781
|
+
account_id: identifier,
|
|
782
|
+
model: embeddingModel,
|
|
783
|
+
status: strictObject({ chunks: count, embedded: count }),
|
|
784
|
+
applied: literal(false),
|
|
785
|
+
scope: literal("existing-current-chunks"),
|
|
786
|
+
rebuild_required: literal("explicit")
|
|
787
|
+
}),
|
|
788
|
+
strictObject({
|
|
789
|
+
account_id: identifier,
|
|
790
|
+
model: embeddingModel,
|
|
791
|
+
saved: count,
|
|
792
|
+
skipped: count,
|
|
793
|
+
has_more: flag,
|
|
794
|
+
next_hash: optional(text),
|
|
795
|
+
applied: literal(true),
|
|
796
|
+
rebuild: strictObject({
|
|
797
|
+
transcripts: count,
|
|
798
|
+
chunks: count,
|
|
799
|
+
has_more: flag,
|
|
800
|
+
next_transcript_id: optional(identifier)
|
|
801
|
+
})
|
|
802
|
+
})
|
|
803
|
+
]);
|
|
804
|
+
var repair = strictObject({
|
|
805
|
+
account_id: identifier,
|
|
806
|
+
applied: flag,
|
|
807
|
+
transcripts: count,
|
|
808
|
+
languages: array(strictObject({ language: nullableText, transcripts: count }))
|
|
809
|
+
});
|
|
810
|
+
var MEETING_RESULT_ENTITIES = {
|
|
811
|
+
meeting_ingestion: run,
|
|
812
|
+
meeting_export: exported,
|
|
813
|
+
meeting_association: meetingChange,
|
|
814
|
+
meeting_transcription: transcription,
|
|
815
|
+
meeting_embedding: embedding,
|
|
816
|
+
meeting_repair: repair
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
688
820
|
var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
689
821
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
690
822
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -721,9 +853,9 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
721
853
|
}, "parseMeetingReference");
|
|
722
854
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
723
855
|
|
|
724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
725
|
-
var
|
|
726
|
-
var
|
|
856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
857
|
+
var text2 = string();
|
|
858
|
+
var count2 = pipe(number(), integer(), minValue(0));
|
|
727
859
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
728
860
|
var meetingIssuesOf = /* @__PURE__ */ __name((metadata) => {
|
|
729
861
|
const listed2 = metadata?.issues;
|
|
@@ -732,18 +864,18 @@ var meetingIssuesOf = /* @__PURE__ */ __name((metadata) => {
|
|
|
732
864
|
var meeting = strictObject({
|
|
733
865
|
ref: reference,
|
|
734
866
|
id: pipe(string(), minLength(1)),
|
|
735
|
-
provider:
|
|
736
|
-
account:
|
|
737
|
-
title: nullable(
|
|
738
|
-
description: optional(nullable(
|
|
739
|
-
location: optional(nullable(
|
|
867
|
+
provider: text2,
|
|
868
|
+
account: text2,
|
|
869
|
+
title: nullable(text2),
|
|
870
|
+
description: optional(nullable(text2)),
|
|
871
|
+
location: optional(nullable(text2)),
|
|
740
872
|
/** The link that joins it. */
|
|
741
|
-
url: nullable(
|
|
873
|
+
url: nullable(text2),
|
|
742
874
|
started_at: nullable(isoTime),
|
|
743
875
|
ended_at: nullable(isoTime),
|
|
744
|
-
duration_ms: nullable(
|
|
745
|
-
timezone: optional(nullable(
|
|
746
|
-
participants_count: nullable(
|
|
876
|
+
duration_ms: nullable(count2),
|
|
877
|
+
timezone: optional(nullable(text2)),
|
|
878
|
+
participants_count: nullable(count2),
|
|
747
879
|
/** Present only when something about this meeting is doubtful. */
|
|
748
880
|
issues: optional(array(picklist(MEETING_ISSUES))),
|
|
749
881
|
created_at: isoTime,
|
|
@@ -786,9 +918,9 @@ var MEETING_QUERY = {
|
|
|
786
918
|
})
|
|
787
919
|
};
|
|
788
920
|
|
|
789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
790
|
-
var
|
|
791
|
-
var
|
|
921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
922
|
+
var text3 = string();
|
|
923
|
+
var count3 = pipe(number(), integer(), minValue(0));
|
|
792
924
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
793
925
|
var meetingHit = strictObject({
|
|
794
926
|
/** The cue for a transcript passage, else the meeting. */
|
|
@@ -797,38 +929,38 @@ var meetingHit = strictObject({
|
|
|
797
929
|
scope: picklist(["transcript", "chat", "summary"]),
|
|
798
930
|
/** The stored line, so two passages of one meeting stay apart. */
|
|
799
931
|
id: pipe(string(), minLength(1)),
|
|
800
|
-
excerpt:
|
|
932
|
+
excerpt: text3,
|
|
801
933
|
/** How far into the meeting the passage is. */
|
|
802
|
-
offset_ms: nullable(
|
|
934
|
+
offset_ms: nullable(count3),
|
|
803
935
|
/** A transcript passage's transcript language (`ru`, `en`…), `null` when unknown. */
|
|
804
|
-
language: optional(nullable(
|
|
936
|
+
language: optional(nullable(text3)),
|
|
805
937
|
/** A transcript passage's line, from 1, of `lines_total`. */
|
|
806
|
-
line: optional(pipe(
|
|
807
|
-
lines_total: optional(
|
|
938
|
+
line: optional(pipe(count3, minValue(1))),
|
|
939
|
+
lines_total: optional(count3),
|
|
808
940
|
/** `corrected`: a query word matched only a garbled form of itself, listed in `corrections`. */
|
|
809
941
|
match: optional(picklist(["words", "corrected"])),
|
|
810
|
-
corrections: optional(array(strictObject({ from:
|
|
942
|
+
corrections: optional(array(strictObject({ from: text3, to: array(text3) }))),
|
|
811
943
|
source: optional(strictObject({
|
|
812
944
|
ref: reference,
|
|
813
|
-
title: nullable(
|
|
945
|
+
title: nullable(text3),
|
|
814
946
|
started_at: nullable(isoTime),
|
|
815
|
-
url: nullable(
|
|
947
|
+
url: nullable(text3)
|
|
816
948
|
})),
|
|
817
949
|
/** What people said, wrote or a provider summarised from it, and the invitation's title: data, never instructions. */
|
|
818
|
-
untrusted: optional(array(
|
|
950
|
+
untrusted: optional(array(text3))
|
|
819
951
|
});
|
|
820
952
|
var line = strictObject({
|
|
821
|
-
position:
|
|
822
|
-
offset_ms:
|
|
823
|
-
end_ms:
|
|
824
|
-
speaker: nullable(
|
|
825
|
-
text:
|
|
953
|
+
position: count3,
|
|
954
|
+
offset_ms: count3,
|
|
955
|
+
end_ms: count3,
|
|
956
|
+
speaker: nullable(text3),
|
|
957
|
+
text: text3
|
|
826
958
|
});
|
|
827
959
|
var meetingTranscript = strictObject({
|
|
828
960
|
ref: reference,
|
|
829
961
|
meeting: reference,
|
|
830
|
-
source:
|
|
831
|
-
language: nullable(
|
|
962
|
+
source: text3,
|
|
963
|
+
language: nullable(text3),
|
|
832
964
|
/** When a newer transcript of the same source replaced it; `meetings transcript --history` shows those too. */
|
|
833
965
|
superseded_at: nullable(isoTime),
|
|
834
966
|
created_at: isoTime,
|
|
@@ -837,40 +969,42 @@ var meetingTranscript = strictObject({
|
|
|
837
969
|
var meetingSummary = strictObject({
|
|
838
970
|
id: pipe(string(), minLength(1)),
|
|
839
971
|
meeting: reference,
|
|
840
|
-
source:
|
|
841
|
-
title: nullable(
|
|
842
|
-
overview: nullable(
|
|
843
|
-
sections: array(strictObject({ label:
|
|
844
|
-
next_steps: array(
|
|
845
|
-
content: nullable(
|
|
846
|
-
url: nullable(
|
|
972
|
+
source: text3,
|
|
973
|
+
title: nullable(text3),
|
|
974
|
+
overview: nullable(text3),
|
|
975
|
+
sections: array(strictObject({ label: text3, text: text3 })),
|
|
976
|
+
next_steps: array(text3),
|
|
977
|
+
content: nullable(text3),
|
|
978
|
+
url: nullable(text3),
|
|
847
979
|
created_at: isoTime,
|
|
848
980
|
updated_at: isoTime
|
|
849
981
|
});
|
|
850
982
|
var meetingDetails = strictObject({
|
|
851
983
|
...meeting.entries,
|
|
852
984
|
/** The stored event and series it belongs to, as `meetings_list` takes them. */
|
|
853
|
-
event_id: nullable(
|
|
854
|
-
series_id: nullable(
|
|
855
|
-
series_title: nullable(
|
|
985
|
+
event_id: nullable(text3),
|
|
986
|
+
series_id: nullable(text3),
|
|
987
|
+
series_title: nullable(text3),
|
|
856
988
|
participants: array(strictObject({
|
|
857
|
-
name: nullable(
|
|
858
|
-
email: nullable(
|
|
859
|
-
role: nullable(
|
|
989
|
+
name: nullable(text3),
|
|
990
|
+
email: nullable(text3),
|
|
991
|
+
role: nullable(text3),
|
|
992
|
+
/** Who they are across the owner's sources: `person:<uid>`, and that person's name once linked. */
|
|
993
|
+
person: nullable(strictObject({ ref: text3, name: nullable(text3) })),
|
|
860
994
|
joined_at: nullable(isoTime),
|
|
861
995
|
left_at: nullable(isoTime),
|
|
862
|
-
duration_ms: nullable(
|
|
996
|
+
duration_ms: nullable(count3)
|
|
863
997
|
})),
|
|
864
|
-
transcripts: array(strictObject({ ref: reference, source:
|
|
865
|
-
chat: array(strictObject({ sent_at: isoTime, sender: nullable(
|
|
998
|
+
transcripts: array(strictObject({ ref: reference, source: text3, language: nullable(text3), lines_count: count3 })),
|
|
999
|
+
chat: array(strictObject({ sent_at: isoTime, sender: nullable(text3), recipient: nullable(text3), text: text3 })),
|
|
866
1000
|
summaries: array(meetingSummary),
|
|
867
1001
|
attachments: array(strictObject({
|
|
868
|
-
position:
|
|
869
|
-
kind:
|
|
870
|
-
name: nullable(
|
|
871
|
-
mime: nullable(
|
|
872
|
-
size: nullable(
|
|
873
|
-
url: nullable(
|
|
1002
|
+
position: count3,
|
|
1003
|
+
kind: text3,
|
|
1004
|
+
name: nullable(text3),
|
|
1005
|
+
mime: nullable(text3),
|
|
1006
|
+
size: nullable(count3),
|
|
1007
|
+
url: nullable(text3)
|
|
874
1008
|
}))
|
|
875
1009
|
});
|
|
876
1010
|
var meetingRef = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
|
|
@@ -918,6 +1052,7 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
|
|
|
918
1052
|
name: one.displayName,
|
|
919
1053
|
email: one.email,
|
|
920
1054
|
role: one.role,
|
|
1055
|
+
person: one.person ? { ref: `person:${one.person.uid}`, name: one.person.name } : null,
|
|
921
1056
|
joined_at: iso2(one.joinedAt),
|
|
922
1057
|
left_at: iso2(one.leftAt),
|
|
923
1058
|
duration_ms: one.durationMs
|
|
@@ -1021,7 +1156,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1021
1156
|
};
|
|
1022
1157
|
}, "meetingHitsList");
|
|
1023
1158
|
|
|
1024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1025
1160
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1026
1161
|
const parsed = urlOf(url);
|
|
1027
1162
|
if (!parsed)
|
|
@@ -1055,7 +1190,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1055
1190
|
}
|
|
1056
1191
|
}, "urlOf");
|
|
1057
1192
|
|
|
1058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1059
1194
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1060
1195
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1061
1196
|
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");
|
|
@@ -1092,7 +1227,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1092
1227
|
return kept;
|
|
1093
1228
|
}, "entryMetadata");
|
|
1094
1229
|
|
|
1095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1096
1231
|
import { createHash } from "node:crypto";
|
|
1097
1232
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1098
1233
|
reference: cue2.reference,
|
|
@@ -1106,7 +1241,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1106
1241
|
text: cue2.text
|
|
1107
1242
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1108
1243
|
|
|
1109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1110
1245
|
var EVENT_QUERY = defineQuery({
|
|
1111
1246
|
entity: "event",
|
|
1112
1247
|
backend: "sql",
|
|
@@ -1122,7 +1257,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1122
1257
|
]
|
|
1123
1258
|
});
|
|
1124
1259
|
|
|
1125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1126
1261
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1127
1262
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1128
1263
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1145,7 +1280,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1145
1280
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1146
1281
|
}, "entryInWindow");
|
|
1147
1282
|
|
|
1148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1149
1284
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1150
1285
|
const current = await store.meeting(details.meeting.id);
|
|
1151
1286
|
if (!current)
|
|
@@ -1188,7 +1323,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1188
1323
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1189
1324
|
}, "linkEvent");
|
|
1190
1325
|
|
|
1191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1192
1327
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1193
1328
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1194
1329
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1212,7 +1347,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1212
1347
|
};
|
|
1213
1348
|
}, "validateMeetingParticipantSearch");
|
|
1214
1349
|
|
|
1215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1216
1351
|
var MeetingError = class extends CliError {
|
|
1217
1352
|
static {
|
|
1218
1353
|
__name(this, "MeetingError");
|
|
@@ -1258,7 +1393,7 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
|
|
|
1258
1393
|
if (store.participantCandidates && accountId === void 0)
|
|
1259
1394
|
throw new MeetingError("configuration_error", "select an account for bounded participant lookup");
|
|
1260
1395
|
if (accountId !== void 0 && store.participantCandidates) {
|
|
1261
|
-
const { limit, has_more, next_cursor, ...packet } = await store.participantCandidates(query, {
|
|
1396
|
+
const { limit, hasMore: has_more, nextCursor: next_cursor, ...packet } = await store.participantCandidates(query, {
|
|
1262
1397
|
...options,
|
|
1263
1398
|
accountId
|
|
1264
1399
|
});
|
|
@@ -1287,11 +1422,11 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
|
|
|
1287
1422
|
return listed(await store.participants(query, accountId));
|
|
1288
1423
|
}, "meetingPeople");
|
|
1289
1424
|
var PAGE_NEXT2 = STEPS.find((step) => step.id === "page.next");
|
|
1290
|
-
var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}
|
|
1425
|
+
var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}) => {
|
|
1291
1426
|
validateFilter(filter);
|
|
1292
|
-
positiveInteger(page);
|
|
1293
1427
|
const limit = positiveInteger(filter.limit ?? 100);
|
|
1294
|
-
const offset =
|
|
1428
|
+
const offset = filter.offset ?? 0;
|
|
1429
|
+
const page = Math.floor(offset / limit) + 1;
|
|
1295
1430
|
if (!Number.isSafeInteger(offset + limit + 1))
|
|
1296
1431
|
throw new MeetingError("validation_error", "pagination exceeds safe integer range");
|
|
1297
1432
|
const rows = await store.meetings({ ...filter, limit: limit + 1, offset });
|
|
@@ -1344,7 +1479,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
|
|
|
1344
1479
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1345
1480
|
}, "meetingSummaryAnswer");
|
|
1346
1481
|
|
|
1347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1348
1483
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1349
1484
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1350
1485
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1440,10 +1575,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
|
|
|
1440
1575
|
};
|
|
1441
1576
|
}, "exportMeeting");
|
|
1442
1577
|
|
|
1443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1444
1579
|
import { createHash as createHash2 } from "node:crypto";
|
|
1445
1580
|
|
|
1446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1447
1582
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1448
1583
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1449
1584
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1454,7 +1589,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1454
1589
|
return new Date(value).toISOString();
|
|
1455
1590
|
}, "meetingTimestamp");
|
|
1456
1591
|
|
|
1457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1458
1593
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1459
1594
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1460
1595
|
throw new CliError("validation_error", message);
|
|
@@ -1629,7 +1764,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1629
1764
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1630
1765
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1631
1766
|
|
|
1632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1633
1768
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1634
1769
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1635
1770
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1640,7 +1775,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1640
1775
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1641
1776
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1642
1777
|
|
|
1643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1644
1779
|
var context = {
|
|
1645
1780
|
command: "search meetings",
|
|
1646
1781
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1760,7 +1895,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
1760
1895
|
return { version: 1, language: "lucene-v1", root };
|
|
1761
1896
|
}, "meetingWordsQuery");
|
|
1762
1897
|
|
|
1763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1764
1899
|
var LATIN_WORDS = {
|
|
1765
1900
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1766
1901
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -1809,7 +1944,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1809
1944
|
return null;
|
|
1810
1945
|
}, "transcriptLanguage");
|
|
1811
1946
|
|
|
1812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1813
1948
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
1814
1949
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
1815
1950
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1846,7 +1981,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1846
1981
|
return time2;
|
|
1847
1982
|
}, "timestamp");
|
|
1848
1983
|
|
|
1849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1850
1985
|
var TranscriptTextError = class extends Error {
|
|
1851
1986
|
static {
|
|
1852
1987
|
__name(this, "TranscriptTextError");
|
|
@@ -1901,7 +2036,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1901
2036
|
return { header, lines };
|
|
1902
2037
|
}, "parseTranscriptText");
|
|
1903
2038
|
|
|
1904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1905
2040
|
var VttError = class extends Error {
|
|
1906
2041
|
static {
|
|
1907
2042
|
__name(this, "VttError");
|
|
@@ -1953,7 +2088,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1953
2088
|
return cues;
|
|
1954
2089
|
}, "parseVtt");
|
|
1955
2090
|
|
|
1956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1957
2092
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1958
2093
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1959
2094
|
for (const file of files) {
|
|
@@ -1986,10 +2121,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
1986
2121
|
return report;
|
|
1987
2122
|
}, "importFiles");
|
|
1988
2123
|
|
|
1989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
1990
2125
|
var CHAT_MESSAGES_READ = 1e5;
|
|
1991
2126
|
|
|
1992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
1993
2128
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
1994
2129
|
const provider = scope2?.provider;
|
|
1995
2130
|
const account = scope2?.account;
|
|
@@ -1998,7 +2133,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
1998
2133
|
return Object.freeze({ provider, account });
|
|
1999
2134
|
}, "snapshotMeetingScope");
|
|
2000
2135
|
|
|
2001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2002
2137
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2003
2138
|
if (typeof value !== "string" || !value.trim())
|
|
2004
2139
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2064,19 +2199,19 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
|
|
|
2064
2199
|
return { applied: true, value: await dispatch(signal) };
|
|
2065
2200
|
}, "dispatchMeetingMutation");
|
|
2066
2201
|
|
|
2067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
2068
2203
|
var id = /* @__PURE__ */ __name((value) => {
|
|
2069
2204
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
2070
2205
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
2071
2206
|
return value;
|
|
2072
2207
|
}, "id");
|
|
2073
|
-
var
|
|
2208
|
+
var text4 = /* @__PURE__ */ __name((value, max) => {
|
|
2074
2209
|
if (typeof value !== "string" || !value.trim() || value.length > max || value.includes("\0"))
|
|
2075
2210
|
throw new CliError("validation_error", `meeting context text must contain 1\u2013${max} characters without NUL`);
|
|
2076
2211
|
return value.trim();
|
|
2077
2212
|
}, "text");
|
|
2078
2213
|
var uid = /* @__PURE__ */ __name((value) => {
|
|
2079
|
-
const result =
|
|
2214
|
+
const result = text4(value, 100);
|
|
2080
2215
|
if (!/^[1-9]\d*$/.test(result) || !Number.isSafeInteger(Number(result)))
|
|
2081
2216
|
throw new CliError("validation_error", "person UID must be a positive integer");
|
|
2082
2217
|
return result;
|
|
@@ -2084,7 +2219,7 @@ var uid = /* @__PURE__ */ __name((value) => {
|
|
|
2084
2219
|
var strings = /* @__PURE__ */ __name((value, count7, length) => {
|
|
2085
2220
|
if (!Array.isArray(value) || value.length < 1 || value.length > count7)
|
|
2086
2221
|
throw new CliError("validation_error", `meeting context list must contain 1\u2013${count7} entries`);
|
|
2087
|
-
return Object.freeze([...new Set(value.map((entry) =>
|
|
2222
|
+
return Object.freeze([...new Set(value.map((entry) => text4(entry, length)))]);
|
|
2088
2223
|
}, "strings");
|
|
2089
2224
|
var fields = {
|
|
2090
2225
|
"note.add": ["text", "title"],
|
|
@@ -2102,8 +2237,8 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
|
2102
2237
|
case "note.add":
|
|
2103
2238
|
return Object.freeze({
|
|
2104
2239
|
action: change.action,
|
|
2105
|
-
text:
|
|
2106
|
-
...change.title === void 0 ? {} : { title:
|
|
2240
|
+
text: text4(change.text, 1e5),
|
|
2241
|
+
...change.title === void 0 ? {} : { title: text4(change.title, 500) }
|
|
2107
2242
|
});
|
|
2108
2243
|
case "tags.add":
|
|
2109
2244
|
case "tags.remove":
|
|
@@ -2113,11 +2248,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
|
2113
2248
|
throw new CliError("validation_error", "memory kind and explicit personal/work scope are required");
|
|
2114
2249
|
return Object.freeze({
|
|
2115
2250
|
action: change.action,
|
|
2116
|
-
body:
|
|
2251
|
+
body: text4(change.body, 2e4),
|
|
2117
2252
|
kind: change.kind,
|
|
2118
2253
|
scope: change.scope,
|
|
2119
2254
|
evidence: strings(change.evidence, 100, 4e3),
|
|
2120
|
-
...change.subject === void 0 ? {} : { subject:
|
|
2255
|
+
...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
|
|
2121
2256
|
});
|
|
2122
2257
|
}
|
|
2123
2258
|
case "fact.add": {
|
|
@@ -2125,11 +2260,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
|
2125
2260
|
throw new CliError("validation_error", `fact type (${FACT_TYPES.join(", ")}) and explicit personal/work scope are required`);
|
|
2126
2261
|
return Object.freeze({
|
|
2127
2262
|
action: change.action,
|
|
2128
|
-
statement:
|
|
2263
|
+
statement: text4(change.statement, 2e4),
|
|
2129
2264
|
type: change.type,
|
|
2130
2265
|
scope: change.scope,
|
|
2131
2266
|
evidence: strings(change.evidence, 100, 4e3),
|
|
2132
|
-
...change.subject === void 0 ? {} : { subject:
|
|
2267
|
+
...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
|
|
2133
2268
|
});
|
|
2134
2269
|
}
|
|
2135
2270
|
case "event.link":
|
|
@@ -2186,7 +2321,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
|
|
|
2186
2321
|
};
|
|
2187
2322
|
}, "createMeetingContext");
|
|
2188
2323
|
|
|
2189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2190
2325
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2191
2326
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2192
2327
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2211,8 +2346,8 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2211
2346
|
return { ...input, limit, maxReadBytes };
|
|
2212
2347
|
}, "validateMeetingPreparationContext");
|
|
2213
2348
|
|
|
2214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2215
|
-
var
|
|
2349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2350
|
+
var count4 = pipe(number(), integer(), minValue(0));
|
|
2216
2351
|
var id2 = pipe(string(), minLength(1));
|
|
2217
2352
|
var meetingProjectEvidence = strictObject({
|
|
2218
2353
|
schema_version: literal(1),
|
|
@@ -2238,16 +2373,16 @@ var meetingProjectEvidence = strictObject({
|
|
|
2238
2373
|
since: optional(isoTime),
|
|
2239
2374
|
until: optional(isoTime)
|
|
2240
2375
|
}),
|
|
2241
|
-
limits: strictObject({ limit:
|
|
2376
|
+
limits: strictObject({ limit: count4, max_read_bytes: count4, max_vocabulary_read_bytes: count4, max_terms: count4 }),
|
|
2242
2377
|
page: pageSchema,
|
|
2243
2378
|
coverage: strictObject({
|
|
2244
2379
|
archive_completeness: literal("unknown"),
|
|
2245
2380
|
current_revisions: literal(true),
|
|
2246
2381
|
indexing: picklist(["ready", "pending"]),
|
|
2247
2382
|
index_completeness: literal("unknown"),
|
|
2248
|
-
term_index:
|
|
2249
|
-
terms_total:
|
|
2250
|
-
remaining_terms:
|
|
2383
|
+
term_index: count4,
|
|
2384
|
+
terms_total: count4,
|
|
2385
|
+
remaining_terms: count4,
|
|
2251
2386
|
duplicates: literal("may-repeat-between-terms")
|
|
2252
2387
|
})
|
|
2253
2388
|
});
|
|
@@ -2283,7 +2418,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2283
2418
|
kind: page.term.kind,
|
|
2284
2419
|
...page.term.aliasId === void 0 ? {} : { alias_id: page.term.aliasId }
|
|
2285
2420
|
},
|
|
2286
|
-
hits: page.
|
|
2421
|
+
hits: page.items.map(meetingHitItem),
|
|
2287
2422
|
association: page.association,
|
|
2288
2423
|
vocabulary_fingerprint: page.vocabularyFingerprint,
|
|
2289
2424
|
selection,
|
|
@@ -2325,14 +2460,14 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2325
2460
|
limit: page.limits.limit,
|
|
2326
2461
|
max_read_bytes: page.limits.maxReadBytes
|
|
2327
2462
|
},
|
|
2328
|
-
values: { shown: page.
|
|
2463
|
+
values: { shown: page.items.length }
|
|
2329
2464
|
})
|
|
2330
2465
|
]
|
|
2331
2466
|
}
|
|
2332
2467
|
};
|
|
2333
2468
|
}, "meetingProjectEvidenceAnswer");
|
|
2334
2469
|
|
|
2335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2336
2471
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2337
2472
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2338
2473
|
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) || [
|
|
@@ -2352,7 +2487,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2352
2487
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2353
2488
|
}, "validateMeetingHitSearch");
|
|
2354
2489
|
|
|
2355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2356
2491
|
var ids = {
|
|
2357
2492
|
meeting_id: "meetingId",
|
|
2358
2493
|
identity_id: "participantIdentityId",
|
|
@@ -2443,7 +2578,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
2443
2578
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
2444
2579
|
}, "prepareMeetingProjectEvidence");
|
|
2445
2580
|
|
|
2446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2447
2582
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
2448
2583
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
2449
2584
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2451,9 +2586,9 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
2451
2586
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2452
2587
|
}, "readMeetingProjectEvidence");
|
|
2453
2588
|
|
|
2454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2455
2590
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2456
|
-
const { identityExternalId, ...fields2 } = p;
|
|
2591
|
+
const { identityExternalId, phone, ...fields2 } = p;
|
|
2457
2592
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
2458
2593
|
return {
|
|
2459
2594
|
...fields2,
|
|
@@ -2461,6 +2596,7 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
|
|
|
2461
2596
|
provider,
|
|
2462
2597
|
externalId,
|
|
2463
2598
|
name: p.displayName,
|
|
2599
|
+
...phone?.trim() ? { phone } : {},
|
|
2464
2600
|
metadata: p.metadata,
|
|
2465
2601
|
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
2466
2602
|
}
|
|
@@ -2613,80 +2749,80 @@ unlinked`, format)],
|
|
|
2613
2749
|
return report;
|
|
2614
2750
|
}, "pull");
|
|
2615
2751
|
|
|
2616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2617
|
-
var
|
|
2618
|
-
var
|
|
2752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2753
|
+
var text5 = string();
|
|
2754
|
+
var count5 = pipe(number(), integer(), minValue(0));
|
|
2619
2755
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
2620
2756
|
var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
2621
2757
|
var meetingReview = strictObject({
|
|
2622
2758
|
ref: reference,
|
|
2623
2759
|
id: pipe(string(), minLength(1)),
|
|
2624
|
-
title: nullable(
|
|
2760
|
+
title: nullable(text5),
|
|
2625
2761
|
started_at: nullable(isoTime),
|
|
2626
|
-
duration_ms: nullable(
|
|
2627
|
-
participants_count: nullable(
|
|
2628
|
-
projects: array(
|
|
2762
|
+
duration_ms: nullable(count5),
|
|
2763
|
+
participants_count: nullable(count5),
|
|
2764
|
+
projects: array(text5),
|
|
2629
2765
|
/** Null when the meeting has no current transcript. */
|
|
2630
|
-
transcript: nullable(strictObject({ lines:
|
|
2766
|
+
transcript: nullable(strictObject({ lines: count5, words: count5 })),
|
|
2631
2767
|
/** The three who talked longest. */
|
|
2632
|
-
speakers: array(strictObject({ name: nullable(
|
|
2768
|
+
speakers: array(strictObject({ name: nullable(text5), talk_ms: count5 })),
|
|
2633
2769
|
/** The newest stored summary; null when there is none. */
|
|
2634
2770
|
summary: nullable(strictObject({
|
|
2635
|
-
source:
|
|
2636
|
-
title: nullable(
|
|
2637
|
-
overview: nullable(
|
|
2638
|
-
next_steps: array(
|
|
2639
|
-
url: nullable(
|
|
2771
|
+
source: text5,
|
|
2772
|
+
title: nullable(text5),
|
|
2773
|
+
overview: nullable(text5),
|
|
2774
|
+
next_steps: array(text5),
|
|
2775
|
+
url: nullable(text5)
|
|
2640
2776
|
}))
|
|
2641
2777
|
});
|
|
2642
2778
|
var meetingLink = strictObject({
|
|
2643
|
-
url:
|
|
2644
|
-
domain: nullable(
|
|
2779
|
+
url: text5,
|
|
2780
|
+
domain: nullable(text5),
|
|
2645
2781
|
/** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
|
|
2646
|
-
document_id: nullable(
|
|
2647
|
-
count:
|
|
2782
|
+
document_id: nullable(text5),
|
|
2783
|
+
count: count5,
|
|
2648
2784
|
first_at: isoTime,
|
|
2649
2785
|
last_at: isoTime,
|
|
2650
|
-
senders: array(
|
|
2651
|
-
meetings: array(strictObject({ ref: reference, title: nullable(
|
|
2786
|
+
senders: array(text5),
|
|
2787
|
+
meetings: array(strictObject({ ref: reference, title: nullable(text5) }))
|
|
2652
2788
|
});
|
|
2653
2789
|
var meetingSpeaker = strictObject({
|
|
2654
2790
|
/** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
|
|
2655
|
-
key:
|
|
2656
|
-
name: nullable(
|
|
2791
|
+
key: text5,
|
|
2792
|
+
name: nullable(text5),
|
|
2657
2793
|
person_id: nullable(id3),
|
|
2658
2794
|
identity_id: nullable(id3),
|
|
2659
|
-
meetings:
|
|
2660
|
-
lines:
|
|
2661
|
-
words:
|
|
2662
|
-
talk_ms:
|
|
2795
|
+
meetings: count5,
|
|
2796
|
+
lines: count5,
|
|
2797
|
+
words: count5,
|
|
2798
|
+
talk_ms: count5,
|
|
2663
2799
|
/** This speaker's part of all talk time, 0–1. */
|
|
2664
2800
|
share: pipe(number(), minValue(0), maxValue(1))
|
|
2665
2801
|
});
|
|
2666
2802
|
var meetingStats = strictObject({
|
|
2667
|
-
time_zone:
|
|
2668
|
-
meetings:
|
|
2669
|
-
lines:
|
|
2670
|
-
words:
|
|
2671
|
-
talk_ms:
|
|
2803
|
+
time_zone: text5,
|
|
2804
|
+
meetings: count5,
|
|
2805
|
+
lines: count5,
|
|
2806
|
+
words: count5,
|
|
2807
|
+
talk_ms: count5,
|
|
2672
2808
|
/** `week_start` is the Monday, as a date in `time_zone`. */
|
|
2673
|
-
weeks: array(strictObject({ week_start:
|
|
2809
|
+
weeks: array(strictObject({ week_start: text5, meetings: count5, talk_ms: count5 })),
|
|
2674
2810
|
top_speakers: array(meetingSpeaker)
|
|
2675
2811
|
});
|
|
2676
2812
|
var meetingCountsRow = strictObject({
|
|
2677
|
-
key:
|
|
2678
|
-
name: nullable(
|
|
2679
|
-
meetings:
|
|
2680
|
-
minutes:
|
|
2813
|
+
key: text5,
|
|
2814
|
+
name: nullable(text5),
|
|
2815
|
+
meetings: count5,
|
|
2816
|
+
minutes: count5,
|
|
2681
2817
|
mean_minutes: nullable(number()),
|
|
2682
|
-
transcripts:
|
|
2818
|
+
transcripts: count5
|
|
2683
2819
|
});
|
|
2684
2820
|
var meetingCounts = strictObject({
|
|
2685
2821
|
by: picklist(["day", "week", "series"]),
|
|
2686
|
-
meetings:
|
|
2687
|
-
minutes:
|
|
2822
|
+
meetings: count5,
|
|
2823
|
+
minutes: count5,
|
|
2688
2824
|
mean_minutes: nullable(number()),
|
|
2689
|
-
transcripts:
|
|
2825
|
+
transcripts: count5,
|
|
2690
2826
|
rows: array(meetingCountsRow),
|
|
2691
2827
|
has_more: boolean()
|
|
2692
2828
|
});
|
|
@@ -2695,27 +2831,28 @@ var meetingParticipants = strictObject({
|
|
|
2695
2831
|
schema_version: literal(1),
|
|
2696
2832
|
kind: literal("meeting_participants"),
|
|
2697
2833
|
account_id: id3,
|
|
2698
|
-
query:
|
|
2834
|
+
query: text5,
|
|
2699
2835
|
items: array(strictObject({
|
|
2700
2836
|
participant_id: id3,
|
|
2701
2837
|
meeting_id: id3,
|
|
2702
2838
|
identity_id: id3,
|
|
2703
|
-
display_name: nullable(
|
|
2704
|
-
email: nullable(
|
|
2839
|
+
display_name: nullable(text5),
|
|
2840
|
+
email: nullable(text5),
|
|
2841
|
+
person: nullable(strictObject({ ref: text5, name: nullable(text5) }))
|
|
2705
2842
|
})),
|
|
2706
2843
|
/** Several identities on one page are observations, never speaker attribution or person links. */
|
|
2707
2844
|
ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id3) }),
|
|
2708
2845
|
coverage: strictObject({
|
|
2709
|
-
scanned:
|
|
2710
|
-
read_bytes:
|
|
2846
|
+
scanned: count5,
|
|
2847
|
+
read_bytes: count5,
|
|
2711
2848
|
archive_completeness: literal("unknown"),
|
|
2712
2849
|
truncated_by: truncated("limit", "scan_limit", "read_bytes")
|
|
2713
2850
|
}),
|
|
2714
2851
|
page: strictObject({
|
|
2715
2852
|
mode: literal("cursor"),
|
|
2716
|
-
limit:
|
|
2853
|
+
limit: count5,
|
|
2717
2854
|
has_more: boolean(),
|
|
2718
|
-
next_cursor: optional(
|
|
2855
|
+
next_cursor: optional(text5)
|
|
2719
2856
|
})
|
|
2720
2857
|
});
|
|
2721
2858
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -2724,15 +2861,15 @@ var meetingPassage = strictObject({
|
|
|
2724
2861
|
kind: literal("meeting_context"),
|
|
2725
2862
|
source: reference,
|
|
2726
2863
|
target_ref: reference,
|
|
2727
|
-
target_fingerprint:
|
|
2728
|
-
fingerprint:
|
|
2864
|
+
target_fingerprint: text5,
|
|
2865
|
+
fingerprint: text5,
|
|
2729
2866
|
revision,
|
|
2730
|
-
limits: strictObject({ before:
|
|
2731
|
-
content_bytes:
|
|
2867
|
+
limits: strictObject({ before: count5, after: count5, bytes: count5, max_read_bytes: count5 }),
|
|
2868
|
+
content_bytes: count5,
|
|
2732
2869
|
coverage: strictObject({
|
|
2733
|
-
included:
|
|
2734
|
-
before:
|
|
2735
|
-
after:
|
|
2870
|
+
included: count5,
|
|
2871
|
+
before: count5,
|
|
2872
|
+
after: count5,
|
|
2736
2873
|
has_before: boolean(),
|
|
2737
2874
|
has_after: boolean(),
|
|
2738
2875
|
truncated_by: truncated("bytes"),
|
|
@@ -2744,30 +2881,30 @@ var meetingPassage = strictObject({
|
|
|
2744
2881
|
}),
|
|
2745
2882
|
items: array(strictObject({
|
|
2746
2883
|
ref: reference,
|
|
2747
|
-
fingerprint:
|
|
2884
|
+
fingerprint: text5,
|
|
2748
2885
|
transcript_id: id3,
|
|
2749
|
-
content_hash: nullable(
|
|
2750
|
-
position:
|
|
2751
|
-
start_ms:
|
|
2752
|
-
end_ms:
|
|
2886
|
+
content_hash: nullable(text5),
|
|
2887
|
+
position: count5,
|
|
2888
|
+
start_ms: count5,
|
|
2889
|
+
end_ms: count5,
|
|
2753
2890
|
speaker_participant_id: nullable(id3),
|
|
2754
|
-
speaker_name: nullable(
|
|
2755
|
-
text:
|
|
2891
|
+
speaker_name: nullable(text5),
|
|
2892
|
+
text: text5,
|
|
2756
2893
|
revision
|
|
2757
2894
|
}))
|
|
2758
2895
|
});
|
|
2759
2896
|
var event = strictObject({
|
|
2760
2897
|
id: pipe(string(), minLength(1)),
|
|
2761
|
-
event_series_id: nullable(
|
|
2762
|
-
title: nullable(
|
|
2763
|
-
description: nullable(
|
|
2764
|
-
location: nullable(
|
|
2898
|
+
event_series_id: nullable(text5),
|
|
2899
|
+
title: nullable(text5),
|
|
2900
|
+
description: nullable(text5),
|
|
2901
|
+
location: nullable(text5),
|
|
2765
2902
|
starts_at: nullable(isoTime),
|
|
2766
2903
|
ends_at: nullable(isoTime),
|
|
2767
|
-
timezone: nullable(
|
|
2904
|
+
timezone: nullable(text5),
|
|
2768
2905
|
/** `auto`: made from a meeting; `owner`: made by hand; `calendar`: from a calendar's entries. */
|
|
2769
2906
|
origin: picklist(["auto", "owner", "calendar"]),
|
|
2770
|
-
status: nullable(
|
|
2907
|
+
status: nullable(text5),
|
|
2771
2908
|
all_day: boolean(),
|
|
2772
2909
|
/** When its calendar deleted it: shown as "deleted in Google", kept as history. */
|
|
2773
2910
|
source_deleted_at: nullable(isoTime),
|
|
@@ -2775,7 +2912,7 @@ var event = strictObject({
|
|
|
2775
2912
|
created_at: isoTime,
|
|
2776
2913
|
updated_at: isoTime,
|
|
2777
2914
|
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
2778
|
-
untrusted: optional(array(
|
|
2915
|
+
untrusted: optional(array(text5)),
|
|
2779
2916
|
/** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
|
|
2780
2917
|
change: optional(picklist(["new", "moved", "cancelled"])),
|
|
2781
2918
|
changed_at: optional(nullable(isoTime)),
|
|
@@ -2787,7 +2924,7 @@ var event = strictObject({
|
|
|
2787
2924
|
*/
|
|
2788
2925
|
overlapping: optional(boolean()),
|
|
2789
2926
|
/** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
|
|
2790
|
-
overlaps: optional(array(
|
|
2927
|
+
overlaps: optional(array(text5))
|
|
2791
2928
|
});
|
|
2792
2929
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
2793
2930
|
id: String(one.id),
|
|
@@ -2807,10 +2944,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2807
2944
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2808
2945
|
}), "eventItem");
|
|
2809
2946
|
|
|
2810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2811
2948
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2812
2949
|
|
|
2813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2814
2951
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2815
2952
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2816
2953
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2840,148 +2977,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2840
2977
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2841
2978
|
}, "validateMeetingRelatedHistory");
|
|
2842
2979
|
|
|
2843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2844
|
-
var text5 = string();
|
|
2845
|
-
var identifier = pipe(text5, minLength(1));
|
|
2846
|
-
var nullableText = nullable(text5);
|
|
2847
|
-
var count5 = pipe(number(), integer(), minValue(0));
|
|
2848
|
-
var flag = boolean();
|
|
2849
|
-
var scope = strictObject({ provider: text5, account: text5 });
|
|
2850
|
-
var run = strictObject({
|
|
2851
|
-
meetings: count5,
|
|
2852
|
-
participants: count5,
|
|
2853
|
-
transcript_rows: count5,
|
|
2854
|
-
summaries: count5,
|
|
2855
|
-
warnings: array(strictObject({ external_id: text5, message: text5 })),
|
|
2856
|
-
timezone: optional(text5)
|
|
2857
|
-
});
|
|
2858
|
-
var exported = union([
|
|
2859
|
-
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text5, content: text5 }),
|
|
2860
|
-
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text5 })
|
|
2861
|
-
]);
|
|
2862
|
-
var eventChange = strictObject({
|
|
2863
|
-
action: literal("event.link"),
|
|
2864
|
-
event_id: nullable(identifier),
|
|
2865
|
-
expected_event_id: optional(nullable(identifier))
|
|
2866
|
-
});
|
|
2867
|
-
var personChange = strictObject({
|
|
2868
|
-
action: literal("person.link"),
|
|
2869
|
-
participant_id: identifier,
|
|
2870
|
-
person_uid: text5,
|
|
2871
|
-
expected_person_uid: optional(nullableText),
|
|
2872
|
-
target_account_ids: optional(array(identifier))
|
|
2873
|
-
});
|
|
2874
|
-
var eventResult = strictObject({
|
|
2875
|
-
meeting_id: identifier,
|
|
2876
|
-
event_id: nullable(identifier),
|
|
2877
|
-
previous_event_id: nullable(identifier),
|
|
2878
|
-
changed: flag
|
|
2879
|
-
});
|
|
2880
|
-
var personResult = strictObject({
|
|
2881
|
-
meeting_id: identifier,
|
|
2882
|
-
participant_id: identifier,
|
|
2883
|
-
person_uid: text5,
|
|
2884
|
-
previous_person_uid: nullableText,
|
|
2885
|
-
changed: flag,
|
|
2886
|
-
proposal: optional(text5)
|
|
2887
|
-
});
|
|
2888
|
-
var meetingChange = strictObject({
|
|
2889
|
-
scope,
|
|
2890
|
-
account_id: identifier,
|
|
2891
|
-
meeting_id: identifier,
|
|
2892
|
-
change: union([eventChange, personChange]),
|
|
2893
|
-
applied: flag,
|
|
2894
|
-
result: optional(union([eventResult, personResult]))
|
|
2895
|
-
});
|
|
2896
|
-
var recognition = strictObject({
|
|
2897
|
-
engine: text5,
|
|
2898
|
-
model: text5,
|
|
2899
|
-
version: optional(text5),
|
|
2900
|
-
timing: optional(picklist(["fixed-windows", "recognition-segments"]))
|
|
2901
|
-
});
|
|
2902
|
-
var transcription = union([
|
|
2903
|
-
strictObject({
|
|
2904
|
-
applied: literal(false),
|
|
2905
|
-
account_id: identifier,
|
|
2906
|
-
external_id: text5,
|
|
2907
|
-
segments: count5,
|
|
2908
|
-
media: strictObject({
|
|
2909
|
-
id: text5,
|
|
2910
|
-
content_hash: text5,
|
|
2911
|
-
size: count5,
|
|
2912
|
-
duration_ms: count5,
|
|
2913
|
-
format: text5,
|
|
2914
|
-
sample_rate: count5,
|
|
2915
|
-
channels: count5,
|
|
2916
|
-
recognition
|
|
2917
|
-
})
|
|
2918
|
-
}),
|
|
2919
|
-
strictObject({
|
|
2920
|
-
applied: literal(true),
|
|
2921
|
-
account_id: identifier,
|
|
2922
|
-
external_id: text5,
|
|
2923
|
-
meeting_id: identifier,
|
|
2924
|
-
created: flag,
|
|
2925
|
-
inserted_transcripts: count5,
|
|
2926
|
-
replayed_transcripts: count5,
|
|
2927
|
-
superseded_transcripts: count5,
|
|
2928
|
-
segments: count5,
|
|
2929
|
-
media_sha256: text5,
|
|
2930
|
-
engine: text5,
|
|
2931
|
-
model: text5,
|
|
2932
|
-
model_version: nullableText,
|
|
2933
|
-
timing: picklist(["fixed-windows", "recognition-segments"])
|
|
2934
|
-
})
|
|
2935
|
-
]);
|
|
2936
|
-
var embeddingModel = strictObject({ key: text5, dims: count5, kind: picklist(["local", "remote"]), model: text5 });
|
|
2937
|
-
var embedding = union([
|
|
2938
|
-
strictObject({
|
|
2939
|
-
account_id: identifier,
|
|
2940
|
-
model: embeddingModel,
|
|
2941
|
-
status: strictObject({ chunks: count5, embedded: count5 }),
|
|
2942
|
-
applied: literal(false),
|
|
2943
|
-
scope: literal("existing-current-chunks"),
|
|
2944
|
-
rebuild_required: literal("explicit")
|
|
2945
|
-
}),
|
|
2946
|
-
strictObject({
|
|
2947
|
-
account_id: identifier,
|
|
2948
|
-
model: embeddingModel,
|
|
2949
|
-
saved: count5,
|
|
2950
|
-
skipped: count5,
|
|
2951
|
-
has_more: flag,
|
|
2952
|
-
next_hash: optional(text5),
|
|
2953
|
-
applied: literal(true),
|
|
2954
|
-
rebuild: strictObject({
|
|
2955
|
-
transcripts: count5,
|
|
2956
|
-
chunks: count5,
|
|
2957
|
-
has_more: flag,
|
|
2958
|
-
next_transcript_id: optional(identifier)
|
|
2959
|
-
})
|
|
2960
|
-
})
|
|
2961
|
-
]);
|
|
2962
|
-
var repair = strictObject({
|
|
2963
|
-
account_id: identifier,
|
|
2964
|
-
applied: flag,
|
|
2965
|
-
transcripts: count5,
|
|
2966
|
-
languages: array(strictObject({ language: nullableText, transcripts: count5 }))
|
|
2967
|
-
});
|
|
2968
|
-
var MEETING_RESULT_ENTITIES = {
|
|
2969
|
-
meeting_ingestion: run,
|
|
2970
|
-
meeting_export: exported,
|
|
2971
|
-
meeting_association: meetingChange,
|
|
2972
|
-
meeting_transcription: transcription,
|
|
2973
|
-
meeting_embedding: embedding,
|
|
2974
|
-
meeting_repair: repair
|
|
2975
|
-
};
|
|
2976
|
-
|
|
2977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2978
2981
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2979
2982
|
|
|
2980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2981
2984
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2982
2985
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2983
2986
|
|
|
2984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2985
2988
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2986
2989
|
input.signal?.throwIfAborted();
|
|
2987
2990
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3002,10 +3005,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3002
3005
|
return { ...input, limit, maxReadBytes };
|
|
3003
3006
|
}, "validateMeetingSeriesHistory");
|
|
3004
3007
|
|
|
3005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3006
3009
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3007
3010
|
|
|
3008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3009
3012
|
function invalid4(field, response = false) {
|
|
3010
3013
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3011
3014
|
}
|
|
@@ -3034,7 +3037,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3034
3037
|
cursorDetails(value);
|
|
3035
3038
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3036
3039
|
|
|
3037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3038
3041
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3039
3042
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3040
3043
|
const zone = timeZone ?? "UTC";
|
|
@@ -3169,17 +3172,17 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3169
3172
|
};
|
|
3170
3173
|
}, "aggregateMeetingStats");
|
|
3171
3174
|
|
|
3172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
3173
3176
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
3174
3177
|
|
|
3175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
3176
3179
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
3177
3180
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
3178
3181
|
var ERASED_TEXT = "[source erased]";
|
|
3179
3182
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
3180
3183
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
3181
3184
|
|
|
3182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3183
3186
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3184
3187
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3185
3188
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3194,7 +3197,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3194
3197
|
}
|
|
3195
3198
|
__name(closeTask, "closeTask");
|
|
3196
3199
|
|
|
3197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3198
3201
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3199
3202
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3200
3203
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3223,7 +3226,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3223
3226
|
}, "priorityOf");
|
|
3224
3227
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3225
3228
|
|
|
3226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3227
3230
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3228
3231
|
async function find(id5) {
|
|
3229
3232
|
const task = await store.get(id5);
|
|
@@ -3283,13 +3286,13 @@ function median(values) {
|
|
|
3283
3286
|
}
|
|
3284
3287
|
__name(median, "median");
|
|
3285
3288
|
|
|
3286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3287
3290
|
function matches(task, filter) {
|
|
3288
3291
|
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);
|
|
3289
3292
|
}
|
|
3290
3293
|
__name(matches, "matches");
|
|
3291
3294
|
|
|
3292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3293
3296
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3294
3297
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3295
3298
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3297,10 +3300,10 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
3297
3300
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
3298
3301
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3299
3302
|
|
|
3300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
3301
3304
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
3302
3305
|
|
|
3303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3304
3307
|
var text6 = string();
|
|
3305
3308
|
var id4 = pipe(string(), minLength(1));
|
|
3306
3309
|
var time = isoTime;
|
|
@@ -3325,7 +3328,7 @@ var author = strictObject({
|
|
|
3325
3328
|
name: nullable(text6)
|
|
3326
3329
|
});
|
|
3327
3330
|
|
|
3328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
3329
3332
|
var organization = strictObject({
|
|
3330
3333
|
id: id4,
|
|
3331
3334
|
ref: reference,
|
|
@@ -3355,7 +3358,7 @@ var reminder = strictObject({
|
|
|
3355
3358
|
receipt: nullable(text6)
|
|
3356
3359
|
});
|
|
3357
3360
|
|
|
3358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3359
3362
|
var CURRENCY_SCALES = {
|
|
3360
3363
|
AED: 2,
|
|
3361
3364
|
AMD: 2,
|
|
@@ -3449,7 +3452,7 @@ var quantityOf = /* @__PURE__ */ __name((text7) => {
|
|
|
3449
3452
|
}, "quantityOf");
|
|
3450
3453
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3451
3454
|
|
|
3452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3453
3456
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3454
3457
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3455
3458
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3478,7 +3481,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3478
3481
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3479
3482
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3480
3483
|
|
|
3481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
3482
3485
|
var CATALOG_KINDS = ["product", "service"];
|
|
3483
3486
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
3484
3487
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -3506,7 +3509,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
3506
3509
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
3507
3510
|
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");
|
|
3508
3511
|
|
|
3509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
3510
3513
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
3511
3514
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
3512
3515
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -3627,7 +3630,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
3627
3630
|
return { previous, cleared };
|
|
3628
3631
|
}, "recordDeepCheck");
|
|
3629
3632
|
|
|
3630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
3631
3634
|
var SCHEME = "msg:";
|
|
3632
3635
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
3633
3636
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -3641,7 +3644,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
3641
3644
|
return { provider, account, chat, message };
|
|
3642
3645
|
}, "parseLocator");
|
|
3643
3646
|
|
|
3644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
3645
3648
|
var SIMPLE_REFERENCES = [
|
|
3646
3649
|
"note",
|
|
3647
3650
|
"document",
|
|
@@ -3797,7 +3800,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text7) => {
|
|
|
3797
3800
|
return match !== null && byPrefix.has(match[1]);
|
|
3798
3801
|
}, "looksLikeReference");
|
|
3799
3802
|
|
|
3800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
3801
3804
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
3802
3805
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
3803
3806
|
var PROVIDERS = [
|
|
@@ -3814,7 +3817,9 @@ var PROVIDERS = [
|
|
|
3814
3817
|
{ name: "added", kind: "notes", aliases: [] },
|
|
3815
3818
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
3816
3819
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
3817
|
-
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true }
|
|
3820
|
+
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
|
|
3821
|
+
// Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
|
|
3822
|
+
{ name: "import", kind: "documents", kinds: ["documents", "messages", "events"], aliases: [], imported: true }
|
|
3818
3823
|
];
|
|
3819
3824
|
var LABELS = {
|
|
3820
3825
|
telegram: "Telegram",
|
|
@@ -3940,7 +3945,9 @@ var kindsIn = /* @__PURE__ */ __name((provider) => {
|
|
|
3940
3945
|
if (isFolderProvider(provider))
|
|
3941
3946
|
return ["notes"];
|
|
3942
3947
|
const entry = registry.find(({ name }) => name === provider);
|
|
3943
|
-
|
|
3948
|
+
if (!entry)
|
|
3949
|
+
return [];
|
|
3950
|
+
return entry.imported ? unitedKinds(kindsOfEntry(entry), ["documents"]) : kindsOfEntry(entry);
|
|
3944
3951
|
}, "kindsIn");
|
|
3945
3952
|
var importedOf = /* @__PURE__ */ __name((entry, held) => {
|
|
3946
3953
|
const builtIn = PROVIDERS.find(({ name }) => name === entry.name);
|
|
@@ -3960,7 +3967,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
3960
3967
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
3961
3968
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
3962
3969
|
|
|
3963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
3964
3971
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
3965
3972
|
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");
|
|
3966
3973
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -3983,7 +3990,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
3983
3990
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
3984
3991
|
}, "sourceOf");
|
|
3985
3992
|
|
|
3986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
3987
3994
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
3988
3995
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
3989
3996
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -4193,7 +4200,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind2) =
|
|
|
4193
4200
|
return { accounts: [...chosen.values()], skipped };
|
|
4194
4201
|
}, "fitting");
|
|
4195
4202
|
|
|
4196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
4197
4204
|
var DEAL_KINDS = ["deal", "lead"];
|
|
4198
4205
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
4199
4206
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -4203,7 +4210,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
4203
4210
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
4204
4211
|
}, "dealLine");
|
|
4205
4212
|
|
|
4206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
4207
4214
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
4208
4215
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
4209
4216
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -4214,7 +4221,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
4214
4221
|
}, "orderLine");
|
|
4215
4222
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
4216
4223
|
|
|
4217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
4218
4225
|
var ORGANIZATION_ROLES = [
|
|
4219
4226
|
"employee",
|
|
4220
4227
|
"contractor",
|
|
@@ -4317,7 +4324,16 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
4317
4324
|
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");
|
|
4318
4325
|
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");
|
|
4319
4326
|
|
|
4320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
4328
|
+
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
4329
|
+
var isCrmUserId = /* @__PURE__ */ __name((id5) => /^\d{1,20}$/.test(id5), "isCrmUserId");
|
|
4330
|
+
var normalCrmUserId = /* @__PURE__ */ __name((id5) => {
|
|
4331
|
+
const text7 = id5.trim();
|
|
4332
|
+
return /^\d+$/.test(text7) ? text7.replace(/^0+(?=\d)/, "") : text7;
|
|
4333
|
+
}, "normalCrmUserId");
|
|
4334
|
+
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
4335
|
+
|
|
4336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
4321
4337
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
4322
4338
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
4323
4339
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4331,7 +4347,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
4331
4347
|
return tag;
|
|
4332
4348
|
}, "normalizeTag");
|
|
4333
4349
|
|
|
4334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
4335
4351
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
4336
4352
|
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
4337
4353
|
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;
|
|
@@ -4341,7 +4357,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
4341
4357
|
};
|
|
4342
4358
|
}, "sourceOf");
|
|
4343
4359
|
|
|
4344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
4345
4361
|
var LINK_KINDS = [
|
|
4346
4362
|
"links-to",
|
|
4347
4363
|
"blocked-by",
|
|
@@ -4381,6 +4397,7 @@ export {
|
|
|
4381
4397
|
listRuns,
|
|
4382
4398
|
findRun,
|
|
4383
4399
|
readEvents,
|
|
4400
|
+
pruneRuns,
|
|
4384
4401
|
asOwnProcess,
|
|
4385
4402
|
currentRun,
|
|
4386
4403
|
inRun,
|
|
@@ -4430,6 +4447,7 @@ export {
|
|
|
4430
4447
|
meetingTimestamp,
|
|
4431
4448
|
findingText,
|
|
4432
4449
|
findingHash,
|
|
4450
|
+
snakeCase,
|
|
4433
4451
|
findingFields,
|
|
4434
4452
|
findingNeeds,
|
|
4435
4453
|
validEvidence,
|
|
@@ -4563,6 +4581,10 @@ export {
|
|
|
4563
4581
|
KEYED,
|
|
4564
4582
|
notOverriddenSql,
|
|
4565
4583
|
usableLinkSql,
|
|
4584
|
+
CRM_ACTIVITY_KINDS,
|
|
4585
|
+
isCrmUserId,
|
|
4586
|
+
normalCrmUserId,
|
|
4587
|
+
isItemKind,
|
|
4566
4588
|
organization,
|
|
4567
4589
|
project,
|
|
4568
4590
|
reminder,
|