@wirecat/drive-cli 0.67.0 → 0.68.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/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-DVZUVAPQ.js → all-profiles-BU6XUFUP.js} +7 -7
- package/dist/bundle/{anthropic-Y45C45O2.js → anthropic-ZP5B7S2Z.js} +2 -2
- package/dist/bundle/{app-server-GTXUOUGD.js → app-server-EB4DH6T7.js} +49 -45
- package/dist/bundle/{bun-QVJV76QJ.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-CC7PIAMH.js → bun-sqlite-6VPR2SVC.js} +3 -3
- package/dist/bundle/{chunk-JO7BJYAP.js → chunk-2UHQVRH2.js} +15 -15
- package/dist/bundle/{chunk-NFIR346J.js → chunk-2VYEGKQ3.js} +1 -1
- package/dist/bundle/{chunk-MEY7URZZ.js → chunk-43NEDPXB.js} +4 -4
- package/dist/bundle/{chunk-YVUAG7RF.js → chunk-5G2BY4B6.js} +15 -15
- package/dist/bundle/{chunk-T2VAEDJS.js → chunk-5W65QTYS.js} +3 -3
- package/dist/bundle/{chunk-LSAIXPAX.js → chunk-6HFZZ2PW.js} +1 -1
- package/dist/bundle/{chunk-AJ3DFPRT.js → chunk-6QR7NKMG.js} +1 -1
- package/dist/bundle/{chunk-NWYVOHIX.js → chunk-6WAC2LOS.js} +459 -419
- package/dist/bundle/{chunk-HJF2QGOX.js → chunk-74NCZKRW.js} +29 -16
- package/dist/bundle/{chunk-4VH7M2OD.js → chunk-7A77GYCE.js} +2 -2
- package/dist/bundle/{chunk-2PIA45FC.js → chunk-7BXVI7XF.js} +1 -1
- package/dist/bundle/{chunk-ETAFFY3J.js → chunk-7TNQZKRD.js} +52 -52
- package/dist/bundle/{chunk-E3XA56TS.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-EXWOOST5.js → chunk-AXYG2DDY.js} +111 -83
- package/dist/bundle/{chunk-LXRBTXCZ.js → chunk-BXHFJTU5.js} +2 -2
- package/dist/bundle/{chunk-OOBSSU2G.js → chunk-CK2SQ2CE.js} +14 -13
- package/dist/bundle/{chunk-MF46W7PQ.js → chunk-CMWFYZ45.js} +1 -1
- package/dist/bundle/{chunk-4G7WQNG7.js → chunk-CRIEW4FP.js} +1 -1
- package/dist/bundle/{chunk-RC72RU66.js → chunk-CVAJMRRD.js} +5 -5
- package/dist/bundle/{chunk-YI4DXASF.js → chunk-DIZBJLPM.js} +36 -32
- package/dist/bundle/{chunk-FS2PG2PE.js → chunk-DU23ET2O.js} +18 -18
- package/dist/bundle/{chunk-JY2GZDJL.js → chunk-DYLYH7VE.js} +3 -3
- package/dist/bundle/{chunk-C72WYRXD.js → chunk-EEE4H2PA.js} +10 -10
- package/dist/bundle/{chunk-2MEVCMBW.js → chunk-EOC7RHJ2.js} +3 -3
- package/dist/bundle/{chunk-ZH4H5XTA.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-VZ5KETIX.js → chunk-F7KAMSXA.js} +2 -2
- package/dist/bundle/{chunk-SJE7UGOW.js → chunk-FAMXUI2X.js} +4 -4
- package/dist/bundle/{chunk-IRULPE5M.js → chunk-GTLXBAJV.js} +297 -281
- package/dist/bundle/{chunk-UFNE57VY.js → chunk-IVOG6T6P.js} +2 -2
- package/dist/bundle/{chunk-MBLB4TQI.js → chunk-J5LXL435.js} +18 -18
- package/dist/bundle/{chunk-XZCF5XU7.js → chunk-JMZQBRRZ.js} +5 -5
- package/dist/bundle/{chunk-PDHN4GHU.js → chunk-JZ3MT7IE.js} +1 -1
- package/dist/bundle/{chunk-P6A77LMP.js → chunk-KPKIHJIT.js} +5 -7
- package/dist/bundle/{chunk-2Y3YBDZX.js → chunk-MLSXHTUB.js} +137 -135
- package/dist/bundle/{chunk-ZEPDEFVT.js → chunk-MOKEB656.js} +1 -1
- package/dist/bundle/{chunk-BHSLMJF7.js → chunk-MWCPKUU4.js} +4 -4
- package/dist/bundle/{chunk-ULH3TNUP.js → chunk-NV75QPML.js} +4 -4
- package/dist/bundle/{chunk-CWDC6QJM.js → chunk-O7T3WGCV.js} +4 -4
- package/dist/bundle/{chunk-JJHDV32D.js → chunk-PGPHEC2X.js} +1 -1
- package/dist/bundle/{chunk-AAZPDWRD.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-MEQNAZ6R.js → chunk-PWIEOATY.js} +5 -5
- package/dist/bundle/{chunk-6ERQE4FS.js → chunk-Q6BD6RUH.js} +40 -40
- package/dist/bundle/{chunk-3RG6LL25.js → chunk-QKY24RWV.js} +10 -10
- package/dist/bundle/{chunk-ABJQ6IDU.js → chunk-QRSPFCRY.js} +16 -16
- package/dist/bundle/{chunk-U2ERT45N.js → chunk-QTRYJZL7.js} +4 -4
- package/dist/bundle/{chunk-SXJDCRXE.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-WBKYZZQT.js → chunk-QWGEOQHA.js} +1 -1
- package/dist/bundle/{chunk-AZKFZ7J7.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-DAFKV6DJ.js → chunk-RT5NT62B.js} +12 -12
- package/dist/bundle/{chunk-UOAHZV3K.js → chunk-SOS4U2RF.js} +18 -18
- package/dist/bundle/{chunk-ZU5VQYNY.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-5DMPGTNR.js → chunk-U52QE4QV.js} +2 -2
- package/dist/bundle/{chunk-JLUQZZ26.js → chunk-UFPRP7MG.js} +7 -7
- package/dist/bundle/{chunk-WWW7YTFG.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-WKIQKGOF.js → chunk-ULNN3LCY.js} +26 -24
- package/dist/bundle/{chunk-5TSILGTO.js → chunk-UUQJVKPB.js} +323 -323
- package/dist/bundle/{chunk-7AZCAUST.js → chunk-UYBLNGZ2.js} +1 -1
- package/dist/bundle/{chunk-V7E25BUU.js → chunk-WCNTDETD.js} +2 -2
- package/dist/bundle/{chunk-ZK46UHDP.js → chunk-WGX4DZPW.js} +2 -2
- package/dist/bundle/{chunk-7J2IP3WL.js → chunk-WUFZGPXX.js} +6 -6
- package/dist/bundle/{chunk-Y5WSRG3F.js → chunk-YUGTJBV3.js} +2 -2
- package/dist/bundle/{chunk-JCNEPYQZ.js → chunk-YYIWPH53.js} +12 -12
- package/dist/bundle/{chunk-RLH6BOEG.js → chunk-Z5BMYI2V.js} +5 -5
- package/dist/bundle/{chunk-FOMQ4MG3.js → chunk-ZAIE3G5I.js} +2 -2
- package/dist/bundle/{chunk-QOKPRFHM.js → chunk-ZSVMZH5O.js} +2 -2
- package/dist/bundle/{chunk-JEMBW6IO.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{cli-U4LSBYDV.js → cli-L7P36YUH.js} +50 -50
- package/dist/bundle/{command-contract-UU5T24ZZ.js → command-contract-EYFGMKIG.js} +16 -16
- package/dist/bundle/{command-server-entry-PK6FBUPO.js → command-server-entry-H3VGPOLJ.js} +23 -23
- package/dist/bundle/{decode-3ZE6NBKV.js → decode-JEU6JWCV.js} +2 -2
- package/dist/bundle/drive.js +3 -3
- package/dist/bundle/{echarts-6FWNCNXK.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-DGYBBZUW.js → embed-WUKOASQG.js} +3 -3
- package/dist/bundle/{embedder-O7A6VMWI.js → embedder-UBRAXRDZ.js} +6 -6
- package/dist/bundle/{entry-CDJ2QSU2.js → entry-C4NUQFTF.js} +6 -6
- package/dist/bundle/{first-run-UOQW7DN5.js → first-run-PKHBS7B4.js} +5 -5
- package/dist/bundle/{first-screen-SNDV4YKF.js → first-screen-QOVOM4BF.js} +17 -17
- package/dist/bundle/{google-HPX52KMC.js → google-XXHSMTVK.js} +14 -14
- package/dist/bundle/{google-api-HIMN4XL5.js → google-api-SQQ4BSNR.js} +51 -51
- package/dist/bundle/{grants-RO42I6E4.js → grants-2U4JVT6O.js} +56 -56
- package/dist/bundle/{identity-NFGHDPLL.js → identity-SRL6RSU2.js} +1 -1
- package/dist/bundle/{instructions-6JAQYCM6.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{login-RZOQN63N.js → login-N243GGEE.js} +56 -56
- package/dist/bundle/{node-KSIX3GIH.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-4FJ6WJXN.js → node-sqlite-SZQCCMV2.js} +4 -4
- package/dist/bundle/{oauth-BKZAMFKK.js → oauth-CMAFXX6A.js} +4 -4
- package/dist/bundle/{open-4AQJGH42.js → open-RVTPKDA3.js} +2 -2
- package/dist/bundle/{openai-24F2OX55.js → openai-6NN63BMH.js} +13 -13
- package/dist/bundle/{process-7NOA2T7H.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-7JHMLDEX.js → program-B4QBJYB5.js} +78 -75
- package/dist/bundle/{prompt-NM66MAZ4.js → prompt-HGP2DSRW.js} +2 -2
- package/dist/bundle/{recognize-DBKV2JYZ.js → recognize-26SHB7HI.js} +1 -1
- package/dist/bundle/{remote-ABWUTBVB.js → remote-Z4PWHZ5N.js} +7 -7
- package/dist/bundle/{rerank-FQAU4ENY.js → rerank-QHJZJK3Q.js} +4 -4
- package/dist/bundle/{serve-QLJG4QZD.js → serve-MYJW5IEM.js} +6 -6
- package/dist/bundle/server-HBZPIHDX.js +74 -0
- package/dist/bundle/{server-VGZNK5XD.js → server-XFW3V7CR.js} +38 -36
- package/dist/bundle/{services-5KARVUHK.js → services-IQG2RVTO.js} +25 -25
- package/dist/bundle/{sqlite-runtime-ILF6EFQJ.js → sqlite-runtime-X4GB5PBV.js} +3 -3
- package/dist/bundle/{state-R2M56GPU.js → state-ATQK2X3W.js} +3 -3
- package/dist/bundle/{store-2OBVMUQL.js → store-MEHEUOJH.js} +11 -11
- package/dist/bundle/{store-DA4K7HWW.js → store-QUBUPK6F.js} +13 -13
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
- package/dist/bundle/tokens-A2GP4F34.js +111 -0
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -2
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-NUBLY5SV.js +0 -74
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +0 -65
- package/dist/bundle/tokens-VQDGSHRB.js +0 -111
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
isCliFailure,
|
|
14
14
|
isStoreDamage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
16
16
|
import {
|
|
17
17
|
refuseOwnerStoreInTests
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CRIEW4FP.js";
|
|
19
19
|
import {
|
|
20
20
|
createRecordLog,
|
|
21
21
|
resolvePaths,
|
|
@@ -62,13 +62,13 @@ import {
|
|
|
62
62
|
__name
|
|
63
63
|
} from "./chunk-ZVVMGPBJ.js";
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
66
66
|
import { randomUUID } from "node:crypto";
|
|
67
67
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
68
68
|
import { userInfo } from "node:os";
|
|
69
69
|
import { join, sep } from "node:path";
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
72
72
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
73
73
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
74
74
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -81,7 +81,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
81
81
|
error: /* @__PURE__ */ __name((event2, message) => logger.error(logAttributes(event2), message), "error")
|
|
82
82
|
}), "snakeLogger");
|
|
83
83
|
|
|
84
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
84
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
85
85
|
var diagnostic = {
|
|
86
86
|
event: true,
|
|
87
87
|
operation: true,
|
|
@@ -155,7 +155,7 @@ var LOG_ATTRIBUTES = [
|
|
|
155
155
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
156
156
|
].sort();
|
|
157
157
|
|
|
158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
159
159
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
160
160
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
161
161
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -522,7 +522,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
522
522
|
};
|
|
523
523
|
}, "metadataOf");
|
|
524
524
|
|
|
525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
526
526
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
527
527
|
import { randomBytes } from "node:crypto";
|
|
528
528
|
var scopes = new AsyncLocalStorage();
|
|
@@ -575,7 +575,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
575
575
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
576
576
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
577
577
|
|
|
578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
579
579
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
580
580
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
581
581
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -669,7 +669,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
669
669
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
670
670
|
}, "paymentTitle");
|
|
671
671
|
|
|
672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
673
673
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
674
674
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
675
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)))
|
|
@@ -682,7 +682,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
682
682
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
683
683
|
}, "validateMeetingPassage");
|
|
684
684
|
|
|
685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
686
686
|
var text = string();
|
|
687
687
|
var identifier = pipe(text, minLength(1));
|
|
688
688
|
var nullableText = nullable(text);
|
|
@@ -816,7 +816,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
816
816
|
meeting_repair: repair
|
|
817
817
|
};
|
|
818
818
|
|
|
819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
820
820
|
var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
821
821
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
822
822
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -853,7 +853,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
853
853
|
}, "parseMeetingReference");
|
|
854
854
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
855
855
|
|
|
856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
857
857
|
var text2 = string();
|
|
858
858
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
859
859
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -918,7 +918,11 @@ var MEETING_QUERY = {
|
|
|
918
918
|
})
|
|
919
919
|
};
|
|
920
920
|
|
|
921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
922
|
+
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
923
|
+
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
924
|
+
|
|
925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
922
926
|
var text3 = string();
|
|
923
927
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
924
928
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1005,6 +1009,16 @@ var meetingDetails = strictObject({
|
|
|
1005
1009
|
mime: nullable(text3),
|
|
1006
1010
|
size: nullable(count3),
|
|
1007
1011
|
url: nullable(text3)
|
|
1012
|
+
})),
|
|
1013
|
+
/**
|
|
1014
|
+
* The Drive files the meeting service saved for it, by role. `document` is the stored document (`document:<id>`) once
|
|
1015
|
+
* a Drive profile has imported the file, else `null`: then `drive` can fetch it by `file_id`.
|
|
1016
|
+
*/
|
|
1017
|
+
documents: array(strictObject({
|
|
1018
|
+
file_id: text3,
|
|
1019
|
+
role: picklist(MEETING_DOCUMENT_ROLES),
|
|
1020
|
+
title: nullable(text3),
|
|
1021
|
+
document: nullable(reference)
|
|
1008
1022
|
}))
|
|
1009
1023
|
});
|
|
1010
1024
|
var meetingRef = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
|
|
@@ -1082,6 +1096,12 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
|
|
|
1082
1096
|
mime: one.mime,
|
|
1083
1097
|
size: one.size,
|
|
1084
1098
|
url: one.url
|
|
1099
|
+
})),
|
|
1100
|
+
documents: (details.documents ?? []).map((one) => ({
|
|
1101
|
+
file_id: one.fileId,
|
|
1102
|
+
role: one.role,
|
|
1103
|
+
title: one.title,
|
|
1104
|
+
document: one.documentId === null ? null : `document:${one.documentId}`
|
|
1085
1105
|
}))
|
|
1086
1106
|
};
|
|
1087
1107
|
}, "meetingDetailsItem");
|
|
@@ -1156,7 +1176,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1156
1176
|
};
|
|
1157
1177
|
}, "meetingHitsList");
|
|
1158
1178
|
|
|
1159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1160
1180
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1161
1181
|
const parsed = urlOf(url);
|
|
1162
1182
|
if (!parsed)
|
|
@@ -1190,7 +1210,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1190
1210
|
}
|
|
1191
1211
|
}, "urlOf");
|
|
1192
1212
|
|
|
1193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1194
1214
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1195
1215
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1196
1216
|
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");
|
|
@@ -1227,7 +1247,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1227
1247
|
return kept;
|
|
1228
1248
|
}, "entryMetadata");
|
|
1229
1249
|
|
|
1230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1231
1251
|
import { createHash } from "node:crypto";
|
|
1232
1252
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1233
1253
|
reference: cue2.reference,
|
|
@@ -1241,7 +1261,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1241
1261
|
text: cue2.text
|
|
1242
1262
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1243
1263
|
|
|
1244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1245
1265
|
var EVENT_QUERY = defineQuery({
|
|
1246
1266
|
entity: "event",
|
|
1247
1267
|
backend: "sql",
|
|
@@ -1257,7 +1277,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1257
1277
|
]
|
|
1258
1278
|
});
|
|
1259
1279
|
|
|
1260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1261
1281
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1262
1282
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1263
1283
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1280,8 +1300,8 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1280
1300
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1281
1301
|
}, "entryInWindow");
|
|
1282
1302
|
|
|
1283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1284
|
-
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1304
|
+
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
1285
1305
|
const current = await store.meeting(details.meeting.id);
|
|
1286
1306
|
if (!current)
|
|
1287
1307
|
return null;
|
|
@@ -1299,6 +1319,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1299
1319
|
return null;
|
|
1300
1320
|
}
|
|
1301
1321
|
let event2 = candidates[0];
|
|
1322
|
+
if (!event2 && !create)
|
|
1323
|
+
return null;
|
|
1302
1324
|
if (!event2) {
|
|
1303
1325
|
let eventSeriesId = series?.eventSeriesId ?? null;
|
|
1304
1326
|
if (series?.kind === "recurring" && eventSeriesId === null) {
|
|
@@ -1323,7 +1345,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1323
1345
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1324
1346
|
}, "linkEvent");
|
|
1325
1347
|
|
|
1326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1327
1349
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1328
1350
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1329
1351
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1347,7 +1369,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1347
1369
|
};
|
|
1348
1370
|
}, "validateMeetingParticipantSearch");
|
|
1349
1371
|
|
|
1350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1351
1373
|
var MeetingError = class extends CliError {
|
|
1352
1374
|
static {
|
|
1353
1375
|
__name(this, "MeetingError");
|
|
@@ -1479,7 +1501,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
|
|
|
1479
1501
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1480
1502
|
}, "meetingSummaryAnswer");
|
|
1481
1503
|
|
|
1482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1483
1505
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1484
1506
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1485
1507
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1575,10 +1597,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
|
|
|
1575
1597
|
};
|
|
1576
1598
|
}, "exportMeeting");
|
|
1577
1599
|
|
|
1578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1579
1601
|
import { createHash as createHash2 } from "node:crypto";
|
|
1580
1602
|
|
|
1581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1582
1604
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1583
1605
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1584
1606
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1589,7 +1611,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1589
1611
|
return new Date(value).toISOString();
|
|
1590
1612
|
}, "meetingTimestamp");
|
|
1591
1613
|
|
|
1592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1593
1615
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1594
1616
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1595
1617
|
throw new CliError("validation_error", message);
|
|
@@ -1764,7 +1786,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1764
1786
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1765
1787
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1766
1788
|
|
|
1767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1768
1790
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1769
1791
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1770
1792
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1775,7 +1797,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1775
1797
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1776
1798
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1777
1799
|
|
|
1778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1779
1801
|
var context = {
|
|
1780
1802
|
command: "search meetings",
|
|
1781
1803
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1895,7 +1917,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
1895
1917
|
return { version: 1, language: "lucene-v1", root };
|
|
1896
1918
|
}, "meetingWordsQuery");
|
|
1897
1919
|
|
|
1898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1899
1921
|
var LATIN_WORDS = {
|
|
1900
1922
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1901
1923
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -1944,7 +1966,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1944
1966
|
return null;
|
|
1945
1967
|
}, "transcriptLanguage");
|
|
1946
1968
|
|
|
1947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1948
1970
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
1949
1971
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
1950
1972
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1981,7 +2003,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1981
2003
|
return time2;
|
|
1982
2004
|
}, "timestamp");
|
|
1983
2005
|
|
|
1984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1985
2007
|
var TranscriptTextError = class extends Error {
|
|
1986
2008
|
static {
|
|
1987
2009
|
__name(this, "TranscriptTextError");
|
|
@@ -2036,7 +2058,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2036
2058
|
return { header, lines };
|
|
2037
2059
|
}, "parseTranscriptText");
|
|
2038
2060
|
|
|
2039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2040
2062
|
var VttError = class extends Error {
|
|
2041
2063
|
static {
|
|
2042
2064
|
__name(this, "VttError");
|
|
@@ -2088,7 +2110,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2088
2110
|
return cues;
|
|
2089
2111
|
}, "parseVtt");
|
|
2090
2112
|
|
|
2091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2092
2114
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2093
2115
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2094
2116
|
for (const file of files) {
|
|
@@ -2121,10 +2143,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2121
2143
|
return report;
|
|
2122
2144
|
}, "importFiles");
|
|
2123
2145
|
|
|
2124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2125
2147
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2126
2148
|
|
|
2127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
2128
2150
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
2129
2151
|
const provider = scope2?.provider;
|
|
2130
2152
|
const account = scope2?.account;
|
|
@@ -2133,7 +2155,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
2133
2155
|
return Object.freeze({ provider, account });
|
|
2134
2156
|
}, "snapshotMeetingScope");
|
|
2135
2157
|
|
|
2136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2137
2159
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2138
2160
|
if (typeof value !== "string" || !value.trim())
|
|
2139
2161
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2199,7 +2221,7 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
|
|
|
2199
2221
|
return { applied: true, value: await dispatch(signal) };
|
|
2200
2222
|
}, "dispatchMeetingMutation");
|
|
2201
2223
|
|
|
2202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
2203
2225
|
var id = /* @__PURE__ */ __name((value) => {
|
|
2204
2226
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
2205
2227
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
@@ -2321,7 +2343,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
|
|
|
2321
2343
|
};
|
|
2322
2344
|
}, "createMeetingContext");
|
|
2323
2345
|
|
|
2324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2325
2347
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2326
2348
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2327
2349
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2346,7 +2368,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2346
2368
|
return { ...input, limit, maxReadBytes };
|
|
2347
2369
|
}, "validateMeetingPreparationContext");
|
|
2348
2370
|
|
|
2349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2350
2372
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2351
2373
|
var id2 = pipe(string(), minLength(1));
|
|
2352
2374
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2467,7 +2489,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2467
2489
|
};
|
|
2468
2490
|
}, "meetingProjectEvidenceAnswer");
|
|
2469
2491
|
|
|
2470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2471
2493
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2472
2494
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2473
2495
|
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) || [
|
|
@@ -2487,7 +2509,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2487
2509
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2488
2510
|
}, "validateMeetingHitSearch");
|
|
2489
2511
|
|
|
2490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2491
2513
|
var ids = {
|
|
2492
2514
|
meeting_id: "meetingId",
|
|
2493
2515
|
identity_id: "participantIdentityId",
|
|
@@ -2578,7 +2600,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
2578
2600
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
2579
2601
|
}, "prepareMeetingProjectEvidence");
|
|
2580
2602
|
|
|
2581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2582
2604
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
2583
2605
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
2584
2606
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2586,7 +2608,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
2586
2608
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2587
2609
|
}, "readMeetingProjectEvidence");
|
|
2588
2610
|
|
|
2589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2590
2612
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2591
2613
|
const { identityExternalId, phone, ...fields2 } = p;
|
|
2592
2614
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2678,6 +2700,8 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2678
2700
|
const chat = await read("chat", () => source.chat(id5));
|
|
2679
2701
|
const summary = await read("summary", () => source.summary(id5));
|
|
2680
2702
|
const attachments = await read("files", () => source.files(id5));
|
|
2703
|
+
const listDocuments = source.documents?.bind(source);
|
|
2704
|
+
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
2681
2705
|
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
2682
2706
|
const endedAt = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
2683
2707
|
if (endedAt !== null && endedAt < startedAt)
|
|
@@ -2739,6 +2763,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2739
2763
|
}
|
|
2740
2764
|
] : void 0,
|
|
2741
2765
|
attachments: attachments ?? void 0,
|
|
2766
|
+
documents: documents ?? void 0,
|
|
2742
2767
|
now
|
|
2743
2768
|
});
|
|
2744
2769
|
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
@@ -2748,7 +2773,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2748
2773
|
unlinked`, format)],
|
|
2749
2774
|
now
|
|
2750
2775
|
});
|
|
2751
|
-
await linkEvent(store, details, now);
|
|
2776
|
+
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
2752
2777
|
for (const p of participants)
|
|
2753
2778
|
if (p.identity.phone)
|
|
2754
2779
|
callers.add(p.identity.externalId);
|
|
@@ -2767,7 +2792,7 @@ unlinked`, format)],
|
|
|
2767
2792
|
return report;
|
|
2768
2793
|
}, "pull");
|
|
2769
2794
|
|
|
2770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2771
2796
|
var text5 = string();
|
|
2772
2797
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2773
2798
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -2962,10 +2987,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2962
2987
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2963
2988
|
}), "eventItem");
|
|
2964
2989
|
|
|
2965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2966
2991
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2967
2992
|
|
|
2968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2969
2994
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2970
2995
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2971
2996
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2995,14 +3020,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2995
3020
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2996
3021
|
}, "validateMeetingRelatedHistory");
|
|
2997
3022
|
|
|
2998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2999
3024
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3000
3025
|
|
|
3001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3002
3027
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3003
3028
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3004
3029
|
|
|
3005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3006
3031
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3007
3032
|
input.signal?.throwIfAborted();
|
|
3008
3033
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3023,10 +3048,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3023
3048
|
return { ...input, limit, maxReadBytes };
|
|
3024
3049
|
}, "validateMeetingSeriesHistory");
|
|
3025
3050
|
|
|
3026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3027
3052
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3028
3053
|
|
|
3029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3030
3055
|
function invalid4(field, response = false) {
|
|
3031
3056
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3032
3057
|
}
|
|
@@ -3055,7 +3080,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3055
3080
|
cursorDetails(value);
|
|
3056
3081
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3057
3082
|
|
|
3058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3059
3084
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3060
3085
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3061
3086
|
const zone = timeZone ?? "UTC";
|
|
@@ -3190,17 +3215,14 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3190
3215
|
};
|
|
3191
3216
|
}, "aggregateMeetingStats");
|
|
3192
3217
|
|
|
3193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3194
|
-
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
3195
|
-
|
|
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
|
|
3218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
3197
3219
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
3198
3220
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
3199
3221
|
var ERASED_TEXT = "[source erased]";
|
|
3200
3222
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
3201
3223
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
3202
3224
|
|
|
3203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3204
3226
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3205
3227
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3206
3228
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3215,7 +3237,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3215
3237
|
}
|
|
3216
3238
|
__name(closeTask, "closeTask");
|
|
3217
3239
|
|
|
3218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3219
3241
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3220
3242
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3221
3243
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3244,7 +3266,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3244
3266
|
}, "priorityOf");
|
|
3245
3267
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3246
3268
|
|
|
3247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3248
3270
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3249
3271
|
async function find(id5) {
|
|
3250
3272
|
const task = await store.get(id5);
|
|
@@ -3304,13 +3326,13 @@ function median(values) {
|
|
|
3304
3326
|
}
|
|
3305
3327
|
__name(median, "median");
|
|
3306
3328
|
|
|
3307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3308
3330
|
function matches(task, filter) {
|
|
3309
3331
|
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);
|
|
3310
3332
|
}
|
|
3311
3333
|
__name(matches, "matches");
|
|
3312
3334
|
|
|
3313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3314
3336
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3315
3337
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3316
3338
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3318,10 +3340,10 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
3318
3340
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
3319
3341
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3320
3342
|
|
|
3321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
3322
3344
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
3323
3345
|
|
|
3324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3325
3347
|
var text6 = string();
|
|
3326
3348
|
var id4 = pipe(string(), minLength(1));
|
|
3327
3349
|
var time = isoTime;
|
|
@@ -3346,7 +3368,7 @@ var author = strictObject({
|
|
|
3346
3368
|
name: nullable(text6)
|
|
3347
3369
|
});
|
|
3348
3370
|
|
|
3349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
3350
3372
|
var organization = strictObject({
|
|
3351
3373
|
id: id4,
|
|
3352
3374
|
ref: reference,
|
|
@@ -3376,7 +3398,7 @@ var reminder = strictObject({
|
|
|
3376
3398
|
receipt: nullable(text6)
|
|
3377
3399
|
});
|
|
3378
3400
|
|
|
3379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3380
3402
|
var CURRENCY_SCALES = {
|
|
3381
3403
|
AED: 2,
|
|
3382
3404
|
AMD: 2,
|
|
@@ -3470,7 +3492,7 @@ var quantityOf = /* @__PURE__ */ __name((text7) => {
|
|
|
3470
3492
|
}, "quantityOf");
|
|
3471
3493
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3472
3494
|
|
|
3473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3474
3496
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3475
3497
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3476
3498
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3499,7 +3521,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3499
3521
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3500
3522
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3501
3523
|
|
|
3502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
3503
3525
|
var CATALOG_KINDS = ["product", "service"];
|
|
3504
3526
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
3505
3527
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -3527,7 +3549,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
3527
3549
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
3528
3550
|
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");
|
|
3529
3551
|
|
|
3530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
3531
3553
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
3532
3554
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
3533
3555
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -3648,7 +3670,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
3648
3670
|
return { previous, cleared };
|
|
3649
3671
|
}, "recordDeepCheck");
|
|
3650
3672
|
|
|
3651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
3652
3674
|
var SCHEME = "msg:";
|
|
3653
3675
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
3654
3676
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -3662,7 +3684,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
3662
3684
|
return { provider, account, chat, message };
|
|
3663
3685
|
}, "parseLocator");
|
|
3664
3686
|
|
|
3665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
3666
3688
|
var SIMPLE_REFERENCES = [
|
|
3667
3689
|
"note",
|
|
3668
3690
|
"document",
|
|
@@ -3818,7 +3840,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text7) => {
|
|
|
3818
3840
|
return match !== null && byPrefix.has(match[1]);
|
|
3819
3841
|
}, "looksLikeReference");
|
|
3820
3842
|
|
|
3821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
3822
3844
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
3823
3845
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
3824
3846
|
var PROVIDERS = [
|
|
@@ -3834,6 +3856,9 @@ var PROVIDERS = [
|
|
|
3834
3856
|
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
3835
3857
|
{ name: "added", kind: "notes", aliases: [] },
|
|
3836
3858
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
3859
|
+
{ name: "google-meet", kind: "meetings", aliases: [], command: "meet" },
|
|
3860
|
+
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
3861
|
+
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
3837
3862
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
3838
3863
|
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
|
|
3839
3864
|
// Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
|
|
@@ -3847,8 +3872,10 @@ var LABELS = {
|
|
|
3847
3872
|
whatsapp: "WhatsApp",
|
|
3848
3873
|
"whatsapp-bot": "WhatsApp bot",
|
|
3849
3874
|
"google-drive": "Google Drive",
|
|
3875
|
+
"google-meet": "Google Meet",
|
|
3850
3876
|
added: "added by hand",
|
|
3851
|
-
email: "mail"
|
|
3877
|
+
email: "mail",
|
|
3878
|
+
telemost: "Telemost"
|
|
3852
3879
|
};
|
|
3853
3880
|
var providerLabel = /* @__PURE__ */ __name((provider) => LABELS[provider] ?? provider, "providerLabel");
|
|
3854
3881
|
var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
|
|
@@ -3985,7 +4012,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
3985
4012
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
3986
4013
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
3987
4014
|
|
|
3988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
3989
4016
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
3990
4017
|
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");
|
|
3991
4018
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -4008,7 +4035,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
4008
4035
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
4009
4036
|
}, "sourceOf");
|
|
4010
4037
|
|
|
4011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
4012
4039
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
4013
4040
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
4014
4041
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -4218,7 +4245,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind2) =
|
|
|
4218
4245
|
return { accounts: [...chosen.values()], skipped };
|
|
4219
4246
|
}, "fitting");
|
|
4220
4247
|
|
|
4221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
4222
4249
|
var DEAL_KINDS = ["deal", "lead"];
|
|
4223
4250
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
4224
4251
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -4228,7 +4255,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
4228
4255
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
4229
4256
|
}, "dealLine");
|
|
4230
4257
|
|
|
4231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
4232
4259
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
4233
4260
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
4234
4261
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -4239,7 +4266,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
4239
4266
|
}, "orderLine");
|
|
4240
4267
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
4241
4268
|
|
|
4242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
4243
4270
|
var ORGANIZATION_ROLES = [
|
|
4244
4271
|
"employee",
|
|
4245
4272
|
"contractor",
|
|
@@ -4342,7 +4369,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
4342
4369
|
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");
|
|
4343
4370
|
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");
|
|
4344
4371
|
|
|
4345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
4346
4373
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
4347
4374
|
var isCrmUserId = /* @__PURE__ */ __name((id5) => /^\d{1,20}$/.test(id5), "isCrmUserId");
|
|
4348
4375
|
var normalCrmUserId = /* @__PURE__ */ __name((id5) => {
|
|
@@ -4351,7 +4378,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id5) => {
|
|
|
4351
4378
|
}, "normalCrmUserId");
|
|
4352
4379
|
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
4353
4380
|
|
|
4354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
4355
4382
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
4356
4383
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
4357
4384
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4365,7 +4392,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
4365
4392
|
return tag;
|
|
4366
4393
|
}, "normalizeTag");
|
|
4367
4394
|
|
|
4368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
4369
4396
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
4370
4397
|
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
4371
4398
|
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;
|
|
@@ -4375,7 +4402,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
4375
4402
|
};
|
|
4376
4403
|
}, "sourceOf");
|
|
4377
4404
|
|
|
4378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
4379
4406
|
var LINK_KINDS = [
|
|
4380
4407
|
"links-to",
|
|
4381
4408
|
"blocked-by",
|
|
@@ -4433,6 +4460,8 @@ export {
|
|
|
4433
4460
|
canonicalMeetingReference,
|
|
4434
4461
|
meeting,
|
|
4435
4462
|
MEETING_QUERY,
|
|
4463
|
+
MEETING_DOCUMENT_ROLES,
|
|
4464
|
+
READ_BUDGET_EXCEEDED,
|
|
4436
4465
|
meetingHit,
|
|
4437
4466
|
meetingTranscript,
|
|
4438
4467
|
meetingSummary,
|
|
@@ -4516,7 +4545,6 @@ export {
|
|
|
4516
4545
|
validateMeetingSeriesInventoryCursor,
|
|
4517
4546
|
aggregateMeetingCounts,
|
|
4518
4547
|
aggregateMeetingStats,
|
|
4519
|
-
READ_BUDGET_EXCEEDED,
|
|
4520
4548
|
SOURCE_REVIEW_KIND,
|
|
4521
4549
|
SOURCE_REVIEW_CAUSES,
|
|
4522
4550
|
ERASED_TEXT,
|