@wirecat/zoom-cli 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-EKHWTGOY.js → all-profiles-RS5IWIGR.js} +7 -7
- package/dist/bundle/answer-policy-R7VZMCGE.js +96 -0
- package/dist/bundle/{anthropic-VL54IUGF.js → anthropic-5QHQR4WF.js} +4 -4
- package/dist/bundle/app-server-7LANSZGE.js +232 -0
- package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2SDA3YOT.js → bun-sqlite-PEJM6CS4.js} +3 -3
- package/dist/bundle/{chunk-SQJ7EH2D.js → chunk-24DLFGES.js} +2 -2
- package/dist/bundle/{chunk-SB6WOSHG.js → chunk-27P22POE.js} +24 -24
- package/dist/bundle/{chunk-BW52AJ4R.js → chunk-3SCTDFNO.js} +38 -27
- package/dist/bundle/{chunk-ICSKEDPI.js → chunk-3SERIWJD.js} +220 -220
- package/dist/bundle/{chunk-S4S7E54J.js → chunk-4AURKUDZ.js} +4 -4
- package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
- package/dist/bundle/{server-WLJCU7KK.js → chunk-5DVW77VC.js} +37 -60
- package/dist/bundle/{chunk-2IKY7VBH.js → chunk-6CYLVFXM.js} +1 -1
- package/dist/bundle/{chunk-NW3X3G5X.js → chunk-6FL25KC5.js} +4 -4
- package/dist/bundle/{chunk-TLQUKHEM.js → chunk-7D2CD3E3.js} +5 -5
- package/dist/bundle/{chunk-6MX5T6AQ.js → chunk-7GVNQOV6.js} +1 -1
- package/dist/bundle/{chunk-VPPYYWOH.js → chunk-7H3ZRDLW.js} +2 -2
- package/dist/bundle/{chunk-EOQFWJJD.js → chunk-7Z4ANTAK.js} +20 -20
- package/dist/bundle/{chunk-NO7CJEYV.js → chunk-A6323R5P.js} +2 -2
- package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
- package/dist/bundle/{chunk-R3HPOCZD.js → chunk-AQDWGJZT.js} +2 -2
- package/dist/bundle/{chunk-CB5UTASG.js → chunk-B32SF7J3.js} +2 -2
- package/dist/bundle/{chunk-GKMGS7G5.js → chunk-BAQLQIMI.js} +26 -26
- package/dist/bundle/{chunk-NN5B24KP.js → chunk-BGILD4CI.js} +27 -27
- package/dist/bundle/{chunk-I4VQDXFR.js → chunk-BXZ6WSVF.js} +4 -4
- package/dist/bundle/{chunk-6M6FJV5D.js → chunk-CTGI4ES2.js} +6 -6
- package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
- package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
- package/dist/bundle/{chunk-OIHDCGV4.js → chunk-DP5DX45H.js} +3 -3
- package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
- package/dist/bundle/{chunk-YB4DMKYX.js → chunk-DXZTLB24.js} +5 -4
- package/dist/bundle/{chunk-HCNMFFG3.js → chunk-G27MRA24.js} +2 -2
- package/dist/bundle/{chunk-2WOGZDZG.js → chunk-IYAGQXED.js} +10 -8
- package/dist/bundle/{chunk-LQ3T2ZIX.js → chunk-K76WFW4I.js} +4 -4
- package/dist/bundle/{chunk-7GUG6UZS.js → chunk-KVHRHBLY.js} +5 -5
- package/dist/bundle/{chunk-SE75DPBY.js → chunk-L2UIJDWB.js} +2 -2
- package/dist/bundle/{chunk-RMV4C2YL.js → chunk-L3VS3H34.js} +6 -6
- package/dist/bundle/{chunk-HG5KRV55.js → chunk-MBT7GP7K.js} +9 -9
- package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
- package/dist/bundle/{chunk-4YLS4YLS.js → chunk-MMT46EN4.js} +2 -2
- package/dist/bundle/{chunk-MAEFLDHG.js → chunk-MNUTWGSA.js} +39 -37
- package/dist/bundle/{chunk-HKYLSIZ2.js → chunk-N7GAQ27N.js} +3 -3
- package/dist/bundle/{chunk-GARCOIB6.js → chunk-NDXAZB5Z.js} +6 -6
- package/dist/bundle/{chunk-CLMXBW53.js → chunk-NOKFJJPA.js} +6 -6
- package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
- package/dist/bundle/{chunk-K72SEMYI.js → chunk-OBZWUNO4.js} +9 -9
- package/dist/bundle/{chunk-WQ24UC44.js → chunk-PACC5N6T.js} +4 -3
- package/dist/bundle/{chunk-TKCHUT2H.js → chunk-PF25S7L4.js} +2 -2
- package/dist/bundle/{chunk-O66V2WHK.js → chunk-PKTFZAXG.js} +2 -2
- package/dist/bundle/{chunk-WJHK5D7Z.js → chunk-PNBEREOU.js} +258 -244
- package/dist/bundle/{chunk-6P3YHT54.js → chunk-POOGFSRA.js} +4 -4
- package/dist/bundle/{chunk-LXB6ONWC.js → chunk-PP3JGQQE.js} +51 -51
- package/dist/bundle/{chunk-MZH4GDR4.js → chunk-QCFHL4ES.js} +2 -2
- package/dist/bundle/{chunk-7JZJMHQY.js → chunk-QFGBMS67.js} +12 -7
- package/dist/bundle/{chunk-7A6PZUDR.js → chunk-RUP467ZX.js} +22 -12
- package/dist/bundle/{chunk-BW2WPOXP.js → chunk-RXDIG23Z.js} +6 -6
- package/dist/bundle/{chunk-OVSWVPXL.js → chunk-SIA7HJE2.js} +49 -47
- package/dist/bundle/{chunk-TZ2MKETI.js → chunk-SL3SXQZ5.js} +6 -6
- package/dist/bundle/{chunk-LHRCJYFC.js → chunk-SV5L36WK.js} +1 -1
- package/dist/bundle/{chunk-RRRBMQ2E.js → chunk-T6AAM7UT.js} +19 -17
- package/dist/bundle/{chunk-NTDWAAGL.js → chunk-U6QW67SU.js} +797 -559
- package/dist/bundle/{chunk-Z4TZ6TAF.js → chunk-UKR7KH3H.js} +2 -2
- package/dist/bundle/{chunk-LSVI3A5X.js → chunk-UOFOMU3T.js} +9 -9
- package/dist/bundle/{chunk-G4R4ZIGD.js → chunk-URO44C5T.js} +95 -94
- package/dist/bundle/{chunk-5F7IOESV.js → chunk-UXM7I35J.js} +4 -4
- package/dist/bundle/{chunk-4R7HYNZS.js → chunk-UYJUTZTT.js} +3 -3
- package/dist/bundle/{chunk-QLIB3PEC.js → chunk-VOAVOK4I.js} +18 -18
- package/dist/bundle/{chunk-LPTIQLDW.js → chunk-VSUY7PDW.js} +2 -2
- package/dist/bundle/{chunk-A4ETXPMZ.js → chunk-VYUSEJE4.js} +2 -2
- package/dist/bundle/{chunk-OCGPZHXW.js → chunk-XFCSPOLZ.js} +2 -2
- package/dist/bundle/{chunk-4VCA7QU3.js → chunk-XT7XVPEM.js} +13 -13
- package/dist/bundle/{chunk-QTR6D5HT.js → chunk-YIFIY7ZE.js} +2 -2
- package/dist/bundle/{chunk-AE4BOXH7.js → chunk-YIMI6O7R.js} +25 -25
- package/dist/bundle/{chunk-UI5UTMSZ.js → chunk-YJRMMZI5.js} +10 -10
- package/dist/bundle/{chunk-QUJPQMHJ.js → chunk-YSHSCBPM.js} +8 -8
- package/dist/bundle/{chunk-BAYNCCNM.js → chunk-ZC5UXEIH.js} +11 -11
- package/dist/bundle/{chunk-G4VZDINN.js → chunk-ZHXIXDH5.js} +4 -4
- package/dist/bundle/{chunk-5QESMCQK.js → chunk-ZTOAAYFV.js} +3 -3
- package/dist/bundle/{cli-72EQATJF.js → cli-IQTASP44.js} +59 -53
- package/dist/bundle/command-contract-WHZPF7NA.js +38 -0
- package/dist/bundle/config-IP5SGHKN.js +79 -0
- package/dist/bundle/{dist-IBNHCQXT.js → dist-WT73DF46.js} +14 -14
- package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
- package/dist/bundle/{embed-7QYA2ZZE.js → embed-XEMH4LNX.js} +4 -4
- package/dist/bundle/{embedder-YNN6PCHG.js → embedder-ZCYKSKAE.js} +7 -7
- package/dist/bundle/{first-run-EVSRQKZJ.js → first-run-LGYDLIUM.js} +8 -8
- package/dist/bundle/first-screen-LYQKPNF4.js +36 -0
- package/dist/bundle/{folders-JEPOMYM4.js → folders-5ZBUQHAM.js} +2 -2
- package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
- package/dist/bundle/{main-NYGJXPH7.js → main-NKY3JGXY.js} +16 -16
- package/dist/bundle/{mcp-VGSZDCKK.js → mcp-7OXUHLTO.js} +64 -64
- package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
- package/dist/bundle/mcp-VISEXTVC.js +92 -0
- package/dist/bundle/{meetings-IBPI4MM4.js → meetings-XPBHVZAU.js} +4 -4
- package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
- package/dist/bundle/{node-sqlite-ZNGOBA5Q.js → node-sqlite-BBEDYBWO.js} +3 -3
- package/dist/bundle/{oauth-Q6LKF7DB.js → oauth-UHVRGKZU.js} +5 -5
- package/dist/bundle/{open-LJ332Y5O.js → open-J4FCAUAJ.js} +2 -2
- package/dist/bundle/{output-file-RYQZ3RTE.js → output-file-SXV2ANW7.js} +3 -3
- package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
- package/dist/bundle/{program-IBRQBQ6W.js → program-EPMIJCGA.js} +80 -80
- package/dist/bundle/{prompt-RT7GUUXH.js → prompt-LUUMQTMY.js} +3 -3
- package/dist/bundle/{recognize-QXGE7YJH.js → recognize-EMHQX4XF.js} +4 -4
- package/dist/bundle/{remote-FD4MZQV3.js → remote-ZXS6D7VB.js} +5 -5
- package/dist/bundle/{rerank-V6AVV755.js → rerank-WP7RKZNB.js} +5 -5
- package/dist/bundle/{run-log-RE2EI3UU.js → run-log-GS2L66G6.js} +53 -53
- package/dist/bundle/{serve-HIJTFAW7.js → serve-L6KLLXK2.js} +7 -7
- package/dist/bundle/server-NOFYENP5.js +53 -0
- package/dist/bundle/server-P5TXAPBY.js +66 -0
- package/dist/bundle/{services-KC5KQFBS.js → services-SPOEWVK3.js} +26 -26
- package/dist/bundle/{speech-5JOXLYDA.js → speech-6OBAKMND.js} +4 -4
- package/dist/bundle/{state-PPGRB3T6.js → state-HN5EJKXQ.js} +4 -4
- package/dist/bundle/{store-WB5BICTG.js → store-LEU3M6IN.js} +13 -13
- package/dist/bundle/{store-LODVDPK3.js → store-ZP2URKET.js} +15 -15
- package/dist/bundle/store-connection-I53XZ2TS.js +76 -0
- package/dist/bundle/store-maintenance-command-PSCHEHHY.js +54 -0
- package/dist/bundle/{streaming-UGFFNOXL.js → streaming-AK6Q2ZGQ.js} +4 -4
- package/dist/bundle/{tokens-AF5CPY2F.js → tokens-CCM3D4ZT.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +12 -2
- package/dist/contract-overrides.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/answer-policy-KH2IFXPN.js +0 -96
- package/dist/bundle/command-contract-4MHSZUN3.js +0 -38
- package/dist/bundle/config-GFIJK6G2.js +0 -79
- package/dist/bundle/first-screen-RG4GUKW7.js +0 -36
- package/dist/bundle/mcp-XKP2PXLS.js +0 -92
- package/dist/bundle/server-3QOXOYYL.js +0 -53
- package/dist/bundle/store-connection-EG6Z5ITP.js +0 -76
- package/dist/bundle/store-maintenance-command-Q5WMFUZ2.js +0 -54
- /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
- /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
WORK_TASK_TYPES,
|
|
17
17
|
linkKind,
|
|
18
18
|
matches
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CTGI4ES2.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_STEMMERS,
|
|
22
22
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
fold,
|
|
30
30
|
normalize,
|
|
31
31
|
parseStemmers
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YSHSCBPM.js";
|
|
33
33
|
import {
|
|
34
34
|
DEFAULT_TASK_CATEGORIES,
|
|
35
35
|
sharedConfigPath,
|
|
36
36
|
storedTaskCategories,
|
|
37
37
|
taskCategoriesReader
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-KVHRHBLY.js";
|
|
39
39
|
import {
|
|
40
40
|
COUNTER_FIELDS,
|
|
41
41
|
DOCUMENT_ACCOUNT_PROVIDERS,
|
|
@@ -67,19 +67,19 @@ import {
|
|
|
67
67
|
rankingWords,
|
|
68
68
|
useStoredProviders,
|
|
69
69
|
validCounter
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-NDXAZB5Z.js";
|
|
71
71
|
import {
|
|
72
72
|
normalizeTag,
|
|
73
73
|
tagOf
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-MMT46EN4.js";
|
|
75
75
|
import {
|
|
76
76
|
storePath
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-B32SF7J3.js";
|
|
78
78
|
import {
|
|
79
79
|
PRAGMAS,
|
|
80
80
|
quietSqliteWarning,
|
|
81
81
|
storeCapable
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-SL3SXQZ5.js";
|
|
83
83
|
import {
|
|
84
84
|
CHAT_MESSAGES_READ,
|
|
85
85
|
MEETING_FINDINGS_KIND,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
validateMeetingPreparationContext,
|
|
106
106
|
validateMeetingRelatedHistory,
|
|
107
107
|
validateMeetingSeriesHistory
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-PP3JGQQE.js";
|
|
109
109
|
import {
|
|
110
110
|
QUERY_LIMITS,
|
|
111
111
|
dateRange,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
validateQuery,
|
|
117
117
|
walkQuery,
|
|
118
118
|
zonedMoment
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-UOFOMU3T.js";
|
|
120
120
|
import {
|
|
121
121
|
CliError,
|
|
122
122
|
array,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
singleLine,
|
|
136
136
|
strictObject,
|
|
137
137
|
string
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-YIMI6O7R.js";
|
|
139
139
|
import {
|
|
140
140
|
resolveFrom
|
|
141
141
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -163,12 +163,12 @@ import {
|
|
|
163
163
|
sql,
|
|
164
164
|
sqliteTable,
|
|
165
165
|
text
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-NW7IMGRR.js";
|
|
167
167
|
import {
|
|
168
168
|
__name
|
|
169
169
|
} from "./chunk-ZVVMGPBJ.js";
|
|
170
170
|
|
|
171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
172
172
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
173
173
|
const methods = whole;
|
|
174
174
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -296,7 +296,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
296
296
|
};
|
|
297
297
|
}, "bindAccount");
|
|
298
298
|
|
|
299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
300
300
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
301
301
|
var inSource = /* @__PURE__ */ __name((source2, provider) => source2 === "all" || source2 === "bots" && isBotProvider(provider) || source2 === "personal" && !isBotProvider(provider) || source2 === provider || providerNamed(source2)?.name === provider || isKind(source2) && kindOf(provider) === source2, "inSource");
|
|
302
302
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -319,7 +319,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
319
319
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
320
320
|
}, "sourceOf");
|
|
321
321
|
|
|
322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
323
323
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
324
324
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
325
325
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -506,7 +506,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf = (kind3)
|
|
|
506
506
|
return { accounts: [...chosen.values()], skipped };
|
|
507
507
|
}, "fitting");
|
|
508
508
|
|
|
509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
510
510
|
var IndexBuilderOn = class {
|
|
511
511
|
static {
|
|
512
512
|
__name(this, "IndexBuilderOn");
|
|
@@ -701,7 +701,7 @@ function alias(table, alias2) {
|
|
|
701
701
|
}
|
|
702
702
|
__name(alias, "alias");
|
|
703
703
|
|
|
704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
705
705
|
var ENTITY_TABLES = {
|
|
706
706
|
account: "accounts",
|
|
707
707
|
attachment: "attachments",
|
|
@@ -741,7 +741,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
741
741
|
return { table, pointer, type, count, known: known2 };
|
|
742
742
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
743
743
|
|
|
744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
745
745
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
746
746
|
id: integer("id").primaryKey(),
|
|
747
747
|
name: text("name").notNull().unique(),
|
|
@@ -750,7 +750,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
750
750
|
updatedAt: integer("updated_at").notNull()
|
|
751
751
|
});
|
|
752
752
|
|
|
753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
754
754
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
755
755
|
sourceKey: text("source_key").notNull(),
|
|
756
756
|
collection: text("collection").notNull(),
|
|
@@ -760,13 +760,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
760
760
|
createdAt: integer("created_at").notNull()
|
|
761
761
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
762
762
|
|
|
763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
764
764
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
765
765
|
id: integer("id").notNull(),
|
|
766
766
|
indexableType: text("indexable_type").notNull()
|
|
767
767
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
768
768
|
|
|
769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
770
770
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
771
771
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
772
772
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -792,7 +792,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
792
792
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
793
793
|
]);
|
|
794
794
|
|
|
795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
796
796
|
var accounts = sqliteTable("accounts", {
|
|
797
797
|
id: integer("id").primaryKey(),
|
|
798
798
|
provider: text("provider").notNull(),
|
|
@@ -2261,7 +2261,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2261
2261
|
at: integer("at").notNull()
|
|
2262
2262
|
});
|
|
2263
2263
|
|
|
2264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2265
2265
|
var ARMS = [
|
|
2266
2266
|
[
|
|
2267
2267
|
"message",
|
|
@@ -2388,7 +2388,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2388
2388
|
return recomputed;
|
|
2389
2389
|
}, "drainInvolvementQueue");
|
|
2390
2390
|
|
|
2391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2392
2392
|
import { domainToUnicode } from "node:url";
|
|
2393
2393
|
|
|
2394
2394
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12410,7 +12410,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12410
12410
|
}, "oa");
|
|
12411
12411
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12412
12412
|
|
|
12413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12414
12414
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12415
12415
|
var ID = /^[\w-]{10,}$/;
|
|
12416
12416
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12451,7 +12451,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text5) => [...text5.matchAll(L
|
|
|
12451
12451
|
return { url, documentId: googleDocumentId(url) };
|
|
12452
12452
|
}), "googleDocumentLinks");
|
|
12453
12453
|
|
|
12454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12455
12455
|
var PHONE_PLANS = [
|
|
12456
12456
|
{
|
|
12457
12457
|
country: "us",
|
|
@@ -12831,7 +12831,7 @@ var PHONE_PLANS = [
|
|
|
12831
12831
|
}
|
|
12832
12832
|
];
|
|
12833
12833
|
|
|
12834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
12835
12835
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
12836
12836
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
12837
12837
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -12872,7 +12872,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
12872
12872
|
return void 0;
|
|
12873
12873
|
}, "nationalPhone");
|
|
12874
12874
|
|
|
12875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
12876
12876
|
var BEFORE = [
|
|
12877
12877
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
12878
12878
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13132,7 +13132,7 @@ var findPlaces = /* @__PURE__ */ __name((text5) => {
|
|
|
13132
13132
|
return found2.sort((a, b) => a.start - b.start);
|
|
13133
13133
|
}, "findPlaces");
|
|
13134
13134
|
|
|
13135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13136
13136
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13137
13137
|
var MENTION_VERSIONS = {
|
|
13138
13138
|
phone: 1,
|
|
@@ -13322,7 +13322,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13322
13322
|
};
|
|
13323
13323
|
}, "typedPhone");
|
|
13324
13324
|
|
|
13325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13326
13326
|
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";
|
|
13327
13327
|
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";
|
|
13328
13328
|
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";
|
|
@@ -13330,7 +13330,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13330
13330
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13331
13331
|
var NAME_WORDS = WORDS.split(" ");
|
|
13332
13332
|
|
|
13333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13334
13334
|
var LATIN_TO_CYRILLIC = {
|
|
13335
13335
|
shch: "\u0449",
|
|
13336
13336
|
sch: "\u0449",
|
|
@@ -13538,7 +13538,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text5, stem, taken) => {
|
|
|
13538
13538
|
return found2;
|
|
13539
13539
|
}, "findUnknownNames");
|
|
13540
13540
|
|
|
13541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13542
13542
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13543
13543
|
"webpage",
|
|
13544
13544
|
"share",
|
|
@@ -13570,7 +13570,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
13570
13570
|
});
|
|
13571
13571
|
}, "matchDownloads");
|
|
13572
13572
|
|
|
13573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
13574
13574
|
var QUERY_VERSION = 1;
|
|
13575
13575
|
var QUERY_LIMITS2 = {
|
|
13576
13576
|
...QUERY_LIMITS,
|
|
@@ -13601,7 +13601,7 @@ function exhausted(budget) {
|
|
|
13601
13601
|
}
|
|
13602
13602
|
__name(exhausted, "exhausted");
|
|
13603
13603
|
|
|
13604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
13605
13605
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
13606
13606
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
13607
13607
|
kind: "char",
|
|
@@ -14001,7 +14001,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14001
14001
|
return out;
|
|
14002
14002
|
}, "foldRegex");
|
|
14003
14003
|
|
|
14004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14005
14005
|
var PRESET_VERSION = 1;
|
|
14006
14006
|
var PRESETS = {
|
|
14007
14007
|
password: {
|
|
@@ -14055,7 +14055,7 @@ var PRESETS = {
|
|
|
14055
14055
|
}
|
|
14056
14056
|
};
|
|
14057
14057
|
|
|
14058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14059
14059
|
var FIELD_VERSION = 2;
|
|
14060
14060
|
var UNITS = {
|
|
14061
14061
|
"": 1,
|
|
@@ -14555,12 +14555,12 @@ var QUERY_OPERATORS = [
|
|
|
14555
14555
|
{ name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
|
|
14556
14556
|
];
|
|
14557
14557
|
|
|
14558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
14559
14559
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
14560
14560
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
14561
14561
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
14562
14562
|
|
|
14563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
14564
14564
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
14565
14565
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
14566
14566
|
var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
|
|
@@ -14584,7 +14584,7 @@ var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
|
|
|
14584
14584
|
};
|
|
14585
14585
|
}, "linkMatch");
|
|
14586
14586
|
|
|
14587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
14588
14588
|
var SETTING = "phoneCountries";
|
|
14589
14589
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
14590
14590
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -14615,7 +14615,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
14615
14615
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
14616
14616
|
}, "valueMatch");
|
|
14617
14617
|
|
|
14618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
14619
14619
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
14620
14620
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
14621
14621
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -14643,7 +14643,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
14643
14643
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
14644
14644
|
}, "vocabularySimilarity");
|
|
14645
14645
|
|
|
14646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
14647
14647
|
import { createHash } from "node:crypto";
|
|
14648
14648
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
14649
14649
|
try {
|
|
@@ -14709,7 +14709,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
|
|
|
14709
14709
|
});
|
|
14710
14710
|
}, "guardTagCreation");
|
|
14711
14711
|
|
|
14712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
14713
14713
|
var invalid = /* @__PURE__ */ __name((message2) => {
|
|
14714
14714
|
throw new CliError("validation_error", message2);
|
|
14715
14715
|
}, "invalid");
|
|
@@ -14786,7 +14786,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
14786
14786
|
};
|
|
14787
14787
|
}, "createTagRedirectIndex");
|
|
14788
14788
|
|
|
14789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
14790
14790
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
14791
14791
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
14792
14792
|
if (!row2)
|
|
@@ -14814,7 +14814,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
14814
14814
|
return snapshot2;
|
|
14815
14815
|
}, "tagRedirectSnapshot");
|
|
14816
14816
|
|
|
14817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
14818
14818
|
import { createHash as createHash2 } from "node:crypto";
|
|
14819
14819
|
var TASK_KEY_PREFIXES = {
|
|
14820
14820
|
question: "Q",
|
|
@@ -14832,6 +14832,7 @@ var typedKey = /* @__PURE__ */ __name((database, kind3) => {
|
|
|
14832
14832
|
return key2;
|
|
14833
14833
|
}
|
|
14834
14834
|
}, "typedKey");
|
|
14835
|
+
var INBOX_KEY_LENGTH = 10;
|
|
14835
14836
|
var inboxKey = /* @__PURE__ */ __name((account) => `IN${createHash2("sha256").update(account).digest("hex").slice(0, 8).toUpperCase()}`, "inboxKey");
|
|
14836
14837
|
var linkInbox = /* @__PURE__ */ __name((database, account, accountId) => {
|
|
14837
14838
|
database.prepare("UPDATE projects SET account_id = ? WHERE key = ? AND account_id IS NULL").run(accountId, inboxKey(account));
|
|
@@ -14841,7 +14842,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14841
14842
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
14842
14843
|
}, "taskAccountOf");
|
|
14843
14844
|
|
|
14844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
14845
14846
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
14846
14847
|
var REFERABLE = {
|
|
14847
14848
|
note: { tombstone: true },
|
|
@@ -14999,7 +15000,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14999
15000
|
}, "taskIdOf");
|
|
15000
15001
|
var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
|
|
15001
15002
|
|
|
15002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15003
15004
|
var toMs = /* @__PURE__ */ __name((iso10) => {
|
|
15004
15005
|
if (iso10 === null || iso10 === void 0)
|
|
15005
15006
|
return null;
|
|
@@ -15013,7 +15014,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15013
15014
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15014
15015
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15015
15016
|
|
|
15016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15017
15018
|
var TAG_KINDS = ["tag", "topic"];
|
|
15018
15019
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15019
15020
|
var TAG_TYPE = {
|
|
@@ -15204,7 +15205,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15204
15205
|
return result;
|
|
15205
15206
|
}, "tagsOf");
|
|
15206
15207
|
|
|
15207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15208
15209
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15209
15210
|
var SPEECH = speech("att");
|
|
15210
15211
|
var quoted = /* @__PURE__ */ __name((value) => `"${value.replaceAll('"', '""')}"`, "quoted");
|
|
@@ -15557,7 +15558,7 @@ var FIELD_COMPILERS = {
|
|
|
15557
15558
|
subject
|
|
15558
15559
|
};
|
|
15559
15560
|
|
|
15560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15561
15562
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15562
15563
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15563
15564
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -15573,7 +15574,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
15573
15574
|
};
|
|
15574
15575
|
}, "placeOf");
|
|
15575
15576
|
|
|
15576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
15577
15578
|
var DRAIN_ON_WRITE = 500;
|
|
15578
15579
|
var METHOD = "rules";
|
|
15579
15580
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -15736,7 +15737,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
15736
15737
|
return queued.length;
|
|
15737
15738
|
}, "drainMentions");
|
|
15738
15739
|
|
|
15739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
15740
15741
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
15741
15742
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
15742
15743
|
if (!exists2)
|
|
@@ -15744,7 +15745,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
15744
15745
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
15745
15746
|
}, "indexRow");
|
|
15746
15747
|
|
|
15747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
15748
15749
|
var INDEX = "message_stems";
|
|
15749
15750
|
var SETTING2 = "searchStemmers";
|
|
15750
15751
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -15866,7 +15867,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
15866
15867
|
};
|
|
15867
15868
|
}, "stemmerCache");
|
|
15868
15869
|
|
|
15869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
15870
15871
|
var connections = /* @__PURE__ */ new WeakMap();
|
|
15871
15872
|
var connectionOf = /* @__PURE__ */ __name((database) => {
|
|
15872
15873
|
let connection = connections.get(database);
|
|
@@ -15925,7 +15926,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
15925
15926
|
}
|
|
15926
15927
|
}, "read");
|
|
15927
15928
|
|
|
15928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
15929
15930
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
15930
15931
|
coalesce(CASE k.chunkable_type
|
|
15931
15932
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16067,7 +16068,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16067
16068
|
}, "dropUnusedVectors");
|
|
16068
16069
|
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");
|
|
16069
16070
|
|
|
16070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16071
16072
|
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({
|
|
16072
16073
|
target: [accounts.provider, accounts.externalId],
|
|
16073
16074
|
set: {
|
|
@@ -16172,7 +16173,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16172
16173
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16173
16174
|
}, "dropOrphanPeople");
|
|
16174
16175
|
|
|
16175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
16176
16177
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
16177
16178
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
16178
16179
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -16191,7 +16192,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
16191
16192
|
}
|
|
16192
16193
|
}, "resolvePersonLinks");
|
|
16193
16194
|
|
|
16194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
16195
16196
|
var flag = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
16196
16197
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
16197
16198
|
find: orm.select({
|
|
@@ -16410,7 +16411,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
16410
16411
|
return saved.pk;
|
|
16411
16412
|
}, "meetingIdentityPk");
|
|
16412
16413
|
|
|
16413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
16414
16415
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
16415
16416
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
16416
16417
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -16475,7 +16476,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
16475
16476
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
16476
16477
|
var bound2 = /* @__PURE__ */ __name(({ sql: text5, params }) => sql.join(text5.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
|
|
16477
16478
|
|
|
16478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
16479
16480
|
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");
|
|
16480
16481
|
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");
|
|
16481
16482
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -16747,7 +16748,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
16747
16748
|
}
|
|
16748
16749
|
}, "replaceAutoTags");
|
|
16749
16750
|
|
|
16750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16751
16752
|
import { createHash as createHash3 } from "node:crypto";
|
|
16752
16753
|
var CHUNK_CHARS = 1200;
|
|
16753
16754
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16852,7 +16853,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16852
16853
|
return chunks2;
|
|
16853
16854
|
}, "cutChunks");
|
|
16854
16855
|
|
|
16855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
16856
16857
|
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");
|
|
16857
16858
|
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;
|
|
16858
16859
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -16933,7 +16934,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
|
|
|
16933
16934
|
return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
|
|
16934
16935
|
}, "mailCore");
|
|
16935
16936
|
|
|
16936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
16937
16938
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
16938
16939
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
16939
16940
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17023,7 +17024,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17023
17024
|
});
|
|
17024
17025
|
}, "linkMeeting");
|
|
17025
17026
|
|
|
17026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
17027
17028
|
var DAY = 864e5;
|
|
17028
17029
|
var CURRENCY = [
|
|
17029
17030
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -17140,7 +17141,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
|
|
|
17140
17141
|
return best?.day ?? null;
|
|
17141
17142
|
}, "dueDayOf");
|
|
17142
17143
|
|
|
17143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
17144
17145
|
var DAY2 = 864e5;
|
|
17145
17146
|
var STOP_WORDS = new Set([
|
|
17146
17147
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -17295,7 +17296,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
17295
17296
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
17296
17297
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
17297
17298
|
|
|
17298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
17299
17300
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
17300
17301
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
17301
17302
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17566,7 +17567,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17566
17567
|
};
|
|
17567
17568
|
}, "readiness");
|
|
17568
17569
|
|
|
17569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17570
17571
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17571
17572
|
var SCAN_PAGE2 = 5e3;
|
|
17572
17573
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17629,7 +17630,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17629
17630
|
}, "nearestPictures")
|
|
17630
17631
|
}), "documentPicturesOver");
|
|
17631
17632
|
|
|
17632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17633
17634
|
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), ''))";
|
|
17634
17635
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17635
17636
|
"working-location",
|
|
@@ -17811,7 +17812,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17811
17812
|
return true;
|
|
17812
17813
|
}, "resetNoteIndex");
|
|
17813
17814
|
|
|
17814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
17815
17816
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
17816
17817
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
17817
17818
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -17921,7 +17922,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor) => {
|
|
|
17921
17922
|
return emails3 + threads;
|
|
17922
17923
|
}, "drainEmailIndex");
|
|
17923
17924
|
|
|
17924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
17925
17926
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
17926
17927
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
17927
17928
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -17945,7 +17946,7 @@ var setEmailFlags = /* @__PURE__ */ __name((database, accountId, flags, now2) =>
|
|
|
17945
17946
|
return changed;
|
|
17946
17947
|
}, "setEmailFlags");
|
|
17947
17948
|
|
|
17948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
17949
17950
|
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");
|
|
17950
17951
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
17951
17952
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18012,7 +18013,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
18012
18013
|
}
|
|
18013
18014
|
}), "mailRulesOver");
|
|
18014
18015
|
|
|
18015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
18016
18017
|
var FOLDED = [
|
|
18017
18018
|
{ table: "tasks", column: "title" },
|
|
18018
18019
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -18044,7 +18045,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
18044
18045
|
return filled2;
|
|
18045
18046
|
}, "fillFolded");
|
|
18046
18047
|
|
|
18047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
18048
18049
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
18049
18050
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
18050
18051
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -18052,7 +18053,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
18052
18053
|
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);
|
|
18053
18054
|
}, "reviewLink");
|
|
18054
18055
|
|
|
18055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
18056
18057
|
function checkMeetingCancelled(signal) {
|
|
18057
18058
|
if (!signal?.aborted)
|
|
18058
18059
|
return;
|
|
@@ -18063,7 +18064,7 @@ function checkMeetingCancelled(signal) {
|
|
|
18063
18064
|
}
|
|
18064
18065
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
18065
18066
|
|
|
18066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
18067
18068
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
18068
18069
|
id: Number(row2.id),
|
|
18069
18070
|
accountId: Number(row2.account_id),
|
|
@@ -18113,7 +18114,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
18113
18114
|
createdAt: Number(row2.created_at)
|
|
18114
18115
|
}), "transcriptRowOf");
|
|
18115
18116
|
|
|
18116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
18117
18118
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
18118
18119
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
18119
18120
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -18280,7 +18281,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18280
18281
|
}
|
|
18281
18282
|
}), "meetingReadsOver");
|
|
18282
18283
|
|
|
18283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
18284
18285
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
18285
18286
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
18286
18287
|
const params = [input.accountId];
|
|
@@ -18323,7 +18324,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
18323
18324
|
return { clauses, params };
|
|
18324
18325
|
}, "meetingSelectionSql");
|
|
18325
18326
|
|
|
18326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
18327
18328
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
18328
18329
|
async meetingChatLines(input) {
|
|
18329
18330
|
checkMeetingCancelled(input.signal);
|
|
@@ -18351,7 +18352,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18351
18352
|
}
|
|
18352
18353
|
}), "meetingChatLinesOver");
|
|
18353
18354
|
|
|
18354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
18355
18356
|
var MESSAGE_FIELDS = {
|
|
18356
18357
|
pk: messages.id,
|
|
18357
18358
|
nativeId: messages.externalId,
|
|
@@ -18517,7 +18518,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
18517
18518
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
18518
18519
|
}), "chatActivity");
|
|
18519
18520
|
|
|
18520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
18521
18522
|
var HIT_FIELDS = {
|
|
18522
18523
|
...MESSAGE_FIELDS,
|
|
18523
18524
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -18616,7 +18617,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
18616
18617
|
};
|
|
18617
18618
|
}, "directReplies");
|
|
18618
18619
|
|
|
18619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
18620
18621
|
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");
|
|
18621
18622
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
18622
18623
|
const found2 = identityRow(context, ref3);
|
|
@@ -18747,7 +18748,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
18747
18748
|
}, "mentioning");
|
|
18748
18749
|
var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
18749
18750
|
|
|
18750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
18751
18752
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
18752
18753
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
18753
18754
|
}, "missing");
|
|
@@ -18869,7 +18870,7 @@ function meetingContextLinksOver(context) {
|
|
|
18869
18870
|
}
|
|
18870
18871
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
18871
18872
|
|
|
18872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
18873
18874
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
18874
18875
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
18875
18876
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18898,7 +18899,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
18898
18899
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
18899
18900
|
}, "indexedText");
|
|
18900
18901
|
|
|
18901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
18902
18903
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
18903
18904
|
var meetingCurrentIndexRows = `
|
|
18904
18905
|
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
|
|
@@ -18929,7 +18930,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
18929
18930
|
}, "invalidateMeetingStems");
|
|
18930
18931
|
var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
18931
18932
|
|
|
18932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
18933
18934
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
18934
18935
|
return {
|
|
18935
18936
|
async indexSearch(original) {
|
|
@@ -18997,10 +18998,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
18997
18998
|
}
|
|
18998
18999
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
18999
19000
|
|
|
19000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19001
19002
|
import { createHash as createHash4 } from "node:crypto";
|
|
19002
19003
|
|
|
19003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
19004
19005
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
19005
19006
|
const padded = ` ${term} `;
|
|
19006
19007
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -19009,7 +19010,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
19009
19010
|
return [...pieces];
|
|
19010
19011
|
}, "trigrams");
|
|
19011
19012
|
|
|
19012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
19013
19014
|
var SHORTEST_CORRECTION = 3;
|
|
19014
19015
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
19015
19016
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -19056,7 +19057,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
19056
19057
|
return corrections;
|
|
19057
19058
|
}, "correctWords");
|
|
19058
19059
|
|
|
19059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
19060
19061
|
var SHORTEST_GARBLED = 4;
|
|
19061
19062
|
var MOST_WIDENED = 64;
|
|
19062
19063
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -19148,7 +19149,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
19148
19149
|
return found2.map((words3) => words3.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word) => word.term));
|
|
19149
19150
|
}, "widenWords");
|
|
19150
19151
|
|
|
19151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
19152
19153
|
import { readFileSync } from "node:fs";
|
|
19153
19154
|
var loaded;
|
|
19154
19155
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -19207,7 +19208,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
19207
19208
|
return false;
|
|
19208
19209
|
}, "knownRussianWord");
|
|
19209
19210
|
|
|
19210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
19211
19212
|
var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
19212
19213
|
var MOST_WORDS = 128;
|
|
19213
19214
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -19434,7 +19435,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
|
|
|
19434
19435
|
return check3(tree);
|
|
19435
19436
|
}, "matchMeetingText");
|
|
19436
19437
|
|
|
19437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19438
19439
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
19439
19440
|
throw new CliError("validation_error", message2);
|
|
19440
19441
|
}, "fail");
|
|
@@ -19611,7 +19612,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
19611
19612
|
}
|
|
19612
19613
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
19613
19614
|
|
|
19614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
19615
19616
|
import { createHash as createHash5 } from "node:crypto";
|
|
19616
19617
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
19617
19618
|
if (value === void 0)
|
|
@@ -19701,7 +19702,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
19701
19702
|
}
|
|
19702
19703
|
}), "meetingParticipantSearchOver");
|
|
19703
19704
|
|
|
19704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
19705
19706
|
var preparationQueries = {
|
|
19706
19707
|
participants: {
|
|
19707
19708
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -19751,7 +19752,7 @@ var preparationQueries = {
|
|
|
19751
19752
|
}
|
|
19752
19753
|
};
|
|
19753
19754
|
|
|
19754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
19755
19756
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19756
19757
|
async preparationContext(original) {
|
|
19757
19758
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -19792,7 +19793,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19792
19793
|
}
|
|
19793
19794
|
}), "meetingPreparationContextOver");
|
|
19794
19795
|
|
|
19795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
19796
19797
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
19797
19798
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
19798
19799
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -19806,7 +19807,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
19806
19807
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
19807
19808
|
)`, "preparationSubjects");
|
|
19808
19809
|
|
|
19809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
19810
19811
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19811
19812
|
async preparationKnowledge(original) {
|
|
19812
19813
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -19851,7 +19852,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
19851
19852
|
}
|
|
19852
19853
|
}), "meetingPreparationKnowledgeOver");
|
|
19853
19854
|
|
|
19854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
19855
19856
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19856
19857
|
async preparationNotes(original) {
|
|
19857
19858
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -19904,7 +19905,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19904
19905
|
}
|
|
19905
19906
|
}), "meetingPreparationNotesOver");
|
|
19906
19907
|
|
|
19907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
19908
19909
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19909
19910
|
async relatedHistory(original) {
|
|
19910
19911
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -19975,7 +19976,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19975
19976
|
}
|
|
19976
19977
|
}), "meetingRelatedHistoryOver");
|
|
19977
19978
|
|
|
19978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
19979
19980
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
19980
19981
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
19981
19982
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -20056,7 +20057,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20056
20057
|
}
|
|
20057
20058
|
}), "meetingReviewOver");
|
|
20058
20059
|
|
|
20059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
20060
20061
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
20061
20062
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
20062
20063
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -20110,7 +20111,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20110
20111
|
}
|
|
20111
20112
|
}), "meetingSeriesHistoryOver");
|
|
20112
20113
|
|
|
20113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
20114
20115
|
var MOST_ROWS = 5e5;
|
|
20115
20116
|
var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20116
20117
|
async meetingStats(input) {
|
|
@@ -20157,7 +20158,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20157
20158
|
}
|
|
20158
20159
|
}), "meetingStatsOver");
|
|
20159
20160
|
|
|
20160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
20161
20162
|
var CURSOR_KEY = "meetings";
|
|
20162
20163
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
20163
20164
|
id: Number(row2.id),
|
|
@@ -20709,7 +20710,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
20709
20710
|
};
|
|
20710
20711
|
}, "meetingStoreOver");
|
|
20711
20712
|
|
|
20712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
20713
20714
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
20714
20715
|
id: `email:${place.emailId}`,
|
|
20715
20716
|
chatId: place.threadExternalId,
|
|
@@ -21277,7 +21278,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor = stem
|
|
|
21277
21278
|
}
|
|
21278
21279
|
}), "mailStoreOver");
|
|
21279
21280
|
|
|
21280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
21281
21282
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21282
21283
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
21283
21284
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -21367,7 +21368,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
21367
21368
|
}, "knownWord");
|
|
21368
21369
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
21369
21370
|
|
|
21370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
21371
21372
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
21372
21373
|
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");
|
|
21373
21374
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -21453,7 +21454,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
21453
21454
|
return found2;
|
|
21454
21455
|
}, "spokenTranscripts");
|
|
21455
21456
|
|
|
21456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
21457
21458
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
21458
21459
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
21459
21460
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -21500,7 +21501,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
21500
21501
|
});
|
|
21501
21502
|
}, "placeHits");
|
|
21502
21503
|
|
|
21503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
21504
21505
|
var MESSAGES2 = {
|
|
21505
21506
|
rows: "messages",
|
|
21506
21507
|
threads: "chats",
|
|
@@ -21962,7 +21963,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
21962
21963
|
};
|
|
21963
21964
|
}, "runQuery");
|
|
21964
21965
|
|
|
21965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
21966
21967
|
function invalidMetadata() {
|
|
21967
21968
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
21968
21969
|
}
|
|
@@ -22064,7 +22065,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
22064
22065
|
};
|
|
22065
22066
|
}), "counterTargets");
|
|
22066
22067
|
|
|
22067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
22068
22069
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
22069
22070
|
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,
|
|
22070
22071
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -22183,7 +22184,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
22183
22184
|
}));
|
|
22184
22185
|
}, "attachmentViews");
|
|
22185
22186
|
|
|
22186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
22187
22188
|
var transcript = /* @__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");
|
|
22188
22189
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
|
|
22189
22190
|
const { orm, database, now: now2 } = context;
|
|
@@ -22221,7 +22222,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
22221
22222
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
22222
22223
|
}, "intoVoiceAttachment");
|
|
22223
22224
|
|
|
22224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
22225
22226
|
var FIELDS = [
|
|
22226
22227
|
"threadExternalId",
|
|
22227
22228
|
"senderIdentityId",
|
|
@@ -22528,7 +22529,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
22528
22529
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
22529
22530
|
}, "writeDerivedReactions");
|
|
22530
22531
|
|
|
22531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
22532
22533
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
22533
22534
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
22534
22535
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -22554,7 +22555,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
22554
22555
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
22555
22556
|
}, "release");
|
|
22556
22557
|
|
|
22557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
22558
22559
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
22559
22560
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
22560
22561
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -22575,7 +22576,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
22575
22576
|
};
|
|
22576
22577
|
}, "keysOver");
|
|
22577
22578
|
|
|
22578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
22579
22580
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
22580
22581
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
22581
22582
|
if (!row2)
|
|
@@ -22610,7 +22611,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
22610
22611
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
22611
22612
|
}, "saveProfile");
|
|
22612
22613
|
|
|
22613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
22614
22615
|
var BOT_KINDS = ["agent", "script", "integration"];
|
|
22615
22616
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
22616
22617
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -22646,7 +22647,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
22646
22647
|
return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
|
|
22647
22648
|
}, "originOfActor");
|
|
22648
22649
|
|
|
22649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
22650
22651
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
22651
22652
|
const owner = ownerPerson(context.database).id;
|
|
22652
22653
|
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);
|
|
@@ -22667,7 +22668,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
22667
22668
|
return personOf(context, ref3);
|
|
22668
22669
|
}, "linkToOwner");
|
|
22669
22670
|
|
|
22670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
22671
22672
|
var PROVIDERS_SETTING = "providers";
|
|
22672
22673
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
22673
22674
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -22702,7 +22703,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
22702
22703
|
});
|
|
22703
22704
|
}, "registerProvider");
|
|
22704
22705
|
|
|
22705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
22706
22707
|
var DAY3 = 864e5;
|
|
22707
22708
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
22708
22709
|
var TEXT_LIMIT = 20;
|
|
@@ -22901,7 +22902,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
22901
22902
|
};
|
|
22902
22903
|
}, "taskSimilarityOver");
|
|
22903
22904
|
|
|
22904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
22905
22906
|
var SETTING3 = "taskCategories";
|
|
22906
22907
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
22907
22908
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -22920,7 +22921,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
22920
22921
|
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);
|
|
22921
22922
|
}, "saveTaskCategories");
|
|
22922
22923
|
|
|
22923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
22924
22925
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
22925
22926
|
var ALLOWED = "taskAgentClose";
|
|
22926
22927
|
var MIN = "taskAgentCloseMin";
|
|
@@ -22976,7 +22977,7 @@ var SUGGESTION_COLUMNS = [
|
|
|
22976
22977
|
];
|
|
22977
22978
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
22978
22979
|
|
|
22979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
22980
22981
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
22981
22982
|
var MAX_TEXT_CHARS = 2e6;
|
|
22982
22983
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -23002,7 +23003,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
23002
23003
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
23003
23004
|
}, "pdfPreviewLimits");
|
|
23004
23005
|
|
|
23005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
23006
23007
|
import { randomBytes } from "node:crypto";
|
|
23007
23008
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23008
23009
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -23015,7 +23016,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
23015
23016
|
return time3 + random;
|
|
23016
23017
|
}, "ulid");
|
|
23017
23018
|
|
|
23018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
23019
23020
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
23020
23021
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
23021
23022
|
if (!meta && !sections?.length)
|
|
@@ -23036,7 +23037,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
23036
23037
|
return typeof language === "string" && language !== "" ? language : null;
|
|
23037
23038
|
}, "languageOf");
|
|
23038
23039
|
|
|
23039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
23040
23041
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
23041
23042
|
var objectOf = /* @__PURE__ */ __name((value) => {
|
|
23042
23043
|
if (isObject(value))
|
|
@@ -23279,7 +23280,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
23279
23280
|
};
|
|
23280
23281
|
}, "filesStoreOver");
|
|
23281
23282
|
|
|
23282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
23283
23284
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
23284
23285
|
entity: "document",
|
|
23285
23286
|
backend: "sql",
|
|
@@ -23325,7 +23326,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
23325
23326
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
23326
23327
|
}, "importedDocumentWhere");
|
|
23327
23328
|
|
|
23328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
23329
23330
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
23330
23331
|
var iso = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23331
23332
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso(value), "optionalIso");
|
|
@@ -23834,7 +23835,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
23834
23835
|
};
|
|
23835
23836
|
}, "notesStoreOver");
|
|
23836
23837
|
|
|
23837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
23838
23839
|
var NAMED = "SELECT m.*, b.name AS author_name FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
|
|
23839
23840
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23840
23841
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -23950,7 +23951,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
23950
23951
|
};
|
|
23951
23952
|
}, "memoriesStoreOver");
|
|
23952
23953
|
|
|
23953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
23954
23955
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
23955
23956
|
var KEY = "taskFirstPassPerChat";
|
|
23956
23957
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -23970,7 +23971,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
23970
23971
|
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);
|
|
23971
23972
|
}, "saveFirstPassPerChat");
|
|
23972
23973
|
|
|
23973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
23974
23975
|
var TASK_RELATION_KINDS = [
|
|
23975
23976
|
"blocked-by",
|
|
23976
23977
|
"follow-up-of",
|
|
@@ -24100,7 +24101,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
24100
24101
|
};
|
|
24101
24102
|
}, "taskRelationsStoreOver");
|
|
24102
24103
|
|
|
24103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
24104
24105
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
24105
24106
|
var TASK_EVENT_KINDS = [
|
|
24106
24107
|
"created",
|
|
@@ -24387,7 +24388,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
24387
24388
|
};
|
|
24388
24389
|
}, "workTasksOver");
|
|
24389
24390
|
|
|
24390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
24391
24392
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
24392
24393
|
const { database, now: now2 } = context;
|
|
24393
24394
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -24433,7 +24434,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
24433
24434
|
};
|
|
24434
24435
|
}, "taskCloseOver");
|
|
24435
24436
|
|
|
24436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
24437
24438
|
var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
|
|
24438
24439
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
24439
24440
|
const { database, now: now2 } = context;
|
|
@@ -24652,7 +24653,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
24652
24653
|
};
|
|
24653
24654
|
}, "taskPairsOver");
|
|
24654
24655
|
|
|
24655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
24656
24657
|
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";
|
|
24657
24658
|
var taskStoreOver = /* @__PURE__ */ __name((context) => {
|
|
24658
24659
|
const { database, now: now2 } = context;
|
|
@@ -24847,7 +24848,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
24847
24848
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
24848
24849
|
}, "oneOf");
|
|
24849
24850
|
|
|
24850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
24851
24852
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
24852
24853
|
const { database } = context;
|
|
24853
24854
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -24889,7 +24890,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
24889
24890
|
};
|
|
24890
24891
|
}, "accountsStoreOver");
|
|
24891
24892
|
|
|
24892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
24893
24894
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
24894
24895
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
24895
24896
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -24913,7 +24914,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
24913
24914
|
})), "keepDownloads");
|
|
24914
24915
|
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");
|
|
24915
24916
|
|
|
24916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
24917
24918
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
24918
24919
|
const { database } = context;
|
|
24919
24920
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -24970,7 +24971,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
24970
24971
|
}, "keepAttachmentText")
|
|
24971
24972
|
}), "attachmentsStoreOver");
|
|
24972
24973
|
|
|
24973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
24974
24975
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
24975
24976
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
24976
24977
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -25150,7 +25151,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
25150
25151
|
return done;
|
|
25151
25152
|
}, "rekeyChats");
|
|
25152
25153
|
|
|
25153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
25154
25155
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
25155
25156
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
25156
25157
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -25182,7 +25183,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
|
|
|
25182
25183
|
});
|
|
25183
25184
|
}, "chatCompleteness");
|
|
25184
25185
|
|
|
25185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
25186
25187
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25187
25188
|
const { database } = context;
|
|
25188
25189
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -25282,7 +25283,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25282
25283
|
};
|
|
25283
25284
|
}, "chatsStoreOver");
|
|
25284
25285
|
|
|
25285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
25286
25287
|
import { createHash as createHash6 } from "node:crypto";
|
|
25287
25288
|
var BATCH_CONTEXT = 50;
|
|
25288
25289
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -25420,7 +25421,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
25420
25421
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
25421
25422
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
25422
25423
|
|
|
25423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
25424
25425
|
import { setTimeout } from "node:timers/promises";
|
|
25425
25426
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
25426
25427
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -25732,7 +25733,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
25732
25733
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
25733
25734
|
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");
|
|
25734
25735
|
|
|
25735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
25736
25737
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25737
25738
|
const { database } = context;
|
|
25738
25739
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25839,7 +25840,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25839
25840
|
};
|
|
25840
25841
|
}, "conversationsStoreOver");
|
|
25841
25842
|
|
|
25842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
25843
25844
|
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";
|
|
25844
25845
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
25845
25846
|
const { database } = context;
|
|
@@ -25864,7 +25865,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25864
25865
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
25865
25866
|
}), "countersStoreOver");
|
|
25866
25867
|
|
|
25867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
25868
25869
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
25869
25870
|
var MENTION_QUERY = defineQuery({
|
|
25870
25871
|
entity: "mention",
|
|
@@ -26080,7 +26081,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
26080
26081
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
26081
26082
|
}, "listPlaces");
|
|
26082
26083
|
|
|
26083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
26084
26085
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
26085
26086
|
const { database } = context;
|
|
26086
26087
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -26115,7 +26116,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26115
26116
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
26116
26117
|
}), "mentionsStoreOver");
|
|
26117
26118
|
|
|
26118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
26119
26120
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
26120
26121
|
const read2 = 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");
|
|
26121
26122
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -26130,7 +26131,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
26130
26131
|
}));
|
|
26131
26132
|
}, "documentLinkMessages");
|
|
26132
26133
|
|
|
26133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
26134
26135
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
26135
26136
|
const { database } = context;
|
|
26136
26137
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -26260,7 +26261,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26260
26261
|
directReplies: /* @__PURE__ */ __name(async (parents, limit) => directReplies(context, parents, limit), "directReplies")
|
|
26261
26262
|
}), "messagesStoreOver");
|
|
26262
26263
|
|
|
26263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
26264
26265
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
26265
26266
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
26266
26267
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -26317,7 +26318,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
26317
26318
|
});
|
|
26318
26319
|
}, "personPreparation");
|
|
26319
26320
|
|
|
26320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
26321
26322
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
26322
26323
|
const id2 = Number(uid);
|
|
26323
26324
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -26325,7 +26326,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
26325
26326
|
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(id2, JSON.stringify(accountIds)));
|
|
26326
26327
|
}, "personSeenInAccounts");
|
|
26327
26328
|
|
|
26328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
26329
26330
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
26330
26331
|
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);
|
|
26331
26332
|
if (!row2)
|
|
@@ -26391,7 +26392,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
26391
26392
|
return { id: id2, personId, removed: true };
|
|
26392
26393
|
}, "removeNote");
|
|
26393
26394
|
|
|
26394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
26395
26396
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
26396
26397
|
const { database } = context;
|
|
26397
26398
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -26445,6 +26446,15 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
26445
26446
|
personOf: /* @__PURE__ */ __name(async (identity) => personOf(context, identity), "personOf"),
|
|
26446
26447
|
personSeenInAccounts: /* @__PURE__ */ __name(async (uid, accountIds) => personSeenInAccounts(context, uid, accountIds), "personSeenInAccounts"),
|
|
26447
26448
|
personByUid: /* @__PURE__ */ __name(async (uid) => personByUid(context, uid), "personByUid"),
|
|
26449
|
+
owner: /* @__PURE__ */ __name(async () => {
|
|
26450
|
+
try {
|
|
26451
|
+
return personByUid(context, String(ownerPerson(database).id));
|
|
26452
|
+
} catch (error) {
|
|
26453
|
+
if (error instanceof CliError && error.code === "configuration_error")
|
|
26454
|
+
return void 0;
|
|
26455
|
+
throw error;
|
|
26456
|
+
}
|
|
26457
|
+
}, "owner"),
|
|
26448
26458
|
preparation: /* @__PURE__ */ __name(async (uid, options) => personPreparation(context, uid, options), "preparation"),
|
|
26449
26459
|
linkIdentities: /* @__PURE__ */ __name(async (person2, other, options) => {
|
|
26450
26460
|
return write(database, () => linkIdentities(context, person2, other, options));
|
|
@@ -26456,13 +26466,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
26456
26466
|
};
|
|
26457
26467
|
}, "peopleStoreOver");
|
|
26458
26468
|
|
|
26459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
26460
26470
|
import { createHash as createHash8 } from "node:crypto";
|
|
26461
26471
|
|
|
26462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26463
26473
|
import { createHash as createHash7 } from "node:crypto";
|
|
26464
26474
|
|
|
26465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
26466
26476
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
26467
26477
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
26468
26478
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -26684,7 +26694,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
26684
26694
|
};
|
|
26685
26695
|
}, "rankReplyGraph");
|
|
26686
26696
|
|
|
26687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26688
26698
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
26689
26699
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
26690
26700
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -26858,7 +26868,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
26858
26868
|
return { items, evidence, summary, graph: graph.quality };
|
|
26859
26869
|
}, "calculateAdminStatistics");
|
|
26860
26870
|
|
|
26861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
26862
26872
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
26863
26873
|
const dates = [];
|
|
26864
26874
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -26880,7 +26890,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
26880
26890
|
return dates[0].node.resolution.date;
|
|
26881
26891
|
}, "rankingContextRange");
|
|
26882
26892
|
|
|
26883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
26884
26894
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
26885
26895
|
let counts;
|
|
26886
26896
|
try {
|
|
@@ -27175,7 +27185,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
27175
27185
|
});
|
|
27176
27186
|
}, "rankQuery");
|
|
27177
27187
|
|
|
27178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
27179
27189
|
function fail4(message2, reason = "query.too-large") {
|
|
27180
27190
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
27181
27191
|
}
|
|
@@ -27352,7 +27362,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
27352
27362
|
return result;
|
|
27353
27363
|
}), "adminStatisticsQuery");
|
|
27354
27364
|
|
|
27355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
27356
27366
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
27357
27367
|
if (!execution.accounts.length)
|
|
27358
27368
|
return { conversations: [], chats: [] };
|
|
@@ -27370,7 +27380,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
27370
27380
|
return { conversations: conversations2, chats: chats2 };
|
|
27371
27381
|
}, "conversationEligibility");
|
|
27372
27382
|
|
|
27373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
27374
27384
|
import { createHash as createHash9 } from "node:crypto";
|
|
27375
27385
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
27376
27386
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -27520,7 +27530,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
27520
27530
|
return result;
|
|
27521
27531
|
}, "rankingEvidence");
|
|
27522
27532
|
|
|
27523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
27524
27534
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
27525
27535
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
27526
27536
|
if (execution.corpus === "mail")
|
|
@@ -27537,7 +27547,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
|
27537
27547
|
};
|
|
27538
27548
|
}, "queriesStoreOver");
|
|
27539
27549
|
|
|
27540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
27541
27551
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
27542
27552
|
const { database, now: now2 } = context;
|
|
27543
27553
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -27576,10 +27586,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
27576
27586
|
}));
|
|
27577
27587
|
}, "chatEventsOf");
|
|
27578
27588
|
|
|
27579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27580
27590
|
import { createHash as createHash10 } from "node:crypto";
|
|
27581
27591
|
|
|
27582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
27583
27593
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
27584
27594
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
27585
27595
|
timeZone: zone,
|
|
@@ -27594,7 +27604,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
|
27594
27604
|
};
|
|
27595
27605
|
}, "calendarKey");
|
|
27596
27606
|
|
|
27597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
27598
27608
|
var RETENTION_TOLERANCE = 864e5;
|
|
27599
27609
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
27600
27610
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -27648,7 +27658,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
27648
27658
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
27649
27659
|
}, "retentionCohorts");
|
|
27650
27660
|
|
|
27651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27652
27662
|
var iso5 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
27653
27663
|
var week = /* @__PURE__ */ __name((day) => {
|
|
27654
27664
|
const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
@@ -27784,7 +27794,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
27784
27794
|
};
|
|
27785
27795
|
}, "retentionQuery");
|
|
27786
27796
|
|
|
27787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
27788
27798
|
var iso6 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
27789
27799
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
27790
27800
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -27915,7 +27925,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
27915
27925
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
27916
27926
|
})), "trackedChats");
|
|
27917
27927
|
|
|
27918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
27919
27929
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
27920
27930
|
const { database } = context;
|
|
27921
27931
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -27971,7 +27981,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
27971
27981
|
};
|
|
27972
27982
|
}, "rosterStoreOver");
|
|
27973
27983
|
|
|
27974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
27975
27985
|
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");
|
|
27976
27986
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
27977
27987
|
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 ?`);
|
|
@@ -27995,7 +28005,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
27995
28005
|
}
|
|
27996
28006
|
}, "backfillNormalized");
|
|
27997
28007
|
|
|
27998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
27999
28009
|
var INDEX2 = "message_words";
|
|
28000
28010
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
28001
28011
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -28122,7 +28132,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
28122
28132
|
});
|
|
28123
28133
|
}, "resetSearchIndex");
|
|
28124
28134
|
|
|
28125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
28126
28136
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
28127
28137
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
28128
28138
|
const before2 = stemsState(database);
|
|
@@ -28217,7 +28227,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
28217
28227
|
return resetStems(database, { now: now2 });
|
|
28218
28228
|
}, "followDefaultStemmers");
|
|
28219
28229
|
|
|
28220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
28221
28231
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
28222
28232
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
28223
28233
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -28239,7 +28249,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
28239
28249
|
});
|
|
28240
28250
|
}, "termCandidates");
|
|
28241
28251
|
|
|
28242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
28243
28253
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28244
28254
|
const { database } = context;
|
|
28245
28255
|
const stemmerFor = stemmerCache();
|
|
@@ -28261,7 +28271,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28261
28271
|
};
|
|
28262
28272
|
}, "searchIndexStoreOver");
|
|
28263
28273
|
|
|
28264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
28265
28275
|
var HISTORY_KEPT = 1e3;
|
|
28266
28276
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
28267
28277
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -28330,7 +28340,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
28330
28340
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
28331
28341
|
}, "clearHistory");
|
|
28332
28342
|
|
|
28333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
28334
28344
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28335
28345
|
const { database } = context;
|
|
28336
28346
|
return {
|
|
@@ -28354,7 +28364,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28354
28364
|
};
|
|
28355
28365
|
}, "searchesStoreOver");
|
|
28356
28366
|
|
|
28357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
28358
28368
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
28359
28369
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
28360
28370
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -28397,7 +28407,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
28397
28407
|
};
|
|
28398
28408
|
}, "agentActionsStoreOver");
|
|
28399
28409
|
|
|
28400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
28401
28411
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
28402
28412
|
}) => {
|
|
28403
28413
|
const { database, now: now2 } = context;
|
|
@@ -28456,7 +28466,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
28456
28466
|
};
|
|
28457
28467
|
}, "botUpdateStoreOver");
|
|
28458
28468
|
|
|
28459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
28460
28470
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
28461
28471
|
id: Number(row2.id),
|
|
28462
28472
|
accountId: Number(row2.account_id),
|
|
@@ -29015,7 +29025,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29015
29025
|
};
|
|
29016
29026
|
}, "eventStoreOver");
|
|
29017
29027
|
|
|
29018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
29019
29029
|
var CATALOG_QUERY = defineQuery({
|
|
29020
29030
|
entity: "document",
|
|
29021
29031
|
backend: "sql",
|
|
@@ -29257,7 +29267,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
29257
29267
|
};
|
|
29258
29268
|
}, "catalogStoreOver");
|
|
29259
29269
|
|
|
29260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
29261
29271
|
import { createHash as createHash11 } from "node:crypto";
|
|
29262
29272
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
29263
29273
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -29355,7 +29365,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
29355
29365
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
29356
29366
|
}, "contextEvidenceRequest");
|
|
29357
29367
|
|
|
29358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
29359
29369
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
29360
29370
|
var field2 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
29361
29371
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -29368,7 +29378,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
29368
29378
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
29369
29379
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field2("sourceUrl")})`;
|
|
29370
29380
|
|
|
29371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
29372
29382
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
29373
29383
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
29374
29384
|
signal?.throwIfAborted();
|
|
@@ -29467,7 +29477,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
29467
29477
|
});
|
|
29468
29478
|
}, "readMeetingContextEvidence");
|
|
29469
29479
|
|
|
29470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
29471
29481
|
var corpora = {
|
|
29472
29482
|
message: {
|
|
29473
29483
|
table: "messages",
|
|
@@ -29696,7 +29706,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29696
29706
|
}
|
|
29697
29707
|
}), "contextRecordsOver");
|
|
29698
29708
|
|
|
29699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
29700
29710
|
var NOTE_FIELDS = [
|
|
29701
29711
|
"text",
|
|
29702
29712
|
"exact",
|
|
@@ -30085,7 +30095,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30085
30095
|
};
|
|
30086
30096
|
}, "noteSearchOver");
|
|
30087
30097
|
|
|
30088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
30089
30099
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
30090
30100
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
30091
30101
|
var EVENT_CORPUS = {
|
|
@@ -30217,7 +30227,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30217
30227
|
};
|
|
30218
30228
|
}, "eventSearchOver");
|
|
30219
30229
|
|
|
30220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
30221
30231
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
30222
30232
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
30223
30233
|
if (/^document:[1-9]\d*$/.test(raw))
|
|
@@ -30230,7 +30240,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
|
|
|
30230
30240
|
}, "reference");
|
|
30231
30241
|
var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
|
|
30232
30242
|
|
|
30233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
30234
30244
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
30235
30245
|
try {
|
|
30236
30246
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -30242,7 +30252,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
30242
30252
|
}
|
|
30243
30253
|
}, "calendarMoment");
|
|
30244
30254
|
|
|
30245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
30246
30256
|
var NAMED3 = "SELECT f.*, b.name AS author_name FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
|
|
30247
30257
|
var iso7 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
30248
30258
|
var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -30355,7 +30365,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30355
30365
|
};
|
|
30356
30366
|
}, "factsStoreOver");
|
|
30357
30367
|
|
|
30358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
30359
30369
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
30360
30370
|
throw new CliError("validation_error", message2);
|
|
30361
30371
|
}, "invalid");
|
|
@@ -30445,7 +30455,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
30445
30455
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes };
|
|
30446
30456
|
}, "findingsCoreOver");
|
|
30447
30457
|
|
|
30448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
30449
30459
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
30450
30460
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
30451
30461
|
var iso8 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -30591,7 +30601,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30591
30601
|
};
|
|
30592
30602
|
}, "proposedActionsStoreOver");
|
|
30593
30603
|
|
|
30594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
30595
30605
|
var stale = /* @__PURE__ */ __name(() => {
|
|
30596
30606
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
30597
30607
|
reason: "evidence-findings.stale"
|
|
@@ -30757,7 +30767,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30757
30767
|
};
|
|
30758
30768
|
}, "evidenceFindingsStoreOver");
|
|
30759
30769
|
|
|
30760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
30761
30771
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
30762
30772
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
30763
30773
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -30810,7 +30820,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
30810
30820
|
}, "forPerson")
|
|
30811
30821
|
}), "involvementStoreOver");
|
|
30812
30822
|
|
|
30813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
30814
30824
|
import { createHash as createHash12 } from "node:crypto";
|
|
30815
30825
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
30816
30826
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -30896,16 +30906,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
30896
30906
|
};
|
|
30897
30907
|
}, "meetingProjectsStoreOver");
|
|
30898
30908
|
|
|
30899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
30900
30910
|
import { createHash as createHash15 } from "node:crypto";
|
|
30901
30911
|
|
|
30902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
30903
30913
|
import { createHash as createHash14 } from "node:crypto";
|
|
30904
30914
|
|
|
30905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
30906
30916
|
import { createHash as createHash13 } from "node:crypto";
|
|
30907
30917
|
|
|
30908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
30909
30919
|
var consolidationId = /* @__PURE__ */ __name((value, field3) => {
|
|
30910
30920
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
30911
30921
|
throw new CliError("validation_error", `${field3} must be a positive canonical tag id`);
|
|
@@ -30956,7 +30966,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
30956
30966
|
return input;
|
|
30957
30967
|
}, "consolidationApplyInput");
|
|
30958
30968
|
|
|
30959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
30960
30970
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
30961
30971
|
id: String(row2.id),
|
|
30962
30972
|
sourceId: String(row2.source_id),
|
|
@@ -31031,7 +31041,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
31031
31041
|
}, { beforeCommit: check3 });
|
|
31032
31042
|
}, "applyTagConsolidation");
|
|
31033
31043
|
|
|
31034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31035
31045
|
var selections = [
|
|
31036
31046
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
31037
31047
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -31175,7 +31185,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
31175
31185
|
};
|
|
31176
31186
|
}, "previewRows");
|
|
31177
31187
|
|
|
31178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31179
31189
|
var kinds = ["project", "tag", "topic"];
|
|
31180
31190
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
31181
31191
|
if (signal?.aborted)
|
|
@@ -31439,7 +31449,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31439
31449
|
};
|
|
31440
31450
|
}, "vocabularyStoreOver");
|
|
31441
31451
|
|
|
31442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
31443
31453
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
31444
31454
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
31445
31455
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -31603,6 +31613,7 @@ var knowledgeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31603
31613
|
ref: `project:${row2.id}`,
|
|
31604
31614
|
key: String(row2.key),
|
|
31605
31615
|
name: String(row2.name),
|
|
31616
|
+
kind: String(row2.key).length === INBOX_KEY_LENGTH ? "inbox" : "project",
|
|
31606
31617
|
type: row2.type,
|
|
31607
31618
|
organizationId: row2.organization_id == null ? null : String(row2.organization_id),
|
|
31608
31619
|
scope: row2.scope,
|
|
@@ -31834,15 +31845,18 @@ var knowledgeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31834
31845
|
return projectOf(row2);
|
|
31835
31846
|
}), "addProject"),
|
|
31836
31847
|
projects: /* @__PURE__ */ __name(async (query) => {
|
|
31848
|
+
const asksKind = query !== void 0 && walkQuery(query.root).some((node) => node.field === "kind");
|
|
31837
31849
|
const where = query && queryFilter(query, {
|
|
31838
31850
|
id: { type: "kw", sql: "CAST(id AS TEXT)" },
|
|
31839
31851
|
key: { type: "kw", sql: "key" },
|
|
31852
|
+
name: { type: "kw", sql: "name" },
|
|
31853
|
+
kind: { type: "enum", sql: `CASE WHEN length(key) = ${INBOX_KEY_LENGTH} THEN 'inbox' ELSE 'project' END` },
|
|
31840
31854
|
type: { type: "enum", sql: "type" },
|
|
31841
31855
|
organization_id: { type: "kw", sql: "CAST(organization_id AS TEXT)" },
|
|
31842
31856
|
scope: { type: "enum", sql: "scope" },
|
|
31843
31857
|
created_at: { type: "time", sql: "created_at" }
|
|
31844
31858
|
});
|
|
31845
|
-
return database.prepare(`SELECT * FROM projects WHERE deleted_at IS NULL${where ? ` AND (${where.sql})` : ""} ORDER BY name, id LIMIT 500`).all(...where?.params ?? []).map(projectOf);
|
|
31859
|
+
return database.prepare(`SELECT * FROM projects WHERE deleted_at IS NULL${asksKind ? "" : ` AND length(key) <> ${INBOX_KEY_LENGTH}`}${where ? ` AND (${where.sql})` : ""} ORDER BY name, id LIMIT 500`).all(...where?.params ?? []).map(projectOf);
|
|
31846
31860
|
}, "projects"),
|
|
31847
31861
|
relate: /* @__PURE__ */ __name(async (key2, input) => {
|
|
31848
31862
|
const from2 = related(key2, input.from, true);
|
|
@@ -31956,7 +31970,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
31956
31970
|
return key2.padEnd(3, "X");
|
|
31957
31971
|
}, "projectKey");
|
|
31958
31972
|
|
|
31959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
31960
31974
|
var DAY4 = 864e5;
|
|
31961
31975
|
var SETTING4 = "logs_pruned_at";
|
|
31962
31976
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY4, botUpdatePayloadsMs: 30 * DAY4 };
|
|
@@ -31983,7 +31997,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
31983
31997
|
};
|
|
31984
31998
|
}, "logPruner");
|
|
31985
31999
|
|
|
31986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
31987
32001
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
31988
32002
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
31989
32003
|
reason: "meeting-findings.stale"
|
|
@@ -32152,7 +32166,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32152
32166
|
};
|
|
32153
32167
|
}, "meetingFindingsStoreOver");
|
|
32154
32168
|
|
|
32155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
32156
32170
|
var RANK_BATCH = 512;
|
|
32157
32171
|
var LIVE3 = "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";
|
|
32158
32172
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -32423,7 +32437,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
32423
32437
|
}
|
|
32424
32438
|
}), "meetingVectorsOver");
|
|
32425
32439
|
|
|
32426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
32427
32441
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
32428
32442
|
var TEXTS = {
|
|
32429
32443
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -32524,11 +32538,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32524
32538
|
};
|
|
32525
32539
|
}, "sourceMentionStoreOver");
|
|
32526
32540
|
|
|
32527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
32528
32542
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
32529
32543
|
import { dirname } from "node:path";
|
|
32530
32544
|
|
|
32531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
32532
32546
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
32533
32547
|
var CLIENTS_SETTING = "clients";
|
|
32534
32548
|
var coreVersion = (() => {
|
|
@@ -32586,7 +32600,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
32586
32600
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
32587
32601
|
}, "refusalAdvice");
|
|
32588
32602
|
|
|
32589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
32590
32604
|
var GENERATED = [
|
|
32591
32605
|
{
|
|
32592
32606
|
"name": "20261010184427_initial",
|
|
@@ -33383,7 +33397,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
33383
33397
|
}
|
|
33384
33398
|
];
|
|
33385
33399
|
|
|
33386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
33387
33401
|
var MANIFEST = [
|
|
33388
33402
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
33389
33403
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -33454,7 +33468,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
33454
33468
|
return migrations;
|
|
33455
33469
|
}, "generatedMigrations");
|
|
33456
33470
|
|
|
33457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
33458
33472
|
var MIGRATIONS = generatedMigrations();
|
|
33459
33473
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
33460
33474
|
version INTEGER PRIMARY KEY,
|
|
@@ -33507,7 +33521,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
33507
33521
|
}
|
|
33508
33522
|
}, "migrate");
|
|
33509
33523
|
|
|
33510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
33511
33525
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
33512
33526
|
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 ?");
|
|
33513
33527
|
if (pending.get(0, 1) === void 0)
|
|
@@ -33529,7 +33543,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
33529
33543
|
}
|
|
33530
33544
|
}, "fillJoinKeys");
|
|
33531
33545
|
|
|
33532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
33533
33547
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
33534
33548
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
33535
33549
|
try {
|
|
@@ -33542,8 +33556,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
33542
33556
|
}, "openSqlite");
|
|
33543
33557
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33544
33558
|
quietSqliteWarning();
|
|
33545
|
-
const { drizzle } = await import("./node-
|
|
33546
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
33559
|
+
const { drizzle } = await import("./node-ZRLYQL7J.js");
|
|
33560
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-BBEDYBWO.js");
|
|
33547
33561
|
const client = await nodeClient(path, { readOnly });
|
|
33548
33562
|
try {
|
|
33549
33563
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33553,8 +33567,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33553
33567
|
}
|
|
33554
33568
|
}, "openUnderNode");
|
|
33555
33569
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33556
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
33557
|
-
const { drizzle } = await import("./bun-
|
|
33570
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-PEJM6CS4.js");
|
|
33571
|
+
const { drizzle } = await import("./bun-O6RL6LRQ.js");
|
|
33558
33572
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
33559
33573
|
try {
|
|
33560
33574
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33564,7 +33578,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33564
33578
|
}
|
|
33565
33579
|
}, "openUnderBun");
|
|
33566
33580
|
|
|
33567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
33568
33582
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
33569
33583
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
33570
33584
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -33579,7 +33593,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
33579
33593
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
33580
33594
|
}, "assertReadCompatible");
|
|
33581
33595
|
|
|
33582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
33583
33597
|
var BACKFILL_ON_OPEN = 5e3;
|
|
33584
33598
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
33585
33599
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -33635,13 +33649,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
33635
33649
|
}
|
|
33636
33650
|
}, "openStoreContext");
|
|
33637
33651
|
|
|
33638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
33639
33653
|
import { createHash as createHash17 } from "node:crypto";
|
|
33640
33654
|
|
|
33641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
33642
33656
|
import { createHash as createHash16 } from "node:crypto";
|
|
33643
33657
|
|
|
33644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
33645
33659
|
var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
33646
33660
|
var ref = text3(2048);
|
|
33647
33661
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -33707,7 +33721,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
33707
33721
|
}))
|
|
33708
33722
|
});
|
|
33709
33723
|
|
|
33710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
33711
33725
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
33712
33726
|
var invalid5 = /* @__PURE__ */ __name((field3) => {
|
|
33713
33727
|
throw new CliError("validation_error", `invalid project annotations.${field3}`);
|
|
@@ -33840,7 +33854,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
33840
33854
|
return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
|
|
33841
33855
|
}, "projectAnnotationsFingerprint");
|
|
33842
33856
|
|
|
33843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
33844
33858
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
33845
33859
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
33846
33860
|
var targetSchema = strictObject({
|
|
@@ -33947,7 +33961,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
33947
33961
|
}, "planBoundProjectAnnotations");
|
|
33948
33962
|
var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
|
|
33949
33963
|
|
|
33950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
33951
33965
|
import { createHash as createHash18 } from "node:crypto";
|
|
33952
33966
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
33953
33967
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -34041,7 +34055,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
34041
34055
|
})).digest("hex");
|
|
34042
34056
|
}, "projectAnnotationSnapshotFingerprint");
|
|
34043
34057
|
|
|
34044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
34045
34059
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
34046
34060
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
34047
34061
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -34058,7 +34072,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
34058
34072
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
34059
34073
|
}, "projectAnnotationRequest");
|
|
34060
34074
|
|
|
34061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
34062
34076
|
var SnapshotBudget = class {
|
|
34063
34077
|
static {
|
|
34064
34078
|
__name(this, "SnapshotBudget");
|
|
@@ -34084,13 +34098,13 @@ var SnapshotBudget = class {
|
|
|
34084
34098
|
}
|
|
34085
34099
|
};
|
|
34086
34100
|
|
|
34087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34088
34102
|
import { createHash as createHash20 } from "node:crypto";
|
|
34089
34103
|
|
|
34090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
34091
34105
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
34092
34106
|
|
|
34093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
34094
34108
|
import { createHash as createHash19 } from "node:crypto";
|
|
34095
34109
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
34096
34110
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -34233,7 +34247,7 @@ var ProjectSnapshotSources = class {
|
|
|
34233
34247
|
}
|
|
34234
34248
|
};
|
|
34235
34249
|
|
|
34236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
34237
34251
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
34238
34252
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
34239
34253
|
}, "unsupported");
|
|
@@ -34404,7 +34418,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, bud
|
|
|
34404
34418
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
34405
34419
|
}), "projectAnnotationSnapshot");
|
|
34406
34420
|
|
|
34407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34408
34422
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, manifest, bindings, budget) => read(database, () => {
|
|
34409
34423
|
const current = projectAnnotationSnapshot(database, projectId, budget).snapshot;
|
|
34410
34424
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -34466,7 +34480,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, man
|
|
|
34466
34480
|
};
|
|
34467
34481
|
}), "previewAnnotationSnapshot");
|
|
34468
34482
|
|
|
34469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
34470
34484
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snapshot2, bindings) => {
|
|
34471
34485
|
const mappings = { ...bindings };
|
|
34472
34486
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -34508,7 +34522,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snap
|
|
|
34508
34522
|
return mappings;
|
|
34509
34523
|
}, "restoreAnnotationRecords");
|
|
34510
34524
|
|
|
34511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
34512
34526
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
34513
34527
|
async preview(request) {
|
|
34514
34528
|
const { snapshot: snapshot2, projectId } = projectAnnotationRequest(request);
|
|
@@ -34538,7 +34552,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
34538
34552
|
}
|
|
34539
34553
|
}), "projectAnnotationStoreOver");
|
|
34540
34554
|
|
|
34541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
34542
34556
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
34543
34557
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
34544
34558
|
let merged = { from: from2, to };
|
|
@@ -34551,7 +34565,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
34551
34565
|
}, "markRange");
|
|
34552
34566
|
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");
|
|
34553
34567
|
|
|
34554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
34555
34569
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
34556
34570
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
34557
34571
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -34561,7 +34575,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
34561
34575
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(keyOf4(account), JSON.stringify(until), now2);
|
|
34562
34576
|
}, "setTaskRulesStop");
|
|
34563
34577
|
|
|
34564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
34565
34579
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34566
34580
|
const { database } = context;
|
|
34567
34581
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -34617,7 +34631,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34617
34631
|
};
|
|
34618
34632
|
}, "syncStoreOver");
|
|
34619
34633
|
|
|
34620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
34621
34635
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34622
34636
|
const { database } = context;
|
|
34623
34637
|
return {
|
|
@@ -34639,7 +34653,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34639
34653
|
};
|
|
34640
34654
|
}, "tagsStoreOver");
|
|
34641
34655
|
|
|
34642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
34643
34657
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
34644
34658
|
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
|
|
34645
34659
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -34766,7 +34780,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
34766
34780
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
34767
34781
|
}, "savePictureChunks");
|
|
34768
34782
|
|
|
34769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
34770
34784
|
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,
|
|
34771
34785
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
34772
34786
|
FROM messages m
|
|
@@ -34849,7 +34863,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
34849
34863
|
return plain2(best(found2));
|
|
34850
34864
|
}, "nearestMessages");
|
|
34851
34865
|
|
|
34852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
34853
34867
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
34854
34868
|
const { database } = context;
|
|
34855
34869
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -35103,7 +35117,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
35103
35117
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
35104
35118
|
}), "vectorsStoreOver");
|
|
35105
35119
|
|
|
35106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
35107
35121
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
35108
35122
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
35109
35123
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -35191,10 +35205,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
35191
35205
|
}
|
|
35192
35206
|
}, "lastBackup");
|
|
35193
35207
|
|
|
35194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
35195
35209
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
35196
35210
|
|
|
35197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
35198
35212
|
var COUNTED_TABLES = [
|
|
35199
35213
|
"accounts",
|
|
35200
35214
|
"chats",
|
|
@@ -35279,7 +35293,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
35279
35293
|
};
|
|
35280
35294
|
}, "storeContents");
|
|
35281
35295
|
|
|
35282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
35283
35297
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
35284
35298
|
const context = await openStoreContext(options);
|
|
35285
35299
|
try {
|