@wirecat/cli-memo 0.131.75 → 0.131.76
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/actions/actions.d.ts +1 -0
- package/dist/actions/actions.d.ts.map +1 -1
- package/dist/actions/actions.js +3 -3
- package/dist/actions/actions.js.map +1 -1
- package/dist/actions/command.d.ts.map +1 -1
- package/dist/actions/command.js +3 -1
- package/dist/actions/command.js.map +1 -1
- package/dist/agents/command.d.ts.map +1 -1
- package/dist/agents/command.js +3 -2
- package/dist/agents/command.js.map +1 -1
- package/dist/agents/log.d.ts +1 -1
- package/dist/agents/log.d.ts.map +1 -1
- package/dist/agents/log.js +5 -4
- package/dist/agents/log.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bin/memo.js.map +1 -1
- package/dist/bundle/{all-profiles-LUGN5BHP.js → all-profiles-CGQTLFDM.js} +5 -5
- package/dist/bundle/{anthropic-W7JXDZPL.js → anthropic-C744EPRR.js} +2 -2
- package/dist/bundle/{app-server-TRRARE66.js → app-server-LOH7WXAB.js} +36 -36
- package/dist/bundle/auto-R3ABUML7.js +89 -0
- package/dist/bundle/{bun-S3JZIN4S.js → bun-SQWZDSWT.js} +2 -2
- package/dist/bundle/{bun-sqlite-X3WQN3CV.js → bun-sqlite-YVBFXNWB.js} +2 -2
- package/dist/bundle/{chunk-ZISVFVQU.js → chunk-2KGYREGD.js} +363 -362
- package/dist/bundle/{chunk-SCYHDYLI.js → chunk-3NCRQMEN.js} +1 -1
- package/dist/bundle/{chunk-BDVM5652.js → chunk-3PLYUZAR.js} +1 -1
- package/dist/bundle/{chunk-YLYZNPAZ.js → chunk-42UNPXTC.js} +1 -1
- package/dist/bundle/{chunk-5CTOWPOL.js → chunk-47WS4BML.js} +4 -4
- package/dist/bundle/{chunk-7Y4HUYI3.js → chunk-4DTJF6E7.js} +5 -5
- package/dist/bundle/chunk-4IWOPJL4.js +185 -0
- package/dist/bundle/{chunk-E2PSOSTN.js → chunk-5AQIET5P.js} +1 -1
- package/dist/bundle/{chunk-RZS24U4N.js → chunk-5NY7U6CM.js} +8 -8
- package/dist/bundle/{chunk-VFKCZJFT.js → chunk-6RPLAGAL.js} +20 -20
- package/dist/bundle/{chunk-4KDORB7C.js → chunk-6YRVBXFH.js} +7 -7
- package/dist/bundle/{chunk-KDBAY5JZ.js → chunk-7OZEQIK7.js} +1 -1
- package/dist/bundle/{chunk-WZHCQ4VZ.js → chunk-7PSGKP3R.js} +6 -6
- package/dist/bundle/{chunk-VB4OLJHK.js → chunk-7XFJRX6F.js} +2 -2
- package/dist/bundle/{chunk-ZP2XI5DR.js → chunk-AI6PMW7L.js} +4 -4
- package/dist/bundle/{chunk-WKLF7CAM.js → chunk-AUCXJVUI.js} +29 -29
- package/dist/bundle/{chunk-UIAGASGP.js → chunk-C7OOLF5J.js} +5 -5
- package/dist/bundle/{chunk-NR633L2N.js → chunk-DDSKTPU7.js} +3 -3
- package/dist/bundle/{chunk-MPZBV5RL.js → chunk-DUON3SRD.js} +7 -7
- package/dist/bundle/{chunk-XQHOMQNZ.js → chunk-EVLOYNXC.js} +3 -3
- package/dist/bundle/{chunk-LPGE6ACC.js → chunk-FH753LZS.js} +1 -1
- package/dist/bundle/{chunk-JINEHQ2T.js → chunk-FUATAPSB.js} +93 -80
- package/dist/bundle/{chunk-6VMIMAZ2.js → chunk-GB64N6DP.js} +297 -294
- package/dist/bundle/{chunk-XQ3RZU3J.js → chunk-GBU4U55M.js} +1 -1
- package/dist/bundle/{chunk-XPSXVUZG.js → chunk-H3WELZYK.js} +2 -2
- package/dist/bundle/{chunk-6FTZ53TT.js → chunk-HAMGOLFU.js} +1 -1
- package/dist/bundle/{chunk-KYJBGCTC.js → chunk-KYLKZKQ7.js} +1 -1
- package/dist/bundle/{chunk-SJD4KTK2.js → chunk-LLBZDBPT.js} +2 -2
- package/dist/bundle/{chunk-W64FO6DD.js → chunk-MFQTOOHR.js} +397 -34
- package/dist/bundle/{chunk-5RLCKP5E.js → chunk-MODHP5VA.js} +12 -12
- package/dist/bundle/{chunk-LX3OSTBD.js → chunk-N2FIIVJV.js} +4 -4
- package/dist/bundle/{chunk-V7BDQIZS.js → chunk-NE3UIK5P.js} +2 -2
- package/dist/bundle/{chunk-ZTZLAGZA.js → chunk-NM4QMIOQ.js} +2 -2
- package/dist/bundle/{chunk-G45BLLDR.js → chunk-O3KNZVDZ.js} +2 -2
- package/dist/bundle/{chunk-XMHWGHID.js → chunk-ODCHYVTW.js} +173 -152
- package/dist/bundle/{chunk-6I4DOBSD.js → chunk-OEH5JUAL.js} +12 -12
- package/dist/bundle/{chunk-SIQDO5DN.js → chunk-OJU774SG.js} +3 -3
- package/dist/bundle/{chunk-ZL63GL3Y.js → chunk-PFNEOHCY.js} +2 -2
- package/dist/bundle/{chunk-C6MWOBEL.js → chunk-RLRKBPLJ.js} +15 -9
- package/dist/bundle/{chunk-346PWQJF.js → chunk-RTSRESGX.js} +5 -5
- package/dist/bundle/{chunk-KUFOM3SB.js → chunk-S54Z74G2.js} +1 -1
- package/dist/bundle/{chunk-UU3OAPGO.js → chunk-SF2OLWBU.js} +6 -6
- package/dist/bundle/{chunk-6AOPUQTC.js → chunk-TD4HM7XL.js} +1 -1
- package/dist/bundle/{chunk-GFVSZY4J.js → chunk-TGURQ4YH.js} +7 -1
- package/dist/bundle/{chunk-E74VWHZ2.js → chunk-TPWAXJUQ.js} +1 -1
- package/dist/bundle/{chunk-4QGUBKN5.js → chunk-TXVXEE7L.js} +4 -4
- package/dist/bundle/{chunk-FGMFJUHR.js → chunk-V6CRCAWN.js} +668 -367
- package/dist/bundle/{chunk-YB4KGUXY.js → chunk-VFJAGY3L.js} +2 -2
- package/dist/bundle/{chunk-YDTGYYOR.js → chunk-W5ARY4U2.js} +4 -4
- package/dist/bundle/{chunk-AOHT5FNX.js → chunk-XGPSFPLH.js} +45 -45
- package/dist/bundle/{chunk-QYJJBE56.js → chunk-Y7YXXWQI.js} +3 -3
- package/dist/bundle/{chunk-SIOPF2UG.js → chunk-YD7XTYEC.js} +5 -5
- package/dist/bundle/{chunk-OWUEEVF6.js → chunk-YNXQAB4X.js} +11 -10
- package/dist/bundle/{chunk-EWRHTZD3.js → chunk-YRJ2576I.js} +10 -10
- package/dist/bundle/{chunk-4XI7S3PO.js → chunk-YSOTOUHJ.js} +13 -13
- package/dist/bundle/{chunk-IQIM4UC7.js → chunk-YU7KZW5I.js} +4 -4
- package/dist/bundle/{chunk-ZXW5FPH2.js → chunk-Z3NRIW4M.js} +1 -1
- package/dist/bundle/{chunk-2QND7VJS.js → chunk-ZHAHSVQO.js} +5 -5
- package/dist/bundle/{chunk-QKWM4VK4.js → chunk-ZIA7AU7L.js} +2 -2
- package/dist/bundle/{command-contract-QQG343ZQ.js → command-contract-IEUSFI3B.js} +11 -11
- package/dist/bundle/{command-server-entry-XVUPTSSH.js → command-server-entry-472XWNSN.js} +66 -50
- package/dist/bundle/{decode-METZOSMG.js → decode-SFZ67QJN.js} +2 -2
- package/dist/bundle/{echarts-EBSP4VCK.js → echarts-3U34KH7O.js} +2 -2
- package/dist/bundle/{embed-GVVU7N7W.js → embed-ZEZXJ45Q.js} +3 -3
- package/dist/bundle/{embedder-6BZOYAXV.js → embedder-AASO2I4Z.js} +6 -6
- package/dist/bundle/{entry-TBOYUMWB.js → entry-7VHMR3LD.js} +5 -5
- package/dist/bundle/failure-DJSK3LGN.js +69 -0
- package/dist/bundle/{first-run-HQ4GA4EF.js → first-run-YL3TIUU3.js} +5 -5
- package/dist/bundle/{first-screen-6T65PQ37.js → first-screen-OQVOWRYM.js} +12 -12
- package/dist/bundle/{instructions-VDKK3Y5Z.js → instructions-HG2ZZ7AP.js} +1 -1
- package/dist/bundle/{mcp-DEY765VA.js → mcp-EUFDOVMI.js} +35 -35
- package/dist/bundle/memo.js +8 -8
- package/dist/bundle/{node-HWGZYNUX.js → node-7AQN6OTR.js} +2 -2
- package/dist/bundle/{node-sqlite-PSYENWGS.js → node-sqlite-55KMFPGI.js} +3 -3
- package/dist/bundle/{oauth-TQGMUJK2.js → oauth-S2GLD4PY.js} +4 -4
- package/dist/bundle/{open-KDDJDKCE.js → open-6R4UPST5.js} +2 -2
- package/dist/bundle/{openai-QPGCUM4T.js → openai-JK5GCSDK.js} +7 -7
- package/dist/bundle/{process-APNTXJJE.js → process-C7J3IT7Q.js} +1 -1
- package/dist/bundle/{program-OGDARQTX.js → program-KWI6M5IB.js} +354 -151
- package/dist/bundle/{prompt-BMBZCLGF.js → prompt-EEFKVWSA.js} +2 -2
- package/dist/bundle/{recognize-3SEY2MAR.js → recognize-STYHVWQ6.js} +1 -1
- package/dist/bundle/{remote-ODH54UXO.js → remote-6MXZXHYY.js} +4 -4
- package/dist/bundle/{rerank-JQHBNTUK.js → rerank-IMX2ONZG.js} +4 -4
- package/dist/bundle/{serve-C22ZONSM.js → serve-ZNN464BH.js} +6 -6
- package/dist/bundle/server-4CHUUMVI.js +48 -0
- package/dist/bundle/{server-ADPO4V4B.js → server-L6OS2MJ5.js} +53 -52
- package/dist/bundle/server-VCZCAQOB.js +62 -0
- package/dist/bundle/{state-M3VGXSV4.js → state-7MP4KKPG.js} +3 -3
- package/dist/bundle/{store-GSZAXU3A.js → store-EMAKEEYI.js} +9 -9
- package/dist/bundle/store-maintenance-command-LWN6OUFA.js +47 -0
- package/dist/bundle/update-I4X2UO6J.js +72 -0
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +2 -1
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/digest-commands.d.ts.map +1 -1
- package/dist/digest/digest-commands.js +2 -1
- package/dist/digest/digest-commands.js.map +1 -1
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +2 -1
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +13 -1
- package/dist/examples.js.map +1 -1
- package/dist/exit-code.d.ts +7 -0
- package/dist/exit-code.d.ts.map +1 -0
- package/dist/exit-code.js +19 -0
- package/dist/exit-code.js.map +1 -0
- package/dist/facts/command.d.ts.map +1 -1
- package/dist/facts/command.js +3 -2
- package/dist/facts/command.js.map +1 -1
- package/dist/facts/fact.d.ts +1 -1
- package/dist/facts/fact.d.ts.map +1 -1
- package/dist/facts/fact.js +3 -3
- package/dist/facts/fact.js.map +1 -1
- package/dist/mcp/catalogue.d.ts +3 -0
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +1 -0
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/memories/command.d.ts.map +1 -1
- package/dist/memories/command.js +3 -2
- package/dist/memories/command.js.map +1 -1
- package/dist/memories/memory.d.ts +1 -1
- package/dist/memories/memory.d.ts.map +1 -1
- package/dist/memories/memory.js +2 -2
- package/dist/memories/memory.js.map +1 -1
- package/dist/page.d.ts +14 -5
- package/dist/page.d.ts.map +1 -1
- package/dist/page.js +11 -5
- package/dist/page.js.map +1 -1
- package/dist/program.d.ts +3 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +7 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/records/import.d.ts.map +1 -1
- package/dist/records/import.js +60 -5
- package/dist/records/import.js.map +1 -1
- package/dist/records/input.d.ts +6 -2
- package/dist/records/input.d.ts.map +1 -1
- package/dist/records/input.js +87 -3
- package/dist/records/input.js.map +1 -1
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +2 -1
- package/dist/run/import.js.map +1 -1
- package/dist/sources/command.d.ts.map +1 -1
- package/dist/sources/command.js +27 -2
- package/dist/sources/command.js.map +1 -1
- package/dist/sources/read.d.ts +13 -0
- package/dist/sources/read.d.ts.map +1 -1
- package/dist/sources/read.js +27 -1
- package/dist/sources/read.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-AQAKW55Z.js +0 -89
- package/dist/bundle/chunk-XPCTY6XV.js +0 -116
- package/dist/bundle/failure-EKMEAYZH.js +0 -69
- package/dist/bundle/server-3UX245DY.js +0 -62
- package/dist/bundle/server-6G5XF3V5.js +0 -48
- package/dist/bundle/store-maintenance-command-QMTALGSQ.js +0 -47
- package/dist/bundle/update-HDJ23IV5.js +0 -72
- /package/dist/bundle/{chunk-IXSUVHW6.js → chunk-IKIYW7FW.js} +0 -0
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
fold,
|
|
13
13
|
normalize,
|
|
14
14
|
parseStemmers
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DUON3SRD.js";
|
|
16
16
|
import {
|
|
17
17
|
SQLiteTable,
|
|
18
18
|
TableAliasProxyHandler,
|
|
@@ -37,17 +37,17 @@ import {
|
|
|
37
37
|
sql,
|
|
38
38
|
sqliteTable,
|
|
39
39
|
text
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GBU4U55M.js";
|
|
41
41
|
import {
|
|
42
42
|
quietSqliteWarning,
|
|
43
43
|
storeCapable
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-C7OOLF5J.js";
|
|
45
45
|
import {
|
|
46
46
|
PRAGMAS,
|
|
47
47
|
TIME_LIMIT_FUNCTION,
|
|
48
48
|
TimeLimitReached,
|
|
49
49
|
isQueryOnly
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3NCRQMEN.js";
|
|
51
51
|
import {
|
|
52
52
|
ACCOUNT_GROUPS,
|
|
53
53
|
ADDED_ACCOUNT,
|
|
@@ -226,22 +226,22 @@ import {
|
|
|
226
226
|
walkQuery,
|
|
227
227
|
walletLine,
|
|
228
228
|
zonedMoment
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-FUATAPSB.js";
|
|
230
230
|
import {
|
|
231
231
|
holdsCredential,
|
|
232
232
|
secretNamed,
|
|
233
233
|
sqliteCode
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-7XFJRX6F.js";
|
|
235
235
|
import {
|
|
236
236
|
DEFAULT_TASK_CATEGORIES,
|
|
237
237
|
sharedConfigPath,
|
|
238
238
|
storedTaskCategories,
|
|
239
239
|
taskCategoriesReader
|
|
240
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-TXVXEE7L.js";
|
|
241
241
|
import {
|
|
242
242
|
refuseOwnerStoreInTests,
|
|
243
243
|
storePath
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-FH753LZS.js";
|
|
245
245
|
import {
|
|
246
246
|
array,
|
|
247
247
|
boolean,
|
|
@@ -10011,7 +10011,7 @@ var require_cjs = __commonJS({
|
|
|
10011
10011
|
}
|
|
10012
10012
|
});
|
|
10013
10013
|
|
|
10014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
10015
10015
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
10016
10016
|
const methods = whole;
|
|
10017
10017
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -10139,7 +10139,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
10139
10139
|
};
|
|
10140
10140
|
}, "bindAccount");
|
|
10141
10141
|
|
|
10142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
10143
10143
|
var IndexBuilderOn = class {
|
|
10144
10144
|
static {
|
|
10145
10145
|
__name(this, "IndexBuilderOn");
|
|
@@ -10334,7 +10334,7 @@ function alias(table, alias2) {
|
|
|
10334
10334
|
}
|
|
10335
10335
|
__name(alias, "alias");
|
|
10336
10336
|
|
|
10337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
|
|
10338
10338
|
var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
10339
10339
|
var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
10340
10340
|
var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
@@ -10453,7 +10453,7 @@ var fieldError = /* @__PURE__ */ __name((schema, value, at2 = []) => {
|
|
|
10453
10453
|
return void 0;
|
|
10454
10454
|
}, "fieldError");
|
|
10455
10455
|
|
|
10456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/record-types.js
|
|
10457
10457
|
var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
|
|
10458
10458
|
var PARTY = ["person", "organization"];
|
|
10459
10459
|
var ORGANIZATION = ["organization"];
|
|
@@ -10827,7 +10827,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf2(type).some(([, role])
|
|
|
10827
10827
|
var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
|
|
10828
10828
|
var article = /* @__PURE__ */ __name((word2) => /^[aeiou]/.test(word2) ? "an" : "a", "article");
|
|
10829
10829
|
|
|
10830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
10831
10831
|
var ENTITY_TABLES = {
|
|
10832
10832
|
...RECORD_TABLES,
|
|
10833
10833
|
account: "accounts",
|
|
@@ -10866,7 +10866,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
10866
10866
|
return { table, pointer, type, count: count2, known: known2 };
|
|
10867
10867
|
}).filter(({ count: count2 }) => count2 > 0)), "orphanPointers");
|
|
10868
10868
|
|
|
10869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
10870
10870
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
10871
10871
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
10872
10872
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -10923,7 +10923,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
10923
10923
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
10924
10924
|
}, "proposedBySql");
|
|
10925
10925
|
|
|
10926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/source-review-marks.js
|
|
10927
10927
|
var TABLES = { memory: "memories", fact: "facts" };
|
|
10928
10928
|
var HOLDING = { memory: ["proposed", "confirmed"], fact: ["proposed", "accepted"] };
|
|
10929
10929
|
var KEPT = 20;
|
|
@@ -11018,7 +11018,7 @@ var scrubSourceReviews = /* @__PURE__ */ __name((database, erased, { refs }) =>
|
|
|
11018
11018
|
return scrubbed;
|
|
11019
11019
|
}, "scrubSourceReviews");
|
|
11020
11020
|
|
|
11021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
11022
11022
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
11023
11023
|
var REFERABLE = {
|
|
11024
11024
|
...Object.fromEntries(Object.entries(RECORD_TYPES).map(([type, { tombstone: tombstone2 }]) => [type, { tombstone: tombstone2 }])),
|
|
@@ -11178,7 +11178,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
11178
11178
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
11179
11179
|
}, "taskIdOf");
|
|
11180
11180
|
|
|
11181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-signature.js
|
|
11182
11182
|
var QUOTE_LIMIT = 500;
|
|
11183
11183
|
var GONE = { sig: "gone", rev: null, deleted: true, changedAt: null };
|
|
11184
11184
|
var part = /* @__PURE__ */ __name((value) => value == null ? "" : String(value), "part");
|
|
@@ -11457,10 +11457,10 @@ var deleteDocumentRow = /* @__PURE__ */ __name((database, id2, at2) => {
|
|
|
11457
11457
|
database.prepare("DELETE FROM documents WHERE id = ?").run(id2);
|
|
11458
11458
|
}, "deleteDocumentRow");
|
|
11459
11459
|
|
|
11460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/identity-links.js
|
|
11461
11461
|
var IDENTITY_LINK_KIND = "identity_link";
|
|
11462
11462
|
|
|
11463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/merged-persons.js
|
|
11464
11464
|
var SEPARATIONS = ["unlink", "split", "undo-merge"];
|
|
11465
11465
|
var mergeSql = /* @__PURE__ */ __name((event2) => `(${event2}.from_person_id IS NOT NULL AND ${event2}.from_person_id <> ${event2}.to_person_id AND ${event2}.method NOT IN (${SEPARATIONS.map((method) => `'${method}'`).join(", ")}) AND NOT EXISTS (SELECT 1 FROM identity_link_events stay WHERE stay.to_person_id = ${event2}.from_person_id AND stay.identity_id <> ${event2}.identity_id AND stay.id < ${event2}.id AND stay.id = (SELECT max(s.id) FROM identity_link_events s WHERE s.identity_id = stay.identity_id AND s.id < ${event2}.id) AND NOT EXISTS (SELECT 1 FROM identity_link_events went WHERE went.identity_id = stay.identity_id AND went.from_person_id = ${event2}.from_person_id AND went.to_person_id = ${event2}.to_person_id AND went.id = (SELECT min(w.id) FROM identity_link_events w WHERE w.identity_id = stay.identity_id AND w.id > ${event2}.id))))`, "mergeSql");
|
|
11466
11466
|
var mergedAwaySql = /* @__PURE__ */ __name((person2) => `(${person2}.owner = 0 AND NOT EXISTS (SELECT 1 FROM identity_links ml WHERE ml.person_id = ${person2}.id) AND EXISTS (SELECT 1 FROM identity_link_events me WHERE me.from_person_id = ${person2}.id AND ${mergeSql("me")}))`, "mergedAwaySql");
|
|
@@ -11492,7 +11492,7 @@ var samePersons = /* @__PURE__ */ __name((database, pk) => {
|
|
|
11492
11492
|
}, "samePersons");
|
|
11493
11493
|
var idsOf = /* @__PURE__ */ __name((database, type, id2) => JSON.stringify(type === "person" ? samePersons(database, id2) : [id2]), "idsOf");
|
|
11494
11494
|
|
|
11495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-link-rows.js
|
|
11496
11496
|
var pairOf = /* @__PURE__ */ __name((a, b) => [Number(a), Number(b)].sort((x, y) => x - y).join("-"), "pairOf");
|
|
11497
11497
|
var pkOf = /* @__PURE__ */ __name((database, ref3) => {
|
|
11498
11498
|
const at2 = ref3.indexOf(":");
|
|
@@ -11598,7 +11598,7 @@ var forgetErasedLinks = /* @__PURE__ */ __name((database) => {
|
|
|
11598
11598
|
database.prepare("DELETE FROM proposed_actions WHERE id = ?").run(Number(row2.id));
|
|
11599
11599
|
}, "forgetErasedLinks");
|
|
11600
11600
|
|
|
11601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
11602
11602
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
11603
11603
|
id: integer("id").primaryKey(),
|
|
11604
11604
|
name: text("name").notNull().unique(),
|
|
@@ -11607,7 +11607,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
11607
11607
|
updatedAt: integer("updated_at").notNull()
|
|
11608
11608
|
});
|
|
11609
11609
|
|
|
11610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/link-revisions.js
|
|
11611
11611
|
var linkRevisions = sqliteTable("link_revisions", {
|
|
11612
11612
|
id: integer("id").primaryKey(),
|
|
11613
11613
|
linkId: integer("link_id").notNull(),
|
|
@@ -11619,7 +11619,7 @@ var linkRevisions = sqliteTable("link_revisions", {
|
|
|
11619
11619
|
createdAt: integer("created_at").notNull()
|
|
11620
11620
|
}, (table) => [index("link_revisions_by_link_id_created_at").on(table.linkId, table.createdAt)]);
|
|
11621
11621
|
|
|
11622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
11623
11623
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
11624
11624
|
sourceKey: text("source_key").notNull(),
|
|
11625
11625
|
collection: text("collection").notNull(),
|
|
@@ -11629,13 +11629,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
11629
11629
|
createdAt: integer("created_at").notNull()
|
|
11630
11630
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
11631
11631
|
|
|
11632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
11633
11633
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
11634
11634
|
id: integer("id").notNull(),
|
|
11635
11635
|
indexableType: text("indexable_type").notNull()
|
|
11636
11636
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
11637
11637
|
|
|
11638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/decision-requests.js
|
|
11639
11639
|
var decisionRequests = sqliteTable("decision_requests", {
|
|
11640
11640
|
id: integer("id").primaryKey(),
|
|
11641
11641
|
tokenDigest: text("token_digest").notNull().unique(),
|
|
@@ -11655,7 +11655,7 @@ var decisionRequests = sqliteTable("decision_requests", {
|
|
|
11655
11655
|
index("decision_requests_by_channel_bot_profile_chat_id_message_id").on(table.channel, table.botProfile, table.chatId, table.messageId)
|
|
11656
11656
|
]);
|
|
11657
11657
|
|
|
11658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/enrichments.js
|
|
11659
11659
|
var enrichments = sqliteTable("enrichments", {
|
|
11660
11660
|
subjectType: text("subject_type").notNull(),
|
|
11661
11661
|
subjectId: integer("subject_id").notNull(),
|
|
@@ -11667,7 +11667,7 @@ var enrichments = sqliteTable("enrichments", {
|
|
|
11667
11667
|
createdAt: integer("created_at").notNull()
|
|
11668
11668
|
}, (table) => [primaryKey({ columns: [table.subjectType, table.subjectId] })]);
|
|
11669
11669
|
|
|
11670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/templates.js
|
|
11671
11671
|
var templates = sqliteTable("templates", {
|
|
11672
11672
|
key: text("key").notNull(),
|
|
11673
11673
|
channel: text("channel").notNull(),
|
|
@@ -11689,7 +11689,7 @@ var templatesHistory = sqliteTable("templates_history", {
|
|
|
11689
11689
|
index("templates_history_by_key_channel_language_id").on(table.key, table.channel, table.language, table.id)
|
|
11690
11690
|
]);
|
|
11691
11691
|
|
|
11692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/links.js
|
|
11693
11693
|
var links = sqliteTable("links", {
|
|
11694
11694
|
id: integer("id").primaryKey(),
|
|
11695
11695
|
fromType: text("from_type").notNull(),
|
|
@@ -11720,7 +11720,7 @@ var links = sqliteTable("links", {
|
|
|
11720
11720
|
index("links_by_to_type_to_id").on(table.toType, table.toId)
|
|
11721
11721
|
]);
|
|
11722
11722
|
|
|
11723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
11724
11724
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
11725
11725
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
11726
11726
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -11746,7 +11746,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
11746
11746
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
11747
11747
|
]);
|
|
11748
11748
|
|
|
11749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
11750
11750
|
var accounts = sqliteTable("accounts", {
|
|
11751
11751
|
id: integer("id").primaryKey(),
|
|
11752
11752
|
provider: text("provider").notNull(),
|
|
@@ -13748,10 +13748,10 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
13748
13748
|
at: integer("at").notNull()
|
|
13749
13749
|
});
|
|
13750
13750
|
|
|
13751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
13752
13752
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
13753
13753
|
|
|
13754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/journal.js
|
|
13755
13755
|
import { existsSync, statSync } from "node:fs";
|
|
13756
13756
|
var watched = /* @__PURE__ */ new WeakMap();
|
|
13757
13757
|
var walInode = /* @__PURE__ */ __name((store) => statSync(`${store}-wal`, { throwIfNoEntry: false })?.ino, "walInode");
|
|
@@ -13777,7 +13777,7 @@ var checkJournal = /* @__PURE__ */ __name((database) => {
|
|
|
13777
13777
|
throw new CliError("conflict", "the store's journal file was deleted or replaced by another program while this command had the store open, so nothing more is written; `store recover` says what to do", { reason: "store.journal-replaced" });
|
|
13778
13778
|
}, "checkJournal");
|
|
13779
13779
|
|
|
13780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/write-events.js
|
|
13781
13781
|
var WRITE = /^\s*(?:WITH\b[\s\S]*?\)\s*)?(INSERT|REPLACE|UPDATE|DELETE)\b(?:\s+OR\s+[A-Za-z]+)?\s+(?:INTO\s+|FROM\s+)?(?:("?)(\w+)\2\.)?["`[]?(\w+)/i;
|
|
13782
13782
|
var writeTarget = /* @__PURE__ */ __name((sql2) => {
|
|
13783
13783
|
const match = WRITE.exec(sql2);
|
|
@@ -13857,7 +13857,7 @@ var committedWrites = /* @__PURE__ */ __name((database) => {
|
|
|
13857
13857
|
}, "committedWrites");
|
|
13858
13858
|
var droppedWrites = /* @__PURE__ */ __name((database) => tallies.get(database)?.pending.clear(), "droppedWrites");
|
|
13859
13859
|
|
|
13860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
13861
13861
|
var ARMS = [
|
|
13862
13862
|
[
|
|
13863
13863
|
"message",
|
|
@@ -13985,7 +13985,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
13985
13985
|
return recomputed;
|
|
13986
13986
|
}, "drainInvolvementQueue");
|
|
13987
13987
|
|
|
13988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13989
13989
|
import { domainToUnicode } from "node:url";
|
|
13990
13990
|
|
|
13991
13991
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -24007,7 +24007,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
24007
24007
|
}, "oa");
|
|
24008
24008
|
var na = { parse: O, get: aa, isValid: oa };
|
|
24009
24009
|
|
|
24010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
24011
24011
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
24012
24012
|
var ID = /^[\w-]{10,}$/;
|
|
24013
24013
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -24049,7 +24049,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text7) => [...text7.matchAll(L
|
|
|
24049
24049
|
return { url, documentId: googleDocumentId(url) };
|
|
24050
24050
|
}), "googleDocumentLinks");
|
|
24051
24051
|
|
|
24052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
24053
24053
|
var PHONE_PLANS = [
|
|
24054
24054
|
{
|
|
24055
24055
|
country: "us",
|
|
@@ -24429,7 +24429,7 @@ var PHONE_PLANS = [
|
|
|
24429
24429
|
}
|
|
24430
24430
|
];
|
|
24431
24431
|
|
|
24432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
24433
24433
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
24434
24434
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
24435
24435
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -24503,7 +24503,7 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
|
|
|
24503
24503
|
return found2 ? `+${found2[1]}` : void 0;
|
|
24504
24504
|
}, "storedPhone");
|
|
24505
24505
|
|
|
24506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
24507
24507
|
var BEFORE = [
|
|
24508
24508
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
24509
24509
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -24763,7 +24763,7 @@ var findPlaces = /* @__PURE__ */ __name((text7) => {
|
|
|
24763
24763
|
return found2.sort((a, b) => a.start - b.start);
|
|
24764
24764
|
}, "findPlaces");
|
|
24765
24765
|
|
|
24766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
24767
24767
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
24768
24768
|
var MENTION_VERSIONS = {
|
|
24769
24769
|
phone: 1,
|
|
@@ -24939,7 +24939,7 @@ var exactlyOne = /* @__PURE__ */ __name((text7, options) => {
|
|
|
24939
24939
|
return one2 && one2.start === 0 && one2.end === text7.length ? one2.value : void 0;
|
|
24940
24940
|
}, "exactlyOne");
|
|
24941
24941
|
|
|
24942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
24943
24943
|
var RUSSIAN = "\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440 \u0410\u043B\u0435\u043A\u0441\u0435\u0439 \u0410\u043D\u0430\u0442\u043E\u043B\u0438\u0439 \u0410\u043D\u0434\u0440\u0435\u0439 \u0410\u043D\u0442\u043E\u043D \u0410\u0440\u043A\u0430\u0434\u0438\u0439 \u0410\u0440\u0441\u0435\u043D\u0438\u0439 \u0410\u0440\u0442\u0451\u043C \u0410\u0440\u0442\u0435\u043C \u0410\u0440\u0442\u0443\u0440 \u0411\u043E\u0440\u0438\u0441 \u0412\u0430\u0434\u0438\u043C \u0412\u0430\u043B\u0435\u043D\u0442\u0438\u043D \u0412\u0430\u043B\u0435\u0440\u0438\u0439 \u0412\u0430\u0441\u0438\u043B\u0438\u0439 \u0412\u0438\u043A\u0442\u043E\u0440 \u0412\u0438\u0442\u0430\u043B\u0438\u0439 \u0412\u043B\u0430\u0434\u0438\u043C\u0438\u0440 \u0412\u043B\u0430\u0434\u0438\u0441\u043B\u0430\u0432 \u0412\u0441\u0435\u0432\u043E\u043B\u043E\u0434 \u0412\u044F\u0447\u0435\u0441\u043B\u0430\u0432 \u0413\u0435\u043D\u043D\u0430\u0434\u0438\u0439 \u0413\u0435\u043E\u0440\u0433\u0438\u0439 \u0413\u043B\u0435\u0431 \u0413\u0440\u0438\u0433\u043E\u0440\u0438\u0439 \u0414\u0430\u043D\u0438\u0438\u043B \u0414\u0430\u043D\u0438\u043B\u0430 \u0414\u0435\u043D\u0438\u0441 \u0414\u043C\u0438\u0442\u0440\u0438\u0439 \u0415\u0432\u0433\u0435\u043D\u0438\u0439 \u0415\u0433\u043E\u0440 \u0418\u0432\u0430\u043D \u0418\u0433\u043E\u0440\u044C \u0418\u043B\u044C\u044F \u041A\u0438\u0440\u0438\u043B\u043B \u041A\u043E\u043D\u0441\u0442\u0430\u043D\u0442\u0438\u043D \u041B\u0435\u043E\u043D\u0438\u0434 \u041C\u0430\u043A\u0441\u0438\u043C \u041C\u0430\u0440\u0430\u0442 \u041C\u0430\u0442\u0432\u0435\u0439 \u041C\u0438\u0445\u0430\u0438\u043B \u041D\u0438\u043A\u0438\u0442\u0430 \u041D\u0438\u043A\u043E\u043B\u0430\u0439 \u041E\u043B\u0435\u0433 \u041F\u0430\u0432\u0435\u043B \u041F\u0451\u0442\u0440 \u041F\u0435\u0442\u0440 \u0420\u043E\u0434\u0438\u043E\u043D \u0420\u043E\u0441\u0442\u0438\u0441\u043B\u0430\u0432 \u0420\u0443\u0441\u043B\u0430\u043D \u0420\u0443\u0441\u0442\u0430\u043C \u0421\u0435\u043C\u0451\u043D \u0421\u0435\u043C\u0435\u043D \u0421\u0435\u0440\u0433\u0435\u0439 \u0421\u0442\u0430\u043D\u0438\u0441\u043B\u0430\u0432 \u0421\u0442\u0435\u043F\u0430\u043D \u0422\u0438\u043C\u043E\u0444\u0435\u0439 \u0422\u0438\u043C\u0443\u0440 \u0424\u0451\u0434\u043E\u0440 \u0424\u0435\u0434\u043E\u0440 \u0424\u0438\u043B\u0438\u043F\u043F \u042D\u0434\u0443\u0430\u0440\u0434 \u042E\u0440\u0438\u0439 \u042F\u0440\u043E\u0441\u043B\u0430\u0432 \u042F\u043A\u043E\u0432 \u042D\u043B\u044C\u0434\u0430\u0440 \u0414\u0430\u0432\u0438\u0434 \u0417\u0430\u0445\u0430\u0440 \u0421\u0430\u0432\u0435\u043B\u0438\u0439 \u041C\u0438\u0440\u043E\u043D \u041F\u043B\u0430\u0442\u043E\u043D \u0414\u0435\u043C\u0438\u0434 \u0410\u0440\u0441\u0435\u043D \u041D\u0443\u0440\u043B\u0430\u043D \u0410\u043D\u0437\u043E\u0440 \u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440\u0430 \u0410\u043B\u0438\u043D\u0430 \u0410\u043B\u0438\u0441\u0430 \u0410\u043B\u043B\u0430 \u0410\u043D\u0430\u0441\u0442\u0430\u0441\u0438\u044F \u0410\u043D\u0433\u0435\u043B\u0438\u043D\u0430 \u0410\u043D\u043D\u0430 \u0410\u043D\u0442\u043E\u043D\u0438\u043D\u0430 \u0412\u0430\u043B\u0435\u043D\u0442\u0438\u043D\u0430 \u0412\u0430\u043B\u0435\u0440\u0438\u044F \u0412\u0430\u0440\u0432\u0430\u0440\u0430 \u0412\u0435\u0440\u043E\u043D\u0438\u043A\u0430 \u0412\u0438\u043A\u0442\u043E\u0440\u0438\u044F \u0413\u0430\u043B\u0438\u043D\u0430 \u0414\u0430\u0440\u044C\u044F \u0414\u0438\u0430\u043D\u0430 \u0415\u0432\u0433\u0435\u043D\u0438\u044F \u0415\u043A\u0430\u0442\u0435\u0440\u0438\u043D\u0430 \u0415\u043B\u0435\u043D\u0430 \u0415\u043B\u0438\u0437\u0430\u0432\u0435\u0442\u0430 \u0416\u0430\u043D\u043D\u0430 \u0417\u0438\u043D\u0430\u0438\u0434\u0430 \u041A\u0430\u0440\u0438\u043D\u0430 \u041A\u0438\u0440\u0430 \u041A\u043B\u0430\u0432\u0434\u0438\u044F \u041A\u0440\u0438\u0441\u0442\u0438\u043D\u0430 \u041A\u0441\u0435\u043D\u0438\u044F \u041B\u0430\u0440\u0438\u0441\u0430 \u041B\u0438\u0434\u0438\u044F \u041B\u044E\u0434\u043C\u0438\u043B\u0430 \u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430 \u041C\u0430\u0440\u0438\u043D\u0430 \u041C\u0430\u0440\u0438\u044F \u041C\u0438\u043B\u0430\u043D\u0430 \u041D\u0430\u0442\u0430\u043B\u044C\u044F \u041D\u0430\u0442\u0430\u043B\u0438\u044F \u041D\u0438\u043D\u0430 \u041E\u043A\u0441\u0430\u043D\u0430 \u041E\u043B\u0435\u0441\u044F \u041E\u043B\u044C\u0433\u0430 \u041F\u043E\u043B\u0438\u043D\u0430 \u0420\u0430\u0438\u0441\u0430 \u0421\u0432\u0435\u0442\u043B\u0430\u043D\u0430 \u0421\u043E\u0444\u0438\u044F \u0421\u043E\u0444\u044C\u044F \u0422\u0430\u0438\u0441\u0438\u044F \u0422\u0430\u043C\u0430\u0440\u0430 \u0422\u0430\u0442\u044C\u044F\u043D\u0430 \u0423\u043B\u044C\u044F\u043D\u0430 \u042E\u043B\u0438\u044F \u042D\u043B\u044C\u0432\u0438\u0440\u0430 \u0420\u0435\u0433\u0438\u043D\u0430 \u0421\u043D\u0435\u0436\u0430\u043D\u0430 \u0410\u043B\u0451\u043D\u0430 \u0410\u043B\u0435\u043D\u0430 \u0412\u0430\u0441\u0438\u043B\u0438\u0441\u0430 \u0410\u0440\u0438\u043D\u0430 \u0415\u0441\u0435\u043D\u0438\u044F \u042D\u0432\u0435\u043B\u0438\u043D\u0430 \u0421\u0430\u0448\u0430 \u0416\u0435\u043D\u044F \u0412\u0430\u043B\u044F \u0414\u0438\u043C\u0430 \u041C\u0438\u0448\u0430 \u041A\u043E\u043B\u044F \u041F\u0435\u0442\u044F \u0412\u0430\u0441\u044F \u0421\u0435\u0440\u0451\u0436\u0430 \u0421\u0435\u0440\u0435\u0436\u0430 \u041F\u0430\u0448\u0430 \u041B\u0451\u0448\u0430 \u041B\u0435\u0448\u0430 \u0412\u0438\u0442\u044F \u041A\u043E\u0441\u0442\u044F \u0412\u043E\u0432\u0430 \u0412\u043E\u043B\u043E\u0434\u044F \u0412\u0430\u043D\u044F \u0413\u043E\u0448\u0430 \u0413\u0440\u0438\u0448\u0430 \u0422\u043E\u043B\u044F \u0411\u043E\u0440\u044F \u0421\u0442\u0430\u0441 \u0422\u0451\u043C\u0430 \u0422\u0430\u043D\u044F \u041A\u0430\u0442\u044F \u041B\u0435\u043D\u0430 \u041D\u0430\u0442\u0430\u0448\u0430 \u0421\u0432\u0435\u0442\u0430 \u042E\u043B\u044F \u041D\u0430\u0441\u0442\u044F \u0414\u0430\u0448\u0430 \u041C\u0430\u0448\u0430 \u041B\u044E\u0434\u0430 \u0413\u0430\u043B\u044F \u0412\u0438\u043A\u0430 \u041A\u0441\u044E\u0448\u0430 \u041B\u0438\u0437\u0430 \u0421\u043E\u043D\u044F \u041D\u0430\u0434\u044F \u041B\u0435\u0440\u0430 \u0410\u043B\u0451\u0448\u0430 \u0410\u043B\u0435\u0448\u0430 \u041C\u0438\u0442\u044F \u0421\u0435\u043D\u044F \u0424\u0435\u0434\u044F \u0416\u0435\u043D\u0435\u0447\u043A\u0430 \u041E\u043B\u0435\u043D\u044C\u043A\u0430 \u0422\u0430\u043D\u0435\u0447\u043A\u0430";
|
|
24944
24944
|
var EUROPEAN = "James John Robert Michael William David Richard Joseph Thomas Charles Christopher Daniel Matthew Anthony Donald Steven Paul Andrew Joshua Kenneth Kevin Brian George Timothy Ronald Edward Jason Jeffrey Ryan Jacob Gary Nicholas Eric Jonathan Stephen Larry Justin Scott Brandon Benjamin Samuel Gregory Alexander Patrick Raymond Dennis Jerry Tyler Aaron Nathan Henry Peter Zachary Douglas Harold Kyle Noah Ethan Oliver Harry Lucas Liam Mary Patricia Jennifer Linda Elizabeth Barbara Susan Jessica Sarah Karen Lisa Nancy Betty Margaret Sandra Ashley Kimberly Emily Donna Michelle Carol Amanda Dorothy Melissa Deborah Stephanie Rebecca Sharon Laura Cynthia Kathleen Angela Shirley Anna Brenda Pamela Emma Nicole Helen Samantha Katherine Christine Rachel Carolyn Janet Catherine Maria Heather Diane Ruth Julie Olivia Joyce Kelly Lauren Christina Joan Evelyn Judith Megan Andrea Cheryl Hannah Jacqueline Martha Teresa Sara Madison Frances Kathryn Janice Abigail Alice Julia Judy Sophia Denise Doris Marilyn Danielle Beverly Isabella Theresa Diana Natalie Charlotte Marie Kayla Alexis Javier Carlos Antonio Manuel Francisco Juan Pedro Alejandro Miguel Rafael Pablo Sergio Fernando Jorge Luis Alberto \xC1lvaro Diego Adri\xE1n Rub\xE9n Iv\xE1n \xD3scar Andr\xE9s Ra\xFAl Enrique Vicente Joaqu\xEDn Ignacio Gonzalo Marcos V\xEDctor Jaime Alfonso Guillermo Tom\xE1s Emilio Gabriel Nicol\xE1s Mart\xEDn Jordi Josep Xavier Luc\xEDa Carmen Isabel Cristina Marta Elena Raquel Silvia Beatriz Paula Nuria N\xFAria Sonia Alicia Irene Montserrat Inmaculada Noelia Lorena Sof\xEDa Valeria Claudia Natalia Sandra Ver\xF3nica Esther Yolanda Vanesa Laia Klaus J\xFCrgen Wolfgang Stefan Andreas Matthias Markus Tobias Florian Lukas Jonas Maximilian Sebastian Dirk Sabine Ursula Petra Monika Katrin Anja Pierre Michel Philippe Alain Fran\xE7ois Christophe Laurent Olivier Julien Mathieu S\xE9bastien Guillaume Antoine Camille Nathalie Isabelle Sylvie Sophie C\xE9line Aur\xE9lie Chlo\xE9 Manon Giuseppe Giovanni Marco Luca Francesco Alessandro Matteo Lorenzo Stefano Paolo Roberto Davide Simone Federico Giulia Francesca Chiara Valentina Alessia Martina Elisa Jo\xE3o Pedro Tiago Beatriz In\xEAs Mariana Piotr Krzysztof Tomasz Marcin Agnieszka Katarzyna Ma\u0142gorzata Magdalena";
|
|
24945
24945
|
var WORDS = "\u0412\u0435\u0440\u0430 \u041D\u0430\u0434\u0435\u0436\u0434\u0430 \u041B\u044E\u0431\u043E\u0432\u044C \u0421\u043B\u0430\u0432\u0430 \u0420\u043E\u043C\u0430\u043D \u0420\u043E\u0437\u0430 \u041C\u0430\u0439\u044F \u041B\u0438\u043B\u0438\u044F \u0417\u043B\u0430\u0442\u0430 \u041C\u0438\u043B\u0430 \u041D\u0438\u043A\u0430 \u041B\u0435\u0432 \u0413\u043B\u043E\u0440\u0438\u044F Will Mark Rose Grace Hope Faith Bill Frank Jack June April Summer Amber Ruby Lily Daisy Victoria Virginia Georgia Florence Sydney Chelsea Jordan Austin Dallas Mercedes Dolores Rosa Pilar Marina Esperanza Gloria Amparo Consuelo Roc\xEDo Salvador Santiago Jes\xFAs \xC1ngeles Hugo Ram\xF3n Christian Felix F\xE9lix Mario Martin Victor Pierre Paz Merc\xE8 Estrella Aurora Concepci\xF3n Remedios Soledad Milagros Angel \xC1ngel Dawn Joy Holly Ivy Iris Violet Pearl";
|
|
@@ -24947,7 +24947,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
24947
24947
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
24948
24948
|
var NAME_WORDS = WORDS.split(" ");
|
|
24949
24949
|
|
|
24950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
24951
24951
|
var LATIN_TO_CYRILLIC = {
|
|
24952
24952
|
shch: "\u0449",
|
|
24953
24953
|
sch: "\u0449",
|
|
@@ -25155,7 +25155,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text7, stem, taken) => {
|
|
|
25155
25155
|
return found2;
|
|
25156
25156
|
}, "findUnknownNames");
|
|
25157
25157
|
|
|
25158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
25159
25159
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
25160
25160
|
"webpage",
|
|
25161
25161
|
"share",
|
|
@@ -25195,7 +25195,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored4, files2) => {
|
|
|
25195
25195
|
});
|
|
25196
25196
|
}, "matchDownloads");
|
|
25197
25197
|
|
|
25198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
25199
25199
|
var QUERY_VERSION = 1;
|
|
25200
25200
|
var QUERY_LIMITS2 = {
|
|
25201
25201
|
...QUERY_LIMITS,
|
|
@@ -25233,7 +25233,7 @@ function exhausted(budget) {
|
|
|
25233
25233
|
}
|
|
25234
25234
|
__name(exhausted, "exhausted");
|
|
25235
25235
|
|
|
25236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
25237
25237
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
25238
25238
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
25239
25239
|
kind: "char",
|
|
@@ -25633,7 +25633,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
25633
25633
|
return out;
|
|
25634
25634
|
}, "foldRegex");
|
|
25635
25635
|
|
|
25636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
25637
25637
|
var PRESET_VERSION = 1;
|
|
25638
25638
|
var PRESETS = {
|
|
25639
25639
|
password: {
|
|
@@ -25687,7 +25687,7 @@ var PRESETS = {
|
|
|
25687
25687
|
}
|
|
25688
25688
|
};
|
|
25689
25689
|
|
|
25690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
25691
25691
|
var FIELD_VERSION = 2;
|
|
25692
25692
|
var UNITS = {
|
|
25693
25693
|
"": 1,
|
|
@@ -26148,12 +26148,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
26148
26148
|
return validateFields(parsed4.output);
|
|
26149
26149
|
}, "validateAst");
|
|
26150
26150
|
|
|
26151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
26152
26152
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
26153
26153
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
26154
26154
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
26155
26155
|
|
|
26156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
26157
26157
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
26158
26158
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
26159
26159
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -26177,7 +26177,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
26177
26177
|
};
|
|
26178
26178
|
}, "linkMatch");
|
|
26179
26179
|
|
|
26180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
26181
26181
|
var SETTING = "phoneCountries";
|
|
26182
26182
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
26183
26183
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -26208,7 +26208,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
26208
26208
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
26209
26209
|
}, "valueMatch");
|
|
26210
26210
|
|
|
26211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
26212
26212
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
26213
26213
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
26214
26214
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -26236,7 +26236,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
26236
26236
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
26237
26237
|
}, "vocabularySimilarity");
|
|
26238
26238
|
|
|
26239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
26240
26240
|
import { createHash } from "node:crypto";
|
|
26241
26241
|
var folded3 = /* @__PURE__ */ __name((name) => {
|
|
26242
26242
|
try {
|
|
@@ -26302,7 +26302,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
|
|
|
26302
26302
|
});
|
|
26303
26303
|
}, "guardTagCreation");
|
|
26304
26304
|
|
|
26305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
26306
26306
|
var invalid = /* @__PURE__ */ __name((message3) => {
|
|
26307
26307
|
throw new CliError("validation_error", message3);
|
|
26308
26308
|
}, "invalid");
|
|
@@ -26379,7 +26379,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
26379
26379
|
};
|
|
26380
26380
|
}, "createTagRedirectIndex");
|
|
26381
26381
|
|
|
26382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
26383
26383
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
26384
26384
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
26385
26385
|
if (!row2)
|
|
@@ -26407,7 +26407,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
26407
26407
|
return snapshot2;
|
|
26408
26408
|
}, "tagRedirectSnapshot");
|
|
26409
26409
|
|
|
26410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
26411
26411
|
import { createHash as createHash2 } from "node:crypto";
|
|
26412
26412
|
var TASK_KEY_PREFIXES = {
|
|
26413
26413
|
question: "Q",
|
|
@@ -26435,7 +26435,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
26435
26435
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
26436
26436
|
}, "taskAccountOf");
|
|
26437
26437
|
|
|
26438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
26439
26439
|
var toMs = /* @__PURE__ */ __name((iso17) => {
|
|
26440
26440
|
if (iso17 === null || iso17 === void 0)
|
|
26441
26441
|
return null;
|
|
@@ -26449,7 +26449,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
26449
26449
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
26450
26450
|
var deliveryOf = /* @__PURE__ */ __name((stored4) => stored4 === DELIVERY.read ? "read" : stored4 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
26451
26451
|
|
|
26452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
26453
26453
|
var TAG_KINDS = ["tag", "topic"];
|
|
26454
26454
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
26455
26455
|
var TAG_TYPE = {
|
|
@@ -26652,7 +26652,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
26652
26652
|
return result;
|
|
26653
26653
|
}, "tagsOf");
|
|
26654
26654
|
|
|
26655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
26656
26656
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
26657
26657
|
var SPEECH = speech("att");
|
|
26658
26658
|
var mentionText = /* @__PURE__ */ __name((alias2) => `CASE WHEN coalesce(json_extract(${alias2}.contact, '$.phone'), '') <> '' THEN 'phone: ' || json_extract(${alias2}.contact, '$.phone') ELSE ${alias2}.text END`, "mentionText");
|
|
@@ -27016,7 +27016,7 @@ var FIELD_COMPILERS = {
|
|
|
27016
27016
|
subject
|
|
27017
27017
|
};
|
|
27018
27018
|
|
|
27019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
27020
27020
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
27021
27021
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
27022
27022
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -27032,7 +27032,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
27032
27032
|
};
|
|
27033
27033
|
}, "placeOf");
|
|
27034
27034
|
|
|
27035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
27036
27036
|
var DRAIN_ON_WRITE = 500;
|
|
27037
27037
|
var METHOD = "rules";
|
|
27038
27038
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -27198,7 +27198,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
27198
27198
|
return queued.length;
|
|
27199
27199
|
}, "drainMentions");
|
|
27200
27200
|
|
|
27201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
27202
27202
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
27203
27203
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
27204
27204
|
if (!exists2)
|
|
@@ -27206,7 +27206,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
27206
27206
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
27207
27207
|
}, "indexRow");
|
|
27208
27208
|
|
|
27209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
27210
27210
|
var INDEX = "message_stems";
|
|
27211
27211
|
var SETTING2 = "searchStemmers";
|
|
27212
27212
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -27328,7 +27328,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
27328
27328
|
};
|
|
27329
27329
|
}, "stemmerCache");
|
|
27330
27330
|
|
|
27331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
27332
27332
|
var rehearsal = new AsyncLocalStorage();
|
|
27333
27333
|
var SQLITE_BUSY = 5;
|
|
27334
27334
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
@@ -27471,7 +27471,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
27471
27471
|
}
|
|
27472
27472
|
}, "read");
|
|
27473
27473
|
|
|
27474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
27475
27475
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
27476
27476
|
coalesce(CASE k.chunkable_type
|
|
27477
27477
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -27613,7 +27613,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
27613
27613
|
}, "dropUnusedVectors");
|
|
27614
27614
|
var dropAllUnusedVectors = /* @__PURE__ */ __name((database) => database.prepare("DELETE FROM embeddings WHERE NOT EXISTS (SELECT 1 FROM chunks k WHERE k.content_hash = embeddings.content_hash) RETURNING 1").all().length, "dropAllUnusedVectors");
|
|
27615
27615
|
|
|
27616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
27617
27617
|
var accountPk = /* @__PURE__ */ __name(({ orm, now: now2 }, { provider, account, scope: scope3 }, name = null) => Number(orm.insert(accounts).values({ provider, externalId: account, name, scope: scope3 ?? "personal", createdAt: now2(), updatedAt: now2() }).onConflictDoUpdate({
|
|
27618
27618
|
target: [accounts.provider, accounts.externalId],
|
|
27619
27619
|
set: {
|
|
@@ -27749,7 +27749,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
27749
27749
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
27750
27750
|
}, "dropOrphanPeople");
|
|
27751
27751
|
|
|
27752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
27753
27753
|
var FOLDED = [
|
|
27754
27754
|
{ table: "tasks", column: "title" },
|
|
27755
27755
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -27786,7 +27786,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
27786
27786
|
return filled2;
|
|
27787
27787
|
}, "fillFolded");
|
|
27788
27788
|
|
|
27789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
27790
27790
|
var HISTORY_KEY = "$history";
|
|
27791
27791
|
var objectOf2 = /* @__PURE__ */ __name((text7) => {
|
|
27792
27792
|
if (typeof text7 !== "string")
|
|
@@ -27862,7 +27862,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
27862
27862
|
return rest;
|
|
27863
27863
|
}, "withoutHistory");
|
|
27864
27864
|
|
|
27865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
27866
27866
|
import { createHash as createHash3 } from "node:crypto";
|
|
27867
27867
|
var CHUNK_CHARS = 1200;
|
|
27868
27868
|
var CHUNK_OVERLAP = 150;
|
|
@@ -27967,7 +27967,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
27967
27967
|
return chunks2;
|
|
27968
27968
|
}, "cutChunks");
|
|
27969
27969
|
|
|
27970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
27971
27971
|
var DAY2 = 864e5;
|
|
27972
27972
|
var CURRENCY = [
|
|
27973
27973
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -28093,7 +28093,7 @@ var dueDayOf = /* @__PURE__ */ __name((text7, createdMs) => {
|
|
|
28093
28093
|
return best?.day ?? null;
|
|
28094
28094
|
}, "dueDayOf");
|
|
28095
28095
|
|
|
28096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
28097
28097
|
var DAY3 = 864e5;
|
|
28098
28098
|
var STOP_WORDS = new Set([
|
|
28099
28099
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -28248,7 +28248,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
28248
28248
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
28249
28249
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
28250
28250
|
|
|
28251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
28252
28252
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
28253
28253
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
28254
28254
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -28523,7 +28523,7 @@ var vectorCounts = /* @__PURE__ */ __name(({ orm }, models) => new Map(models.ma
|
|
|
28523
28523
|
Number(orm.get(sql`SELECT count(*) AS n FROM embeddings WHERE model = ${model}`)?.n ?? 0)
|
|
28524
28524
|
])), "vectorCounts");
|
|
28525
28525
|
|
|
28526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
28527
28527
|
var DOCUMENT_PICTURE = "document_picture";
|
|
28528
28528
|
var SCAN_PAGE2 = 5e3;
|
|
28529
28529
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -28586,12 +28586,12 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
28586
28586
|
}, "nearestPictures")
|
|
28587
28587
|
}), "documentPicturesOver");
|
|
28588
28588
|
|
|
28589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/index-text.js
|
|
28590
28590
|
var noteIndexText = /* @__PURE__ */ __name((title, text7) => title ? `${title}
|
|
28591
28591
|
|
|
28592
28592
|
${text7}` : text7, "noteIndexText");
|
|
28593
28593
|
|
|
28594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/enrichments.js
|
|
28595
28595
|
var ENRICHMENT_SUBJECTS = ["document", "note", "email"];
|
|
28596
28596
|
var ENRICHMENT_POSITION = 1e6;
|
|
28597
28597
|
var EMAIL_ENRICHMENT = "email_enrichment";
|
|
@@ -28685,7 +28685,7 @@ var enrichmentsOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
|
28685
28685
|
}), "clear")
|
|
28686
28686
|
}), "enrichmentsOver");
|
|
28687
28687
|
|
|
28688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
28689
28689
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
28690
28690
|
const literal5 = escaped2 ?? plain2 ?? "";
|
|
28691
28691
|
return wildcard ?? (/[*?[]/u.test(literal5) ? `[${literal5}]` : literal5);
|
|
@@ -28750,7 +28750,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
28750
28750
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
28751
28751
|
var bound2 = /* @__PURE__ */ __name(({ sql: text7, params }) => sql.join(text7.split("?").map((part2, at2) => at2 < params.length ? sql`${sql.raw(part2)}${params[at2]}` : sql.raw(part2)), sql``), "bound");
|
|
28752
28752
|
|
|
28753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
28754
28754
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
28755
28755
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
28756
28756
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -28840,7 +28840,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
28840
28840
|
});
|
|
28841
28841
|
}, "linkMeeting");
|
|
28842
28842
|
|
|
28843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
28844
28844
|
var EVENT_TEXT = "trim(coalesce(e.description, '') || ' ' || coalesce(e.location, '') || ' ' || coalesce((SELECT group_concat(p.name, ' ') FROM calendar_entries ce JOIN calendar_entry_participants p ON p.entry_id = ce.id WHERE ce.event_id = e.id AND ce.deleted_at IS NULL AND p.resource = 0 AND p.name IS NOT NULL), ''))";
|
|
28845
28845
|
var UNSEARCHED_EVENT_TYPES = [
|
|
28846
28846
|
"working-location",
|
|
@@ -29087,7 +29087,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
29087
29087
|
return true;
|
|
29088
29088
|
}, "resetNoteIndex");
|
|
29089
29089
|
|
|
29090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
29091
29091
|
var keyOf2 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
29092
29092
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
29093
29093
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf2))) {
|
|
@@ -29106,7 +29106,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
29106
29106
|
}
|
|
29107
29107
|
}, "resolvePersonLinks");
|
|
29108
29108
|
|
|
29109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
29110
29110
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
29111
29111
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
29112
29112
|
find: orm.select({
|
|
@@ -29331,7 +29331,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
29331
29331
|
}, "meetingIdentityPk");
|
|
29332
29332
|
var phoneOf = /* @__PURE__ */ __name(({ orm }, provider, nativeId) => orm.select({ phone: identities.phone }).from(identities).where(and(eq(identities.provider, provider), eq(identities.externalId, nativeId))).get()?.phone ?? null, "phoneOf");
|
|
29333
29333
|
|
|
29334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
29335
29335
|
var chatOf = /* @__PURE__ */ __name(({ orm }, accountKey, chatKey) => orm.select({ id: chats.externalId }).from(chats).where(and(eq(chats.id, chatKey), eq(chats.accountId, accountKey))).get()?.id, "chatOf");
|
|
29336
29336
|
var findChatPk = /* @__PURE__ */ __name(({ orm }, accountKey, chatId) => orm.select({ pk: chats.id }).from(chats).where(and(eq(chats.accountId, accountKey), eq(chats.externalId, chatId))).get()?.pk, "findChatPk");
|
|
29337
29337
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -29622,7 +29622,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
29622
29622
|
}
|
|
29623
29623
|
}, "replaceAutoTags");
|
|
29624
29624
|
|
|
29625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
29626
29626
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
29627
29627
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
29628
29628
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -29641,7 +29641,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
29641
29641
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
29642
29642
|
}, "counterFreshness");
|
|
29643
29643
|
|
|
29644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-tokens.js
|
|
29645
29645
|
var BOT_TOKEN = /(?<!\d)(\d{6,12}):[A-Za-z0-9_-]{30,40}(?![A-Za-z0-9_-])/g;
|
|
29646
29646
|
var MAY_HOLD = "*[0-9][0-9][0-9][0-9][0-9][0-9]:*";
|
|
29647
29647
|
var MASKED_THROUGH = "bot_tokens_masked_through";
|
|
@@ -29681,7 +29681,7 @@ var maskStoredBotTokens = /* @__PURE__ */ __name((context) => {
|
|
|
29681
29681
|
}, "maskStoredBotTokens");
|
|
29682
29682
|
var masks = /* @__PURE__ */ __name((value) => value != null && withoutBotTokens(String(value)) !== value, "masks");
|
|
29683
29683
|
|
|
29684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
29685
29685
|
import { createHash as createHash4 } from "node:crypto";
|
|
29686
29686
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
29687
29687
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -29779,7 +29779,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
29779
29779
|
return { source: source2, query, chat: chat2, senders, words: words4, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
29780
29780
|
}, "contextEvidenceRequest");
|
|
29781
29781
|
|
|
29782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
29783
29783
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
29784
29784
|
var ACTIVITY = `
|
|
29785
29785
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -29909,7 +29909,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
29909
29909
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
29910
29910
|
}), "mailActivity");
|
|
29911
29911
|
|
|
29912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
29913
29913
|
var GREETING = new RegExp("^(hi|hello|hey|dear|greetings|good (morning|afternoon|evening)|\u043F\u0440\u0438\u0432\u0435\u0442|\u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439(\u0442\u0435)?|\u0434\u043E\u0431\u0440(\u044B\u0439|\u043E\u0435|\u043E\u0433\u043E) (\u0434\u0435\u043D\u044C|\u0432\u0435\u0447\u0435\u0440|\u0443\u0442\u0440\u043E|\u0443\u0442\u0440\u0430|\u0434\u043D\u044F)|hola|buen(os|as) (d\xEDas|dias|tardes|noches)|estimad[oa]s?|querid[oa]s?)(?![\\p{L}\\p{N}])([\\s,]+\\p{L}[\\p{L}.'\u2019-]*){0,3}\\s*[,!.:]?$", "iu");
|
|
29914
29914
|
var SIGN_OFF = /^(best|best regards|best wishes|kind regards|warm regards|regards|thanks|thanks again|thanks a lot|thank you|many thanks|cheers|sincerely|yours|yours truly|yours sincerely|br|с уважением|спасибо|заранее спасибо|всего доброго|всего хорошего|un saludo|saludos|saludos cordiales|atentamente|gracias|muchas gracias)[\s,.!]*$/iu;
|
|
29915
29915
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -30050,7 +30050,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
30050
30050
|
return text7 || body2.trim();
|
|
30051
30051
|
}, "mailOwnText");
|
|
30052
30052
|
|
|
30053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
30054
30054
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
30055
30055
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
30056
30056
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at,
|
|
@@ -30163,7 +30163,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
30163
30163
|
return emails3 + threads;
|
|
30164
30164
|
}, "drainEmailIndex");
|
|
30165
30165
|
|
|
30166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
30167
30167
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
30168
30168
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
30169
30169
|
var folderEmails = /* @__PURE__ */ __name((database, accountId, folder, uidvalidity) => database.prepare(`SELECT l.uid, e.external_id, coalesce(e.received_at, e.sent_at) AS at, e.read, e.flagged,
|
|
@@ -30261,7 +30261,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
30261
30261
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
30262
30262
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
30263
30263
|
|
|
30264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
30265
30265
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
30266
30266
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
30267
30267
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -30311,7 +30311,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
30311
30311
|
return threads.length;
|
|
30312
30312
|
}, "markEmailsRestored");
|
|
30313
30313
|
|
|
30314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-nearest.js
|
|
30315
30315
|
var MAIL_PIECE_ROWS = `SELECT p.id, p.content_hash AS hash, p.type, p.owner, p.position, p.email_id AS email, v.vector
|
|
30316
30316
|
FROM ${MAIL_PIECES} JOIN embeddings v ON v.model = ? AND v.content_hash = p.content_hash
|
|
30317
30317
|
WHERE p.account_id = ?
|
|
@@ -30371,7 +30371,7 @@ var indexedMailPieces = /* @__PURE__ */ __name((database, model, query, filter,
|
|
|
30371
30371
|
}, "indexedMailPieces");
|
|
30372
30372
|
var nearestMailPieces = /* @__PURE__ */ __name((database, model, query, filter, depth) => (filter.threadExternalId === void 0 ? indexedMailPieces(database, model, query, filter, depth) : void 0) ?? scannedMailPieces(database, model, query, filter), "nearestMailPieces");
|
|
30373
30373
|
|
|
30374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
30375
30375
|
var sorted = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.map(sorted) : value !== null && typeof value === "object" ? Object.fromEntries(Object.keys(value).sort().map((key2) => [key2, sorted(value[key2])])) : value, "sorted");
|
|
30376
30376
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
30377
30377
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -30438,7 +30438,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
30438
30438
|
}
|
|
30439
30439
|
}), "mailRulesOver");
|
|
30440
30440
|
|
|
30441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
30442
30442
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
30443
30443
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
30444
30444
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -30446,7 +30446,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
30446
30446
|
reason = excluded.reason, updated_at = excluded.updated_at WHERE link_reviews.status = 'open'`).run(linkable.type, linkable.id, entity, JSON.stringify([...candidates].sort((a, b) => a - b)), reason, now2, now2);
|
|
30447
30447
|
}, "reviewLink");
|
|
30448
30448
|
|
|
30449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
30450
30450
|
function checkMeetingCancelled(signal) {
|
|
30451
30451
|
if (!signal?.aborted)
|
|
30452
30452
|
return;
|
|
@@ -30457,7 +30457,7 @@ function checkMeetingCancelled(signal) {
|
|
|
30457
30457
|
}
|
|
30458
30458
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
30459
30459
|
|
|
30460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
30461
30461
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
30462
30462
|
id: Number(row2.id),
|
|
30463
30463
|
accountId: Number(row2.account_id),
|
|
@@ -30507,7 +30507,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
30507
30507
|
createdAt: Number(row2.created_at)
|
|
30508
30508
|
}), "transcriptRowOf");
|
|
30509
30509
|
|
|
30510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
30511
30511
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
30512
30512
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
30513
30513
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -30674,7 +30674,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30674
30674
|
}
|
|
30675
30675
|
}), "meetingReadsOver");
|
|
30676
30676
|
|
|
30677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
30678
30678
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
30679
30679
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
30680
30680
|
const params = [input.accountId];
|
|
@@ -30717,7 +30717,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
30717
30717
|
return { clauses, params };
|
|
30718
30718
|
}, "meetingSelectionSql");
|
|
30719
30719
|
|
|
30720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
30721
30721
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30722
30722
|
async meetingChatLines(input) {
|
|
30723
30723
|
checkMeetingCancelled(input.signal);
|
|
@@ -30745,10 +30745,10 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30745
30745
|
}
|
|
30746
30746
|
}), "meetingChatLinesOver");
|
|
30747
30747
|
|
|
30748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
30749
30749
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
30750
30750
|
|
|
30751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
30752
30752
|
var TASK_CLOSE_KIND = "task_close";
|
|
30753
30753
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
30754
30754
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind3) => kind3 === MAIL_FINDINGS_KIND || kind3 === MEETING_FINDINGS_KIND || kind3 === TASK_CLOSE_KIND || kind3 === SOURCE_REVIEW_KIND || kind3 === IDENTITY_LINK_KIND, "isOwnerOnlyKind");
|
|
@@ -30796,7 +30796,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
30796
30796
|
}, "assertMayDecide");
|
|
30797
30797
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
30798
30798
|
|
|
30799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/addresses.js
|
|
30800
30800
|
var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
30801
30801
|
var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
|
|
30802
30802
|
var ROLE_ADDRESS_WORDS = {
|
|
@@ -30856,7 +30856,7 @@ var localWord = /* @__PURE__ */ __name((address) => {
|
|
|
30856
30856
|
var isRoleAddress = /* @__PURE__ */ __name((address) => ROLE.has(localWord(address)), "isRoleAddress");
|
|
30857
30857
|
var isNoReplyAddress = /* @__PURE__ */ __name((address) => NO_REPLY.has(localWord(address)), "isNoReplyAddress");
|
|
30858
30858
|
|
|
30859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-separation.js
|
|
30860
30860
|
var identitiesOf = /* @__PURE__ */ __name(({ database }, person2) => database.prepare("SELECT identity_id AS pk FROM identity_links WHERE person_id = ?").all(person2).map(({ pk }) => Number(pk)), "identitiesOf");
|
|
30861
30861
|
var MOVED_AWAY = `moved.identity_id IN (SELECT value FROM json_each(?))
|
|
30862
30862
|
AND (moved.from_person_id IN (SELECT value FROM json_each(?))
|
|
@@ -30871,7 +30871,7 @@ var apart = /* @__PURE__ */ __name(({ database }, one2, other) => {
|
|
|
30871
30871
|
var separated = /* @__PURE__ */ __name((context, one2, other) => one2 !== other && apart(context, { identities: identitiesOf(context, one2), person: one2 }, { identities: identitiesOf(context, other), person: other }), "separated");
|
|
30872
30872
|
var identitySeparated = /* @__PURE__ */ __name((context, identity, person2) => apart(context, { identities: [identity] }, { identities: identitiesOf(context, person2).filter((pk) => pk !== identity), person: person2 }), "identitySeparated");
|
|
30873
30873
|
|
|
30874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
30875
30875
|
var MESSAGE_FIELDS = {
|
|
30876
30876
|
pk: messages.id,
|
|
30877
30877
|
nativeId: messages.externalId,
|
|
@@ -31042,7 +31042,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
31042
31042
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
31043
31043
|
}), "chatActivity");
|
|
31044
31044
|
|
|
31045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
31046
31046
|
var HIT_FIELDS = {
|
|
31047
31047
|
...MESSAGE_FIELDS,
|
|
31048
31048
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -31141,7 +31141,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
31141
31141
|
};
|
|
31142
31142
|
}, "directReplies");
|
|
31143
31143
|
|
|
31144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
31145
31145
|
var identityRow = /* @__PURE__ */ __name(({ orm }, { provider, id: id2 }) => orm.select({ pk: identities.id, personPk: identityLinks.personId }).from(identities).innerJoin(identityLinks, eq(identityLinks.identityId, identities.id)).where(and(eq(identities.provider, provider), eq(identities.externalId, id2))).get(), "identityRow");
|
|
31146
31146
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
31147
31147
|
const found2 = identityRow(context, ref3);
|
|
@@ -31298,7 +31298,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
31298
31298
|
}, "mentioning");
|
|
31299
31299
|
var escaped = /* @__PURE__ */ __name((text7) => text7.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
31300
31300
|
|
|
31301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
31302
31302
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
31303
31303
|
var unregistered = /* @__PURE__ */ __name((provider) => `no CLI has registered ${provider} in this store yet; run its CLI once`, "unregistered");
|
|
31304
31304
|
var profilesOn = /* @__PURE__ */ __name((profiles, app, key2) => Object.entries(profiles[app] ?? {}).filter(([, saved]) => saved.provider === key2.provider && saved.account === key2.account).map(([name]) => name), "profilesOn");
|
|
@@ -31397,7 +31397,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
31397
31397
|
return `${WORDS2[summary.kind]} ${named3}${notes2 === "" ? "" : ` (${notes2})`}`;
|
|
31398
31398
|
}, "refLabel");
|
|
31399
31399
|
|
|
31400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-accounts.js
|
|
31401
31401
|
var accountKeys = /* @__PURE__ */ __name((database, ids2) => {
|
|
31402
31402
|
const unique2 = [...new Set(ids2)];
|
|
31403
31403
|
if (unique2.length === 0)
|
|
@@ -31486,7 +31486,7 @@ var refEndsOf = /* @__PURE__ */ __name((database, text7) => {
|
|
|
31486
31486
|
}, "refEndsOf");
|
|
31487
31487
|
var refAccountsOf = /* @__PURE__ */ __name((database, text7) => refEndsOf(database, text7)?.flat(), "refAccountsOf");
|
|
31488
31488
|
|
|
31489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
31490
31490
|
var EXCERPT_CHARS = 280;
|
|
31491
31491
|
var TITLE_CHARS = 120;
|
|
31492
31492
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -31910,7 +31910,7 @@ var refsStoreOver = /* @__PURE__ */ __name((context) => ({
|
|
|
31910
31910
|
ends: /* @__PURE__ */ __name(async (text7) => refEndsOf(context.database, text7), "ends")
|
|
31911
31911
|
}), "refsStoreOver");
|
|
31912
31912
|
|
|
31913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
31914
31914
|
var sourceOf3 = /* @__PURE__ */ __name((read3, ref3) => ({
|
|
31915
31915
|
ref: ref3,
|
|
31916
31916
|
kind: read3.kind,
|
|
@@ -31948,7 +31948,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
31948
31948
|
});
|
|
31949
31949
|
}, "evidenceSourcesOf");
|
|
31950
31950
|
|
|
31951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
31952
31952
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
31953
31953
|
var MAX_TEXT_CHARS = 2e6;
|
|
31954
31954
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -31974,7 +31974,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
31974
31974
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
31975
31975
|
}, "pdfPreviewLimits");
|
|
31976
31976
|
|
|
31977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
31978
31978
|
import { randomBytes } from "node:crypto";
|
|
31979
31979
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
31980
31980
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -31987,7 +31987,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
31987
31987
|
return time3 + random;
|
|
31988
31988
|
}, "ulid");
|
|
31989
31989
|
|
|
31990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
31991
31991
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
31992
31992
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
31993
31993
|
if (!meta && !sections?.length)
|
|
@@ -32008,7 +32008,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
32008
32008
|
return typeof language === "string" && language !== "" ? language : null;
|
|
32009
32009
|
}, "languageOf");
|
|
32010
32010
|
|
|
32011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
32012
32012
|
var isObject2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
32013
32013
|
var objectOf3 = /* @__PURE__ */ __name((value) => {
|
|
32014
32014
|
if (isObject2(value))
|
|
@@ -32251,7 +32251,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
32251
32251
|
};
|
|
32252
32252
|
}, "filesStoreOver");
|
|
32253
32253
|
|
|
32254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
32255
32255
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
32256
32256
|
entity: "document",
|
|
32257
32257
|
backend: "sql",
|
|
@@ -32297,7 +32297,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
32297
32297
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
32298
32298
|
}, "importedDocumentWhere");
|
|
32299
32299
|
|
|
32300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/link-row.js
|
|
32301
32301
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
32302
32302
|
var thingRef = /* @__PURE__ */ __name((database, type, id2) => type == null || id2 == null ? null : referenceOfThing(database, storedThing(type, id2)) ?? null, "thingRef");
|
|
32303
32303
|
var linkOf = /* @__PURE__ */ __name((database, row2) => {
|
|
@@ -32330,7 +32330,7 @@ var linkOf = /* @__PURE__ */ __name((database, row2) => {
|
|
|
32330
32330
|
};
|
|
32331
32331
|
}, "linkOf");
|
|
32332
32332
|
|
|
32333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/note-dates.js
|
|
32334
32334
|
var dateFileNotes = /* @__PURE__ */ __name((database, folder, dates) => {
|
|
32335
32335
|
const fileAt = database.prepare("SELECT id, document_id FROM files WHERE account_id = ? AND external_id = ? AND kind <> 'folder' AND deleted_at IS NULL");
|
|
32336
32336
|
const legacy = database.prepare("SELECT id FROM documents WHERE account_id = ? AND external_id = ? AND deleted_at IS NULL");
|
|
@@ -32351,7 +32351,7 @@ var dateFileNotes = /* @__PURE__ */ __name((database, folder, dates) => {
|
|
|
32351
32351
|
return changed;
|
|
32352
32352
|
}, "dateFileNotes");
|
|
32353
32353
|
|
|
32354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/text-input.js
|
|
32355
32355
|
var textOf2 = /* @__PURE__ */ __name((text7, what, max = 1e5, allowEmpty = false) => {
|
|
32356
32356
|
const value = text7.trim();
|
|
32357
32357
|
if (!value && !allowEmpty || value.length > max)
|
|
@@ -32364,7 +32364,7 @@ var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
|
32364
32364
|
return value;
|
|
32365
32365
|
}, "oneOf");
|
|
32366
32366
|
|
|
32367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
32368
32368
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
32369
32369
|
var RELATIONSHIPS = RELATION_KINDS.map(linkKind).join(", ");
|
|
32370
32370
|
var iso4 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
@@ -32879,7 +32879,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32879
32879
|
};
|
|
32880
32880
|
}, "notesStoreOver");
|
|
32881
32881
|
|
|
32882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
32883
32883
|
var NAMED = "SELECT m.*, b.name AS author_name, b.kind AS author_kind FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
|
|
32884
32884
|
var iso5 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
32885
32885
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -33086,7 +33086,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33086
33086
|
const subject2 = options.subject === void 0 ? void 0 : requiredThing(database, options.subject);
|
|
33087
33087
|
const project2 = options.project === void 0 ? null : projectId(database, options.project);
|
|
33088
33088
|
const by = proposedBySql("m.author_type", "m.author_id", options.proposedBy);
|
|
33089
|
-
return database.prepare(`${NAMED} WHERE m.deleted_at IS NULL AND (? IS NULL OR (m.subject_type = ? AND m.subject_id IN (SELECT value FROM json_each(?)))) AND (? IS NULL OR m.project_id = ?) AND (? IS NULL OR m.kind = ?) AND (? IS NULL OR m.status = ?) AND (? IS NULL OR m.scope = ?) AND ${by.sql} ORDER BY m.created_at DESC, m.id DESC LIMIT ?`).all(subject2?.type ?? null, subject2?.type ?? null, subject2 ? idsOf(database, subject2.type, subject2.id) : null, project2, project2, options.kind ?? null, options.kind ?? null, options.status ?? null, options.status ?? null, options.scope ?? null, options.scope ?? null, ...by.params, Math.min(Math.max(options.limit ?? 100, 1), 500)).map(memoryOf);
|
|
33089
|
+
return database.prepare(`${NAMED} WHERE m.deleted_at IS NULL AND (? IS NULL OR (m.subject_type = ? AND m.subject_id IN (SELECT value FROM json_each(?)))) AND (? IS NULL OR m.project_id = ?) AND (? IS NULL OR m.kind = ?) AND (? IS NULL OR m.status = ?) AND (? IS NULL OR m.scope = ?) AND ${by.sql} ORDER BY m.created_at DESC, m.id DESC LIMIT ? OFFSET ?`).all(subject2?.type ?? null, subject2?.type ?? null, subject2 ? idsOf(database, subject2.type, subject2.id) : null, project2, project2, options.kind ?? null, options.kind ?? null, options.status ?? null, options.status ?? null, options.scope ?? null, options.scope ?? null, ...by.params, Math.min(Math.max(options.limit ?? 100, 1), 500), Math.max(options.offset ?? 0, 0)).map(memoryOf);
|
|
33090
33090
|
}, "list"),
|
|
33091
33091
|
update: /* @__PURE__ */ __name(async (reference2, change) => write(database, () => {
|
|
33092
33092
|
const id2 = Number(rowOf2(reference2).id);
|
|
@@ -33138,7 +33138,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33138
33138
|
};
|
|
33139
33139
|
}, "memoriesStoreOver");
|
|
33140
33140
|
|
|
33141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/reviewed.js
|
|
33142
33142
|
var prefixesText = /* @__PURE__ */ __name((types) => `${article(types[0] ?? "")} ${types.map((type) => `${type}:`).join(" or ")}`, "prefixesText");
|
|
33143
33143
|
var refuse = /* @__PURE__ */ __name((message3, reason, code = "validation_error") => {
|
|
33144
33144
|
throw new CliError(code, message3, { reason });
|
|
@@ -33286,7 +33286,7 @@ var reviewedRowsOver = /* @__PURE__ */ __name((context) => {
|
|
|
33286
33286
|
return { partyOf, partyThing, reviewedOf, written, keepEvidence, ownerOnly: ownerOnly2, linkedId, ...decisionsOver(context) };
|
|
33287
33287
|
}, "reviewedRowsOver");
|
|
33288
33288
|
|
|
33289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/money-lines.js
|
|
33290
33290
|
var MAX_LINES = 500;
|
|
33291
33291
|
var PARENTS = {
|
|
33292
33292
|
invoice: {
|
|
@@ -33386,7 +33386,7 @@ var moneyLinesOver = /* @__PURE__ */ __name(({ database }) => {
|
|
|
33386
33386
|
return { linesOf, insertLines, shownLines, appendLine, deleteLine, sumOf, retotal };
|
|
33387
33387
|
}, "moneyLinesOver");
|
|
33388
33388
|
|
|
33389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/refunds.js
|
|
33390
33390
|
var COUNTED = {
|
|
33391
33391
|
confirmed: "np.review = 'confirmed' AND np.deleted_at IS NULL",
|
|
33392
33392
|
// A proposed refund promises nothing back yet, so it must not free room an import could then fill.
|
|
@@ -33461,7 +33461,7 @@ var refundRulesOver = /* @__PURE__ */ __name((context) => {
|
|
|
33461
33461
|
return { originalFor, refundShare, confirmable, keepsRefunded, keepsShare, keepsInvoice };
|
|
33462
33462
|
}, "refundRulesOver");
|
|
33463
33463
|
|
|
33464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
33465
33465
|
var FINANCE_TYPES = ["invoice", "payment"];
|
|
33466
33466
|
var isFinanceType = /* @__PURE__ */ __name((type) => FINANCE_TYPES.includes(type), "isFinanceType");
|
|
33467
33467
|
var PAID = netPaidSql("i.id");
|
|
@@ -33859,7 +33859,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33859
33859
|
};
|
|
33860
33860
|
}, "financeStoreOver");
|
|
33861
33861
|
|
|
33862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
33863
33863
|
var refuse2 = /* @__PURE__ */ __name((message3, reason) => {
|
|
33864
33864
|
throw new CliError("validation_error", message3, { reason });
|
|
33865
33865
|
}, "refuse");
|
|
@@ -33937,7 +33937,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
33937
33937
|
};
|
|
33938
33938
|
}, "paymentEntriesOver");
|
|
33939
33939
|
|
|
33940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
33941
33941
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
33942
33942
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
33943
33943
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -33964,7 +33964,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
33964
33964
|
return valid;
|
|
33965
33965
|
}, "validateEvidenceFindings");
|
|
33966
33966
|
|
|
33967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
33968
33968
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
33969
33969
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
33970
33970
|
var iso7 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -34052,11 +34052,11 @@ var proposalOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
|
34052
34052
|
}, "propose"),
|
|
34053
34053
|
get: /* @__PURE__ */ __name((id2) => actionOf(rowOf2(id2)), "get"),
|
|
34054
34054
|
pending: /* @__PURE__ */ __name(({ limit = 100 } = {}) => database.prepare(`${NAMED2} WHERE p.status = 'proposed' ORDER BY p.created_at, p.id LIMIT ?`).all(Math.min(Math.max(limit, 1), 500)).map(actionOf), "pending"),
|
|
34055
|
-
list: /* @__PURE__ */ __name(({ status: status2, limit = 100, kinds: kinds2, except, proposedBy, project: project2, evidence } = {}) => {
|
|
34055
|
+
list: /* @__PURE__ */ __name(({ status: status2, limit = 100, offset = 0, kinds: kinds2, except, proposedBy, project: project2, evidence } = {}) => {
|
|
34056
34056
|
if (status2 !== void 0 && !PROPOSAL_STATUSES.includes(status2))
|
|
34057
34057
|
throw new CliError("validation_error", `a status is one of ${PROPOSAL_STATUSES.join(", ")}`);
|
|
34058
34058
|
const by = proposedBySql("p.proposed_by_type", "p.proposed_by_id", proposedBy);
|
|
34059
|
-
return database.prepare(`${NAMED2} WHERE (? IS NULL OR ${STATUS} = ?) AND (? IS NULL OR p.kind IN (SELECT value FROM json_each(?))) AND p.kind NOT IN (SELECT value FROM json_each(?)) AND (? IS NULL OR (p.target_type = 'project' AND 'project:' || p.target_id = ?) OR json_extract(p.payload, '$.to') = ? OR json_extract(p.payload, '$.from') = ? OR json_extract(p.payload, '$.project') = ?) AND (? IS NULL OR EXISTS (SELECT 1 FROM json_each(p.payload, '$.evidence') WHERE value = ?)) AND ${by.sql} ORDER BY p.created_at DESC, p.id DESC LIMIT ?`).all(status2 ?? null, status2 ?? null, kinds2 === void 0 ? null : 1, JSON.stringify(kinds2 ?? []), JSON.stringify(except ?? []), ...Array(5).fill(project2 ?? null), evidence ?? null, evidence ?? null, ...by.params, Math.min(Math.max(limit, 1), 500)).map(actionOf);
|
|
34059
|
+
return database.prepare(`${NAMED2} WHERE (? IS NULL OR ${STATUS} = ?) AND (? IS NULL OR p.kind IN (SELECT value FROM json_each(?))) AND p.kind NOT IN (SELECT value FROM json_each(?)) AND (? IS NULL OR (p.target_type = 'project' AND 'project:' || p.target_id = ?) OR json_extract(p.payload, '$.to') = ? OR json_extract(p.payload, '$.from') = ? OR json_extract(p.payload, '$.project') = ?) AND (? IS NULL OR EXISTS (SELECT 1 FROM json_each(p.payload, '$.evidence') WHERE value = ?)) AND ${by.sql} ORDER BY p.created_at DESC, p.id DESC LIMIT ? OFFSET ?`).all(status2 ?? null, status2 ?? null, kinds2 === void 0 ? null : 1, JSON.stringify(kinds2 ?? []), JSON.stringify(except ?? []), ...Array(5).fill(project2 ?? null), evidence ?? null, evidence ?? null, ...by.params, Math.min(Math.max(limit, 1), 500), Math.max(offset, 0)).map(actionOf);
|
|
34060
34060
|
}, "list"),
|
|
34061
34061
|
approve: /* @__PURE__ */ __name((id2, result, by) => decide2(id2, "approved", result, by), "approve"),
|
|
34062
34062
|
reject: /* @__PURE__ */ __name((id2, by, result) => decide2(id2, "rejected", result, by), "reject"),
|
|
@@ -34150,7 +34150,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34150
34150
|
};
|
|
34151
34151
|
}, "proposedActionsStoreOver");
|
|
34152
34152
|
|
|
34153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-proposals.js
|
|
34154
34154
|
var CONFIRMED = "proposal";
|
|
34155
34155
|
var refOf = /* @__PURE__ */ __name(({ database }, pk) => {
|
|
34156
34156
|
const row2 = database.prepare("SELECT provider, external_id FROM identities WHERE id = ?").get(pk);
|
|
@@ -34337,7 +34337,7 @@ var identityLinkRows = /* @__PURE__ */ __name((context, { person: person2, statu
|
|
|
34337
34337
|
return { items, hasMore: rows.length > offset + limit };
|
|
34338
34338
|
}, "identityLinkRows");
|
|
34339
34339
|
|
|
34340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
34341
34341
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
34342
34342
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
34343
34343
|
}, "missing");
|
|
@@ -34460,7 +34460,7 @@ function meetingContextLinksOver(context) {
|
|
|
34460
34460
|
}
|
|
34461
34461
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
34462
34462
|
|
|
34463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
34464
34464
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
34465
34465
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
34466
34466
|
var summaryOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -34489,7 +34489,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
34489
34489
|
return row2 ? summaryText(summaryOf2(row2)) : null;
|
|
34490
34490
|
}, "indexedText");
|
|
34491
34491
|
|
|
34492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
34493
34493
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
34494
34494
|
var meetingCurrentIndexRows = `
|
|
34495
34495
|
SELECT 'meeting_transcript_row' AS indexable_type,r.id,r.id*4+1 AS rid,1 AS live,coalesce(length(CAST(r.text AS BLOB)),0) AS bytes FROM meeting_transcript_rows r JOIN meeting_transcripts t ON t.id=r.meeting_transcript_id JOIN meetings m ON m.id=t.meeting_id WHERE m.account_id=? AND m.deleted_at IS NULL AND t.deleted_at IS NULL AND t.superseded_at IS NULL
|
|
@@ -34520,7 +34520,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
34520
34520
|
}, "invalidateMeetingStems");
|
|
34521
34521
|
var meetingStemmableText = /* @__PURE__ */ __name((text7) => text7.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
34522
34522
|
|
|
34523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
34524
34524
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
34525
34525
|
return {
|
|
34526
34526
|
async indexSearch(original) {
|
|
@@ -34588,10 +34588,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
34588
34588
|
}
|
|
34589
34589
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
34590
34590
|
|
|
34591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
34592
34592
|
import { createHash as createHash5 } from "node:crypto";
|
|
34593
34593
|
|
|
34594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
|
|
34595
34595
|
var REPAIRED = /* @__PURE__ */ new Set([
|
|
34596
34596
|
"query.invalid-syntax",
|
|
34597
34597
|
"query.unclosed-literal",
|
|
@@ -34698,7 +34698,7 @@ var plainQuery = /* @__PURE__ */ __name((text7, fields4 = SEARCH_FIELDS) => {
|
|
|
34698
34698
|
return text7;
|
|
34699
34699
|
}, "plainQuery");
|
|
34700
34700
|
|
|
34701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
34702
34702
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
34703
34703
|
const padded = ` ${term} `;
|
|
34704
34704
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -34707,7 +34707,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
34707
34707
|
return [...pieces];
|
|
34708
34708
|
}, "trigrams");
|
|
34709
34709
|
|
|
34710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
34711
34711
|
var SHORTEST_CORRECTION = 3;
|
|
34712
34712
|
var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
|
|
34713
34713
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -34754,7 +34754,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words4) => {
|
|
|
34754
34754
|
return corrections;
|
|
34755
34755
|
}, "correctWords");
|
|
34756
34756
|
|
|
34757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
34758
34758
|
var SHORTEST_GARBLED = 4;
|
|
34759
34759
|
var MOST_WIDENED = 64;
|
|
34760
34760
|
var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -34846,7 +34846,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
34846
34846
|
return found2.map((words4) => words4.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word2) => word2.term));
|
|
34847
34847
|
}, "widenWords");
|
|
34848
34848
|
|
|
34849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
34850
34850
|
import { readFileSync } from "node:fs";
|
|
34851
34851
|
var loaded;
|
|
34852
34852
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -34905,7 +34905,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
|
|
|
34905
34905
|
return false;
|
|
34906
34906
|
}, "knownRussianWord");
|
|
34907
34907
|
|
|
34908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
34909
34909
|
var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
34910
34910
|
var MOST_WORDS = 128;
|
|
34911
34911
|
var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
|
|
@@ -35161,7 +35161,7 @@ var matchedMeetingWords = /* @__PURE__ */ __name((tree, text7, stemmer) => {
|
|
|
35161
35161
|
return [...found2];
|
|
35162
35162
|
}, "matchedMeetingWords");
|
|
35163
35163
|
|
|
35164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
35165
35165
|
var fail = /* @__PURE__ */ __name((message3) => {
|
|
35166
35166
|
throw new CliError("validation_error", message3);
|
|
35167
35167
|
}, "fail");
|
|
@@ -35345,7 +35345,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
35345
35345
|
}
|
|
35346
35346
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
35347
35347
|
|
|
35348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
35349
35349
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
35350
35350
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
35351
35351
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -35377,7 +35377,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35377
35377
|
}
|
|
35378
35378
|
}), "meetingLanguagesOver");
|
|
35379
35379
|
|
|
35380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
35381
35381
|
import { createHash as createHash6 } from "node:crypto";
|
|
35382
35382
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
35383
35383
|
if (value === void 0)
|
|
@@ -35467,7 +35467,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
35467
35467
|
}
|
|
35468
35468
|
}), "meetingParticipantSearchOver");
|
|
35469
35469
|
|
|
35470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
35471
35471
|
var preparationQueries = {
|
|
35472
35472
|
participants: {
|
|
35473
35473
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -35517,7 +35517,7 @@ var preparationQueries = {
|
|
|
35517
35517
|
}
|
|
35518
35518
|
};
|
|
35519
35519
|
|
|
35520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
35521
35521
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
35522
35522
|
async preparationContext(original) {
|
|
35523
35523
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -35558,7 +35558,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35558
35558
|
}
|
|
35559
35559
|
}), "meetingPreparationContextOver");
|
|
35560
35560
|
|
|
35561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
35562
35562
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
35563
35563
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
35564
35564
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -35572,7 +35572,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
35572
35572
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
35573
35573
|
)`, "preparationSubjects");
|
|
35574
35574
|
|
|
35575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
35576
35576
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
35577
35577
|
async preparationKnowledge(original) {
|
|
35578
35578
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -35617,7 +35617,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
35617
35617
|
}
|
|
35618
35618
|
}), "meetingPreparationKnowledgeOver");
|
|
35619
35619
|
|
|
35620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
35621
35621
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
35622
35622
|
async preparationNotes(original) {
|
|
35623
35623
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -35670,7 +35670,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35670
35670
|
}
|
|
35671
35671
|
}), "meetingPreparationNotesOver");
|
|
35672
35672
|
|
|
35673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
35674
35674
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
35675
35675
|
async relatedHistory(original) {
|
|
35676
35676
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -35741,7 +35741,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35741
35741
|
}
|
|
35742
35742
|
}), "meetingRelatedHistoryOver");
|
|
35743
35743
|
|
|
35744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
35745
35745
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
35746
35746
|
var text4 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
35747
35747
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -35822,7 +35822,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35822
35822
|
}
|
|
35823
35823
|
}), "meetingReviewOver");
|
|
35824
35824
|
|
|
35825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
35826
35826
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
35827
35827
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
35828
35828
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -35876,7 +35876,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35876
35876
|
}
|
|
35877
35877
|
}), "meetingSeriesHistoryOver");
|
|
35878
35878
|
|
|
35879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
35880
35880
|
var MOST_ROWS = 5e5;
|
|
35881
35881
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
35882
35882
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -35945,7 +35945,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35945
35945
|
}
|
|
35946
35946
|
}), "meetingStatsOver");
|
|
35947
35947
|
|
|
35948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
35949
35949
|
var CURSOR_KEY = "meetings";
|
|
35950
35950
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
35951
35951
|
id: Number(row2.id),
|
|
@@ -36514,7 +36514,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36514
36514
|
};
|
|
36515
36515
|
}, "meetingStoreOver");
|
|
36516
36516
|
|
|
36517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
36518
36518
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
36519
36519
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
36520
36520
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -36540,7 +36540,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
36540
36540
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
36541
36541
|
}, "release");
|
|
36542
36542
|
|
|
36543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
36544
36544
|
var THREAD_COLUMNS = {
|
|
36545
36545
|
subject: {
|
|
36546
36546
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -36557,7 +36557,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
36557
36557
|
AND (${filter.where?.sql ?? "1"}) ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, ...filter.where?.params ?? [], limit, offset);
|
|
36558
36558
|
}, "threadRows");
|
|
36559
36559
|
|
|
36560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
36561
36561
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
36562
36562
|
id: `email:${place.emailId}`,
|
|
36563
36563
|
chatId: place.threadExternalId,
|
|
@@ -37099,7 +37099,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
37099
37099
|
}
|
|
37100
37100
|
}), "mailStoreOver");
|
|
37101
37101
|
|
|
37102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
37103
37103
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
37104
37104
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
37105
37105
|
var folded5 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
|
|
@@ -37189,7 +37189,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
37189
37189
|
}, "knownWord");
|
|
37190
37190
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
37191
37191
|
|
|
37192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
37193
37193
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
37194
37194
|
var readsTranscripts = /* @__PURE__ */ __name((node) => (node.operator === "term" || node.operator === "phrase") && /[\p{L}\p{N}]/u.test(normalize(node.value)) && (node.field === "transcript" || node.implicit === true && (node.field === "text" || node.field === "exact")), "readsTranscripts");
|
|
37195
37195
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -37275,7 +37275,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
37275
37275
|
return found2;
|
|
37276
37276
|
}, "spokenTranscripts");
|
|
37277
37277
|
|
|
37278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
37279
37279
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
37280
37280
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
37281
37281
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -37322,7 +37322,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
37322
37322
|
});
|
|
37323
37323
|
}, "placeHits");
|
|
37324
37324
|
|
|
37325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
37326
37326
|
var GROUPS = {
|
|
37327
37327
|
chat: {
|
|
37328
37328
|
key: "m.chat_id",
|
|
@@ -37344,7 +37344,7 @@ var GROUPS = {
|
|
|
37344
37344
|
}
|
|
37345
37345
|
};
|
|
37346
37346
|
|
|
37347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
37348
37348
|
var MESSAGES2 = {
|
|
37349
37349
|
rows: "messages",
|
|
37350
37350
|
threads: "chats",
|
|
@@ -37828,7 +37828,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
37828
37828
|
};
|
|
37829
37829
|
}, "runCompiled");
|
|
37830
37830
|
|
|
37831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
37832
37832
|
function invalidMetadata() {
|
|
37833
37833
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
37834
37834
|
}
|
|
@@ -37930,7 +37930,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
37930
37930
|
};
|
|
37931
37931
|
}), "counterTargets");
|
|
37932
37932
|
|
|
37933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
37934
37934
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
37935
37935
|
var fileAttachments = /* @__PURE__ */ __name(({ database }, accountKey, { chatKey, messageId, beforePk, limit }) => database.prepare(`SELECT att.id AS pk, c.external_id AS chat_id, m.external_id AS message_id, att.position, att.kind, att.name, att.mime,
|
|
37936
37936
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -38049,7 +38049,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
38049
38049
|
}));
|
|
38050
38050
|
}, "attachmentViews");
|
|
38051
38051
|
|
|
38052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
38053
38053
|
var transcript2 = /* @__PURE__ */ __name(({ orm }, chatKey, messageId) => orm.select({ text: messageTranscripts.text, source: messageTranscripts.source }).from(messageTranscripts).where(and(eq(messageTranscripts.chatId, chatKey), eq(messageTranscripts.messageExternalId, messageId))).get(), "transcript");
|
|
38054
38054
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text7, source2) => {
|
|
38055
38055
|
const { orm, database, now: now2 } = context;
|
|
@@ -38087,7 +38087,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
38087
38087
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
38088
38088
|
}, "intoVoiceAttachment");
|
|
38089
38089
|
|
|
38090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
38091
38091
|
var FIELDS = [
|
|
38092
38092
|
"threadExternalId",
|
|
38093
38093
|
"senderIdentityId",
|
|
@@ -38406,7 +38406,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
38406
38406
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
38407
38407
|
}, "writeDerivedReactions");
|
|
38408
38408
|
|
|
38409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
38410
38410
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
38411
38411
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
38412
38412
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -38427,7 +38427,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
38427
38427
|
};
|
|
38428
38428
|
}, "keysOver");
|
|
38429
38429
|
|
|
38430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
38431
38431
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
38432
38432
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
38433
38433
|
if (!row2)
|
|
@@ -38474,7 +38474,7 @@ var forgetProfile = /* @__PURE__ */ __name((database, app, profile, now2) => {
|
|
|
38474
38474
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
38475
38475
|
}, "forgetProfile");
|
|
38476
38476
|
|
|
38477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
38478
38478
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
38479
38479
|
const owner = ownerPerson(context.database).id;
|
|
38480
38480
|
const strays = context.database.prepare("SELECT DISTINCT l.person_id AS person FROM identity_links l JOIN identities i ON i.id = l.identity_id JOIN accounts a ON a.provider = i.provider AND a.external_id = i.external_id WHERE l.person_id <> ?").all(owner);
|
|
@@ -38496,7 +38496,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
38496
38496
|
return personOf2(context, ref3);
|
|
38497
38497
|
}, "linkToOwner");
|
|
38498
38498
|
|
|
38499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
38500
38500
|
var PROVIDERS_SETTING = "providers";
|
|
38501
38501
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
38502
38502
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -38544,7 +38544,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
38544
38544
|
});
|
|
38545
38545
|
}, "registerProvider");
|
|
38546
38546
|
|
|
38547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
38548
38548
|
var DAY4 = 864e5;
|
|
38549
38549
|
var RECENTLY_CLOSED_MS = 14 * DAY4;
|
|
38550
38550
|
var TEXT_LIMIT = 20;
|
|
@@ -38743,7 +38743,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
38743
38743
|
};
|
|
38744
38744
|
}, "taskSimilarityOver");
|
|
38745
38745
|
|
|
38746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
38747
38747
|
var SETTING3 = "taskCategories";
|
|
38748
38748
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
38749
38749
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -38762,7 +38762,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
38762
38762
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(SETTING3, JSON.stringify(categories), now2);
|
|
38763
38763
|
}, "saveTaskCategories");
|
|
38764
38764
|
|
|
38765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
38766
38766
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
38767
38767
|
var ALLOWED = "taskAgentClose";
|
|
38768
38768
|
var MIN = "taskAgentCloseMin";
|
|
@@ -38818,7 +38818,7 @@ var SUGGESTION_COLUMNS = [
|
|
|
38818
38818
|
];
|
|
38819
38819
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
38820
38820
|
|
|
38821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
38822
38822
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
38823
38823
|
var KEY = "taskFirstPassPerChat";
|
|
38824
38824
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -38838,7 +38838,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
38838
38838
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(KEY, String(value), now2);
|
|
38839
38839
|
}, "saveFirstPassPerChat");
|
|
38840
38840
|
|
|
38841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/external-links.js
|
|
38842
38842
|
var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
|
|
38843
38843
|
var EXTERNAL_ID_CHARS = 200;
|
|
38844
38844
|
var SOURCE_URL_CHARS = 2e3;
|
|
@@ -38865,7 +38865,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
|
|
|
38865
38865
|
return text7;
|
|
38866
38866
|
}, "sourceUrlOf");
|
|
38867
38867
|
|
|
38868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
38869
38869
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
38870
38870
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
38871
38871
|
name,
|
|
@@ -39093,7 +39093,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
39093
39093
|
var TASK_PEOPLE = `WITH merged AS (SELECT json_extract(value, '$[0]') AS id, json_extract(value, '$[1]') AS now FROM json_each(?)), counts AS (SELECT coalesce(m.now, a.assignee_id) AS person, count(DISTINCT t.id) AS n FROM task_assignments a JOIN tasks t ON t.id = a.task_id AND t.deleted_at IS NULL LEFT JOIN merged m ON m.id = a.assignee_id WHERE a.assignee_type = 'person' GROUP BY 1) SELECT p.id, p.name, p.owner, coalesce(c.n, 0) AS n FROM persons p LEFT JOIN counts c ON c.person = p.id WHERE NOT ${mergedAwaySql("p")} ORDER BY p.owner DESC, n DESC, p.name IS NULL, p.name COLLATE NOCASE, p.id LIMIT ?`;
|
|
39094
39094
|
var mergedAssignees = /* @__PURE__ */ __name((database) => JSON.stringify(database.prepare(`SELECT DISTINCT a.assignee_id AS id FROM task_assignments a JOIN persons p ON p.id = a.assignee_id WHERE a.assignee_type = 'person' AND ${mergedAwaySql("p")}`).all().map(({ id: id2 }) => [Number(id2), currentPerson(database, Number(id2))])), "mergedAssignees");
|
|
39095
39095
|
|
|
39096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
39097
39097
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
39098
39098
|
if (row2.author_type == null)
|
|
39099
39099
|
return null;
|
|
@@ -39121,7 +39121,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
39121
39121
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
39122
39122
|
}, "addComment");
|
|
39123
39123
|
|
|
39124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
39125
39125
|
var TASK_RELATION_KINDS = [
|
|
39126
39126
|
"blocked-by",
|
|
39127
39127
|
"follow-up-of",
|
|
@@ -39251,7 +39251,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
39251
39251
|
};
|
|
39252
39252
|
}, "taskRelationsStoreOver");
|
|
39253
39253
|
|
|
39254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
39255
39255
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
39256
39256
|
var iso8 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
39257
39257
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind3, changes, at2) => {
|
|
@@ -39780,7 +39780,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
39780
39780
|
};
|
|
39781
39781
|
}, "workTasksOver");
|
|
39782
39782
|
|
|
39783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
39784
39784
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
39785
39785
|
const { database, now: now2 } = context;
|
|
39786
39786
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -39829,7 +39829,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
39829
39829
|
};
|
|
39830
39830
|
}, "taskCloseOver");
|
|
39831
39831
|
|
|
39832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
39833
39833
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
39834
39834
|
const { database, now: now2 } = context;
|
|
39835
39835
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -40047,7 +40047,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
40047
40047
|
};
|
|
40048
40048
|
}, "taskPairsOver");
|
|
40049
40049
|
|
|
40050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
40051
40051
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
40052
40052
|
var TASK_STATS_SQL = {
|
|
40053
40053
|
rows: /* @__PURE__ */ __name((board, filter) => `SELECT t.source_group, t.source_kind, t.project_id, t.status, t.created_at, t.closed_at FROM tasks t WHERE ${board ? BOARD_SCOPE : ACCOUNT_SCOPE}${filter} ORDER BY t.created_at, t.id`, "rows"),
|
|
@@ -40086,7 +40086,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
40086
40086
|
}, "statNames")
|
|
40087
40087
|
}), "taskStatsOver");
|
|
40088
40088
|
|
|
40089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
40090
40090
|
var COLUMNS3 = "t.id AS row_id, t.package_id, t.source_locator, t.source_kind, t.source_group, t.type, t.status, t.close_reason, t.source, t.created_at, t.due_at, t.closed_at, t.closed_by_type, t.closed_by_id, t.key, t.category, t.claimed_by, t.claimed_until, p.name AS account";
|
|
40091
40091
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
40092
40092
|
const key2 = inboxKey(account);
|
|
@@ -40293,7 +40293,7 @@ var oneOf4 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
40293
40293
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
40294
40294
|
}, "oneOf");
|
|
40295
40295
|
|
|
40296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
40297
40297
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
40298
40298
|
const { database } = context;
|
|
40299
40299
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -40354,7 +40354,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
40354
40354
|
};
|
|
40355
40355
|
}, "accountsStoreOver");
|
|
40356
40356
|
|
|
40357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
40358
40358
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
40359
40359
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
40360
40360
|
const message3 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -40378,7 +40378,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
40378
40378
|
})), "keepDownloads");
|
|
40379
40379
|
var keepProviderRefs = /* @__PURE__ */ __name((context, chatKey, messageId, files2) => updatePlaced(context, chatKey, messageId, files2.filter((file) => Object.keys(file.providerRef).length > 0), (file) => refColumn(file.providerRef)), "keepProviderRefs");
|
|
40380
40380
|
|
|
40381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
40382
40382
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
40383
40383
|
const { database } = context;
|
|
40384
40384
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -40435,7 +40435,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
40435
40435
|
}, "keepAttachmentText")
|
|
40436
40436
|
}), "attachmentsStoreOver");
|
|
40437
40437
|
|
|
40438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
40439
40439
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
40440
40440
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
40441
40441
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -40620,7 +40620,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
40620
40620
|
return done;
|
|
40621
40621
|
}, "rekeyChats");
|
|
40622
40622
|
|
|
40623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
40624
40624
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
40625
40625
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
40626
40626
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -40678,7 +40678,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
40678
40678
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
40679
40679
|
}, "chatCoverage");
|
|
40680
40680
|
|
|
40681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
40682
40682
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40683
40683
|
const { database } = context;
|
|
40684
40684
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -40817,7 +40817,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40817
40817
|
};
|
|
40818
40818
|
}, "chatsStoreOver");
|
|
40819
40819
|
|
|
40820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
40821
40821
|
import { createHash as createHash7 } from "node:crypto";
|
|
40822
40822
|
var BATCH_CONTEXT = 50;
|
|
40823
40823
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -40955,7 +40955,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
40955
40955
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
40956
40956
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
40957
40957
|
|
|
40958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
40959
40959
|
import { setTimeout } from "node:timers/promises";
|
|
40960
40960
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
40961
40961
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -41267,7 +41267,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
41267
41267
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
41268
41268
|
WHERE d.id IN (l.message_id, l.parent_id) AND d.deleted_at > l.created_at)`).map(({ id: id2, parent: parent2 }) => [id2, parent2])), "agentAnswers");
|
|
41269
41269
|
|
|
41270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
41271
41271
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
41272
41272
|
const { database } = context;
|
|
41273
41273
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -41374,7 +41374,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41374
41374
|
};
|
|
41375
41375
|
}, "conversationsStoreOver");
|
|
41376
41376
|
|
|
41377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
41378
41378
|
var LIVE_MESSAGE = "SELECT m.id AS pk FROM messages m JOIN chats c ON c.id=m.chat_id JOIN accounts ac ON ac.id=m.account_id WHERE ac.provider=? AND ac.external_id=? AND c.external_id=? AND m.external_id=? AND m.deleted_at IS NULL";
|
|
41379
41379
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
41380
41380
|
const { database } = context;
|
|
@@ -41399,7 +41399,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
41399
41399
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
41400
41400
|
}), "countersStoreOver");
|
|
41401
41401
|
|
|
41402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
41403
41403
|
var MENTION_STATUSES = ["found", "linked", "proposed", "dismissed"];
|
|
41404
41404
|
var MENTION_QUERY = defineQuery({
|
|
41405
41405
|
entity: "mention",
|
|
@@ -41618,7 +41618,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
41618
41618
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
41619
41619
|
}, "listPlaces");
|
|
41620
41620
|
|
|
41621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
41622
41622
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
41623
41623
|
const { database } = context;
|
|
41624
41624
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -41653,7 +41653,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
41653
41653
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
41654
41654
|
}), "mentionsStoreOver");
|
|
41655
41655
|
|
|
41656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
41657
41657
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
41658
41658
|
const read3 = database.prepare("SELECT m.id, m.external_id, m.text, m.sent_at, m.sender_name, coalesce(m.sender_chat_external_id, i.external_id) AS sender_id FROM messages m LEFT JOIN identities i ON i.id = m.sender_identity_id WHERE m.chat_id = ? AND m.deleted_at IS NULL AND (m.text LIKE '%google.com%' OR m.text LIKE '%forms.gle%') " + (messageId === void 0 ? "" : "AND m.external_id = ? ") + "ORDER BY m.sent_at DESC, m.id DESC");
|
|
41659
41659
|
const rows = messageId === void 0 ? read3.all(chatKey) : read3.all(chatKey, messageId);
|
|
@@ -41668,7 +41668,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
41668
41668
|
}));
|
|
41669
41669
|
}, "documentLinkMessages");
|
|
41670
41670
|
|
|
41671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
41672
41672
|
var stemmerFor = stemmerCache();
|
|
41673
41673
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
41674
41674
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -41712,7 +41712,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
41712
41712
|
});
|
|
41713
41713
|
}, "laterSharingRare");
|
|
41714
41714
|
|
|
41715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
41716
41716
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
41717
41717
|
const { database } = context;
|
|
41718
41718
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -41847,7 +41847,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
41847
41847
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
41848
41848
|
}), "messagesStoreOver");
|
|
41849
41849
|
|
|
41850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
41851
41851
|
var TAKES = {
|
|
41852
41852
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
41853
41853
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -41907,7 +41907,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference2, scope3, profilesOn
|
|
|
41907
41907
|
throw wrongAccount(reference2, scope3, profiles);
|
|
41908
41908
|
}, "ensureAccount");
|
|
41909
41909
|
|
|
41910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
41911
41911
|
var isId = /* @__PURE__ */ __name((reference2) => /^-?\d+$/.test(reference2.trim()), "isId");
|
|
41912
41912
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
41913
41913
|
var pickChat = /* @__PURE__ */ __name((reference2, chats2) => {
|
|
@@ -41952,7 +41952,7 @@ ${lines}`, { candidates });
|
|
|
41952
41952
|
}, "ambiguous");
|
|
41953
41953
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
41954
41954
|
|
|
41955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/display-names.js
|
|
41956
41956
|
var QUOTES = [
|
|
41957
41957
|
['"', '"'],
|
|
41958
41958
|
["'", "'"],
|
|
@@ -41996,8 +41996,8 @@ var nameKey = /* @__PURE__ */ __name((name) => {
|
|
|
41996
41996
|
}, "nameKey");
|
|
41997
41997
|
var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
|
|
41998
41998
|
|
|
41999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42000
|
-
var PERSON_KINDS = ["person", "organization", "automated", "unsorted"];
|
|
41999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/person-kinds.js
|
|
42000
|
+
var PERSON_KINDS = ["person", "organization", "automated", "stranger", "unsorted"];
|
|
42001
42001
|
var AUTOMATED_WORDS = /* @__PURE__ */ new Set([
|
|
42002
42002
|
"noreply",
|
|
42003
42003
|
"notification",
|
|
@@ -42059,7 +42059,7 @@ var isCompanyName = /* @__PURE__ */ __name((name) => {
|
|
|
42059
42059
|
return wordsOf2(name.replaceAll(".", "")).some((word2) => LEGAL_FORMS.has(word2) || COMPANY_WORDS.has(word2));
|
|
42060
42060
|
}, "isCompanyName");
|
|
42061
42061
|
|
|
42062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-ties.js
|
|
42063
42063
|
var SMALL_GROUP_MEMBERS = 10;
|
|
42064
42064
|
var PERSON_TIES = ["chat", "small-group", "mail", "meeting", "crm", "phone-book"];
|
|
42065
42065
|
var ALWAYS_SHOWN = ["owner", "added", "task"];
|
|
@@ -42097,7 +42097,7 @@ var shownReasons = /* @__PURE__ */ __name((database) => {
|
|
|
42097
42097
|
return new Map([...found2].map(([person2, reasons]) => [person2, ORDER.filter((one2) => reasons.has(one2))]));
|
|
42098
42098
|
}, "shownReasons");
|
|
42099
42099
|
|
|
42100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/people-list.js
|
|
42101
42101
|
var PEOPLE_SORTS = ["interactions", "recent", "name", "tasks"];
|
|
42102
42102
|
var MIN_QUERY = 3;
|
|
42103
42103
|
var ftsPhrase = /* @__PURE__ */ __name((text7) => `"${text7.replaceAll('"', '""')}"`, "ftsPhrase");
|
|
@@ -42179,7 +42179,7 @@ var kindOf2 = /* @__PURE__ */ __name((shown, facts2, ties, mail) => {
|
|
|
42179
42179
|
if (!isReadable(shown))
|
|
42180
42180
|
return { kind: "unsorted", signals: ["no-name"] };
|
|
42181
42181
|
if (ties.length === 0)
|
|
42182
|
-
return { kind: "
|
|
42182
|
+
return { kind: "stranger", signals: ["no-tie"] };
|
|
42183
42183
|
return { kind: "person", signals: ties };
|
|
42184
42184
|
}, "kindOf");
|
|
42185
42185
|
var classified = /* @__PURE__ */ __name((database, people2, scope3, reasons = shownReasons(database)) => {
|
|
@@ -42291,7 +42291,7 @@ var similarPeople = /* @__PURE__ */ __name((database, typed, limit) => {
|
|
|
42291
42291
|
return withLastContact(database, rows).map((person2, at2) => ({ ...person2, sameName: same[at2] === true }));
|
|
42292
42292
|
}, "similarPeople");
|
|
42293
42293
|
|
|
42294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
42295
42295
|
var import_disposable_email_domains_js = __toESM(require_dist(), 1);
|
|
42296
42296
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
42297
42297
|
var WEIGHTS = {
|
|
@@ -42424,7 +42424,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
42424
42424
|
return { score: kept2.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept2 };
|
|
42425
42425
|
}, "scoreGroup");
|
|
42426
42426
|
|
|
42427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/name-traces.js
|
|
42428
42428
|
var peopleByNameKey = /* @__PURE__ */ __name((database) => {
|
|
42429
42429
|
const found2 = /* @__PURE__ */ new Map();
|
|
42430
42430
|
for (const row2 of database.prepare("SELECT p.id, p.name FROM persons p WHERE p.owner = 0 AND p.name IS NOT NULL AND EXISTS (SELECT 1 FROM identity_links l WHERE l.person_id = p.id) ORDER BY p.id").all()) {
|
|
@@ -42518,7 +42518,7 @@ var sharedTrace = /* @__PURE__ */ __name((database, a, b, name) => {
|
|
|
42518
42518
|
return void 0;
|
|
42519
42519
|
}, "sharedTrace");
|
|
42520
42520
|
|
|
42521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-matcher.js
|
|
42522
42522
|
var spellingsOf = /* @__PURE__ */ __name((value) => [value, value.slice(1)], "spellingsOf");
|
|
42523
42523
|
var PERSON_BY = {
|
|
42524
42524
|
// UNION, not OR: each branch reads its own index.
|
|
@@ -42541,7 +42541,7 @@ var personsByIdentifiers = /* @__PURE__ */ __name((database, ids2) => {
|
|
|
42541
42541
|
return [...found2].sort((a, b) => a - b);
|
|
42542
42542
|
}, "personsByIdentifiers");
|
|
42543
42543
|
|
|
42544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-match-scan.js
|
|
42545
42545
|
var BY = "rule";
|
|
42546
42546
|
var RULE2 = { bot: "rule", kind: "rule" };
|
|
42547
42547
|
var MOST_SHARING = 6;
|
|
@@ -42759,7 +42759,7 @@ var scanMatches = /* @__PURE__ */ __name((context, { full = false } = {}) => {
|
|
|
42759
42759
|
return pass.result;
|
|
42760
42760
|
}, "scanMatches");
|
|
42761
42761
|
|
|
42762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-merges.js
|
|
42763
42763
|
var mergeId = /* @__PURE__ */ __name((to, from2) => `merge:${to}-${from2}`, "mergeId");
|
|
42764
42764
|
var parseMergeId = /* @__PURE__ */ __name((id2) => {
|
|
42765
42765
|
const found2 = /^merge:([1-9]\d*)-([1-9]\d*)$/.exec(id2.trim());
|
|
@@ -42864,7 +42864,7 @@ var split = /* @__PURE__ */ __name((context, uid, refs, by) => {
|
|
|
42864
42864
|
return recordOf2(context, alone);
|
|
42865
42865
|
}, "split");
|
|
42866
42866
|
|
|
42867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
42868
42868
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
42869
42869
|
var IN_SCOPES = "IN (SELECT value FROM json_each(?))";
|
|
42870
42870
|
var projectScope = /* @__PURE__ */ __name((id2) => `(SELECT p.scope FROM main.projects p WHERE p.id=${id2})`, "projectScope");
|
|
@@ -42933,7 +42933,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database, now: now2 }, uid, {
|
|
|
42933
42933
|
});
|
|
42934
42934
|
}, "personPreparation");
|
|
42935
42935
|
|
|
42936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
42937
42937
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
42938
42938
|
const id2 = Number(uid);
|
|
42939
42939
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -42941,7 +42941,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
42941
42941
|
return Boolean(database.prepare("SELECT 1 FROM persons p JOIN identity_links l ON l.person_id=p.id JOIN account_identities a ON a.identity_id=l.identity_id WHERE p.id=? AND a.account_id IN (SELECT value FROM json_each(?)) LIMIT 1").get(currentPerson(database, id2), JSON.stringify(accountIds)));
|
|
42942
42942
|
}, "personSeenInAccounts");
|
|
42943
42943
|
|
|
42944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
42945
42945
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
42946
42946
|
const row2 = database.prepare("SELECT a.id AS account_id, i.id AS identity_id FROM accounts a JOIN account_identities ai ON ai.account_id=a.id JOIN identities i ON i.id=ai.identity_id WHERE a.provider=? AND a.external_id=? AND i.provider=? AND i.external_id=?").get(key2.provider, key2.account, key2.provider, personId);
|
|
42947
42947
|
if (!row2)
|
|
@@ -43008,7 +43008,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
43008
43008
|
return { id: id2, personId, removed: true };
|
|
43009
43009
|
}, "removeNote");
|
|
43010
43010
|
|
|
43011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
43012
43012
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
43013
43013
|
const { database } = context;
|
|
43014
43014
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -43122,13 +43122,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
43122
43122
|
};
|
|
43123
43123
|
}, "peopleStoreOver");
|
|
43124
43124
|
|
|
43125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
43126
43126
|
import { createHash as createHash9 } from "node:crypto";
|
|
43127
43127
|
|
|
43128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
43129
43129
|
import { createHash as createHash8 } from "node:crypto";
|
|
43130
43130
|
|
|
43131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
43132
43132
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
43133
43133
|
var AUTHOR_MEASURES = [
|
|
43134
43134
|
"messages",
|
|
@@ -43268,7 +43268,7 @@ var withoutUrls = /* @__PURE__ */ __name((text7) => text7.replace(/\S+/gu, (toke
|
|
|
43268
43268
|
var rankingWords = /* @__PURE__ */ __name((text7) => withoutUrls(text7).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
43269
43269
|
var rankingQuestion = /* @__PURE__ */ __name((text7) => withoutUrls(text7).includes("?"), "rankingQuestion");
|
|
43270
43270
|
|
|
43271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
43272
43272
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
43273
43273
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
43274
43274
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -43490,7 +43490,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
43490
43490
|
};
|
|
43491
43491
|
}, "rankReplyGraph");
|
|
43492
43492
|
|
|
43493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
43494
43494
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
43495
43495
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
43496
43496
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -43664,7 +43664,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
43664
43664
|
return { items, evidence, summary, graph: graph.quality };
|
|
43665
43665
|
}, "calculateAdminStatistics");
|
|
43666
43666
|
|
|
43667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
43668
43668
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
43669
43669
|
const dates = [];
|
|
43670
43670
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -43686,7 +43686,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
43686
43686
|
return dates[0].node.resolution.date;
|
|
43687
43687
|
}, "rankingContextRange");
|
|
43688
43688
|
|
|
43689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
43690
43690
|
var reactionCounts = /* @__PURE__ */ __name((stored4) => {
|
|
43691
43691
|
let counts;
|
|
43692
43692
|
try {
|
|
@@ -43981,7 +43981,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
43981
43981
|
});
|
|
43982
43982
|
}, "rankQuery");
|
|
43983
43983
|
|
|
43984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
43985
43985
|
function fail2(message3, reason = "query.too-large") {
|
|
43986
43986
|
throw new CliError("validation_error", message3, { reason, complete: false });
|
|
43987
43987
|
}
|
|
@@ -44158,7 +44158,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
44158
44158
|
return result;
|
|
44159
44159
|
}), "adminStatisticsQuery");
|
|
44160
44160
|
|
|
44161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
44162
44162
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
44163
44163
|
if (!execution.accounts.length)
|
|
44164
44164
|
return { conversations: [], chats: [] };
|
|
@@ -44176,7 +44176,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
44176
44176
|
return { conversations: conversations2, chats: chats2 };
|
|
44177
44177
|
}, "conversationEligibility");
|
|
44178
44178
|
|
|
44179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
44180
44180
|
import { createHash as createHash10 } from "node:crypto";
|
|
44181
44181
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
44182
44182
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -44326,7 +44326,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
44326
44326
|
return result;
|
|
44327
44327
|
}, "rankingEvidence");
|
|
44328
44328
|
|
|
44329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
44330
44330
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
44331
44331
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
44332
44332
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -44420,7 +44420,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
44420
44420
|
});
|
|
44421
44421
|
}, "waitingChats");
|
|
44422
44422
|
|
|
44423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
44424
44424
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
44425
44425
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
44426
44426
|
if (execution.corpus === "mail")
|
|
@@ -44441,7 +44441,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
44441
44441
|
};
|
|
44442
44442
|
}, "queriesStoreOver");
|
|
44443
44443
|
|
|
44444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
44445
44445
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
44446
44446
|
const { database, now: now2 } = context;
|
|
44447
44447
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -44480,10 +44480,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
44480
44480
|
}));
|
|
44481
44481
|
}, "chatEventsOf");
|
|
44482
44482
|
|
|
44483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
44484
44484
|
import { createHash as createHash11 } from "node:crypto";
|
|
44485
44485
|
|
|
44486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
44487
44487
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
44488
44488
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
44489
44489
|
timeZone: zone,
|
|
@@ -44503,7 +44503,7 @@ var weekKey = /* @__PURE__ */ __name((day3) => {
|
|
|
44503
44503
|
return date3.toISOString().slice(0, 10);
|
|
44504
44504
|
}, "weekKey");
|
|
44505
44505
|
|
|
44506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
44507
44507
|
var RETENTION_TOLERANCE = 864e5;
|
|
44508
44508
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
44509
44509
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -44557,7 +44557,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
44557
44557
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
44558
44558
|
}, "retentionCohorts");
|
|
44559
44559
|
|
|
44560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
44561
44561
|
var iso10 = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString(), "iso");
|
|
44562
44562
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
44563
44563
|
validateRetentionOptions(options);
|
|
@@ -44688,7 +44688,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
44688
44688
|
};
|
|
44689
44689
|
}, "retentionQuery");
|
|
44690
44690
|
|
|
44691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
44692
44692
|
var iso11 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
44693
44693
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
44694
44694
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -44819,7 +44819,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
44819
44819
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
44820
44820
|
})), "trackedChats");
|
|
44821
44821
|
|
|
44822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
44823
44823
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
44824
44824
|
const { database } = context;
|
|
44825
44825
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -44875,7 +44875,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
44875
44875
|
};
|
|
44876
44876
|
}, "rosterStoreOver");
|
|
44877
44877
|
|
|
44878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
44879
44879
|
var pendingNormalization = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL").get()?.n), "pendingNormalization");
|
|
44880
44880
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
44881
44881
|
const next = database.prepare(`SELECT id AS pk, text FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL AND id > ? ORDER BY id LIMIT ?`);
|
|
@@ -44899,7 +44899,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
44899
44899
|
}
|
|
44900
44900
|
}, "backfillNormalized");
|
|
44901
44901
|
|
|
44902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
44903
44903
|
var INDEX2 = "message_words";
|
|
44904
44904
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
44905
44905
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -45026,7 +45026,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
45026
45026
|
});
|
|
45027
45027
|
}, "resetSearchIndex");
|
|
45028
45028
|
|
|
45029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
45030
45030
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
45031
45031
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
45032
45032
|
const before2 = stemsState(database);
|
|
@@ -45121,7 +45121,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
45121
45121
|
return resetStems(database, { now: now2 });
|
|
45122
45122
|
}, "followDefaultStemmers");
|
|
45123
45123
|
|
|
45124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
45125
45125
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
45126
45126
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
45127
45127
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -45143,7 +45143,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
45143
45143
|
});
|
|
45144
45144
|
}, "termCandidates");
|
|
45145
45145
|
|
|
45146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
45147
45147
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
45148
45148
|
const { database } = context;
|
|
45149
45149
|
const stemmerFor2 = stemmerCache();
|
|
@@ -45167,7 +45167,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45167
45167
|
};
|
|
45168
45168
|
}, "searchIndexStoreOver");
|
|
45169
45169
|
|
|
45170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
45171
45171
|
var HISTORY_KEPT = 1e3;
|
|
45172
45172
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
45173
45173
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -45236,7 +45236,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
45236
45236
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
45237
45237
|
}, "clearHistory");
|
|
45238
45238
|
|
|
45239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
45240
45240
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
45241
45241
|
const { database } = context;
|
|
45242
45242
|
return {
|
|
@@ -45260,7 +45260,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45260
45260
|
};
|
|
45261
45261
|
}, "searchesStoreOver");
|
|
45262
45262
|
|
|
45263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/added-sources.js
|
|
45264
45264
|
import { createHash as createHash12 } from "node:crypto";
|
|
45265
45265
|
var ADDED_KINDS = ["text", "file", "page"];
|
|
45266
45266
|
var sha256 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(value).digest("hex"), "sha256");
|
|
@@ -45472,7 +45472,7 @@ var addedSourcesOver = /* @__PURE__ */ __name((context) => {
|
|
|
45472
45472
|
};
|
|
45473
45473
|
}, "addedSourcesOver");
|
|
45474
45474
|
|
|
45475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
45476
45476
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
45477
45477
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
45478
45478
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -45511,11 +45511,11 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
45511
45511
|
afterRecord();
|
|
45512
45512
|
return actionOf(database.prepare(`${NAMED3} WHERE a.id = ?`).get(Number(row2?.id)));
|
|
45513
45513
|
}, "record"),
|
|
45514
|
-
list: /* @__PURE__ */ __name(async ({ tool, agent, limit = 100 } = {}) => database.prepare(`${NAMED3} WHERE (? IS NULL OR a.tool = ?) AND (? IS NULL OR b.name = ?) ORDER BY a.started_at DESC, a.id DESC LIMIT ?`).all(tool ?? null, tool ?? null, agent ?? null, agent ?? null, Math.min(Math.max(limit, 1), 500)).map(actionOf), "list")
|
|
45514
|
+
list: /* @__PURE__ */ __name(async ({ tool, agent, limit = 100, offset = 0 } = {}) => database.prepare(`${NAMED3} WHERE (? IS NULL OR a.tool = ?) AND (? IS NULL OR b.name = ?) ORDER BY a.started_at DESC, a.id DESC LIMIT ? OFFSET ?`).all(tool ?? null, tool ?? null, agent ?? null, agent ?? null, Math.min(Math.max(limit, 1), 500), Math.max(offset, 0)).map(actionOf), "list")
|
|
45515
45515
|
};
|
|
45516
45516
|
}, "agentActionsStoreOver");
|
|
45517
45517
|
|
|
45518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/base-suggest.js
|
|
45519
45519
|
var baseSettingKey = /* @__PURE__ */ __name((kind3) => `stages.base.${kind3}`, "baseSettingKey");
|
|
45520
45520
|
var storedPipeline = /* @__PURE__ */ __name((value) => {
|
|
45521
45521
|
if (typeof value !== "string")
|
|
@@ -45561,7 +45561,7 @@ var suggestBaseStages = /* @__PURE__ */ __name((database, kind3, pipelines2) =>
|
|
|
45561
45561
|
}
|
|
45562
45562
|
}, "suggestBaseStages");
|
|
45563
45563
|
|
|
45564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/stage-amounts.js
|
|
45565
45565
|
var TABLES2 = { deal: "deals", lead: "leads" };
|
|
45566
45566
|
var stageAmountsOf = /* @__PURE__ */ __name(({ database }, kind3, stageIds, cutoff) => {
|
|
45567
45567
|
const rows = database.prepare(`SELECT stage_id, currency, count(*) AS items, coalesce(sum(amount), 0) AS units FROM ${TABLES2[kind3]} WHERE stage_id IN (${stageIds.map(() => "?").join(", ") || "NULL"}) AND deleted_at IS NULL AND (? IS NULL OR created_at >= ?) GROUP BY stage_id, currency ORDER BY currency`).all(...stageIds, cutoff, cutoff);
|
|
@@ -45578,7 +45578,7 @@ var stageAmountsOf = /* @__PURE__ */ __name(({ database }, kind3, stageIds, cuto
|
|
|
45578
45578
|
});
|
|
45579
45579
|
}, "stageAmountsOf");
|
|
45580
45580
|
|
|
45581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/deals.js
|
|
45582
45582
|
var TABLES3 = { deal: "deals", lead: "leads" };
|
|
45583
45583
|
var itemsSql = /* @__PURE__ */ __name((kind3) => `SELECT d.*, s.name AS stage_name, s.pipeline_id, p.name AS pipeline_name, b.name AS author_name, b.kind AS author_kind, a.provider AS account_provider, a.external_id AS account_external_id, bs.id AS base_stage_ref_id, bs.name AS base_stage_name FROM ${TABLES3[kind3]} d JOIN pipeline_stages s ON s.id = d.stage_id JOIN pipelines p ON p.id = s.pipeline_id LEFT JOIN bots b ON d.author_type = 'bot' AND b.id = d.author_id LEFT JOIN accounts a ON a.id = d.account_id LEFT JOIN pipeline_stages bs ON s.base_confirmed = 1 AND bs.id = s.base_stage_id`, "itemsSql");
|
|
45584
45584
|
var MAX_STAGES = 30;
|
|
@@ -45943,7 +45943,7 @@ var dealsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45943
45943
|
};
|
|
45944
45944
|
}, "dealsStoreOver");
|
|
45945
45945
|
|
|
45946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/owner-languages.js
|
|
45947
45947
|
var KEY2 = "ownerLanguages";
|
|
45948
45948
|
var ISO_639_1 = new Set("aa ab ae af ak am an ar as av ay az ba be bg bi bm bn bo br bs ca ce ch co cr cs cu cv cy da de dv dz ee el en eo es et eu fa ff fi fj fo fr fy ga gd gl gn gu gv ha he hi ho hr ht hu hy hz ia id ie ig ii ik io is it iu ja jv ka kg ki kj kk kl km kn ko kr ks ku kv kw ky la lb lg li ln lo lt lu lv mg mh mi mk ml mn mr ms mt my na nb nd ne ng nl nn no nr nv ny oc oj om or os pa pi pl ps pt qu rm rn ro ru rw sa sc sd se sg si sk sl sm sn so sq sr ss st su sv sw ta te tg th ti tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa wo xh yi yo za zh zu".split(" "));
|
|
45949
45949
|
var DEFAULT_OWNER_LANGUAGES = ["ru"];
|
|
@@ -45973,7 +45973,7 @@ var saveOwnerLanguages = /* @__PURE__ */ __name((database, languages, now2) => {
|
|
|
45973
45973
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(KEY2, JSON.stringify(languages), now2);
|
|
45974
45974
|
}, "saveOwnerLanguages");
|
|
45975
45975
|
|
|
45976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/base-stages.js
|
|
45977
45977
|
var OUTCOMES = {
|
|
45978
45978
|
lead: ["open", "open", "open", "won", "lost"],
|
|
45979
45979
|
deal: ["open", "open", "open", "open", "won", "lost"]
|
|
@@ -46306,7 +46306,7 @@ var baseStagesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
46306
46306
|
};
|
|
46307
46307
|
}, "baseStagesStoreOver");
|
|
46308
46308
|
|
|
46309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
46310
46310
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
46311
46311
|
}) => {
|
|
46312
46312
|
const { database, now: now2 } = context;
|
|
@@ -46365,7 +46365,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
46365
46365
|
};
|
|
46366
46366
|
}, "botUpdateStoreOver");
|
|
46367
46367
|
|
|
46368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
46369
46369
|
import { createHash as createHash13 } from "node:crypto";
|
|
46370
46370
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
46371
46371
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -46717,7 +46717,7 @@ var fieldReferences = /* @__PURE__ */ __name((record4, options = {}) => {
|
|
|
46717
46717
|
return found2;
|
|
46718
46718
|
}, "fieldReferences");
|
|
46719
46719
|
|
|
46720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projection.js
|
|
46721
46721
|
var IMPORTER = { bot: "import" };
|
|
46722
46722
|
var importersProposal = /* @__PURE__ */ __name((entity) => entity.review === "proposed" && entity.author.type === "bot" && entity.author.name === IMPORTER.bot, "importersProposal");
|
|
46723
46723
|
var codeOf = /* @__PURE__ */ __name((error) => {
|
|
@@ -46762,7 +46762,7 @@ var moneyLinesOf = /* @__PURE__ */ __name((projection, list2) => (Array.isArray(
|
|
|
46762
46762
|
};
|
|
46763
46763
|
}), "moneyLinesOf");
|
|
46764
46764
|
|
|
46765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-roles.js
|
|
46766
46766
|
var settingOf = /* @__PURE__ */ __name((list2) => `relationships.roles.${list2}`, "settingOf");
|
|
46767
46767
|
var isList = /* @__PURE__ */ __name((list2) => Object.hasOwn(ROLE_LISTS, list2), "isList");
|
|
46768
46768
|
var listOf = /* @__PURE__ */ __name((list2) => {
|
|
@@ -46836,7 +46836,7 @@ var relationRolesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
46836
46836
|
};
|
|
46837
46837
|
}, "relationRolesOver");
|
|
46838
46838
|
|
|
46839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
46840
46840
|
var isCrmUserId = /* @__PURE__ */ __name((id2) => /^\d{1,20}$/.test(id2), "isCrmUserId");
|
|
46841
46841
|
var normalCrmUserId = /* @__PURE__ */ __name((id2) => {
|
|
46842
46842
|
const text7 = id2.trim();
|
|
@@ -46844,7 +46844,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id2) => {
|
|
|
46844
46844
|
}, "normalCrmUserId");
|
|
46845
46845
|
var isItemKind = /* @__PURE__ */ __name((kind3) => kind3 === "deal" || kind3 === "lead", "isItemKind");
|
|
46846
46846
|
|
|
46847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-settings.js
|
|
46848
46848
|
var CRM_LINK_MODES = ["reported", "review"];
|
|
46849
46849
|
var COMPANY_TYPE_MEANINGS = ["customer-of", "supplier", "partner-of"];
|
|
46850
46850
|
var CRM_SCOPES = ["mine", "all"];
|
|
@@ -46943,7 +46943,7 @@ var crmSettingsOf = /* @__PURE__ */ __name((database) => database.prepare("SELEC
|
|
|
46943
46943
|
return [{ setting: String(row2.key), value: settingValue(database, parsed4.key, parsed4.name) }];
|
|
46944
46944
|
}), "crmSettingsOf");
|
|
46945
46945
|
|
|
46946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
46947
46947
|
var isoOf = /* @__PURE__ */ __name((ms) => ms === void 0 ? null : new Date(ms).toISOString(), "isoOf");
|
|
46948
46948
|
var relationOf = /* @__PURE__ */ __name((link3, now2) => ({
|
|
46949
46949
|
id: link3.id,
|
|
@@ -47303,7 +47303,7 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
47303
47303
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
47304
47304
|
}, "decidedOrigin");
|
|
47305
47305
|
|
|
47306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/reported-relations.js
|
|
47307
47307
|
var keyOf3 = /* @__PURE__ */ __name((kind3, fromType, fromId, toType, toId, role) => `${String(kind3)}|${String(fromType)}:${String(fromId)}|${String(toType)}:${String(toId)}|${role == null ? "" : String(role)}`, "keyOf");
|
|
47308
47308
|
var metadataOf = /* @__PURE__ */ __name((relation) => relation.metadata && Object.keys(relation.metadata).length ? JSON.stringify(relation.metadata) : null, "metadataOf");
|
|
47309
47309
|
var syncReportedIn = /* @__PURE__ */ __name((context, key2, relationships, scope3, { source: source2 = "import", by = { bot: key2.provider, kind: "rule" }, onOutcome } = {}) => {
|
|
@@ -47441,7 +47441,7 @@ var relationsStoreOver = /* @__PURE__ */ __name((context) => ({
|
|
|
47441
47441
|
syncReported: /* @__PURE__ */ __name(async (key2, relationships, scope3, options) => write(context.database, () => syncReportedIn(context, key2, relationships, scope3, options)), "syncReported")
|
|
47442
47442
|
}), "relationsStoreOver");
|
|
47443
47443
|
|
|
47444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-relationships.js
|
|
47445
47445
|
var importSource = /* @__PURE__ */ __name((provider) => `import:${provider}`, "importSource");
|
|
47446
47446
|
var noRelationships = /* @__PURE__ */ __name(() => ({
|
|
47447
47447
|
added: 0,
|
|
@@ -47631,7 +47631,7 @@ var recordRelationshipsOver = /* @__PURE__ */ __name((context) => {
|
|
|
47631
47631
|
return { report, placeOf: placeOf2, withdrawFrom };
|
|
47632
47632
|
}, "recordRelationshipsOver");
|
|
47633
47633
|
|
|
47634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/business-contracts.js
|
|
47635
47635
|
var CONTRACTS = "SELECT k.*, b.name AS author_name, b.kind AS author_kind FROM contracts k LEFT JOIN bots b ON k.author_type = 'bot' AND b.id = k.author_id";
|
|
47636
47636
|
var DAY_MS2 = 864e5;
|
|
47637
47637
|
var deadlineOf = /* @__PURE__ */ __name((expiration, days) => expiration === null || days === null ? null : new Date(Date.parse(`${expiration}T00:00:00Z`) - days * DAY_MS2).toISOString().slice(0, 10), "deadlineOf");
|
|
@@ -47787,7 +47787,7 @@ var contractsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
47787
47787
|
};
|
|
47788
47788
|
}, "contractsStoreOver");
|
|
47789
47789
|
|
|
47790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/business-search.js
|
|
47791
47791
|
var BUSINESS_FIND_MAX = 2001;
|
|
47792
47792
|
var party2 = /* @__PURE__ */ __name((kind3, id2, as) => `LEFT JOIN persons ${as}p ON ${kind3} = 'person' AND ${as}p.id = ${id2} AND ${as}p.owner = 0 LEFT JOIN organizations ${as}o ON ${kind3} = 'organization' AND ${as}o.id = ${id2} LEFT JOIN projects ${as}j ON ${kind3} = 'project' AND ${as}j.id = ${id2}`, "party");
|
|
47793
47793
|
var partyName = /* @__PURE__ */ __name((as) => `coalesce(${as}p.name, ${as}o.name, ${as}j.name)`, "partyName");
|
|
@@ -47891,7 +47891,7 @@ var businessSearchOver = /* @__PURE__ */ __name(({ database }) => {
|
|
|
47891
47891
|
};
|
|
47892
47892
|
}, "businessSearchOver");
|
|
47893
47893
|
|
|
47894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
47895
47895
|
var DAY5 = 864e5;
|
|
47896
47896
|
var COUNTERPART_LINK = `EXISTS (SELECT 1 FROM links l WHERE l.from_type = 'event' AND l.from_id = e.id AND l.to_type = 'person' AND l.to_id = ? AND l.kind = ${linkKind("related-to")} AND l.role = '${COUNTERPART_ROLE}')`;
|
|
47897
47897
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
@@ -48001,7 +48001,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
48001
48001
|
return database.prepare(`SELECT e.* FROM events e WHERE ${clauses.join(" AND ")} ORDER BY ${filter.newest ? "e.starts_at DESC, e.id DESC" : "e.starts_at, e.id"} LIMIT ? OFFSET ?`).all(...params, limit, offset).map(eventOf);
|
|
48002
48002
|
}, "listEvents");
|
|
48003
48003
|
|
|
48004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
48005
48005
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
48006
48006
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
48007
48007
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -48058,7 +48058,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
48058
48058
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
48059
48059
|
}, "forgetCalendarRows");
|
|
48060
48060
|
|
|
48061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
48062
48062
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
48063
48063
|
id: Number(row2.id),
|
|
48064
48064
|
accountId: Number(row2.account_id),
|
|
@@ -48661,7 +48661,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
48661
48661
|
};
|
|
48662
48662
|
}, "eventStoreOver");
|
|
48663
48663
|
|
|
48664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
48665
48665
|
var CATALOG_QUERY = defineQuery({
|
|
48666
48666
|
entity: "document",
|
|
48667
48667
|
backend: "sql",
|
|
@@ -48903,7 +48903,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
48903
48903
|
};
|
|
48904
48904
|
}, "catalogStoreOver");
|
|
48905
48905
|
|
|
48906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
48907
48907
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
48908
48908
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
48909
48909
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -48916,7 +48916,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
48916
48916
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
48917
48917
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
48918
48918
|
|
|
48919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
48920
48920
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
48921
48921
|
const { source: source2, words: words4, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
48922
48922
|
signal?.throwIfAborted();
|
|
@@ -49015,7 +49015,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
49015
49015
|
});
|
|
49016
49016
|
}, "readMeetingContextEvidence");
|
|
49017
49017
|
|
|
49018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
49019
49019
|
var corpora = {
|
|
49020
49020
|
message: {
|
|
49021
49021
|
table: "messages",
|
|
@@ -49254,7 +49254,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
49254
49254
|
}
|
|
49255
49255
|
}), "contextRecordsOver");
|
|
49256
49256
|
|
|
49257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-rows.js
|
|
49258
49258
|
var TABLES4 = { deal: "deals", lead: "leads" };
|
|
49259
49259
|
var SOURCE = "crm";
|
|
49260
49260
|
var crmIdentityId = /* @__PURE__ */ __name((key2, externalId, type = "contact") => `${idPart(key2.account)}/${type}/${idPart(externalId)}`, "crmIdentityId");
|
|
@@ -49383,7 +49383,7 @@ var crmRowsOver = /* @__PURE__ */ __name((context) => {
|
|
|
49383
49383
|
return { savePipeline, saveItemRow };
|
|
49384
49384
|
}, "crmRowsOver");
|
|
49385
49385
|
|
|
49386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/crm.js
|
|
49387
49387
|
var PENDING = "crm:pending-relations";
|
|
49388
49388
|
var PENDING_DAYS = 30;
|
|
49389
49389
|
var PENDING_MOST = 5e3;
|
|
@@ -49872,16 +49872,16 @@ var crmCopiesOver = /* @__PURE__ */ __name((context, people2) => {
|
|
|
49872
49872
|
};
|
|
49873
49873
|
}, "crmCopiesOver");
|
|
49874
49874
|
|
|
49875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
|
|
49876
49876
|
import { createHash as createHash14, randomBytes as randomBytes2 } from "node:crypto";
|
|
49877
49877
|
|
|
49878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/decision-requests.js
|
|
49879
49879
|
var DECISION_ACTIONS = ["confirm", "reject", "ask-confirm", "ask-reject", "back", "later"];
|
|
49880
49880
|
var DECISION_TTL_MS = 72 * 60 * 60 * 1e3;
|
|
49881
49881
|
var TOKEN2 = /^[A-Za-z0-9_-]{21}[AQgw]$/;
|
|
49882
49882
|
var isDecisionToken = /* @__PURE__ */ __name((value) => typeof value === "string" && TOKEN2.test(value), "isDecisionToken");
|
|
49883
49883
|
|
|
49884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
|
|
49885
49885
|
var digestOf = /* @__PURE__ */ __name((token) => createHash14("sha256").update(token).digest("hex"), "digestOf");
|
|
49886
49886
|
var newToken = /* @__PURE__ */ __name(() => randomBytes2(16).toString("base64url"), "newToken");
|
|
49887
49887
|
var requestOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -49980,7 +49980,7 @@ var decisionRequestStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
49980
49980
|
};
|
|
49981
49981
|
}, "decisionRequestStoreOver");
|
|
49982
49982
|
|
|
49983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
49984
49984
|
var NOTE_FIELDS = [
|
|
49985
49985
|
"text",
|
|
49986
49986
|
"exact",
|
|
@@ -50416,7 +50416,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
50416
50416
|
};
|
|
50417
50417
|
}, "noteSearchOver");
|
|
50418
50418
|
|
|
50419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
50420
50420
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
50421
50421
|
var inEventAccounts = /* @__PURE__ */ __name((event2) => searchableCopy(event2, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
50422
50422
|
var EVENT_CORPUS = {
|
|
@@ -50548,7 +50548,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
50548
50548
|
};
|
|
50549
50549
|
}, "eventSearchOver");
|
|
50550
50550
|
|
|
50551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
50552
50552
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
50553
50553
|
try {
|
|
50554
50554
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -50560,7 +50560,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
50560
50560
|
}
|
|
50561
50561
|
}, "calendarMoment");
|
|
50562
50562
|
|
|
50563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
50564
50564
|
var NAMED4 = "SELECT f.*, b.name AS author_name, b.kind AS author_kind FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
|
|
50565
50565
|
var iso13 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
50566
50566
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -50669,7 +50669,7 @@ var factOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
|
50669
50669
|
const subject2 = options.subject === void 0 ? void 0 : requiredThing(database, options.subject);
|
|
50670
50670
|
const by = proposedBySql("f.author_type", "f.author_id", options.proposedBy);
|
|
50671
50671
|
const order = options.order === "created" ? "f.created_at" : "coalesce(f.occurred_at, f.created_at)";
|
|
50672
|
-
return database.prepare(`${NAMED4} WHERE f.deleted_at IS NULL AND (? IS NULL OR f.type = ?) AND (? IS NULL OR f.project_id = ?) AND (? IS NULL OR (f.subject_type = ? AND f.subject_id IN (SELECT value FROM json_each(?)))) AND (? IS NULL OR f.status = ?) AND ${by.sql} ORDER BY ${order} DESC, f.id DESC LIMIT ?`).all(options.type ?? null, options.type ?? null, project2?.id ?? null, project2?.id ?? null, subject2?.type ?? null, subject2?.type ?? null, subject2 ? idsOf(database, subject2.type, subject2.id) : null, options.status ?? null, options.status ?? null, ...by.params, Math.min(Math.max(options.limit ?? 100, 1), 500)).map(factOf);
|
|
50672
|
+
return database.prepare(`${NAMED4} WHERE f.deleted_at IS NULL AND (? IS NULL OR f.type = ?) AND (? IS NULL OR f.project_id = ?) AND (? IS NULL OR (f.subject_type = ? AND f.subject_id IN (SELECT value FROM json_each(?)))) AND (? IS NULL OR f.status = ?) AND ${by.sql} ORDER BY ${order} DESC, f.id DESC LIMIT ? OFFSET ?`).all(options.type ?? null, options.type ?? null, project2?.id ?? null, project2?.id ?? null, subject2?.type ?? null, subject2?.type ?? null, subject2 ? idsOf(database, subject2.type, subject2.id) : null, options.status ?? null, options.status ?? null, ...by.params, Math.min(Math.max(options.limit ?? 100, 1), 500), Math.max(options.offset ?? 0, 0)).map(factOf);
|
|
50673
50673
|
}, "list"),
|
|
50674
50674
|
accept: /* @__PURE__ */ __name((reference2, by, reason) => {
|
|
50675
50675
|
const row2 = rowOf2(reference2);
|
|
@@ -50780,7 +50780,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
50780
50780
|
};
|
|
50781
50781
|
}, "factsStoreOver");
|
|
50782
50782
|
|
|
50783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
50784
50784
|
var invalid4 = /* @__PURE__ */ __name((message3) => {
|
|
50785
50785
|
throw new CliError("validation_error", message3);
|
|
50786
50786
|
}, "invalid");
|
|
@@ -50885,7 +50885,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
50885
50885
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
50886
50886
|
}, "findingsCoreOver");
|
|
50887
50887
|
|
|
50888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
50889
50889
|
var stale = /* @__PURE__ */ __name(() => {
|
|
50890
50890
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
50891
50891
|
reason: "evidence-findings.stale"
|
|
@@ -51087,7 +51087,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51087
51087
|
};
|
|
51088
51088
|
}, "evidenceFindingsStoreOver");
|
|
51089
51089
|
|
|
51090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
51091
51091
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
51092
51092
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
51093
51093
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -51140,7 +51140,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
51140
51140
|
}, "forPerson")
|
|
51141
51141
|
}), "involvementStoreOver");
|
|
51142
51142
|
|
|
51143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/labelled.js
|
|
51144
51144
|
var LABELLED = {
|
|
51145
51145
|
note: "note",
|
|
51146
51146
|
document: "document",
|
|
@@ -51152,7 +51152,7 @@ var LABELLED = {
|
|
|
51152
51152
|
account: "folder"
|
|
51153
51153
|
};
|
|
51154
51154
|
|
|
51155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
51156
51156
|
import { createHash as createHash15 } from "node:crypto";
|
|
51157
51157
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
51158
51158
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -51238,7 +51238,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
51238
51238
|
};
|
|
51239
51239
|
}, "meetingProjectsStoreOver");
|
|
51240
51240
|
|
|
51241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
51242
51242
|
var ORGANIZATIONS_QUERY = {
|
|
51243
51243
|
entity: "organization",
|
|
51244
51244
|
backend: "sql",
|
|
@@ -51279,7 +51279,7 @@ var REMINDERS_QUERY = {
|
|
|
51279
51279
|
})
|
|
51280
51280
|
};
|
|
51281
51281
|
|
|
51282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/organization-categories.js
|
|
51283
51283
|
var OWN2 = "(SELECT id FROM organizations WHERE deleted_at IS NULL AND json_extract(metadata, '$.own') = 1)";
|
|
51284
51284
|
var EMPLOYED = "('employee', 'contractor', 'founder')";
|
|
51285
51285
|
var categorySql = /* @__PURE__ */ __name(({ category, accounts: accounts2 }, now2) => {
|
|
@@ -51300,7 +51300,7 @@ var categorySql = /* @__PURE__ */ __name(({ category, accounts: accounts2 }, now
|
|
|
51300
51300
|
return { sql: `EXISTS (SELECT 1 FROM links l WHERE ${where} AND ${usable})`, params: keys };
|
|
51301
51301
|
}, "categorySql");
|
|
51302
51302
|
|
|
51303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/organizations.js
|
|
51304
51304
|
var organizationOf = /* @__PURE__ */ __name((row2) => ({
|
|
51305
51305
|
id: String(row2.id),
|
|
51306
51306
|
ref: `organization:${row2.id}`,
|
|
@@ -51345,7 +51345,7 @@ var organizationsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) =>
|
|
|
51345
51345
|
}), "setOwnOrganization")
|
|
51346
51346
|
}), "organizationsStoreOver");
|
|
51347
51347
|
|
|
51348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-list.js
|
|
51349
51349
|
var KINDS = RELATION_KINDS.map(linkKind).join(", ");
|
|
51350
51350
|
var ACCOUNT_ENDS = [
|
|
51351
51351
|
["deal", "deals"],
|
|
@@ -51486,13 +51486,13 @@ var relationListOver = /* @__PURE__ */ __name((context) => {
|
|
|
51486
51486
|
__name(proposalItem, "proposalItem");
|
|
51487
51487
|
}, "relationListOver");
|
|
51488
51488
|
|
|
51489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-reads.js
|
|
51490
51490
|
var relationReadsOver = /* @__PURE__ */ __name((context) => ({
|
|
51491
51491
|
...relationListOver(context),
|
|
51492
51492
|
...relationRolesOver(context)
|
|
51493
51493
|
}), "relationReadsOver");
|
|
51494
51494
|
|
|
51495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/source-review.js
|
|
51496
51496
|
var TABLES5 = { memory: "memories", fact: "facts" };
|
|
51497
51497
|
var RETIRED = /* @__PURE__ */ new Set(["superseded", "reversed", "rejected", "stale"]);
|
|
51498
51498
|
var DEFAULT_LIMIT = 500;
|
|
@@ -51735,16 +51735,16 @@ var sourceReviewStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51735
51735
|
};
|
|
51736
51736
|
}, "sourceReviewStoreOver");
|
|
51737
51737
|
|
|
51738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
51739
51739
|
import { createHash as createHash18 } from "node:crypto";
|
|
51740
51740
|
|
|
51741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
51742
51742
|
import { createHash as createHash17 } from "node:crypto";
|
|
51743
51743
|
|
|
51744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
51745
51745
|
import { createHash as createHash16 } from "node:crypto";
|
|
51746
51746
|
|
|
51747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
51748
51748
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
51749
51749
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
51750
51750
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -51795,7 +51795,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
51795
51795
|
return input;
|
|
51796
51796
|
}, "consolidationApplyInput");
|
|
51797
51797
|
|
|
51798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
51799
51799
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
51800
51800
|
id: String(row2.id),
|
|
51801
51801
|
sourceId: String(row2.source_id),
|
|
@@ -51870,7 +51870,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
51870
51870
|
}, { beforeCommit: check3 });
|
|
51871
51871
|
}, "applyTagConsolidation");
|
|
51872
51872
|
|
|
51873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
51874
51874
|
var selections = [
|
|
51875
51875
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
51876
51876
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -52014,7 +52014,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
52014
52014
|
};
|
|
52015
52015
|
}, "previewRows");
|
|
52016
52016
|
|
|
52017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
52018
52018
|
var kinds = ["project", "tag", "topic"];
|
|
52019
52019
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
52020
52020
|
if (signal?.aborted)
|
|
@@ -52278,7 +52278,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
52278
52278
|
};
|
|
52279
52279
|
}, "vocabularyStoreOver");
|
|
52280
52280
|
|
|
52281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
52282
52282
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
52283
52283
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
52284
52284
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -52827,7 +52827,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
52827
52827
|
return key2.padEnd(3, "X");
|
|
52828
52828
|
}, "projectKey");
|
|
52829
52829
|
|
|
52830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
52831
52831
|
var DAY6 = 864e5;
|
|
52832
52832
|
var SETTING5 = "logs_pruned_at";
|
|
52833
52833
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY6, botUpdatePayloadsMs: 30 * DAY6 };
|
|
@@ -52854,7 +52854,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
52854
52854
|
};
|
|
52855
52855
|
}, "logPruner");
|
|
52856
52856
|
|
|
52857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
52858
52858
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
52859
52859
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
52860
52860
|
var invalid6 = /* @__PURE__ */ __name((message3) => {
|
|
@@ -53230,7 +53230,7 @@ var checkMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
53230
53230
|
}, "checkMailFindings");
|
|
53231
53231
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
53232
53232
|
|
|
53233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
53233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
|
|
53234
53234
|
var ORDERS = "SELECT o.*, b.name AS author_name, b.kind AS author_kind FROM orders o LEFT JOIN bots b ON o.author_type = 'bot' AND b.id = o.author_id";
|
|
53235
53235
|
var orderOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
53236
53236
|
const { database, now: now2 } = context;
|
|
@@ -53443,7 +53443,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
53443
53443
|
};
|
|
53444
53444
|
}, "ordersStoreOver");
|
|
53445
53445
|
|
|
53446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
53446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
53447
53447
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
53448
53448
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
53449
53449
|
reason: "mail-findings.stale"
|
|
@@ -53900,7 +53900,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
53900
53900
|
};
|
|
53901
53901
|
}, "mailFindingsStoreOver");
|
|
53902
53902
|
|
|
53903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
53903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
53904
53904
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
53905
53905
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
53906
53906
|
reason: "meeting-findings.stale"
|
|
@@ -54068,7 +54068,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
54068
54068
|
};
|
|
54069
54069
|
}, "meetingFindingsStoreOver");
|
|
54070
54070
|
|
|
54071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
54072
54072
|
var RANK_BATCH = 512;
|
|
54073
54073
|
var LIVE5 = "FROM chunks k JOIN meeting_transcripts t ON k.chunkable_type = 'meeting_transcript' AND t.id = k.chunkable_id JOIN meetings m ON m.id = t.meeting_id WHERE m.account_id = ? AND m.deleted_at IS NULL AND t.deleted_at IS NULL AND t.superseded_at IS NULL";
|
|
54074
54074
|
var limitOf2 = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -54339,7 +54339,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
54339
54339
|
}
|
|
54340
54340
|
}), "meetingVectorsOver");
|
|
54341
54341
|
|
|
54342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
54343
54343
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
54344
54344
|
var TEXTS = {
|
|
54345
54345
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -54440,7 +54440,7 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
54440
54440
|
};
|
|
54441
54441
|
}, "sourceMentionStoreOver");
|
|
54442
54442
|
|
|
54443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/money-transactions.js
|
|
54444
54444
|
var TRANSACTIONS = "SELECT t.*, w.name AS wallet_name, b.name AS author_name, b.kind AS author_kind, (SELECT coalesce(sum(amount), 0) FROM transaction_splits WHERE transaction_id = t.id) AS split FROM financial_transactions t JOIN financial_accounts w ON w.id = t.financial_account_id LEFT JOIN bots b ON t.author_type = 'bot' AND b.id = t.author_id";
|
|
54445
54445
|
var MAX_SPLITS = 100;
|
|
54446
54446
|
var transactionOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
@@ -54671,11 +54671,11 @@ var transactionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
54671
54671
|
};
|
|
54672
54672
|
}, "transactionsStoreOver");
|
|
54673
54673
|
|
|
54674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
54675
54675
|
import { accessSync, constants, existsSync as existsSync2, mkdirSync as mkdirSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
54676
54676
|
import { dirname as dirname2 } from "node:path";
|
|
54677
54677
|
|
|
54678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
54679
54679
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
54680
54680
|
var CLIENTS_SETTING = "clients";
|
|
54681
54681
|
var coreVersion = (() => {
|
|
@@ -54736,7 +54736,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
54736
54736
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
54737
54737
|
}, "refusalAdvice");
|
|
54738
54738
|
|
|
54739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
54740
54740
|
var GENERATED = [
|
|
54741
54741
|
{
|
|
54742
54742
|
"name": "20261010184427_initial",
|
|
@@ -55986,7 +55986,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
55986
55986
|
}
|
|
55987
55987
|
];
|
|
55988
55988
|
|
|
55989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/rollback-copy.js
|
|
55990
55990
|
import { mkdirSync, rmSync, statfsSync, writeFileSync } from "node:fs";
|
|
55991
55991
|
import { basename, dirname, join as join3, parse } from "node:path";
|
|
55992
55992
|
var DERIVED = /(_fts|_words|_stems|_trigrams|_pending)$|^(embeddings|chunks|chunk_messages|mentions|involvements|search_terms)$|^vector_index/;
|
|
@@ -56219,7 +56219,7 @@ var rollBack2 = /* @__PURE__ */ __name((database, path) => {
|
|
|
56219
56219
|
return { ...result, foreignKeyViolations };
|
|
56220
56220
|
}, "rollBack");
|
|
56221
56221
|
|
|
56222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
56223
56223
|
var V31_TABLES = [
|
|
56224
56224
|
"accounts",
|
|
56225
56225
|
"account_identities",
|
|
@@ -56378,7 +56378,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
56378
56378
|
return migrations;
|
|
56379
56379
|
}, "generatedMigrations");
|
|
56380
56380
|
|
|
56381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
56382
56382
|
var MIGRATIONS = generatedMigrations();
|
|
56383
56383
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
56384
56384
|
version INTEGER PRIMARY KEY,
|
|
@@ -56475,7 +56475,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
56475
56475
|
}
|
|
56476
56476
|
}, "migrate");
|
|
56477
56477
|
|
|
56478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
56479
56479
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
56480
56480
|
const pending = database.prepare("SELECT id, join_url FROM meetings WHERE join_url IS NOT NULL AND join_key IS NULL AND id > ? ORDER BY id LIMIT ?");
|
|
56481
56481
|
if (pending.get(0, 1) === void 0)
|
|
@@ -56497,7 +56497,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
56497
56497
|
}
|
|
56498
56498
|
}, "fillJoinKeys");
|
|
56499
56499
|
|
|
56500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
56501
56501
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
56502
56502
|
refuseOwnerStoreInTests(path);
|
|
56503
56503
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -56511,8 +56511,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
56511
56511
|
}, "openSqlite");
|
|
56512
56512
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
56513
56513
|
quietSqliteWarning();
|
|
56514
|
-
const { drizzle } = await import("./node-
|
|
56515
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
56514
|
+
const { drizzle } = await import("./node-7AQN6OTR.js");
|
|
56515
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-55KMFPGI.js");
|
|
56516
56516
|
const client = await nodeClient(path, { readOnly });
|
|
56517
56517
|
try {
|
|
56518
56518
|
if (!readOnly)
|
|
@@ -56526,8 +56526,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
56526
56526
|
}
|
|
56527
56527
|
}, "openUnderNode");
|
|
56528
56528
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
56529
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
56530
|
-
const { drizzle } = await import("./bun-
|
|
56529
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-YVBFXNWB.js");
|
|
56530
|
+
const { drizzle } = await import("./bun-SQWZDSWT.js");
|
|
56531
56531
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
56532
56532
|
try {
|
|
56533
56533
|
if (!readOnly)
|
|
@@ -56541,7 +56541,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
56541
56541
|
}
|
|
56542
56542
|
}, "openUnderBun");
|
|
56543
56543
|
|
|
56544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
56545
56545
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
56546
56546
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
56547
56547
|
try {
|
|
@@ -56609,7 +56609,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
56609
56609
|
});
|
|
56610
56610
|
}, "movePaymentFacts");
|
|
56611
56611
|
|
|
56612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
56613
56613
|
var readCompatibility = /* @__PURE__ */ __name((database, command) => {
|
|
56614
56614
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
56615
56615
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -56627,7 +56627,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
56627
56627
|
throw new CliError("configuration_error", `The store needs schema ${MIGRATIONS.at(-1)?.version ?? 0} maintenance before a read-only open`);
|
|
56628
56628
|
}, "assertReadCompatible");
|
|
56629
56629
|
|
|
56630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
56631
56631
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
56632
56632
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
56633
56633
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -56673,7 +56673,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
56673
56673
|
});
|
|
56674
56674
|
}, "moveSuggestedLinks");
|
|
56675
56675
|
|
|
56676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
56677
56677
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
56678
56678
|
var TEST_PROVIDER = "chat";
|
|
56679
56679
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -56694,7 +56694,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
56694
56694
|
}
|
|
56695
56695
|
}, "purgeTestAccounts");
|
|
56696
56696
|
|
|
56697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
56698
56698
|
var BACKFILL_ON_OPEN = 5e3;
|
|
56699
56699
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
56700
56700
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -56795,7 +56795,7 @@ var openStoreContext = /* @__PURE__ */ __name(async (options = {}) => {
|
|
|
56795
56795
|
}
|
|
56796
56796
|
}, "openStoreContext");
|
|
56797
56797
|
|
|
56798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/products.js
|
|
56799
56799
|
var PRODUCTS = "SELECT c.*, b.name AS author_name, b.kind AS author_kind FROM catalog_items c LEFT JOIN bots b ON c.author_type = 'bot' AND b.id = c.author_id";
|
|
56800
56800
|
var productOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
56801
56801
|
const { database, now: now2 } = context;
|
|
@@ -56901,10 +56901,10 @@ var productsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
56901
56901
|
};
|
|
56902
56902
|
}, "productsStoreOver");
|
|
56903
56903
|
|
|
56904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
56905
56905
|
import { createHash as createHash19 } from "node:crypto";
|
|
56906
56906
|
|
|
56907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
56908
56908
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
56909
56909
|
var ref = text5(2048);
|
|
56910
56910
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -56974,7 +56974,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
56974
56974
|
}))
|
|
56975
56975
|
});
|
|
56976
56976
|
|
|
56977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
56978
56978
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
56979
56979
|
var invalid9 = /* @__PURE__ */ __name((field4) => {
|
|
56980
56980
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -57078,7 +57078,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
57078
57078
|
invalid9("external.unused");
|
|
57079
57079
|
}, "validateProjectAnnotationsGraph");
|
|
57080
57080
|
|
|
57081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
57082
57082
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
57083
57083
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
57084
57084
|
var targetSchema = strictObject({
|
|
@@ -57184,7 +57184,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
57184
57184
|
};
|
|
57185
57185
|
}, "planBoundProjectAnnotations");
|
|
57186
57186
|
|
|
57187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
57188
57188
|
import { createHash as createHash20 } from "node:crypto";
|
|
57189
57189
|
var text6 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
57190
57190
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -57278,7 +57278,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
57278
57278
|
})).digest("hex");
|
|
57279
57279
|
}, "projectAnnotationSnapshotFingerprint");
|
|
57280
57280
|
|
|
57281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
57282
57282
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
57283
57283
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
57284
57284
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -57295,7 +57295,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
57295
57295
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
57296
57296
|
}, "projectAnnotationRequest");
|
|
57297
57297
|
|
|
57298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
57299
57299
|
var SnapshotBudget = class {
|
|
57300
57300
|
static {
|
|
57301
57301
|
__name(this, "SnapshotBudget");
|
|
@@ -57321,13 +57321,13 @@ var SnapshotBudget = class {
|
|
|
57321
57321
|
}
|
|
57322
57322
|
};
|
|
57323
57323
|
|
|
57324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
57325
57325
|
import { createHash as createHash22 } from "node:crypto";
|
|
57326
57326
|
|
|
57327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
57328
57328
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
57329
57329
|
|
|
57330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
57331
57331
|
import { createHash as createHash21 } from "node:crypto";
|
|
57332
57332
|
var invalid11 = /* @__PURE__ */ __name(() => {
|
|
57333
57333
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -57470,7 +57470,7 @@ var ProjectSnapshotSources = class {
|
|
|
57470
57470
|
}
|
|
57471
57471
|
};
|
|
57472
57472
|
|
|
57473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
57474
57474
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
57475
57475
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
57476
57476
|
}, "unsupported");
|
|
@@ -57648,7 +57648,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
57648
57648
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
57649
57649
|
}), "projectAnnotationSnapshot");
|
|
57650
57650
|
|
|
57651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
57652
57652
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
57653
57653
|
const current2 = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
57654
57654
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -57710,7 +57710,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
57710
57710
|
};
|
|
57711
57711
|
}), "previewAnnotationSnapshot");
|
|
57712
57712
|
|
|
57713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
57714
57714
|
var metadataOf2 = /* @__PURE__ */ __name((database, link3, to) => {
|
|
57715
57715
|
const provenance2 = link3.provenance === null ? {} : { provenance: link3.provenance };
|
|
57716
57716
|
if (link3.kind === "evidence" && to)
|
|
@@ -57777,7 +57777,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
57777
57777
|
return mappings;
|
|
57778
57778
|
}, "restoreAnnotationRecords");
|
|
57779
57779
|
|
|
57780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
57781
57781
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
57782
57782
|
async preview(request) {
|
|
57783
57783
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -57807,7 +57807,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
57807
57807
|
}
|
|
57808
57808
|
}), "projectAnnotationStoreOver");
|
|
57809
57809
|
|
|
57810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-relations.js
|
|
57811
57811
|
var isDerived = /* @__PURE__ */ __name((role) => role.startsWith("fields."), "isDerived");
|
|
57812
57812
|
var recordRelationsOver = /* @__PURE__ */ __name(({ database }) => {
|
|
57813
57813
|
const sql2 = /* @__PURE__ */ __name((text7) => database.prepare(text7), "sql");
|
|
@@ -57878,7 +57878,7 @@ var recordRelationsOver = /* @__PURE__ */ __name(({ database }) => {
|
|
|
57878
57878
|
return { entityRef, relatedOf, storedRelations, relate, missingOf };
|
|
57879
57879
|
}, "recordRelationsOver");
|
|
57880
57880
|
|
|
57881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-remap.js
|
|
57882
57882
|
var recordRemapOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
57883
57883
|
const pointedAt = /* @__PURE__ */ __name((type, id2) => {
|
|
57884
57884
|
for (const { table, pointer } of pointerPairs(database))
|
|
@@ -57932,7 +57932,7 @@ var recordRemapOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
57932
57932
|
return { pointedAt, remap };
|
|
57933
57933
|
}, "recordRemapOver");
|
|
57934
57934
|
|
|
57935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-run.js
|
|
57936
57936
|
var runs = 0;
|
|
57937
57937
|
var PAGE = 500;
|
|
57938
57938
|
var recordRunOver = /* @__PURE__ */ __name((context, writes) => {
|
|
@@ -58145,7 +58145,7 @@ var waitingPointer = /* @__PURE__ */ __name((index2, missing4) => {
|
|
|
58145
58145
|
return pointerOf("records", index2, "fields", key2);
|
|
58146
58146
|
}, "waitingPointer");
|
|
58147
58147
|
|
|
58148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-matching.js
|
|
58149
58149
|
var valuesOf = /* @__PURE__ */ __name((value) => (Array.isArray(value) ? value : [value]).filter((one2) => typeof one2 === "string"), "valuesOf");
|
|
58150
58150
|
var SCHEME = /^(email|domain|tax-id:[a-z]{2}|registration:[a-z]{2})$/;
|
|
58151
58151
|
var ORG_EMAIL = "org-email";
|
|
@@ -58311,7 +58311,7 @@ var renameMade = /* @__PURE__ */ __name(({ database, now: now2 }, type, id2, nam
|
|
|
58311
58311
|
]);
|
|
58312
58312
|
}, "renameMade");
|
|
58313
58313
|
|
|
58314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-direct.js
|
|
58315
58315
|
var productFields = /* @__PURE__ */ __name((fields4) => ({
|
|
58316
58316
|
name: given2(fields4, "name"),
|
|
58317
58317
|
unit: given2(fields4, "unit"),
|
|
@@ -58434,7 +58434,7 @@ var DIRECT_PROJECTORS = {
|
|
|
58434
58434
|
lead: dealProjector("lead")
|
|
58435
58435
|
};
|
|
58436
58436
|
|
|
58437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-money.js
|
|
58438
58438
|
var allocatedByOthers = /* @__PURE__ */ __name((context, paymentId) => {
|
|
58439
58439
|
const importer = authorActor(context, IMPORTER).actor;
|
|
58440
58440
|
return context.database.prepare("SELECT 1 FROM payment_allocations WHERE payment_id = ? AND NOT (author_type = ? AND author_id = ?) LIMIT 1").get(paymentId, importer.type, importer.id) !== void 0;
|
|
@@ -58644,7 +58644,7 @@ var MONEY_PROJECTORS = {
|
|
|
58644
58644
|
}
|
|
58645
58645
|
};
|
|
58646
58646
|
|
|
58647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-phone.js
|
|
58648
58648
|
var CALLS_CALENDAR = "calls";
|
|
58649
58649
|
var importOnly = /* @__PURE__ */ __name((source2, type) => {
|
|
58650
58650
|
if (!isImportedProvider(source2.provider))
|
|
@@ -58819,7 +58819,7 @@ var PHONE_PROJECTORS = {
|
|
|
58819
58819
|
}
|
|
58820
58820
|
};
|
|
58821
58821
|
|
|
58822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors.js
|
|
58823
58823
|
var RECORD_PROJECTORS = {
|
|
58824
58824
|
...MONEY_PROJECTORS,
|
|
58825
58825
|
...DIRECT_PROJECTORS,
|
|
@@ -58829,7 +58829,7 @@ var RECORD_PROJECTORS = {
|
|
|
58829
58829
|
project: null
|
|
58830
58830
|
};
|
|
58831
58831
|
|
|
58832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-settling.js
|
|
58833
58833
|
var recordSettlingOver = /* @__PURE__ */ __name(({ database }, finance) => {
|
|
58834
58834
|
const sql2 = /* @__PURE__ */ __name((text7) => database.prepare(text7), "sql");
|
|
58835
58835
|
const freeOn = /* @__PURE__ */ __name((invoice, payment) => {
|
|
@@ -58891,7 +58891,7 @@ var recordSettlingOver = /* @__PURE__ */ __name(({ database }, finance) => {
|
|
|
58891
58891
|
return { settle, checkShares };
|
|
58892
58892
|
}, "recordSettlingOver");
|
|
58893
58893
|
|
|
58894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-stamps.js
|
|
58895
58895
|
import { createHash as createHash23 } from "node:crypto";
|
|
58896
58896
|
var VOLATILE = /* @__PURE__ */ new Set(["id", "created_at", "updated_at", "metadata"]);
|
|
58897
58897
|
var content = /* @__PURE__ */ __name((row2) => row2 === void 0 ? null : Object.fromEntries(Object.entries(row2).filter(([column2]) => !VOLATILE.has(column2))), "content");
|
|
@@ -58907,7 +58907,7 @@ var importStampsOver = /* @__PURE__ */ __name(({ database }) => {
|
|
|
58907
58907
|
return { stamp, untouched };
|
|
58908
58908
|
}, "importStampsOver");
|
|
58909
58909
|
|
|
58910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/subscriptions.js
|
|
58911
58911
|
var SUBSCRIPTIONS = "SELECT s.*, b.name AS author_name, b.kind AS author_kind FROM subscriptions s LEFT JOIN bots b ON s.author_type = 'bot' AND b.id = s.author_id";
|
|
58912
58912
|
var PRICES = "SELECT p.*, b.name AS author_name, b.kind AS author_kind FROM subscription_prices p LEFT JOIN bots b ON p.author_type = 'bot' AND b.id = p.author_id";
|
|
58913
58913
|
var PRICE_REF = /^subscription_price:([1-9]\d{0,15})$/;
|
|
@@ -59138,7 +59138,7 @@ var subscriptionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
59138
59138
|
};
|
|
59139
59139
|
}, "subscriptionsStoreOver");
|
|
59140
59140
|
|
|
59141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/wallets.js
|
|
59142
59142
|
var WALLETS = "SELECT w.*, b.name AS author_name, b.kind AS author_kind FROM financial_accounts w LEFT JOIN bots b ON w.author_type = 'bot' AND b.id = w.author_id";
|
|
59143
59143
|
var SIGNED = "CASE t.direction WHEN 'in' THEN t.amount ELSE -t.amount END";
|
|
59144
59144
|
var walletOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
@@ -59260,7 +59260,7 @@ var walletsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
59260
59260
|
};
|
|
59261
59261
|
}, "walletsStoreOver");
|
|
59262
59262
|
|
|
59263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/record-writes.js
|
|
59264
59264
|
var specOf = /* @__PURE__ */ __name((type) => RECORD_TYPES[type], "specOf");
|
|
59265
59265
|
var unsettled = /* @__PURE__ */ __name((fields4, relations) => recordFingerprint(fields4, relations.filter((relation) => !AMOUNT_ROLES.includes(relation.role))), "unsettled");
|
|
59266
59266
|
var tableOf2 = /* @__PURE__ */ __name((type) => typeof type === "string" && Object.hasOwn(DECIDED_TABLES, type) ? DECIDED_TABLES[type] : void 0, "tableOf");
|
|
@@ -59519,7 +59519,7 @@ var recordWritesOver = /* @__PURE__ */ __name((context) => {
|
|
|
59519
59519
|
return { writeOne, project: project2, completeDependents, entityRef, missingOf: relations.missingOf };
|
|
59520
59520
|
}, "recordWritesOver");
|
|
59521
59521
|
|
|
59522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
59523
59523
|
var LIMIT = 1e3;
|
|
59524
59524
|
var iso16 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
59525
59525
|
var checkLimit = /* @__PURE__ */ __name((limit) => {
|
|
@@ -59742,7 +59742,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
59742
59742
|
};
|
|
59743
59743
|
}, "recordStoreOver");
|
|
59744
59744
|
|
|
59745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/templates.js
|
|
59746
59746
|
var templateOf = /* @__PURE__ */ __name((row2) => ({
|
|
59747
59747
|
key: row2.key,
|
|
59748
59748
|
channel: row2.channel,
|
|
@@ -59797,7 +59797,7 @@ var storedTemplateBodies = /* @__PURE__ */ __name((database, key2, language) =>
|
|
|
59797
59797
|
return Object.fromEntries(rows.map((row2) => [row2.channel, row2.body]));
|
|
59798
59798
|
}, "storedTemplateBodies");
|
|
59799
59799
|
|
|
59800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/store-errors.js
|
|
59801
59801
|
var refusalOf2 = /* @__PURE__ */ __name((error) => error instanceof Error && error.name === "DrizzleQueryError" && error.cause instanceof CliError ? error.cause : error, "refusalOf");
|
|
59802
59802
|
var wrapped2 = /* @__PURE__ */ new WeakMap();
|
|
59803
59803
|
var storeErrors = /* @__PURE__ */ __name((area) => {
|
|
@@ -59832,7 +59832,7 @@ var storeErrors = /* @__PURE__ */ __name((area) => {
|
|
|
59832
59832
|
return proxy;
|
|
59833
59833
|
}, "storeErrors");
|
|
59834
59834
|
|
|
59835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
59836
59836
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
59837
59837
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
59838
59838
|
let merged2 = { from: from2, to };
|
|
@@ -59845,7 +59845,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
59845
59845
|
}, "markRange");
|
|
59846
59846
|
var ranges = /* @__PURE__ */ __name(({ orm }, chatKey) => orm.select({ from: syncRanges.fromKey, to: syncRanges.toKey }).from(syncRanges).where(eq(syncRanges.chatId, chatKey)).orderBy(syncRanges.fromKey).all(), "ranges");
|
|
59847
59847
|
|
|
59848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
59849
59849
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
59850
59850
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
59851
59851
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -59866,7 +59866,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
59866
59866
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(prefixOf2(account) + chatId, JSON.stringify({ ...saved, checkedAt: checkedAt ?? new Date(now2).toISOString() }), now2);
|
|
59867
59867
|
}, "setTaskAnalysisMark");
|
|
59868
59868
|
|
|
59869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
59870
59870
|
var keyOf5 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
59871
59871
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
59872
59872
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf5(account));
|
|
@@ -59876,7 +59876,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
59876
59876
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(keyOf5(account), JSON.stringify(until), now2);
|
|
59877
59877
|
}, "setTaskRulesStop");
|
|
59878
59878
|
|
|
59879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
59880
59880
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
59881
59881
|
const { database } = context;
|
|
59882
59882
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -59935,7 +59935,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
59935
59935
|
};
|
|
59936
59936
|
}, "syncStoreOver");
|
|
59937
59937
|
|
|
59938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
59939
59939
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
59940
59940
|
const { database } = context;
|
|
59941
59941
|
return {
|
|
@@ -59957,7 +59957,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
59957
59957
|
};
|
|
59958
59958
|
}, "tagsStoreOver");
|
|
59959
59959
|
|
|
59960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
59961
59961
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
59962
59962
|
var neighbours = /* @__PURE__ */ __name(({ orm }, chatKey, messagePk, sentAt, { messages: messages2, withinMs }, side) => orm.all(sql`SELECT sender_name AS sender, text, sent_at AS sentAt FROM messages
|
|
59963
59963
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -60084,7 +60084,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
60084
60084
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
60085
60085
|
}, "savePictureChunks");
|
|
60086
60086
|
|
|
60087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
60088
60088
|
var messagesToEmbed = /* @__PURE__ */ __name(({ orm }, accountPk2, { chatKey, model, after: after2, limit }) => orm.all(sql`SELECT m.id AS messagePk, m.text, m.sent_at AS sentAt, k.content_hash AS hash,
|
|
60089
60089
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
60090
60090
|
FROM messages m
|
|
@@ -60173,7 +60173,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
60173
60173
|
return plain2(best(found2));
|
|
60174
60174
|
}, "nearestMessages");
|
|
60175
60175
|
|
|
60176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
60177
60177
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
60178
60178
|
const { database } = context;
|
|
60179
60179
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -60432,7 +60432,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
60432
60432
|
vectorCounts: /* @__PURE__ */ __name(async (models) => vectorCounts(context, models), "vectorCounts")
|
|
60433
60433
|
}), "vectorsStoreOver");
|
|
60434
60434
|
|
|
60435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
60436
60436
|
import { existsSync as existsSync3, readFileSync as readFileSync4 } from "node:fs";
|
|
60437
60437
|
import { dirname as dirname3, join as join4 } from "node:path";
|
|
60438
60438
|
var BOOKKEEPING2 = ["schema_migrations", "store_settings"];
|
|
@@ -60520,10 +60520,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
60520
60520
|
}
|
|
60521
60521
|
}, "lastBackup");
|
|
60522
60522
|
|
|
60523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
60524
60524
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
60525
60525
|
|
|
60526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
60527
60527
|
var COUNTED_TABLES = [
|
|
60528
60528
|
"accounts",
|
|
60529
60529
|
"chats",
|
|
@@ -60608,7 +60608,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
60608
60608
|
};
|
|
60609
60609
|
}, "storeContents");
|
|
60610
60610
|
|
|
60611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
60612
60612
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
60613
60613
|
const context = await openStoreContext(options);
|
|
60614
60614
|
try {
|
|
@@ -60857,6 +60857,7 @@ var storeOver = /* @__PURE__ */ __name((context) => {
|
|
|
60857
60857
|
}, "storeOver");
|
|
60858
60858
|
|
|
60859
60859
|
export {
|
|
60860
|
+
RECORD_TYPES,
|
|
60860
60861
|
WORD_BODY,
|
|
60861
60862
|
orphanPointers,
|
|
60862
60863
|
QUOTE_LIMIT,
|