@wirecat/drive-cli 0.65.0 → 0.67.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 +2899 -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-DVZUVAPQ.js} +14 -14
- package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-Y45C45O2.js} +20 -13
- package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-GTXUOUGD.js} +67 -56
- package/dist/bundle/{bun-P54TGES2.js → bun-QVJV76QJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-CC7PIAMH.js} +9 -9
- package/dist/bundle/{chunk-Y5PKRITX.js → chunk-2MEVCMBW.js} +5 -5
- package/dist/bundle/{chunk-ZILALBYQ.js → chunk-2PIA45FC.js} +7 -5
- package/dist/bundle/{chunk-SIWXYB4E.js → chunk-2Y3YBDZX.js} +3123 -2851
- package/dist/bundle/{chunk-54V4H6PM.js → chunk-3RG6LL25.js} +12 -12
- package/dist/bundle/{chunk-UTNRBOEN.js → chunk-4G7WQNG7.js} +3 -2
- package/dist/bundle/{chunk-OWMZUWCM.js → chunk-4VH7M2OD.js} +6 -14
- package/dist/bundle/{chunk-EM7NL5ES.js → chunk-5DMPGTNR.js} +3 -3
- package/dist/bundle/{chunk-W2XY6C5S.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-5TSILGTO.js} +21668 -28647
- package/dist/bundle/{chunk-FBHSWQU7.js → chunk-6ERQE4FS.js} +319 -102
- package/dist/bundle/{chunk-4AOINPN2.js → chunk-7AZCAUST.js} +8 -2
- package/dist/bundle/{chunk-DA63E2UM.js → chunk-7J2IP3WL.js} +18 -15
- package/dist/bundle/{chunk-JPPPLKAO.js → chunk-7JKECODO.js} +1 -2
- package/dist/bundle/{chunk-SEQWBZYH.js → chunk-AAZPDWRD.js} +1 -1
- package/dist/bundle/{chunk-CWLL63JD.js → chunk-ABJQ6IDU.js} +17 -17
- package/dist/bundle/{chunk-PHOL2DZM.js → chunk-AJ3DFPRT.js} +63 -5
- package/dist/bundle/{chunk-4EDWLR22.js → chunk-AZKFZ7J7.js} +1 -1
- package/dist/bundle/{chunk-IMHW7VIV.js → chunk-BHSLMJF7.js} +5 -5
- package/dist/bundle/{chunk-EHU6EYGO.js → chunk-C72WYRXD.js} +12 -12
- package/dist/bundle/chunk-CWDC6QJM.js +72 -0
- package/dist/bundle/{chunk-TTP4NOP3.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-DAFKV6DJ.js} +226 -18
- package/dist/bundle/{chunk-RNHGQ35R.js → chunk-E3XA56TS.js} +1 -1
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-ETAFFY3J.js} +196 -112
- package/dist/bundle/{chunk-D6Z43SOG.js → chunk-EXWOOST5.js} +402 -362
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-FOMQ4MG3.js} +3 -3
- package/dist/bundle/{chunk-VMAMRFFC.js → chunk-FS2PG2PE.js} +117 -44
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-OFJXHEFT.js → chunk-HJF2QGOX.js} +93 -31
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-O6K2E7OA.js → chunk-IRULPE5M.js} +1522 -1107
- package/dist/bundle/{chunk-EU5MD24W.js → chunk-JCNEPYQZ.js} +13 -13
- package/dist/bundle/{chunk-VDZY3L7U.js → chunk-JEMBW6IO.js} +1 -1
- package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-JJHDV32D.js} +2 -2
- package/dist/bundle/{chunk-FA6JNXCC.js → chunk-JLUQZZ26.js} +8 -8
- package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-JO7BJYAP.js} +45 -22
- package/dist/bundle/{chunk-TOVWMURV.js → chunk-JRFKCYMW.js} +22 -7
- package/dist/bundle/{chunk-M7ELUGU6.js → chunk-JY2GZDJL.js} +4 -4
- package/dist/bundle/chunk-LSAIXPAX.js +47 -0
- package/dist/bundle/{chunk-WVJHZIDH.js → chunk-LXRBTXCZ.js} +3 -3
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-F56DRBGY.js → chunk-MBLB4TQI.js} +75 -20
- package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-MEQNAZ6R.js} +7 -7
- package/dist/bundle/{chunk-XYE7XZPB.js → chunk-MEY7URZZ.js} +39 -35
- package/dist/bundle/{chunk-IBO23OID.js → chunk-MF46W7PQ.js} +2 -2
- package/dist/bundle/{chunk-7AQGVX5O.js → chunk-MW46BLWH.js} +60 -29
- package/dist/bundle/{chunk-VHQYWFWV.js → chunk-NFIR346J.js} +1 -1
- package/dist/bundle/{chunk-NI5PD5KM.js → chunk-NWYVOHIX.js} +18611 -16472
- package/dist/bundle/chunk-NYECVHFH.js +10283 -0
- package/dist/bundle/{chunk-D7WB54P7.js → chunk-OOBSSU2G.js} +546 -457
- package/dist/bundle/{chunk-VLXWAH5E.js → chunk-P6A77LMP.js} +4 -4
- package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-PDHN4GHU.js} +5 -40
- package/dist/bundle/{chunk-PLP5527C.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-TMHF4BCL.js → chunk-QOKPRFHM.js} +2 -2
- package/dist/bundle/{chunk-JMJIH6JH.js → chunk-RC72RU66.js} +6 -6
- package/dist/bundle/{chunk-NQRTKYJB.js → chunk-RLH6BOEG.js} +47 -80
- package/dist/bundle/{chunk-II4S2DBJ.js → chunk-SJE7UGOW.js} +12 -6
- package/dist/bundle/{chunk-LMKPP2JP.js → chunk-SXJDCRXE.js} +1 -1
- package/dist/bundle/{chunk-B2LPCHQN.js → chunk-T2VAEDJS.js} +4 -4
- package/dist/bundle/{chunk-I272E6UR.js → chunk-U2ERT45N.js} +54 -117
- package/dist/bundle/{chunk-A27UVLPK.js → chunk-UFNE57VY.js} +3 -3
- package/dist/bundle/{chunk-5XSBCMAF.js → chunk-ULH3TNUP.js} +4 -4
- package/dist/bundle/{chunk-3ONWN3IA.js → chunk-UOAHZV3K.js} +161 -48
- package/dist/bundle/{chunk-ECEP4SO3.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-42G2XNPN.js → chunk-V7E25BUU.js} +2 -2
- package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-VZ5KETIX.js} +14 -5
- package/dist/bundle/{chunk-X7YGGWXI.js → chunk-WBKYZZQT.js} +3 -2
- package/dist/bundle/{chunk-GW3LBY3T.js → chunk-WKIQKGOF.js} +146 -133
- package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-WWW7YTFG.js} +1 -1
- package/dist/bundle/{chunk-2AFI4KGI.js → chunk-XZCF5XU7.js} +7 -7
- package/dist/bundle/chunk-Y2QVNVHK.js +70 -0
- package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-Y5WSRG3F.js} +3 -3
- package/dist/bundle/{chunk-A4QNADEX.js → chunk-YI4DXASF.js} +49 -49
- package/dist/bundle/{chunk-SS4LKLD7.js → chunk-YVUAG7RF.js} +371 -362
- package/dist/bundle/chunk-ZEPDEFVT.js +71 -0
- package/dist/bundle/{chunk-SE352DBY.js → chunk-ZH4H5XTA.js} +1 -1
- package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-ZK46UHDP.js} +2 -2
- package/dist/bundle/{chunk-SNLSEYJO.js → chunk-ZU5VQYNY.js} +1 -1
- package/dist/bundle/cli-U4LSBYDV.js +1101 -0
- package/dist/bundle/command-contract-UU5T24ZZ.js +41 -0
- package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-PK6FBUPO.js} +31 -30
- package/dist/bundle/{decode-T5ZW57WZ.js → decode-3ZE6NBKV.js} +8 -8
- package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-WBEOHZDV.js} +9 -9
- package/dist/bundle/drive.js +13 -13
- package/dist/bundle/{echarts-KQ44LPSF.js → echarts-6FWNCNXK.js} +2 -2
- package/dist/bundle/{embed-Q7XST53J.js → embed-DGYBBZUW.js} +9 -9
- package/dist/bundle/{embedder-RWZSBVW2.js → embedder-O7A6VMWI.js} +12 -12
- package/dist/bundle/entry-CDJ2QSU2.js +25 -0
- package/dist/bundle/{failure-7NP4QPIN.js → failure-X6PSLVSO.js} +4 -4
- package/dist/bundle/first-run-UOQW7DN5.js +30 -0
- package/dist/bundle/first-screen-SNDV4YKF.js +39 -0
- package/dist/bundle/google-HPX52KMC.js +45 -0
- package/dist/bundle/{google-api-P5DRHD7L.js → google-api-HIMN4XL5.js} +68 -63
- package/dist/bundle/grants-RO42I6E4.js +111 -0
- package/dist/bundle/{identity-VDV6CHRW.js → identity-NFGHDPLL.js} +8 -6
- package/dist/bundle/{instructions-Q45FVY6H.js → instructions-6JAQYCM6.js} +1 -1
- package/dist/bundle/{login-XKN3NI6X.js → login-RZOQN63N.js} +73 -70
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-MSW565D3.js → node-KSIX3GIH.js} +2 -2
- package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-4FJ6WJXN.js} +10 -10
- package/dist/bundle/oauth-BKZAMFKK.js +22 -0
- package/dist/bundle/{open-P7UQG7XJ.js → open-4AQJGH42.js} +8 -8
- package/dist/bundle/{openai-DDHJ57KZ.js → openai-24F2OX55.js} +28 -21
- package/dist/bundle/{process-NMUB5SHK.js → process-7NOA2T7H.js} +1 -1
- package/dist/bundle/{program-PJNWP6JW.js → program-7JHMLDEX.js} +306 -692
- package/dist/bundle/{prompt-VOSMK4C2.js → prompt-NM66MAZ4.js} +8 -8
- package/dist/bundle/{reasons-KDAXOC5S.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-GZIY63HS.js → recognize-DBKV2JYZ.js} +7 -7
- package/dist/bundle/{remote-V3YGN7LN.js → remote-ABWUTBVB.js} +13 -10
- package/dist/bundle/{rerank-XRU6AVN7.js → rerank-FQAU4ENY.js} +10 -10
- package/dist/bundle/{serve-NDOAFA57.js → serve-QLJG4QZD.js} +12 -12
- package/dist/bundle/server-NUBLY5SV.js +74 -0
- package/dist/bundle/{server-BKGWJYMC.js → server-VGZNK5XD.js} +47 -45
- package/dist/bundle/{services-TYDMFQCA.js → services-5KARVUHK.js} +44 -34
- package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-ILF6EFQJ.js} +9 -9
- package/dist/bundle/{start-2ZLDP2OE.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-6SP27J2K.js → state-R2M56GPU.js} +9 -9
- package/dist/bundle/{store-4UUY545Q.js → store-2OBVMUQL.js} +21 -19
- package/dist/bundle/{store-EJN27MXI.js → store-DA4K7HWW.js} +23 -21
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +65 -0
- package/dist/bundle/tokens-VQDGSHRB.js +111 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -3
- package/dist/commands/config.js.map +1 -1
- 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 +15 -12
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +2 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/transcripts.d.ts +4 -0
- package/dist/commands/transcripts.d.ts.map +1 -0
- package/dist/commands/transcripts.js +42 -0
- package/dist/commands/transcripts.js.map +1 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -3
- 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/google.d.ts.map +1 -1
- package/dist/google.js +31 -28
- package/dist/google.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/list-queries.d.ts +10 -0
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +12 -1
- package/dist/list-queries.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/model.d.ts +4 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +10 -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/state.d.ts.map +1 -1
- package/dist/state.js +2 -0
- package/dist/state.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/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -1
- package/dist/sync.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/transcripts.d.ts +21 -0
- package/dist/transcripts.d.ts.map +1 -0
- package/dist/transcripts.js +48 -0
- package/dist/transcripts.js.map +1 -0
- 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-XWBPP2HX.js} +0 -0
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UPCEHSIZ.js";
|
|
12
12
|
import {
|
|
13
13
|
isCliFailure,
|
|
14
14
|
isStoreDamage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7AZCAUST.js";
|
|
16
16
|
import {
|
|
17
17
|
refuseOwnerStoreInTests
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4G7WQNG7.js";
|
|
19
19
|
import {
|
|
20
20
|
createRecordLog,
|
|
21
21
|
resolvePaths,
|
|
22
22
|
writeSecurely
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MW46BLWH.js";
|
|
24
24
|
import {
|
|
25
25
|
singleLine,
|
|
26
26
|
visibleControls
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HCZYJMBP.js";
|
|
28
28
|
import {
|
|
29
29
|
traceIdOf
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5TK2YQCO.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-JRFKCYMW.js";
|
|
58
58
|
import {
|
|
59
59
|
CliError
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-EA2OB75T.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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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
|
}
|
|
@@ -2485,6 +2621,19 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2485
2621
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2486
2622
|
let failed = false;
|
|
2487
2623
|
let firstFailed;
|
|
2624
|
+
const callers = /* @__PURE__ */ new Set();
|
|
2625
|
+
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
2626
|
+
if (callers.size === 0 || !store.linkCallers)
|
|
2627
|
+
return;
|
|
2628
|
+
try {
|
|
2629
|
+
await store.linkCallers(source.provider, [...callers]);
|
|
2630
|
+
} catch (error) {
|
|
2631
|
+
report.warnings.push({
|
|
2632
|
+
externalId: source.provider,
|
|
2633
|
+
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
2634
|
+
});
|
|
2635
|
+
}
|
|
2636
|
+
}, "linkCallers");
|
|
2488
2637
|
const from = timestamp2(since) - lookbackMs;
|
|
2489
2638
|
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2490
2639
|
for (const [index, m] of meetings.entries()) {
|
|
@@ -2495,6 +2644,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2495
2644
|
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2496
2645
|
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2497
2646
|
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2647
|
+
await linkCallers();
|
|
2498
2648
|
return report;
|
|
2499
2649
|
}
|
|
2500
2650
|
const id5 = m.occurrence.id;
|
|
@@ -2599,6 +2749,9 @@ unlinked`, format)],
|
|
|
2599
2749
|
now
|
|
2600
2750
|
});
|
|
2601
2751
|
await linkEvent(store, details, now);
|
|
2752
|
+
for (const p of participants)
|
|
2753
|
+
if (p.identity.phone)
|
|
2754
|
+
callers.add(p.identity.externalId);
|
|
2602
2755
|
report.meetings++;
|
|
2603
2756
|
report.participants += participants.length;
|
|
2604
2757
|
report.transcriptRows += lines?.length ?? 0;
|
|
@@ -2608,85 +2761,86 @@ unlinked`, format)],
|
|
|
2608
2761
|
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2609
2762
|
}
|
|
2610
2763
|
}
|
|
2764
|
+
await linkCallers();
|
|
2611
2765
|
if (!failed)
|
|
2612
2766
|
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
2613
2767
|
return report;
|
|
2614
2768
|
}, "pull");
|
|
2615
2769
|
|
|
2616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2617
|
-
var
|
|
2618
|
-
var
|
|
2770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2771
|
+
var text5 = string();
|
|
2772
|
+
var count5 = pipe(number(), integer(), minValue(0));
|
|
2619
2773
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
2620
2774
|
var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
2621
2775
|
var meetingReview = strictObject({
|
|
2622
2776
|
ref: reference,
|
|
2623
2777
|
id: pipe(string(), minLength(1)),
|
|
2624
|
-
title: nullable(
|
|
2778
|
+
title: nullable(text5),
|
|
2625
2779
|
started_at: nullable(isoTime),
|
|
2626
|
-
duration_ms: nullable(
|
|
2627
|
-
participants_count: nullable(
|
|
2628
|
-
projects: array(
|
|
2780
|
+
duration_ms: nullable(count5),
|
|
2781
|
+
participants_count: nullable(count5),
|
|
2782
|
+
projects: array(text5),
|
|
2629
2783
|
/** Null when the meeting has no current transcript. */
|
|
2630
|
-
transcript: nullable(strictObject({ lines:
|
|
2784
|
+
transcript: nullable(strictObject({ lines: count5, words: count5 })),
|
|
2631
2785
|
/** The three who talked longest. */
|
|
2632
|
-
speakers: array(strictObject({ name: nullable(
|
|
2786
|
+
speakers: array(strictObject({ name: nullable(text5), talk_ms: count5 })),
|
|
2633
2787
|
/** The newest stored summary; null when there is none. */
|
|
2634
2788
|
summary: nullable(strictObject({
|
|
2635
|
-
source:
|
|
2636
|
-
title: nullable(
|
|
2637
|
-
overview: nullable(
|
|
2638
|
-
next_steps: array(
|
|
2639
|
-
url: nullable(
|
|
2789
|
+
source: text5,
|
|
2790
|
+
title: nullable(text5),
|
|
2791
|
+
overview: nullable(text5),
|
|
2792
|
+
next_steps: array(text5),
|
|
2793
|
+
url: nullable(text5)
|
|
2640
2794
|
}))
|
|
2641
2795
|
});
|
|
2642
2796
|
var meetingLink = strictObject({
|
|
2643
|
-
url:
|
|
2644
|
-
domain: nullable(
|
|
2797
|
+
url: text5,
|
|
2798
|
+
domain: nullable(text5),
|
|
2645
2799
|
/** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
|
|
2646
|
-
document_id: nullable(
|
|
2647
|
-
count:
|
|
2800
|
+
document_id: nullable(text5),
|
|
2801
|
+
count: count5,
|
|
2648
2802
|
first_at: isoTime,
|
|
2649
2803
|
last_at: isoTime,
|
|
2650
|
-
senders: array(
|
|
2651
|
-
meetings: array(strictObject({ ref: reference, title: nullable(
|
|
2804
|
+
senders: array(text5),
|
|
2805
|
+
meetings: array(strictObject({ ref: reference, title: nullable(text5) }))
|
|
2652
2806
|
});
|
|
2653
2807
|
var meetingSpeaker = strictObject({
|
|
2654
2808
|
/** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
|
|
2655
|
-
key:
|
|
2656
|
-
name: nullable(
|
|
2809
|
+
key: text5,
|
|
2810
|
+
name: nullable(text5),
|
|
2657
2811
|
person_id: nullable(id3),
|
|
2658
2812
|
identity_id: nullable(id3),
|
|
2659
|
-
meetings:
|
|
2660
|
-
lines:
|
|
2661
|
-
words:
|
|
2662
|
-
talk_ms:
|
|
2813
|
+
meetings: count5,
|
|
2814
|
+
lines: count5,
|
|
2815
|
+
words: count5,
|
|
2816
|
+
talk_ms: count5,
|
|
2663
2817
|
/** This speaker's part of all talk time, 0–1. */
|
|
2664
2818
|
share: pipe(number(), minValue(0), maxValue(1))
|
|
2665
2819
|
});
|
|
2666
2820
|
var meetingStats = strictObject({
|
|
2667
|
-
time_zone:
|
|
2668
|
-
meetings:
|
|
2669
|
-
lines:
|
|
2670
|
-
words:
|
|
2671
|
-
talk_ms:
|
|
2821
|
+
time_zone: text5,
|
|
2822
|
+
meetings: count5,
|
|
2823
|
+
lines: count5,
|
|
2824
|
+
words: count5,
|
|
2825
|
+
talk_ms: count5,
|
|
2672
2826
|
/** `week_start` is the Monday, as a date in `time_zone`. */
|
|
2673
|
-
weeks: array(strictObject({ week_start:
|
|
2827
|
+
weeks: array(strictObject({ week_start: text5, meetings: count5, talk_ms: count5 })),
|
|
2674
2828
|
top_speakers: array(meetingSpeaker)
|
|
2675
2829
|
});
|
|
2676
2830
|
var meetingCountsRow = strictObject({
|
|
2677
|
-
key:
|
|
2678
|
-
name: nullable(
|
|
2679
|
-
meetings:
|
|
2680
|
-
minutes:
|
|
2831
|
+
key: text5,
|
|
2832
|
+
name: nullable(text5),
|
|
2833
|
+
meetings: count5,
|
|
2834
|
+
minutes: count5,
|
|
2681
2835
|
mean_minutes: nullable(number()),
|
|
2682
|
-
transcripts:
|
|
2836
|
+
transcripts: count5
|
|
2683
2837
|
});
|
|
2684
2838
|
var meetingCounts = strictObject({
|
|
2685
2839
|
by: picklist(["day", "week", "series"]),
|
|
2686
|
-
meetings:
|
|
2687
|
-
minutes:
|
|
2840
|
+
meetings: count5,
|
|
2841
|
+
minutes: count5,
|
|
2688
2842
|
mean_minutes: nullable(number()),
|
|
2689
|
-
transcripts:
|
|
2843
|
+
transcripts: count5,
|
|
2690
2844
|
rows: array(meetingCountsRow),
|
|
2691
2845
|
has_more: boolean()
|
|
2692
2846
|
});
|
|
@@ -2695,27 +2849,28 @@ var meetingParticipants = strictObject({
|
|
|
2695
2849
|
schema_version: literal(1),
|
|
2696
2850
|
kind: literal("meeting_participants"),
|
|
2697
2851
|
account_id: id3,
|
|
2698
|
-
query:
|
|
2852
|
+
query: text5,
|
|
2699
2853
|
items: array(strictObject({
|
|
2700
2854
|
participant_id: id3,
|
|
2701
2855
|
meeting_id: id3,
|
|
2702
2856
|
identity_id: id3,
|
|
2703
|
-
display_name: nullable(
|
|
2704
|
-
email: nullable(
|
|
2857
|
+
display_name: nullable(text5),
|
|
2858
|
+
email: nullable(text5),
|
|
2859
|
+
person: nullable(strictObject({ ref: text5, name: nullable(text5) }))
|
|
2705
2860
|
})),
|
|
2706
2861
|
/** Several identities on one page are observations, never speaker attribution or person links. */
|
|
2707
2862
|
ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id3) }),
|
|
2708
2863
|
coverage: strictObject({
|
|
2709
|
-
scanned:
|
|
2710
|
-
read_bytes:
|
|
2864
|
+
scanned: count5,
|
|
2865
|
+
read_bytes: count5,
|
|
2711
2866
|
archive_completeness: literal("unknown"),
|
|
2712
2867
|
truncated_by: truncated("limit", "scan_limit", "read_bytes")
|
|
2713
2868
|
}),
|
|
2714
2869
|
page: strictObject({
|
|
2715
2870
|
mode: literal("cursor"),
|
|
2716
|
-
limit:
|
|
2871
|
+
limit: count5,
|
|
2717
2872
|
has_more: boolean(),
|
|
2718
|
-
next_cursor: optional(
|
|
2873
|
+
next_cursor: optional(text5)
|
|
2719
2874
|
})
|
|
2720
2875
|
});
|
|
2721
2876
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -2724,15 +2879,15 @@ var meetingPassage = strictObject({
|
|
|
2724
2879
|
kind: literal("meeting_context"),
|
|
2725
2880
|
source: reference,
|
|
2726
2881
|
target_ref: reference,
|
|
2727
|
-
target_fingerprint:
|
|
2728
|
-
fingerprint:
|
|
2882
|
+
target_fingerprint: text5,
|
|
2883
|
+
fingerprint: text5,
|
|
2729
2884
|
revision,
|
|
2730
|
-
limits: strictObject({ before:
|
|
2731
|
-
content_bytes:
|
|
2885
|
+
limits: strictObject({ before: count5, after: count5, bytes: count5, max_read_bytes: count5 }),
|
|
2886
|
+
content_bytes: count5,
|
|
2732
2887
|
coverage: strictObject({
|
|
2733
|
-
included:
|
|
2734
|
-
before:
|
|
2735
|
-
after:
|
|
2888
|
+
included: count5,
|
|
2889
|
+
before: count5,
|
|
2890
|
+
after: count5,
|
|
2736
2891
|
has_before: boolean(),
|
|
2737
2892
|
has_after: boolean(),
|
|
2738
2893
|
truncated_by: truncated("bytes"),
|
|
@@ -2744,30 +2899,30 @@ var meetingPassage = strictObject({
|
|
|
2744
2899
|
}),
|
|
2745
2900
|
items: array(strictObject({
|
|
2746
2901
|
ref: reference,
|
|
2747
|
-
fingerprint:
|
|
2902
|
+
fingerprint: text5,
|
|
2748
2903
|
transcript_id: id3,
|
|
2749
|
-
content_hash: nullable(
|
|
2750
|
-
position:
|
|
2751
|
-
start_ms:
|
|
2752
|
-
end_ms:
|
|
2904
|
+
content_hash: nullable(text5),
|
|
2905
|
+
position: count5,
|
|
2906
|
+
start_ms: count5,
|
|
2907
|
+
end_ms: count5,
|
|
2753
2908
|
speaker_participant_id: nullable(id3),
|
|
2754
|
-
speaker_name: nullable(
|
|
2755
|
-
text:
|
|
2909
|
+
speaker_name: nullable(text5),
|
|
2910
|
+
text: text5,
|
|
2756
2911
|
revision
|
|
2757
2912
|
}))
|
|
2758
2913
|
});
|
|
2759
2914
|
var event = strictObject({
|
|
2760
2915
|
id: pipe(string(), minLength(1)),
|
|
2761
|
-
event_series_id: nullable(
|
|
2762
|
-
title: nullable(
|
|
2763
|
-
description: nullable(
|
|
2764
|
-
location: nullable(
|
|
2916
|
+
event_series_id: nullable(text5),
|
|
2917
|
+
title: nullable(text5),
|
|
2918
|
+
description: nullable(text5),
|
|
2919
|
+
location: nullable(text5),
|
|
2765
2920
|
starts_at: nullable(isoTime),
|
|
2766
2921
|
ends_at: nullable(isoTime),
|
|
2767
|
-
timezone: nullable(
|
|
2922
|
+
timezone: nullable(text5),
|
|
2768
2923
|
/** `auto`: made from a meeting; `owner`: made by hand; `calendar`: from a calendar's entries. */
|
|
2769
2924
|
origin: picklist(["auto", "owner", "calendar"]),
|
|
2770
|
-
status: nullable(
|
|
2925
|
+
status: nullable(text5),
|
|
2771
2926
|
all_day: boolean(),
|
|
2772
2927
|
/** When its calendar deleted it: shown as "deleted in Google", kept as history. */
|
|
2773
2928
|
source_deleted_at: nullable(isoTime),
|
|
@@ -2775,7 +2930,7 @@ var event = strictObject({
|
|
|
2775
2930
|
created_at: isoTime,
|
|
2776
2931
|
updated_at: isoTime,
|
|
2777
2932
|
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
2778
|
-
untrusted: optional(array(
|
|
2933
|
+
untrusted: optional(array(text5)),
|
|
2779
2934
|
/** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
|
|
2780
2935
|
change: optional(picklist(["new", "moved", "cancelled"])),
|
|
2781
2936
|
changed_at: optional(nullable(isoTime)),
|
|
@@ -2787,7 +2942,7 @@ var event = strictObject({
|
|
|
2787
2942
|
*/
|
|
2788
2943
|
overlapping: optional(boolean()),
|
|
2789
2944
|
/** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
|
|
2790
|
-
overlaps: optional(array(
|
|
2945
|
+
overlaps: optional(array(text5))
|
|
2791
2946
|
});
|
|
2792
2947
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
2793
2948
|
id: String(one.id),
|
|
@@ -2807,10 +2962,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2807
2962
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2808
2963
|
}), "eventItem");
|
|
2809
2964
|
|
|
2810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2811
2966
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2812
2967
|
|
|
2813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2814
2969
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2815
2970
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2816
2971
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2840,148 +2995,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2840
2995
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2841
2996
|
}, "validateMeetingRelatedHistory");
|
|
2842
2997
|
|
|
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
|
|
2998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2978
2999
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2979
3000
|
|
|
2980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2981
3002
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2982
3003
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2983
3004
|
|
|
2984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2985
3006
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2986
3007
|
input.signal?.throwIfAborted();
|
|
2987
3008
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3002,10 +3023,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3002
3023
|
return { ...input, limit, maxReadBytes };
|
|
3003
3024
|
}, "validateMeetingSeriesHistory");
|
|
3004
3025
|
|
|
3005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3006
3027
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3007
3028
|
|
|
3008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3009
3030
|
function invalid4(field, response = false) {
|
|
3010
3031
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3011
3032
|
}
|
|
@@ -3034,7 +3055,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3034
3055
|
cursorDetails(value);
|
|
3035
3056
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3036
3057
|
|
|
3037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3038
3059
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3039
3060
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3040
3061
|
const zone = timeZone ?? "UTC";
|
|
@@ -3169,17 +3190,17 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3169
3190
|
};
|
|
3170
3191
|
}, "aggregateMeetingStats");
|
|
3171
3192
|
|
|
3172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
3173
3194
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
3174
3195
|
|
|
3175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
3176
3197
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
3177
3198
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
3178
3199
|
var ERASED_TEXT = "[source erased]";
|
|
3179
3200
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
3180
3201
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
3181
3202
|
|
|
3182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3183
3204
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3184
3205
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3185
3206
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3194,7 +3215,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3194
3215
|
}
|
|
3195
3216
|
__name(closeTask, "closeTask");
|
|
3196
3217
|
|
|
3197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3198
3219
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3199
3220
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3200
3221
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3223,7 +3244,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3223
3244
|
}, "priorityOf");
|
|
3224
3245
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3225
3246
|
|
|
3226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3227
3248
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3228
3249
|
async function find(id5) {
|
|
3229
3250
|
const task = await store.get(id5);
|
|
@@ -3283,13 +3304,13 @@ function median(values) {
|
|
|
3283
3304
|
}
|
|
3284
3305
|
__name(median, "median");
|
|
3285
3306
|
|
|
3286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3287
3308
|
function matches(task, filter) {
|
|
3288
3309
|
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
3310
|
}
|
|
3290
3311
|
__name(matches, "matches");
|
|
3291
3312
|
|
|
3292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3293
3314
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3294
3315
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3295
3316
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3297,10 +3318,10 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
3297
3318
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
3298
3319
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3299
3320
|
|
|
3300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
3301
3322
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
3302
3323
|
|
|
3303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3304
3325
|
var text6 = string();
|
|
3305
3326
|
var id4 = pipe(string(), minLength(1));
|
|
3306
3327
|
var time = isoTime;
|
|
@@ -3325,7 +3346,7 @@ var author = strictObject({
|
|
|
3325
3346
|
name: nullable(text6)
|
|
3326
3347
|
});
|
|
3327
3348
|
|
|
3328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
3329
3350
|
var organization = strictObject({
|
|
3330
3351
|
id: id4,
|
|
3331
3352
|
ref: reference,
|
|
@@ -3355,7 +3376,7 @@ var reminder = strictObject({
|
|
|
3355
3376
|
receipt: nullable(text6)
|
|
3356
3377
|
});
|
|
3357
3378
|
|
|
3358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3359
3380
|
var CURRENCY_SCALES = {
|
|
3360
3381
|
AED: 2,
|
|
3361
3382
|
AMD: 2,
|
|
@@ -3449,7 +3470,7 @@ var quantityOf = /* @__PURE__ */ __name((text7) => {
|
|
|
3449
3470
|
}, "quantityOf");
|
|
3450
3471
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3451
3472
|
|
|
3452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3453
3474
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3454
3475
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3455
3476
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3478,7 +3499,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3478
3499
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3479
3500
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3480
3501
|
|
|
3481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
3482
3503
|
var CATALOG_KINDS = ["product", "service"];
|
|
3483
3504
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
3484
3505
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -3506,7 +3527,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
3506
3527
|
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
3528
|
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
3529
|
|
|
3509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
3510
3531
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
3511
3532
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
3512
3533
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -3627,7 +3648,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
3627
3648
|
return { previous, cleared };
|
|
3628
3649
|
}, "recordDeepCheck");
|
|
3629
3650
|
|
|
3630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
3631
3652
|
var SCHEME = "msg:";
|
|
3632
3653
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
3633
3654
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -3641,7 +3662,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
3641
3662
|
return { provider, account, chat, message };
|
|
3642
3663
|
}, "parseLocator");
|
|
3643
3664
|
|
|
3644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
3645
3666
|
var SIMPLE_REFERENCES = [
|
|
3646
3667
|
"note",
|
|
3647
3668
|
"document",
|
|
@@ -3797,7 +3818,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text7) => {
|
|
|
3797
3818
|
return match !== null && byPrefix.has(match[1]);
|
|
3798
3819
|
}, "looksLikeReference");
|
|
3799
3820
|
|
|
3800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
3801
3822
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
3802
3823
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
3803
3824
|
var PROVIDERS = [
|
|
@@ -3814,7 +3835,9 @@ var PROVIDERS = [
|
|
|
3814
3835
|
{ name: "added", kind: "notes", aliases: [] },
|
|
3815
3836
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
3816
3837
|
// 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 }
|
|
3838
|
+
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
|
|
3839
|
+
// Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
|
|
3840
|
+
{ name: "import", kind: "documents", kinds: ["documents", "messages", "events"], aliases: [], imported: true }
|
|
3818
3841
|
];
|
|
3819
3842
|
var LABELS = {
|
|
3820
3843
|
telegram: "Telegram",
|
|
@@ -3940,7 +3963,9 @@ var kindsIn = /* @__PURE__ */ __name((provider) => {
|
|
|
3940
3963
|
if (isFolderProvider(provider))
|
|
3941
3964
|
return ["notes"];
|
|
3942
3965
|
const entry = registry.find(({ name }) => name === provider);
|
|
3943
|
-
|
|
3966
|
+
if (!entry)
|
|
3967
|
+
return [];
|
|
3968
|
+
return entry.imported ? unitedKinds(kindsOfEntry(entry), ["documents"]) : kindsOfEntry(entry);
|
|
3944
3969
|
}, "kindsIn");
|
|
3945
3970
|
var importedOf = /* @__PURE__ */ __name((entry, held) => {
|
|
3946
3971
|
const builtIn = PROVIDERS.find(({ name }) => name === entry.name);
|
|
@@ -3960,7 +3985,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
3960
3985
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
3961
3986
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
3962
3987
|
|
|
3963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
3964
3989
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
3965
3990
|
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
3991
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -3983,7 +4008,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
3983
4008
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
3984
4009
|
}, "sourceOf");
|
|
3985
4010
|
|
|
3986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
3987
4012
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
3988
4013
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
3989
4014
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -4193,7 +4218,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind2) =
|
|
|
4193
4218
|
return { accounts: [...chosen.values()], skipped };
|
|
4194
4219
|
}, "fitting");
|
|
4195
4220
|
|
|
4196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
4197
4222
|
var DEAL_KINDS = ["deal", "lead"];
|
|
4198
4223
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
4199
4224
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -4203,7 +4228,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
4203
4228
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
4204
4229
|
}, "dealLine");
|
|
4205
4230
|
|
|
4206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
4207
4232
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
4208
4233
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
4209
4234
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -4214,7 +4239,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
4214
4239
|
}, "orderLine");
|
|
4215
4240
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
4216
4241
|
|
|
4217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
4218
4243
|
var ORGANIZATION_ROLES = [
|
|
4219
4244
|
"employee",
|
|
4220
4245
|
"contractor",
|
|
@@ -4317,7 +4342,16 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
4317
4342
|
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
4343
|
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
4344
|
|
|
4320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
4346
|
+
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
4347
|
+
var isCrmUserId = /* @__PURE__ */ __name((id5) => /^\d{1,20}$/.test(id5), "isCrmUserId");
|
|
4348
|
+
var normalCrmUserId = /* @__PURE__ */ __name((id5) => {
|
|
4349
|
+
const text7 = id5.trim();
|
|
4350
|
+
return /^\d+$/.test(text7) ? text7.replace(/^0+(?=\d)/, "") : text7;
|
|
4351
|
+
}, "normalCrmUserId");
|
|
4352
|
+
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
4353
|
+
|
|
4354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
4321
4355
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
4322
4356
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
4323
4357
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4331,7 +4365,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
4331
4365
|
return tag;
|
|
4332
4366
|
}, "normalizeTag");
|
|
4333
4367
|
|
|
4334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
4335
4369
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
4336
4370
|
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
4337
4371
|
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 +4375,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
4341
4375
|
};
|
|
4342
4376
|
}, "sourceOf");
|
|
4343
4377
|
|
|
4344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
4345
4379
|
var LINK_KINDS = [
|
|
4346
4380
|
"links-to",
|
|
4347
4381
|
"blocked-by",
|
|
@@ -4361,7 +4395,7 @@ var LINK_KINDS = [
|
|
|
4361
4395
|
"attached"
|
|
4362
4396
|
];
|
|
4363
4397
|
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
4364
|
-
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
4398
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
4365
4399
|
var linkKind = /* @__PURE__ */ __name((kind2) => `'${kind2}'`, "linkKind");
|
|
4366
4400
|
var COUNTERPART_ROLE = "counterpart";
|
|
4367
4401
|
|
|
@@ -4381,6 +4415,7 @@ export {
|
|
|
4381
4415
|
listRuns,
|
|
4382
4416
|
findRun,
|
|
4383
4417
|
readEvents,
|
|
4418
|
+
pruneRuns,
|
|
4384
4419
|
asOwnProcess,
|
|
4385
4420
|
currentRun,
|
|
4386
4421
|
inRun,
|
|
@@ -4430,6 +4465,7 @@ export {
|
|
|
4430
4465
|
meetingTimestamp,
|
|
4431
4466
|
findingText,
|
|
4432
4467
|
findingHash,
|
|
4468
|
+
snakeCase,
|
|
4433
4469
|
findingFields,
|
|
4434
4470
|
findingNeeds,
|
|
4435
4471
|
validEvidence,
|
|
@@ -4563,6 +4599,10 @@ export {
|
|
|
4563
4599
|
KEYED,
|
|
4564
4600
|
notOverriddenSql,
|
|
4565
4601
|
usableLinkSql,
|
|
4602
|
+
CRM_ACTIVITY_KINDS,
|
|
4603
|
+
isCrmUserId,
|
|
4604
|
+
normalCrmUserId,
|
|
4605
|
+
isItemKind,
|
|
4566
4606
|
organization,
|
|
4567
4607
|
project,
|
|
4568
4608
|
reminder,
|