@wirecat/drive-cli 0.60.0 → 0.61.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/README.md +4 -5
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-537I27Z4.js → all-profiles-H4L3Z5UM.js} +14 -14
- package/dist/bundle/{anthropic-X4NWVHDF.js → anthropic-PPGFISVP.js} +9 -9
- package/dist/bundle/{app-server-KSHJKKS7.js → app-server-YXVK2FUZ.js} +52 -52
- package/dist/bundle/{bun-WTBGGCUC.js → bun-DKZAL6ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-T7Y3JFFD.js → bun-sqlite-MTZY36QK.js} +8 -8
- package/dist/bundle/{chunk-VRW6ZDTH.js → chunk-2RJA4BQB.js} +19 -19
- package/dist/bundle/{chunk-VVCZS42A.js → chunk-3252WXOL.js} +1 -1
- package/dist/bundle/{chunk-3TQHIHZI.js → chunk-36CWGEVX.js} +2 -2
- package/dist/bundle/{chunk-AXWXQNTC.js → chunk-3I2D5TK2.js} +10 -10
- package/dist/bundle/{chunk-PDYHEWKG.js → chunk-3SJQNS72.js} +5 -5
- package/dist/bundle/{chunk-PPL5ASW2.js → chunk-3UPIJ7DW.js} +280 -280
- package/dist/bundle/{chunk-PETFPXLU.js → chunk-3WZH3WV3.js} +3 -3
- package/dist/bundle/{chunk-5XHLQZAG.js → chunk-5W56YMQS.js} +25 -25
- package/dist/bundle/{chunk-IXN7Y6JA.js → chunk-5W7D5H2R.js} +1 -1
- package/dist/bundle/{chunk-FZOCQQ66.js → chunk-67HS46KM.js} +12 -12
- package/dist/bundle/{chunk-HFGR33KD.js → chunk-6DN4VPA7.js} +25 -25
- package/dist/bundle/{chunk-HIP43OGZ.js → chunk-6IBM4Z3V.js} +1 -1
- package/dist/bundle/{chunk-V7QMHMR3.js → chunk-6SUGANRJ.js} +6 -6
- package/dist/bundle/{chunk-LQSRVQ3V.js → chunk-6Y2FWJZ4.js} +3 -3
- package/dist/bundle/{chunk-GVRS5AIH.js → chunk-73WSULMI.js} +2 -2
- package/dist/bundle/{chunk-ZPQS7XJA.js → chunk-AM4RIWOZ.js} +4 -4
- package/dist/bundle/{chunk-HCJG7ENG.js → chunk-AWN22PJK.js} +3 -3
- package/dist/bundle/{chunk-YDN2RH5S.js → chunk-BCWUDTYQ.js} +2 -2
- package/dist/bundle/{chunk-GD6TQ6U4.js → chunk-BF6TQMNB.js} +8 -8
- package/dist/bundle/chunk-BQMIDYBA.js +415 -0
- package/dist/bundle/{chunk-JQLIM6BH.js → chunk-BXR7BKM3.js} +1 -1
- package/dist/bundle/{chunk-MVNPE5FZ.js → chunk-CACYL36O.js} +8 -8
- package/dist/bundle/{chunk-246P2DCT.js → chunk-DCBFNBEB.js} +113 -51
- package/dist/bundle/{chunk-TXMTMEHW.js → chunk-DEPMQHXQ.js} +4 -4
- package/dist/bundle/{chunk-O37ESNAP.js → chunk-DXPOVLQC.js} +46 -28
- package/dist/bundle/{chunk-CKGHRWVR.js → chunk-E5EXJ2XS.js} +4 -4
- package/dist/bundle/{chunk-4CBZEAQ7.js → chunk-E6J5YH2N.js} +34 -34
- package/dist/bundle/{chunk-4XZXH2NM.js → chunk-ECEYAQGN.js} +2 -2
- package/dist/bundle/{chunk-XDIEQ2CE.js → chunk-EPCJUL6M.js} +3 -3
- package/dist/bundle/{chunk-EHAI773E.js → chunk-FE5JJXKA.js} +2 -2
- package/dist/bundle/{chunk-DQDKLZAK.js → chunk-HFM653T3.js} +49 -49
- package/dist/bundle/{chunk-UVYVIHEA.js → chunk-HGOYQUT7.js} +1 -1
- package/dist/bundle/{chunk-KEXTTZJM.js → chunk-I26VL4W7.js} +2 -2
- package/dist/bundle/{chunk-LJ77Y3TK.js → chunk-J4HQVHMN.js} +6 -5
- package/dist/bundle/{chunk-YGG7UA3C.js → chunk-J5UDQD5S.js} +5 -5
- package/dist/bundle/{chunk-73TTP6ET.js → chunk-JVBLXSAA.js} +141 -141
- package/dist/bundle/{chunk-N7S2UPF3.js → chunk-K7LS3NGM.js} +55 -55
- package/dist/bundle/{chunk-2AXA5SKP.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-IRZ7OF3F.js → chunk-LARQTWIL.js} +1 -1
- package/dist/bundle/{chunk-QIJWSKZL.js → chunk-N2RLJTIW.js} +4 -4
- package/dist/bundle/{chunk-HQVIK6PM.js → chunk-NIX2MWHZ.js} +242 -362
- package/dist/bundle/{chunk-4VHBDVY2.js → chunk-NZ2EIZLX.js} +14 -10
- package/dist/bundle/{chunk-SZXI4OXX.js → chunk-O5CUFS7T.js} +2 -2
- package/dist/bundle/{chunk-FO4TCH6P.js → chunk-OFFA54TW.js} +2 -2
- package/dist/bundle/{chunk-W62CON5K.js → chunk-OGNOQDWB.js} +4 -4
- package/dist/bundle/{chunk-OYNUBWD2.js → chunk-OLPJRD4S.js} +1 -1
- package/dist/bundle/{chunk-67QXMO2G.js → chunk-PJTX2MOI.js} +26 -26
- package/dist/bundle/{chunk-MXP35VPO.js → chunk-PY7LKNOS.js} +2 -2
- package/dist/bundle/{chunk-FTZNUZO7.js → chunk-Q4XVBKX4.js} +3 -3
- package/dist/bundle/{chunk-5AMRCBMP.js → chunk-QR5VQXQ5.js} +26 -26
- package/dist/bundle/{chunk-S36HRPNS.js → chunk-QSGT4ZH4.js} +1 -1
- package/dist/bundle/{chunk-57QVQGBE.js → chunk-RFRCOAWS.js} +22 -22
- package/dist/bundle/{chunk-DMHGWL5D.js → chunk-S4YK6TTG.js} +13 -13
- package/dist/bundle/{chunk-UVLSWLPZ.js → chunk-TKGAYKXW.js} +16 -16
- package/dist/bundle/{chunk-SBHSNOU4.js → chunk-UKOYQC5O.js} +19 -18
- package/dist/bundle/{chunk-XFXRGQXJ.js → chunk-UO2IUDVK.js} +2 -2
- package/dist/bundle/{chunk-UTFATA4K.js → chunk-VPDAH7PJ.js} +1 -1
- package/dist/bundle/{chunk-TKW4QWCY.js → chunk-VYXVPYA3.js} +12 -6
- package/dist/bundle/{chunk-YYHKVOVK.js → chunk-W767AUNR.js} +4 -4
- package/dist/bundle/{chunk-73MNUSP3.js → chunk-WIU733D2.js} +1 -1
- package/dist/bundle/{chunk-UNJE63JK.js → chunk-WUP2MJDN.js} +2 -2
- package/dist/bundle/{chunk-EBLA7GXY.js → chunk-WZ5XK74U.js} +2 -1
- package/dist/bundle/{chunk-77C5XRH3.js → chunk-X2CXW4HM.js} +7 -7
- package/dist/bundle/{chunk-D6WIWOQC.js → chunk-XGMDWIUP.js} +4 -4
- package/dist/bundle/{chunk-K6XVRA6U.js → chunk-XGNC5OJG.js} +1 -1
- package/dist/bundle/{chunk-ALWTUDZF.js → chunk-XLFJLZJL.js} +4 -4
- package/dist/bundle/{chunk-JGUJJNGZ.js → chunk-XYCCGGKN.js} +242 -242
- package/dist/bundle/{chunk-TVQDMP2F.js → chunk-XZBR2O63.js} +271 -271
- package/dist/bundle/{chunk-OMKUBCNN.js → chunk-YMBFZA3H.js} +8 -8
- package/dist/bundle/{chunk-ZYCLPJ7U.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-6HTKB4WC.js → chunk-YWIU4HOT.js} +1 -1
- package/dist/bundle/{chunk-V2VMBM7O.js → chunk-ZHYRHERD.js} +2 -2
- package/dist/bundle/{chunk-22ATLSNK.js → chunk-ZMNYK3FC.js} +5 -5
- package/dist/bundle/command-contract-T3EO5AYD.js +39 -0
- package/dist/bundle/{decode-35N57AFW.js → decode-62A3HGPW.js} +8 -8
- package/dist/bundle/{dispatch-CWXZW3PL.js → dispatch-IE7PBEQC.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-3P3QZWMU.js → echarts-BGBPRGR5.js} +2 -2
- package/dist/bundle/{embed-Q6Q5IOJQ.js → embed-J3IBVV2V.js} +9 -9
- package/dist/bundle/{embedder-D44JDTAA.js → embedder-QFPMDRT2.js} +12 -12
- package/dist/bundle/entry-YQSYER66.js +22 -0
- package/dist/bundle/{failure-GRMMSDCZ.js → failure-BKOGBMIC.js} +4 -4
- package/dist/bundle/first-run-ZIFPVZAI.js +30 -0
- package/dist/bundle/first-screen-L5U26EY7.js +37 -0
- package/dist/bundle/{google-6ZZDKFBN.js → google-RXM2XEPD.js} +13 -13
- package/dist/bundle/{google-api-E6MOJ4ZD.js → google-api-NC65BZO4.js} +83 -64
- package/dist/bundle/grants-SEWUYYH3.js +105 -0
- package/dist/bundle/{identity-TID7S5NE.js → identity-PI6F2GWA.js} +6 -6
- package/dist/bundle/{instructions-ANJN4HV3.js → instructions-6LPDSKAD.js} +1 -1
- package/dist/bundle/{login-BGMK2ABH.js → login-HTY7GT2S.js} +64 -64
- package/dist/bundle/{mcp-WBHKX5E3.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/{node-VOB45ES2.js → node-IB246NCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-TSX6XQY2.js → node-sqlite-G2Y5SFJM.js} +9 -9
- package/dist/bundle/oauth-MWBKBI4T.js +22 -0
- package/dist/bundle/{open-3USWHGNR.js → open-WD4GFSJD.js} +8 -8
- package/dist/bundle/{openai-YZ5VGPIP.js → openai-QVM4PMY7.js} +17 -17
- package/dist/bundle/{process-44JS2W7L.js → process-SWPJGPQC.js} +1 -1
- package/dist/bundle/{program-TZLAFKJV.js → program-WHYFAMXR.js} +117 -98
- package/dist/bundle/prompt-OVYCGZB7.js +17 -0
- package/dist/bundle/{reasons-ZK3U3CIN.js → reasons-Q34DQWB6.js} +5 -5
- package/dist/bundle/{recognize-OFW7HWTM.js → recognize-DM3YWHSE.js} +7 -7
- package/dist/bundle/{remote-YBDRZQZ5.js → remote-KXVWRK7J.js} +10 -10
- package/dist/bundle/{rerank-TQQNS5FJ.js → rerank-TINXM3MY.js} +10 -10
- package/dist/bundle/{serve-OPZXMVLH.js → serve-IY2WL656.js} +12 -12
- package/dist/bundle/server-EMWVVT2C.js +70 -0
- package/dist/bundle/{server-2D6DDIK5.js → server-VPY3OWPC.js} +44 -44
- package/dist/bundle/{services-34WKT3NN.js → services-PXNBOCOC.js} +32 -32
- package/dist/bundle/{sqlite-runtime-WPUMKLUV.js → sqlite-runtime-5ZK2CV7Y.js} +9 -9
- package/dist/bundle/{start-ZXUJZ4JV.js → start-LDVCN3DK.js} +7 -7
- package/dist/bundle/{state-AV2RB3AQ.js → state-3MKTT3VS.js} +9 -9
- package/dist/bundle/{store-3M7N2Q5T.js → store-4VQOT5IJ.js} +18 -18
- package/dist/bundle/{store-YKV4GAMS.js → store-7M4MSUJV.js} +20 -20
- package/dist/bundle/store-maintenance-command-NRATYBWD.js +60 -0
- package/dist/bundle/tokens-XUKLM3SL.js +103 -0
- package/dist/commands/config.js +1 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +10 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +16 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -17
- package/dist/config.js.map +1 -1
- package/dist/download.d.ts +3 -2
- package/dist/download.d.ts.map +1 -1
- package/dist/download.js +21 -9
- package/dist/download.js.map +1 -1
- package/dist/google-api.d.ts +3 -1
- package/dist/google-api.d.ts.map +1 -1
- package/dist/google-api.js +27 -7
- package/dist/google-api.js.map +1 -1
- package/dist/login.js +1 -1
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +6 -6
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-77YTRBL6.js +0 -249
- package/dist/bundle/command-contract-NUIWUVYB.js +0 -39
- package/dist/bundle/entry-ZHCNI7XO.js +0 -22
- package/dist/bundle/first-run-3DC2SDWM.js +0 -30
- package/dist/bundle/first-screen-YJF4YODC.js +0 -37
- package/dist/bundle/grants-GWXDH5GM.js +0 -105
- package/dist/bundle/oauth-CEOYXW6C.js +0 -22
- package/dist/bundle/prompt-SG7LAOXW.js +0 -17
- package/dist/bundle/server-R6G2O772.js +0 -70
- package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +0 -60
- package/dist/bundle/tokens-F63RXXEF.js +0 -103
- package/dist/oauth-application.d.ts +0 -5
- package/dist/oauth-application.d.ts.map +0 -1
- package/dist/oauth-application.js +0 -9
- package/dist/oauth-application.js.map +0 -1
- /package/dist/bundle/{chunk-LK2E2ELG.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
MAX_TEXT_CHARS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WUP2MJDN.js";
|
|
6
6
|
import {
|
|
7
7
|
CHAT_MESSAGES_READ,
|
|
8
8
|
FACT_STATUSES,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
validateMeetingRelatedHistory,
|
|
64
64
|
validateMeetingSeriesHistory,
|
|
65
65
|
validatePayment
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-K7LS3NGM.js";
|
|
67
67
|
import {
|
|
68
68
|
OPERATORS_BY_TYPE,
|
|
69
69
|
QUERY_LIMITS,
|
|
@@ -76,11 +76,11 @@ import {
|
|
|
76
76
|
validateQuery,
|
|
77
77
|
walkQuery,
|
|
78
78
|
zonedMoment
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-NZ2EIZLX.js";
|
|
80
80
|
import {
|
|
81
81
|
holdsCredential,
|
|
82
82
|
secretNamed
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-VPDAH7PJ.js";
|
|
84
84
|
import {
|
|
85
85
|
DEFAULT_STEMMERS,
|
|
86
86
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -93,21 +93,21 @@ import {
|
|
|
93
93
|
fold,
|
|
94
94
|
normalize,
|
|
95
95
|
parseStemmers
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-CACYL36O.js";
|
|
97
97
|
import {
|
|
98
98
|
DEFAULT_TASK_CATEGORIES,
|
|
99
99
|
sharedConfigPath,
|
|
100
100
|
storedTaskCategories,
|
|
101
101
|
taskCategoriesReader
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-X2CXW4HM.js";
|
|
103
103
|
import {
|
|
104
104
|
refuseOwnerStoreInTests,
|
|
105
105
|
storePath
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-I26VL4W7.js";
|
|
107
107
|
import {
|
|
108
108
|
quietSqliteWarning,
|
|
109
109
|
storeCapable
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-6SUGANRJ.js";
|
|
111
111
|
import {
|
|
112
112
|
SQLiteTable,
|
|
113
113
|
TableAliasProxyHandler,
|
|
@@ -132,18 +132,18 @@ import {
|
|
|
132
132
|
sql,
|
|
133
133
|
sqliteTable,
|
|
134
134
|
text
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-XGNC5OJG.js";
|
|
136
136
|
import {
|
|
137
137
|
PRAGMAS,
|
|
138
138
|
TIME_LIMIT_FUNCTION,
|
|
139
139
|
TimeLimitReached
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-HGOYQUT7.js";
|
|
141
141
|
import {
|
|
142
142
|
resolveFrom
|
|
143
143
|
} from "./chunk-Y5E2WNWB.js";
|
|
144
144
|
import {
|
|
145
145
|
singleLine
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-6IBM4Z3V.js";
|
|
147
147
|
import {
|
|
148
148
|
array,
|
|
149
149
|
boolean,
|
|
@@ -160,16 +160,16 @@ import {
|
|
|
160
160
|
safeParse,
|
|
161
161
|
strictObject,
|
|
162
162
|
string
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-VYXVPYA3.js";
|
|
164
164
|
import {
|
|
165
165
|
CliError,
|
|
166
166
|
isCliError
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-WZ5XK74U.js";
|
|
168
168
|
import {
|
|
169
169
|
__name
|
|
170
170
|
} from "./chunk-ZVVMGPBJ.js";
|
|
171
171
|
|
|
172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
173
173
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
174
174
|
const methods = whole;
|
|
175
175
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -297,7 +297,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
297
297
|
};
|
|
298
298
|
}, "bindAccount");
|
|
299
299
|
|
|
300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
301
301
|
var SCHEME = "msg:";
|
|
302
302
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
303
303
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -311,7 +311,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
311
311
|
return { provider, account, chat: chat2, message: message2 };
|
|
312
312
|
}, "parseLocator");
|
|
313
313
|
|
|
314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
315
315
|
var SIMPLE_REFERENCES = [
|
|
316
316
|
"note",
|
|
317
317
|
"document",
|
|
@@ -458,7 +458,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
458
458
|
return match !== null && byPrefix.has(match[1]);
|
|
459
459
|
}, "looksLikeReference");
|
|
460
460
|
|
|
461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
462
462
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
463
463
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
464
464
|
var PROVIDERS = [
|
|
@@ -574,7 +574,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
574
574
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
575
575
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
576
576
|
|
|
577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
578
578
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
579
579
|
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");
|
|
580
580
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -597,7 +597,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
597
597
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
598
598
|
}, "sourceOf");
|
|
599
599
|
|
|
600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
601
601
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
602
602
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
603
603
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -784,7 +784,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
|
|
|
784
784
|
return { accounts: [...chosen.values()], skipped };
|
|
785
785
|
}, "fitting");
|
|
786
786
|
|
|
787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
788
788
|
var IndexBuilderOn = class {
|
|
789
789
|
static {
|
|
790
790
|
__name(this, "IndexBuilderOn");
|
|
@@ -979,7 +979,7 @@ function alias(table, alias2) {
|
|
|
979
979
|
}
|
|
980
980
|
__name(alias, "alias");
|
|
981
981
|
|
|
982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
983
983
|
var ENTITY_TABLES = {
|
|
984
984
|
account: "accounts",
|
|
985
985
|
attachment: "attachments",
|
|
@@ -1021,7 +1021,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
1021
1021
|
return { table, pointer, type, count, known: known2 };
|
|
1022
1022
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
1023
1023
|
|
|
1024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
1025
1025
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
1026
1026
|
id: integer("id").primaryKey(),
|
|
1027
1027
|
name: text("name").notNull().unique(),
|
|
@@ -1030,7 +1030,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
1030
1030
|
updatedAt: integer("updated_at").notNull()
|
|
1031
1031
|
});
|
|
1032
1032
|
|
|
1033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
1034
1034
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
1035
1035
|
sourceKey: text("source_key").notNull(),
|
|
1036
1036
|
collection: text("collection").notNull(),
|
|
@@ -1040,13 +1040,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
1040
1040
|
createdAt: integer("created_at").notNull()
|
|
1041
1041
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
1042
1042
|
|
|
1043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
1044
1044
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
1045
1045
|
id: integer("id").notNull(),
|
|
1046
1046
|
indexableType: text("indexable_type").notNull()
|
|
1047
1047
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
1048
1048
|
|
|
1049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
1050
1050
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
1051
1051
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
1052
1052
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -1072,7 +1072,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
1072
1072
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
1073
1073
|
]);
|
|
1074
1074
|
|
|
1075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
1076
1076
|
var accounts = sqliteTable("accounts", {
|
|
1077
1077
|
id: integer("id").primaryKey(),
|
|
1078
1078
|
provider: text("provider").notNull(),
|
|
@@ -2695,7 +2695,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2695
2695
|
at: integer("at").notNull()
|
|
2696
2696
|
});
|
|
2697
2697
|
|
|
2698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2699
2699
|
var ARMS = [
|
|
2700
2700
|
[
|
|
2701
2701
|
"message",
|
|
@@ -2822,7 +2822,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2822
2822
|
return recomputed;
|
|
2823
2823
|
}, "drainInvolvementQueue");
|
|
2824
2824
|
|
|
2825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2826
2826
|
import { domainToUnicode } from "node:url";
|
|
2827
2827
|
|
|
2828
2828
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12844,7 +12844,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12844
12844
|
}, "oa");
|
|
12845
12845
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12846
12846
|
|
|
12847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12848
12848
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12849
12849
|
var ID = /^[\w-]{10,}$/;
|
|
12850
12850
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12885,7 +12885,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
12885
12885
|
return { url, documentId: googleDocumentId(url) };
|
|
12886
12886
|
}), "googleDocumentLinks");
|
|
12887
12887
|
|
|
12888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12889
12889
|
var PHONE_PLANS = [
|
|
12890
12890
|
{
|
|
12891
12891
|
country: "us",
|
|
@@ -13265,7 +13265,7 @@ var PHONE_PLANS = [
|
|
|
13265
13265
|
}
|
|
13266
13266
|
];
|
|
13267
13267
|
|
|
13268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
13269
13269
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
13270
13270
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
13271
13271
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -13306,7 +13306,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
13306
13306
|
return void 0;
|
|
13307
13307
|
}, "nationalPhone");
|
|
13308
13308
|
|
|
13309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
13310
13310
|
var BEFORE = [
|
|
13311
13311
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
13312
13312
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13566,7 +13566,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
13566
13566
|
return found2.sort((a, b) => a.start - b.start);
|
|
13567
13567
|
}, "findPlaces");
|
|
13568
13568
|
|
|
13569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13570
13570
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13571
13571
|
var MENTION_VERSIONS = {
|
|
13572
13572
|
phone: 1,
|
|
@@ -13756,7 +13756,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13756
13756
|
};
|
|
13757
13757
|
}, "typedPhone");
|
|
13758
13758
|
|
|
13759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13760
13760
|
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";
|
|
13761
13761
|
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";
|
|
13762
13762
|
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";
|
|
@@ -13764,7 +13764,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13764
13764
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13765
13765
|
var NAME_WORDS = WORDS.split(" ");
|
|
13766
13766
|
|
|
13767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13768
13768
|
var LATIN_TO_CYRILLIC = {
|
|
13769
13769
|
shch: "\u0449",
|
|
13770
13770
|
sch: "\u0449",
|
|
@@ -13972,7 +13972,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
13972
13972
|
return found2;
|
|
13973
13973
|
}, "findUnknownNames");
|
|
13974
13974
|
|
|
13975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13976
13976
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13977
13977
|
"webpage",
|
|
13978
13978
|
"share",
|
|
@@ -14012,7 +14012,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
14012
14012
|
});
|
|
14013
14013
|
}, "matchDownloads");
|
|
14014
14014
|
|
|
14015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
14016
14016
|
var QUERY_VERSION = 1;
|
|
14017
14017
|
var QUERY_LIMITS2 = {
|
|
14018
14018
|
...QUERY_LIMITS,
|
|
@@ -14048,7 +14048,7 @@ function exhausted(budget) {
|
|
|
14048
14048
|
}
|
|
14049
14049
|
__name(exhausted, "exhausted");
|
|
14050
14050
|
|
|
14051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
14052
14052
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
14053
14053
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
14054
14054
|
kind: "char",
|
|
@@ -14448,7 +14448,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14448
14448
|
return out;
|
|
14449
14449
|
}, "foldRegex");
|
|
14450
14450
|
|
|
14451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14452
14452
|
var PRESET_VERSION = 1;
|
|
14453
14453
|
var PRESETS = {
|
|
14454
14454
|
password: {
|
|
@@ -14502,7 +14502,7 @@ var PRESETS = {
|
|
|
14502
14502
|
}
|
|
14503
14503
|
};
|
|
14504
14504
|
|
|
14505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14506
14506
|
var FIELD_VERSION = 2;
|
|
14507
14507
|
var UNITS = {
|
|
14508
14508
|
"": 1,
|
|
@@ -15014,12 +15014,12 @@ var QUERY_OPERATORS = [
|
|
|
15014
15014
|
{ name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
|
|
15015
15015
|
];
|
|
15016
15016
|
|
|
15017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
15018
15018
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
15019
15019
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
15020
15020
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
15021
15021
|
|
|
15022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
15023
15023
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
15024
15024
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
15025
15025
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -15043,7 +15043,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
15043
15043
|
};
|
|
15044
15044
|
}, "linkMatch");
|
|
15045
15045
|
|
|
15046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
15047
15047
|
var SETTING = "phoneCountries";
|
|
15048
15048
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
15049
15049
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -15074,7 +15074,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
15074
15074
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
15075
15075
|
}, "valueMatch");
|
|
15076
15076
|
|
|
15077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
15078
15078
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
15079
15079
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
15080
15080
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -15102,7 +15102,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
15102
15102
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
15103
15103
|
}, "vocabularySimilarity");
|
|
15104
15104
|
|
|
15105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
15106
15106
|
import { createHash } from "node:crypto";
|
|
15107
15107
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
15108
15108
|
try {
|
|
@@ -15168,7 +15168,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
|
|
|
15168
15168
|
});
|
|
15169
15169
|
}, "guardTagCreation");
|
|
15170
15170
|
|
|
15171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
15172
15172
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
15173
15173
|
throw new CliError("validation_error", message2);
|
|
15174
15174
|
}, "invalid");
|
|
@@ -15245,7 +15245,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
15245
15245
|
};
|
|
15246
15246
|
}, "createTagRedirectIndex");
|
|
15247
15247
|
|
|
15248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
15249
15249
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
15250
15250
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
15251
15251
|
if (!row2)
|
|
@@ -15273,7 +15273,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
15273
15273
|
return snapshot2;
|
|
15274
15274
|
}, "tagRedirectSnapshot");
|
|
15275
15275
|
|
|
15276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
15277
15277
|
import { createHash as createHash2 } from "node:crypto";
|
|
15278
15278
|
var TASK_KEY_PREFIXES = {
|
|
15279
15279
|
question: "Q",
|
|
@@ -15301,7 +15301,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15301
15301
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
15302
15302
|
}, "taskAccountOf");
|
|
15303
15303
|
|
|
15304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
15305
15305
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
15306
15306
|
var REFERABLE = {
|
|
15307
15307
|
note: { tombstone: true },
|
|
@@ -15465,7 +15465,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15465
15465
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
15466
15466
|
}, "taskIdOf");
|
|
15467
15467
|
|
|
15468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15469
15469
|
var toMs = /* @__PURE__ */ __name((iso13) => {
|
|
15470
15470
|
if (iso13 === null || iso13 === void 0)
|
|
15471
15471
|
return null;
|
|
@@ -15479,7 +15479,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15479
15479
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15480
15480
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15481
15481
|
|
|
15482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15483
15483
|
var TAG_KINDS = ["tag", "topic"];
|
|
15484
15484
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15485
15485
|
var TAG_TYPE = {
|
|
@@ -15682,7 +15682,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15682
15682
|
return result;
|
|
15683
15683
|
}, "tagsOf");
|
|
15684
15684
|
|
|
15685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15686
15686
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15687
15687
|
var SPEECH = speech("att");
|
|
15688
15688
|
var mentionText = /* @__PURE__ */ __name((alias2) => `CASE WHEN coalesce(json_extract(${alias2}.contact, '$.phone'), '') <> '' THEN 'phone: ' || json_extract(${alias2}.contact, '$.phone') ELSE ${alias2}.text END`, "mentionText");
|
|
@@ -16046,7 +16046,7 @@ var FIELD_COMPILERS = {
|
|
|
16046
16046
|
subject
|
|
16047
16047
|
};
|
|
16048
16048
|
|
|
16049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
16050
16050
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
16051
16051
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
16052
16052
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -16062,7 +16062,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
16062
16062
|
};
|
|
16063
16063
|
}, "placeOf");
|
|
16064
16064
|
|
|
16065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
16066
16066
|
var DRAIN_ON_WRITE = 500;
|
|
16067
16067
|
var METHOD = "rules";
|
|
16068
16068
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -16225,7 +16225,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
16225
16225
|
return queued.length;
|
|
16226
16226
|
}, "drainMentions");
|
|
16227
16227
|
|
|
16228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
16229
16229
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
16230
16230
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
16231
16231
|
if (!exists2)
|
|
@@ -16233,7 +16233,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
16233
16233
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
16234
16234
|
}, "indexRow");
|
|
16235
16235
|
|
|
16236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
16237
16237
|
var INDEX = "message_stems";
|
|
16238
16238
|
var SETTING2 = "searchStemmers";
|
|
16239
16239
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -16355,7 +16355,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
16355
16355
|
};
|
|
16356
16356
|
}, "stemmerCache");
|
|
16357
16357
|
|
|
16358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
16359
16359
|
var SQLITE_BUSY = 5;
|
|
16360
16360
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
16361
16361
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -16450,7 +16450,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
16450
16450
|
}
|
|
16451
16451
|
}, "read");
|
|
16452
16452
|
|
|
16453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
16454
16454
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
16455
16455
|
coalesce(CASE k.chunkable_type
|
|
16456
16456
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16592,7 +16592,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16592
16592
|
}, "dropUnusedVectors");
|
|
16593
16593
|
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");
|
|
16594
16594
|
|
|
16595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16596
16596
|
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({
|
|
16597
16597
|
target: [accounts.provider, accounts.externalId],
|
|
16598
16598
|
set: {
|
|
@@ -16701,7 +16701,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16701
16701
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16702
16702
|
}, "dropOrphanPeople");
|
|
16703
16703
|
|
|
16704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
16705
16705
|
var FOLDED = [
|
|
16706
16706
|
{ table: "tasks", column: "title" },
|
|
16707
16707
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -16738,7 +16738,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
16738
16738
|
return filled2;
|
|
16739
16739
|
}, "fillFolded");
|
|
16740
16740
|
|
|
16741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
16742
16742
|
var HISTORY_KEY = "$history";
|
|
16743
16743
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
16744
16744
|
if (typeof text6 !== "string")
|
|
@@ -16814,7 +16814,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
16814
16814
|
return rest;
|
|
16815
16815
|
}, "withoutHistory");
|
|
16816
16816
|
|
|
16817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16818
16818
|
import { createHash as createHash3 } from "node:crypto";
|
|
16819
16819
|
var CHUNK_CHARS = 1200;
|
|
16820
16820
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16919,7 +16919,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16919
16919
|
return chunks2;
|
|
16920
16920
|
}, "cutChunks");
|
|
16921
16921
|
|
|
16922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
16923
16923
|
var DAY = 864e5;
|
|
16924
16924
|
var CURRENCY = [
|
|
16925
16925
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -17045,7 +17045,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
17045
17045
|
return best?.day ?? null;
|
|
17046
17046
|
}, "dueDayOf");
|
|
17047
17047
|
|
|
17048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
17049
17049
|
var DAY2 = 864e5;
|
|
17050
17050
|
var STOP_WORDS = new Set([
|
|
17051
17051
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -17200,7 +17200,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
17200
17200
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
17201
17201
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
17202
17202
|
|
|
17203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
17204
17204
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
17205
17205
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
17206
17206
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17471,7 +17471,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17471
17471
|
};
|
|
17472
17472
|
}, "readiness");
|
|
17473
17473
|
|
|
17474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17475
17475
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17476
17476
|
var SCAN_PAGE2 = 5e3;
|
|
17477
17477
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17534,7 +17534,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17534
17534
|
}, "nearestPictures")
|
|
17535
17535
|
}), "documentPicturesOver");
|
|
17536
17536
|
|
|
17537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
17538
17538
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
17539
17539
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
17540
17540
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -17599,7 +17599,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
17599
17599
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
17600
17600
|
var bound2 = /* @__PURE__ */ __name(({ sql: text6, params }) => sql.join(text6.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
|
|
17601
17601
|
|
|
17602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17603
17603
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17604
17604
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17605
17605
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17689,7 +17689,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17689
17689
|
});
|
|
17690
17690
|
}, "linkMeeting");
|
|
17691
17691
|
|
|
17692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17693
17693
|
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), ''))";
|
|
17694
17694
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17695
17695
|
"working-location",
|
|
@@ -17919,7 +17919,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17919
17919
|
return true;
|
|
17920
17920
|
}, "resetNoteIndex");
|
|
17921
17921
|
|
|
17922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
17923
17923
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
17924
17924
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
17925
17925
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -17938,7 +17938,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
17938
17938
|
}
|
|
17939
17939
|
}, "resolvePersonLinks");
|
|
17940
17940
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
17942
17942
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
17943
17943
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
17944
17944
|
find: orm.select({
|
|
@@ -18163,7 +18163,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
18163
18163
|
}, "meetingIdentityPk");
|
|
18164
18164
|
var phoneOf = /* @__PURE__ */ __name(({ orm }, provider, nativeId) => orm.select({ phone: identities.phone }).from(identities).where(and(eq(identities.provider, provider), eq(identities.externalId, nativeId))).get()?.phone ?? null, "phoneOf");
|
|
18165
18165
|
|
|
18166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
18167
18167
|
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");
|
|
18168
18168
|
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");
|
|
18169
18169
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -18443,7 +18443,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
18443
18443
|
}
|
|
18444
18444
|
}, "replaceAutoTags");
|
|
18445
18445
|
|
|
18446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
18447
18447
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
18448
18448
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
18449
18449
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -18462,7 +18462,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
18462
18462
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
18463
18463
|
}, "counterFreshness");
|
|
18464
18464
|
|
|
18465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
18466
18466
|
import { createHash as createHash4 } from "node:crypto";
|
|
18467
18467
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
18468
18468
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -18560,7 +18560,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
18560
18560
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
18561
18561
|
}, "contextEvidenceRequest");
|
|
18562
18562
|
|
|
18563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
18564
18564
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
18565
18565
|
var ACTIVITY = `
|
|
18566
18566
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -18676,7 +18676,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
18676
18676
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
18677
18677
|
}), "mailActivity");
|
|
18678
18678
|
|
|
18679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
18680
18680
|
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");
|
|
18681
18681
|
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;
|
|
18682
18682
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -18757,7 +18757,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
|
|
|
18757
18757
|
return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
|
|
18758
18758
|
}, "mailCore");
|
|
18759
18759
|
|
|
18760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
18761
18761
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
18762
18762
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
18763
18763
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18867,7 +18867,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
18867
18867
|
return emails3 + threads;
|
|
18868
18868
|
}, "drainEmailIndex");
|
|
18869
18869
|
|
|
18870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
18871
18871
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
18872
18872
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
18873
18873
|
var folderEmails = /* @__PURE__ */ __name((database, accountId, folder, uidvalidity) => database.prepare(`SELECT l.uid, e.external_id, coalesce(e.received_at, e.sent_at) AS at, e.read, e.flagged,
|
|
@@ -18965,7 +18965,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
18965
18965
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
18966
18966
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
18967
18967
|
|
|
18968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18969
18969
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18970
18970
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18971
18971
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -19015,7 +19015,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
19015
19015
|
return threads.length;
|
|
19016
19016
|
}, "markEmailsRestored");
|
|
19017
19017
|
|
|
19018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
19019
19019
|
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");
|
|
19020
19020
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
19021
19021
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19082,7 +19082,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
19082
19082
|
}
|
|
19083
19083
|
}), "mailRulesOver");
|
|
19084
19084
|
|
|
19085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
19086
19086
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
19087
19087
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
19088
19088
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -19090,7 +19090,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
19090
19090
|
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);
|
|
19091
19091
|
}, "reviewLink");
|
|
19092
19092
|
|
|
19093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
19094
19094
|
function checkMeetingCancelled(signal) {
|
|
19095
19095
|
if (!signal?.aborted)
|
|
19096
19096
|
return;
|
|
@@ -19101,7 +19101,7 @@ function checkMeetingCancelled(signal) {
|
|
|
19101
19101
|
}
|
|
19102
19102
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
19103
19103
|
|
|
19104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
19105
19105
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
19106
19106
|
id: Number(row2.id),
|
|
19107
19107
|
accountId: Number(row2.account_id),
|
|
@@ -19151,7 +19151,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
19151
19151
|
createdAt: Number(row2.created_at)
|
|
19152
19152
|
}), "transcriptRowOf");
|
|
19153
19153
|
|
|
19154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
19155
19155
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
19156
19156
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
19157
19157
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -19318,7 +19318,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19318
19318
|
}
|
|
19319
19319
|
}), "meetingReadsOver");
|
|
19320
19320
|
|
|
19321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
19322
19322
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
19323
19323
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
19324
19324
|
const params = [input.accountId];
|
|
@@ -19361,7 +19361,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
19361
19361
|
return { clauses, params };
|
|
19362
19362
|
}, "meetingSelectionSql");
|
|
19363
19363
|
|
|
19364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
19365
19365
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19366
19366
|
async meetingChatLines(input) {
|
|
19367
19367
|
checkMeetingCancelled(input.signal);
|
|
@@ -19389,7 +19389,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19389
19389
|
}
|
|
19390
19390
|
}), "meetingChatLinesOver");
|
|
19391
19391
|
|
|
19392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
19393
19393
|
var MESSAGE_FIELDS = {
|
|
19394
19394
|
pk: messages.id,
|
|
19395
19395
|
nativeId: messages.externalId,
|
|
@@ -19560,7 +19560,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
19560
19560
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
19561
19561
|
}), "chatActivity");
|
|
19562
19562
|
|
|
19563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
19564
19564
|
var HIT_FIELDS = {
|
|
19565
19565
|
...MESSAGE_FIELDS,
|
|
19566
19566
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -19659,7 +19659,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
19659
19659
|
};
|
|
19660
19660
|
}, "directReplies");
|
|
19661
19661
|
|
|
19662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
19663
19663
|
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");
|
|
19664
19664
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
19665
19665
|
const found2 = identityRow(context, ref3);
|
|
@@ -19790,7 +19790,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
19790
19790
|
}, "mentioning");
|
|
19791
19791
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
19792
19792
|
|
|
19793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
19794
19794
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
19795
19795
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
19796
19796
|
}, "missing");
|
|
@@ -19912,7 +19912,7 @@ function meetingContextLinksOver(context) {
|
|
|
19912
19912
|
}
|
|
19913
19913
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
19914
19914
|
|
|
19915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19916
19916
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19917
19917
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19918
19918
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19941,7 +19941,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19941
19941
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19942
19942
|
}, "indexedText");
|
|
19943
19943
|
|
|
19944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19945
19945
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19946
19946
|
var meetingCurrentIndexRows = `
|
|
19947
19947
|
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
|
|
@@ -19972,7 +19972,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19972
19972
|
}, "invalidateMeetingStems");
|
|
19973
19973
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19974
19974
|
|
|
19975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19976
19976
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19977
19977
|
return {
|
|
19978
19978
|
async indexSearch(original) {
|
|
@@ -20040,10 +20040,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
20040
20040
|
}
|
|
20041
20041
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
20042
20042
|
|
|
20043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
20044
20044
|
import { createHash as createHash5 } from "node:crypto";
|
|
20045
20045
|
|
|
20046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
20047
20047
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
20048
20048
|
const padded = ` ${term} `;
|
|
20049
20049
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -20052,7 +20052,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
20052
20052
|
return [...pieces];
|
|
20053
20053
|
}, "trigrams");
|
|
20054
20054
|
|
|
20055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
20056
20056
|
var SHORTEST_CORRECTION = 3;
|
|
20057
20057
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
20058
20058
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -20099,7 +20099,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
20099
20099
|
return corrections;
|
|
20100
20100
|
}, "correctWords");
|
|
20101
20101
|
|
|
20102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
20103
20103
|
var SHORTEST_GARBLED = 4;
|
|
20104
20104
|
var MOST_WIDENED = 64;
|
|
20105
20105
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -20191,7 +20191,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
20191
20191
|
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));
|
|
20192
20192
|
}, "widenWords");
|
|
20193
20193
|
|
|
20194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
20195
20195
|
import { readFileSync } from "node:fs";
|
|
20196
20196
|
var loaded;
|
|
20197
20197
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -20250,7 +20250,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
20250
20250
|
return false;
|
|
20251
20251
|
}, "knownRussianWord");
|
|
20252
20252
|
|
|
20253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
20254
20254
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
20255
20255
|
var MOST_WORDS = 128;
|
|
20256
20256
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -20477,7 +20477,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
20477
20477
|
return check3(tree);
|
|
20478
20478
|
}, "matchMeetingText");
|
|
20479
20479
|
|
|
20480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
20481
20481
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
20482
20482
|
throw new CliError("validation_error", message2);
|
|
20483
20483
|
}, "fail");
|
|
@@ -20659,7 +20659,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
20659
20659
|
}
|
|
20660
20660
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
20661
20661
|
|
|
20662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
20663
20663
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20664
20664
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
20665
20665
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -20691,7 +20691,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20691
20691
|
}
|
|
20692
20692
|
}), "meetingLanguagesOver");
|
|
20693
20693
|
|
|
20694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
20695
20695
|
import { createHash as createHash6 } from "node:crypto";
|
|
20696
20696
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
20697
20697
|
if (value === void 0)
|
|
@@ -20781,7 +20781,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
20781
20781
|
}
|
|
20782
20782
|
}), "meetingParticipantSearchOver");
|
|
20783
20783
|
|
|
20784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
20785
20785
|
var preparationQueries = {
|
|
20786
20786
|
participants: {
|
|
20787
20787
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -20831,7 +20831,7 @@ var preparationQueries = {
|
|
|
20831
20831
|
}
|
|
20832
20832
|
};
|
|
20833
20833
|
|
|
20834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
20835
20835
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20836
20836
|
async preparationContext(original) {
|
|
20837
20837
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -20872,7 +20872,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20872
20872
|
}
|
|
20873
20873
|
}), "meetingPreparationContextOver");
|
|
20874
20874
|
|
|
20875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
20876
20876
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
20877
20877
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
20878
20878
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -20886,7 +20886,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
20886
20886
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
20887
20887
|
)`, "preparationSubjects");
|
|
20888
20888
|
|
|
20889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
20890
20890
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20891
20891
|
async preparationKnowledge(original) {
|
|
20892
20892
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20931,7 +20931,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
20931
20931
|
}
|
|
20932
20932
|
}), "meetingPreparationKnowledgeOver");
|
|
20933
20933
|
|
|
20934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
20935
20935
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20936
20936
|
async preparationNotes(original) {
|
|
20937
20937
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20984,7 +20984,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20984
20984
|
}
|
|
20985
20985
|
}), "meetingPreparationNotesOver");
|
|
20986
20986
|
|
|
20987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20988
20988
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20989
20989
|
async relatedHistory(original) {
|
|
20990
20990
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -21055,7 +21055,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21055
21055
|
}
|
|
21056
21056
|
}), "meetingRelatedHistoryOver");
|
|
21057
21057
|
|
|
21058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
21059
21059
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
21060
21060
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
21061
21061
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -21136,7 +21136,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21136
21136
|
}
|
|
21137
21137
|
}), "meetingReviewOver");
|
|
21138
21138
|
|
|
21139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
21140
21140
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
21141
21141
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
21142
21142
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -21190,7 +21190,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21190
21190
|
}
|
|
21191
21191
|
}), "meetingSeriesHistoryOver");
|
|
21192
21192
|
|
|
21193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
21194
21194
|
var MOST_ROWS = 5e5;
|
|
21195
21195
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
21196
21196
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -21259,7 +21259,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21259
21259
|
}
|
|
21260
21260
|
}), "meetingStatsOver");
|
|
21261
21261
|
|
|
21262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
21263
21263
|
var CURSOR_KEY = "meetings";
|
|
21264
21264
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
21265
21265
|
id: Number(row2.id),
|
|
@@ -21828,7 +21828,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
21828
21828
|
};
|
|
21829
21829
|
}, "meetingStoreOver");
|
|
21830
21830
|
|
|
21831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
21832
21832
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
21833
21833
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
21834
21834
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -21854,7 +21854,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
21854
21854
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
21855
21855
|
}, "release");
|
|
21856
21856
|
|
|
21857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
21858
21858
|
var THREAD_COLUMNS = {
|
|
21859
21859
|
subject: {
|
|
21860
21860
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -21871,7 +21871,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
21871
21871
|
AND (${filter.where?.sql ?? "1"}) ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, ...filter.where?.params ?? [], limit, offset);
|
|
21872
21872
|
}, "threadRows");
|
|
21873
21873
|
|
|
21874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
21875
21875
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
21876
21876
|
id: `email:${place.emailId}`,
|
|
21877
21877
|
chatId: place.threadExternalId,
|
|
@@ -22427,7 +22427,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
22427
22427
|
}
|
|
22428
22428
|
}), "mailStoreOver");
|
|
22429
22429
|
|
|
22430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
22431
22431
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
22432
22432
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
22433
22433
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -22517,7 +22517,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
22517
22517
|
}, "knownWord");
|
|
22518
22518
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
22519
22519
|
|
|
22520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
22521
22521
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
22522
22522
|
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");
|
|
22523
22523
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -22603,7 +22603,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
22603
22603
|
return found2;
|
|
22604
22604
|
}, "spokenTranscripts");
|
|
22605
22605
|
|
|
22606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
22607
22607
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
22608
22608
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
22609
22609
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -22650,7 +22650,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
22650
22650
|
});
|
|
22651
22651
|
}, "placeHits");
|
|
22652
22652
|
|
|
22653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
22654
22654
|
var GROUPS = {
|
|
22655
22655
|
chat: {
|
|
22656
22656
|
key: "m.chat_id",
|
|
@@ -22672,7 +22672,7 @@ var GROUPS = {
|
|
|
22672
22672
|
}
|
|
22673
22673
|
};
|
|
22674
22674
|
|
|
22675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
22676
22676
|
var MESSAGES2 = {
|
|
22677
22677
|
rows: "messages",
|
|
22678
22678
|
threads: "chats",
|
|
@@ -23155,7 +23155,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
23155
23155
|
};
|
|
23156
23156
|
}, "runCompiled");
|
|
23157
23157
|
|
|
23158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
23159
23159
|
function invalidMetadata() {
|
|
23160
23160
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
23161
23161
|
}
|
|
@@ -23257,7 +23257,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
23257
23257
|
};
|
|
23258
23258
|
}), "counterTargets");
|
|
23259
23259
|
|
|
23260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
23261
23261
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
23262
23262
|
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,
|
|
23263
23263
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -23376,7 +23376,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
23376
23376
|
}));
|
|
23377
23377
|
}, "attachmentViews");
|
|
23378
23378
|
|
|
23379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
23380
23380
|
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");
|
|
23381
23381
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
23382
23382
|
const { orm, database, now: now2 } = context;
|
|
@@ -23414,7 +23414,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
23414
23414
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
23415
23415
|
}, "intoVoiceAttachment");
|
|
23416
23416
|
|
|
23417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
23418
23418
|
var FIELDS = [
|
|
23419
23419
|
"threadExternalId",
|
|
23420
23420
|
"senderIdentityId",
|
|
@@ -23731,7 +23731,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
23731
23731
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
23732
23732
|
}, "writeDerivedReactions");
|
|
23733
23733
|
|
|
23734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
23735
23735
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
23736
23736
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
23737
23737
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -23752,7 +23752,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
23752
23752
|
};
|
|
23753
23753
|
}, "keysOver");
|
|
23754
23754
|
|
|
23755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
23756
23756
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
23757
23757
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
23758
23758
|
if (!row2)
|
|
@@ -23787,7 +23787,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
23787
23787
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
23788
23788
|
}, "saveProfile");
|
|
23789
23789
|
|
|
23790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
23791
23791
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
23792
23792
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
23793
23793
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -23844,7 +23844,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
23844
23844
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
23845
23845
|
}, "proposedBySql");
|
|
23846
23846
|
|
|
23847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
23848
23848
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
23849
23849
|
const owner = ownerPerson(context.database).id;
|
|
23850
23850
|
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);
|
|
@@ -23865,7 +23865,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
23865
23865
|
return personOf(context, ref3);
|
|
23866
23866
|
}, "linkToOwner");
|
|
23867
23867
|
|
|
23868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
23869
23869
|
var PROVIDERS_SETTING = "providers";
|
|
23870
23870
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
23871
23871
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -23900,7 +23900,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
23900
23900
|
});
|
|
23901
23901
|
}, "registerProvider");
|
|
23902
23902
|
|
|
23903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
23904
23904
|
var DAY3 = 864e5;
|
|
23905
23905
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
23906
23906
|
var TEXT_LIMIT = 20;
|
|
@@ -24099,7 +24099,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
24099
24099
|
};
|
|
24100
24100
|
}, "taskSimilarityOver");
|
|
24101
24101
|
|
|
24102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
24103
24103
|
var SETTING3 = "taskCategories";
|
|
24104
24104
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
24105
24105
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -24118,7 +24118,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
24118
24118
|
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);
|
|
24119
24119
|
}, "saveTaskCategories");
|
|
24120
24120
|
|
|
24121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
24122
24122
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
24123
24123
|
var ALLOWED = "taskAgentClose";
|
|
24124
24124
|
var MIN = "taskAgentCloseMin";
|
|
@@ -24174,10 +24174,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
24174
24174
|
];
|
|
24175
24175
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
24176
24176
|
|
|
24177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
24178
24178
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
24179
24179
|
|
|
24180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
24181
24181
|
var TASK_CLOSE_KIND = "task_close";
|
|
24182
24182
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
24183
24183
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -24225,7 +24225,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
24225
24225
|
}, "assertMayDecide");
|
|
24226
24226
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
24227
24227
|
|
|
24228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
24229
24229
|
var CURRENCY_SCALES = {
|
|
24230
24230
|
AED: 2,
|
|
24231
24231
|
AMD: 2,
|
|
@@ -24310,7 +24310,7 @@ var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
|
24310
24310
|
}, "quantityOf");
|
|
24311
24311
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
24312
24312
|
|
|
24313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
24314
24314
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
24315
24315
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
24316
24316
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -24339,10 +24339,10 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
24339
24339
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
24340
24340
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
24341
24341
|
|
|
24342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
24343
24343
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
24344
24344
|
|
|
24345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
24346
24346
|
var EXCERPT_CHARS = 280;
|
|
24347
24347
|
var TITLE_CHARS = 120;
|
|
24348
24348
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -24695,7 +24695,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
24695
24695
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
24696
24696
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
|
|
24697
24697
|
|
|
24698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
24699
24699
|
var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
|
|
24700
24700
|
ref: ref3,
|
|
24701
24701
|
kind: read2.kind,
|
|
@@ -24731,7 +24731,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
24731
24731
|
});
|
|
24732
24732
|
}, "evidenceSourcesOf");
|
|
24733
24733
|
|
|
24734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
24735
24735
|
import { randomBytes } from "node:crypto";
|
|
24736
24736
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
24737
24737
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -24744,7 +24744,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
24744
24744
|
return time3 + random;
|
|
24745
24745
|
}, "ulid");
|
|
24746
24746
|
|
|
24747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
24748
24748
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
24749
24749
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
24750
24750
|
if (!meta && !sections?.length)
|
|
@@ -24765,7 +24765,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
24765
24765
|
return typeof language === "string" && language !== "" ? language : null;
|
|
24766
24766
|
}, "languageOf");
|
|
24767
24767
|
|
|
24768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
24769
24769
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
24770
24770
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
24771
24771
|
if (isObject(value))
|
|
@@ -25008,7 +25008,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
25008
25008
|
};
|
|
25009
25009
|
}, "filesStoreOver");
|
|
25010
25010
|
|
|
25011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
25012
25012
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
25013
25013
|
entity: "document",
|
|
25014
25014
|
backend: "sql",
|
|
@@ -25054,7 +25054,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
25054
25054
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
25055
25055
|
}, "importedDocumentWhere");
|
|
25056
25056
|
|
|
25057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
25058
25058
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
25059
25059
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
25060
25060
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -25580,7 +25580,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25580
25580
|
};
|
|
25581
25581
|
}, "notesStoreOver");
|
|
25582
25582
|
|
|
25583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
25584
25584
|
var NAMED = "SELECT m.*, b.name AS author_name, b.kind AS author_kind FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
|
|
25585
25585
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
25586
25586
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -25802,7 +25802,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25802
25802
|
};
|
|
25803
25803
|
}, "memoriesStoreOver");
|
|
25804
25804
|
|
|
25805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
25806
25806
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
25807
25807
|
var KEY = "taskFirstPassPerChat";
|
|
25808
25808
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -25822,7 +25822,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
25822
25822
|
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);
|
|
25823
25823
|
}, "saveFirstPassPerChat");
|
|
25824
25824
|
|
|
25825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
25826
25826
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
25827
25827
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
25828
25828
|
name,
|
|
@@ -26045,7 +26045,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
26045
26045
|
return root === void 0 ? void 0 : { ...query, root };
|
|
26046
26046
|
}, "withoutField");
|
|
26047
26047
|
|
|
26048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
26049
26049
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
26050
26050
|
if (row2.author_type == null)
|
|
26051
26051
|
return null;
|
|
@@ -26073,7 +26073,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
26073
26073
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
26074
26074
|
}, "addComment");
|
|
26075
26075
|
|
|
26076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
26077
26077
|
var TASK_RELATION_KINDS = [
|
|
26078
26078
|
"blocked-by",
|
|
26079
26079
|
"follow-up-of",
|
|
@@ -26203,7 +26203,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
26203
26203
|
};
|
|
26204
26204
|
}, "taskRelationsStoreOver");
|
|
26205
26205
|
|
|
26206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
26207
26207
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
26208
26208
|
var TASK_EVENT_KINDS = [
|
|
26209
26209
|
"created",
|
|
@@ -26748,7 +26748,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
26748
26748
|
};
|
|
26749
26749
|
}, "workTasksOver");
|
|
26750
26750
|
|
|
26751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
26752
26752
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
26753
26753
|
const { database, now: now2 } = context;
|
|
26754
26754
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -26797,7 +26797,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
26797
26797
|
};
|
|
26798
26798
|
}, "taskCloseOver");
|
|
26799
26799
|
|
|
26800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
26801
26801
|
var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
|
|
26802
26802
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
26803
26803
|
const { database, now: now2 } = context;
|
|
@@ -27016,7 +27016,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
27016
27016
|
};
|
|
27017
27017
|
}, "taskPairsOver");
|
|
27018
27018
|
|
|
27019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
27020
27020
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
27021
27021
|
var TASK_STATS_SQL = {
|
|
27022
27022
|
rows: /* @__PURE__ */ __name((board, filter) => `SELECT t.source_group, t.source_kind, t.project_id, t.status, t.created_at, t.closed_at FROM tasks t WHERE ${board ? BOARD_SCOPE : ACCOUNT_SCOPE}${filter} ORDER BY t.created_at, t.id`, "rows"),
|
|
@@ -27055,7 +27055,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
27055
27055
|
}, "statNames")
|
|
27056
27056
|
}), "taskStatsOver");
|
|
27057
27057
|
|
|
27058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
27059
27059
|
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";
|
|
27060
27060
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
27061
27061
|
const key2 = inboxKey(account);
|
|
@@ -27262,7 +27262,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
27262
27262
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
27263
27263
|
}, "oneOf");
|
|
27264
27264
|
|
|
27265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
27266
27266
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
27267
27267
|
const { database } = context;
|
|
27268
27268
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -27307,7 +27307,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
27307
27307
|
};
|
|
27308
27308
|
}, "accountsStoreOver");
|
|
27309
27309
|
|
|
27310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
27311
27311
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
27312
27312
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
27313
27313
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -27331,7 +27331,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
27331
27331
|
})), "keepDownloads");
|
|
27332
27332
|
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");
|
|
27333
27333
|
|
|
27334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
27335
27335
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
27336
27336
|
const { database } = context;
|
|
27337
27337
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -27388,7 +27388,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
27388
27388
|
}, "keepAttachmentText")
|
|
27389
27389
|
}), "attachmentsStoreOver");
|
|
27390
27390
|
|
|
27391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
27392
27392
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
27393
27393
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
27394
27394
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -27568,7 +27568,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
27568
27568
|
return done;
|
|
27569
27569
|
}, "rekeyChats");
|
|
27570
27570
|
|
|
27571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
27572
27572
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
27573
27573
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
27574
27574
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -27626,7 +27626,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
27626
27626
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
27627
27627
|
}, "chatCoverage");
|
|
27628
27628
|
|
|
27629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
27630
27630
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
27631
27631
|
const { database } = context;
|
|
27632
27632
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -27761,7 +27761,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
27761
27761
|
};
|
|
27762
27762
|
}, "chatsStoreOver");
|
|
27763
27763
|
|
|
27764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
27765
27765
|
import { createHash as createHash7 } from "node:crypto";
|
|
27766
27766
|
var BATCH_CONTEXT = 50;
|
|
27767
27767
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -27899,7 +27899,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
27899
27899
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
27900
27900
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
27901
27901
|
|
|
27902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
27903
27903
|
import { setTimeout } from "node:timers/promises";
|
|
27904
27904
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
27905
27905
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -28211,7 +28211,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
28211
28211
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
28212
28212
|
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");
|
|
28213
28213
|
|
|
28214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
28215
28215
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28216
28216
|
const { database } = context;
|
|
28217
28217
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -28318,7 +28318,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28318
28318
|
};
|
|
28319
28319
|
}, "conversationsStoreOver");
|
|
28320
28320
|
|
|
28321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
28322
28322
|
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";
|
|
28323
28323
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
28324
28324
|
const { database } = context;
|
|
@@ -28343,7 +28343,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28343
28343
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
28344
28344
|
}), "countersStoreOver");
|
|
28345
28345
|
|
|
28346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
28347
28347
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
28348
28348
|
var MENTION_QUERY = defineQuery({
|
|
28349
28349
|
entity: "mention",
|
|
@@ -28559,7 +28559,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
28559
28559
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
28560
28560
|
}, "listPlaces");
|
|
28561
28561
|
|
|
28562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
28563
28563
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
28564
28564
|
const { database } = context;
|
|
28565
28565
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -28594,7 +28594,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28594
28594
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
28595
28595
|
}), "mentionsStoreOver");
|
|
28596
28596
|
|
|
28597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
28598
28598
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
28599
28599
|
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");
|
|
28600
28600
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -28609,7 +28609,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
28609
28609
|
}));
|
|
28610
28610
|
}, "documentLinkMessages");
|
|
28611
28611
|
|
|
28612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
28613
28613
|
var stemmerFor = stemmerCache();
|
|
28614
28614
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
28615
28615
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -28653,7 +28653,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
28653
28653
|
});
|
|
28654
28654
|
}, "laterSharingRare");
|
|
28655
28655
|
|
|
28656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
28657
28657
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
28658
28658
|
const { database } = context;
|
|
28659
28659
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -28788,7 +28788,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28788
28788
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
28789
28789
|
}), "messagesStoreOver");
|
|
28790
28790
|
|
|
28791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
28792
28792
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
28793
28793
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
28794
28794
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -28845,7 +28845,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
28845
28845
|
});
|
|
28846
28846
|
}, "personPreparation");
|
|
28847
28847
|
|
|
28848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
28849
28849
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
28850
28850
|
const id2 = Number(uid);
|
|
28851
28851
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -28853,7 +28853,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
28853
28853
|
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)));
|
|
28854
28854
|
}, "personSeenInAccounts");
|
|
28855
28855
|
|
|
28856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
28857
28857
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
28858
28858
|
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);
|
|
28859
28859
|
if (!row2)
|
|
@@ -28919,7 +28919,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
28919
28919
|
return { id: id2, personId, removed: true };
|
|
28920
28920
|
}, "removeNote");
|
|
28921
28921
|
|
|
28922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
28923
28923
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
28924
28924
|
const { database } = context;
|
|
28925
28925
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -29004,13 +29004,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
29004
29004
|
};
|
|
29005
29005
|
}, "peopleStoreOver");
|
|
29006
29006
|
|
|
29007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
29008
29008
|
import { createHash as createHash9 } from "node:crypto";
|
|
29009
29009
|
|
|
29010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
29011
29011
|
import { createHash as createHash8 } from "node:crypto";
|
|
29012
29012
|
|
|
29013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
29014
29014
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
29015
29015
|
var AUTHOR_MEASURES = [
|
|
29016
29016
|
"messages",
|
|
@@ -29150,7 +29150,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
29150
29150
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
29151
29151
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
29152
29152
|
|
|
29153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
29154
29154
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
29155
29155
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
29156
29156
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -29372,7 +29372,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
29372
29372
|
};
|
|
29373
29373
|
}, "rankReplyGraph");
|
|
29374
29374
|
|
|
29375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
29376
29376
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
29377
29377
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
29378
29378
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -29546,7 +29546,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
29546
29546
|
return { items, evidence, summary, graph: graph.quality };
|
|
29547
29547
|
}, "calculateAdminStatistics");
|
|
29548
29548
|
|
|
29549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
29550
29550
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
29551
29551
|
const dates = [];
|
|
29552
29552
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -29568,7 +29568,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
29568
29568
|
return dates[0].node.resolution.date;
|
|
29569
29569
|
}, "rankingContextRange");
|
|
29570
29570
|
|
|
29571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
29572
29572
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
29573
29573
|
let counts;
|
|
29574
29574
|
try {
|
|
@@ -29863,7 +29863,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
29863
29863
|
});
|
|
29864
29864
|
}, "rankQuery");
|
|
29865
29865
|
|
|
29866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
29867
29867
|
function fail4(message2, reason = "query.too-large") {
|
|
29868
29868
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
29869
29869
|
}
|
|
@@ -30040,7 +30040,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
30040
30040
|
return result;
|
|
30041
30041
|
}), "adminStatisticsQuery");
|
|
30042
30042
|
|
|
30043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
30044
30044
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
30045
30045
|
if (!execution.accounts.length)
|
|
30046
30046
|
return { conversations: [], chats: [] };
|
|
@@ -30058,7 +30058,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
30058
30058
|
return { conversations: conversations2, chats: chats2 };
|
|
30059
30059
|
}, "conversationEligibility");
|
|
30060
30060
|
|
|
30061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
30062
30062
|
import { createHash as createHash10 } from "node:crypto";
|
|
30063
30063
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
30064
30064
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -30208,7 +30208,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
30208
30208
|
return result;
|
|
30209
30209
|
}, "rankingEvidence");
|
|
30210
30210
|
|
|
30211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
30212
30212
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
30213
30213
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
30214
30214
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -30302,7 +30302,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
30302
30302
|
});
|
|
30303
30303
|
}, "waitingChats");
|
|
30304
30304
|
|
|
30305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
30306
30306
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
30307
30307
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
30308
30308
|
if (execution.corpus === "mail")
|
|
@@ -30323,7 +30323,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
30323
30323
|
};
|
|
30324
30324
|
}, "queriesStoreOver");
|
|
30325
30325
|
|
|
30326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
30327
30327
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
30328
30328
|
const { database, now: now2 } = context;
|
|
30329
30329
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -30362,10 +30362,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
30362
30362
|
}));
|
|
30363
30363
|
}, "chatEventsOf");
|
|
30364
30364
|
|
|
30365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
30366
30366
|
import { createHash as createHash11 } from "node:crypto";
|
|
30367
30367
|
|
|
30368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
30369
30369
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
30370
30370
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
30371
30371
|
timeZone: zone,
|
|
@@ -30385,7 +30385,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
|
|
|
30385
30385
|
return date3.toISOString().slice(0, 10);
|
|
30386
30386
|
}, "weekKey");
|
|
30387
30387
|
|
|
30388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
30389
30389
|
var RETENTION_TOLERANCE = 864e5;
|
|
30390
30390
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
30391
30391
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -30439,7 +30439,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
30439
30439
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
30440
30440
|
}, "retentionCohorts");
|
|
30441
30441
|
|
|
30442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
30443
30443
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
30444
30444
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
30445
30445
|
validateRetentionOptions(options);
|
|
@@ -30570,7 +30570,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
30570
30570
|
};
|
|
30571
30571
|
}, "retentionQuery");
|
|
30572
30572
|
|
|
30573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
30574
30574
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
30575
30575
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
30576
30576
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -30701,7 +30701,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
30701
30701
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
30702
30702
|
})), "trackedChats");
|
|
30703
30703
|
|
|
30704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
30705
30705
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
30706
30706
|
const { database } = context;
|
|
30707
30707
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -30757,7 +30757,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30757
30757
|
};
|
|
30758
30758
|
}, "rosterStoreOver");
|
|
30759
30759
|
|
|
30760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
30761
30761
|
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");
|
|
30762
30762
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
30763
30763
|
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 ?`);
|
|
@@ -30781,7 +30781,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
30781
30781
|
}
|
|
30782
30782
|
}, "backfillNormalized");
|
|
30783
30783
|
|
|
30784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
30785
30785
|
var INDEX2 = "message_words";
|
|
30786
30786
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
30787
30787
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -30908,7 +30908,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
30908
30908
|
});
|
|
30909
30909
|
}, "resetSearchIndex");
|
|
30910
30910
|
|
|
30911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
30912
30912
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
30913
30913
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
30914
30914
|
const before2 = stemsState(database);
|
|
@@ -31003,7 +31003,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
31003
31003
|
return resetStems(database, { now: now2 });
|
|
31004
31004
|
}, "followDefaultStemmers");
|
|
31005
31005
|
|
|
31006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
31007
31007
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
31008
31008
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
31009
31009
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -31025,7 +31025,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
31025
31025
|
});
|
|
31026
31026
|
}, "termCandidates");
|
|
31027
31027
|
|
|
31028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
31029
31029
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
31030
31030
|
const { database } = context;
|
|
31031
31031
|
const stemmerFor2 = stemmerCache();
|
|
@@ -31047,7 +31047,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31047
31047
|
};
|
|
31048
31048
|
}, "searchIndexStoreOver");
|
|
31049
31049
|
|
|
31050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
31051
31051
|
var HISTORY_KEPT = 1e3;
|
|
31052
31052
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
31053
31053
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -31116,7 +31116,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
31116
31116
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
31117
31117
|
}, "clearHistory");
|
|
31118
31118
|
|
|
31119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
31120
31120
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
31121
31121
|
const { database } = context;
|
|
31122
31122
|
return {
|
|
@@ -31140,7 +31140,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31140
31140
|
};
|
|
31141
31141
|
}, "searchesStoreOver");
|
|
31142
31142
|
|
|
31143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
31144
31144
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
31145
31145
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
31146
31146
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -31183,7 +31183,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
31183
31183
|
};
|
|
31184
31184
|
}, "agentActionsStoreOver");
|
|
31185
31185
|
|
|
31186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
31187
31187
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
31188
31188
|
}) => {
|
|
31189
31189
|
const { database, now: now2 } = context;
|
|
@@ -31242,7 +31242,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
31242
31242
|
};
|
|
31243
31243
|
}, "botUpdateStoreOver");
|
|
31244
31244
|
|
|
31245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
31246
31246
|
var DAY4 = 864e5;
|
|
31247
31247
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
31248
31248
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -31351,7 +31351,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
31351
31351
|
return database.prepare(`SELECT e.* FROM events e WHERE ${clauses.join(" AND ")} ORDER BY ${filter.newest ? "e.starts_at DESC, e.id DESC" : "e.starts_at, e.id"} LIMIT ? OFFSET ?`).all(...params, limit, offset).map(eventOf);
|
|
31352
31352
|
}, "listEvents");
|
|
31353
31353
|
|
|
31354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
31355
31355
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
31356
31356
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
31357
31357
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -31406,7 +31406,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
31406
31406
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
31407
31407
|
}, "forgetCalendarRows");
|
|
31408
31408
|
|
|
31409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
31410
31410
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
31411
31411
|
id: Number(row2.id),
|
|
31412
31412
|
accountId: Number(row2.account_id),
|
|
@@ -31993,7 +31993,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31993
31993
|
};
|
|
31994
31994
|
}, "eventStoreOver");
|
|
31995
31995
|
|
|
31996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
31997
31997
|
var CATALOG_QUERY = defineQuery({
|
|
31998
31998
|
entity: "document",
|
|
31999
31999
|
backend: "sql",
|
|
@@ -32235,7 +32235,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
32235
32235
|
};
|
|
32236
32236
|
}, "catalogStoreOver");
|
|
32237
32237
|
|
|
32238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
32239
32239
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
32240
32240
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
32241
32241
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -32248,7 +32248,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
32248
32248
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
32249
32249
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
32250
32250
|
|
|
32251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
32252
32252
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
32253
32253
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
32254
32254
|
signal?.throwIfAborted();
|
|
@@ -32347,7 +32347,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
32347
32347
|
});
|
|
32348
32348
|
}, "readMeetingContextEvidence");
|
|
32349
32349
|
|
|
32350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
32351
32351
|
var corpora = {
|
|
32352
32352
|
message: {
|
|
32353
32353
|
table: "messages",
|
|
@@ -32586,7 +32586,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
32586
32586
|
}
|
|
32587
32587
|
}), "contextRecordsOver");
|
|
32588
32588
|
|
|
32589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
32590
32590
|
var NOTE_FIELDS = [
|
|
32591
32591
|
"text",
|
|
32592
32592
|
"exact",
|
|
@@ -33016,7 +33016,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
33016
33016
|
};
|
|
33017
33017
|
}, "noteSearchOver");
|
|
33018
33018
|
|
|
33019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
33020
33020
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
33021
33021
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
33022
33022
|
var EVENT_CORPUS = {
|
|
@@ -33148,7 +33148,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
33148
33148
|
};
|
|
33149
33149
|
}, "eventSearchOver");
|
|
33150
33150
|
|
|
33151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
33152
33152
|
var refuse2 = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
33153
33153
|
throw new CliError(code, message2, { reason });
|
|
33154
33154
|
}, "refuse");
|
|
@@ -33583,7 +33583,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33583
33583
|
};
|
|
33584
33584
|
}, "financeStoreOver");
|
|
33585
33585
|
|
|
33586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
33587
33587
|
var refuse3 = /* @__PURE__ */ __name((message2, reason) => {
|
|
33588
33588
|
throw new CliError("validation_error", message2, { reason });
|
|
33589
33589
|
}, "refuse");
|
|
@@ -33661,7 +33661,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
33661
33661
|
};
|
|
33662
33662
|
}, "paymentEntriesOver");
|
|
33663
33663
|
|
|
33664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
33665
33665
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
33666
33666
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
33667
33667
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -33687,7 +33687,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
33687
33687
|
return valid;
|
|
33688
33688
|
}, "validateEvidenceFindings");
|
|
33689
33689
|
|
|
33690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
33691
33691
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
33692
33692
|
try {
|
|
33693
33693
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -33699,7 +33699,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
33699
33699
|
}
|
|
33700
33700
|
}, "calendarMoment");
|
|
33701
33701
|
|
|
33702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
33703
33703
|
var NAMED3 = "SELECT f.*, b.name AS author_name, b.kind AS author_kind FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
|
|
33704
33704
|
var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
33705
33705
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -33881,7 +33881,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33881
33881
|
};
|
|
33882
33882
|
}, "factsStoreOver");
|
|
33883
33883
|
|
|
33884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
33885
33885
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
33886
33886
|
throw new CliError("validation_error", message2);
|
|
33887
33887
|
}, "invalid");
|
|
@@ -33983,7 +33983,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
33983
33983
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
33984
33984
|
}, "findingsCoreOver");
|
|
33985
33985
|
|
|
33986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
33987
33987
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
33988
33988
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
33989
33989
|
var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -34148,7 +34148,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34148
34148
|
};
|
|
34149
34149
|
}, "proposedActionsStoreOver");
|
|
34150
34150
|
|
|
34151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
34152
34152
|
var stale = /* @__PURE__ */ __name(() => {
|
|
34153
34153
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
34154
34154
|
reason: "evidence-findings.stale"
|
|
@@ -34329,7 +34329,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34329
34329
|
};
|
|
34330
34330
|
}, "evidenceFindingsStoreOver");
|
|
34331
34331
|
|
|
34332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
34333
34333
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
34334
34334
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
34335
34335
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -34382,7 +34382,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
34382
34382
|
}, "forPerson")
|
|
34383
34383
|
}), "involvementStoreOver");
|
|
34384
34384
|
|
|
34385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
34386
34386
|
import { createHash as createHash12 } from "node:crypto";
|
|
34387
34387
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
34388
34388
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -34468,7 +34468,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
34468
34468
|
};
|
|
34469
34469
|
}, "meetingProjectsStoreOver");
|
|
34470
34470
|
|
|
34471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
34472
34472
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
34473
34473
|
id: link3.id,
|
|
34474
34474
|
from: link3.from,
|
|
@@ -34694,16 +34694,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
34694
34694
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
34695
34695
|
}, "decidedOrigin");
|
|
34696
34696
|
|
|
34697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
34698
34698
|
import { createHash as createHash15 } from "node:crypto";
|
|
34699
34699
|
|
|
34700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34701
34701
|
import { createHash as createHash14 } from "node:crypto";
|
|
34702
34702
|
|
|
34703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34704
34704
|
import { createHash as createHash13 } from "node:crypto";
|
|
34705
34705
|
|
|
34706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
34707
34707
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
34708
34708
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
34709
34709
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -34754,7 +34754,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
34754
34754
|
return input;
|
|
34755
34755
|
}, "consolidationApplyInput");
|
|
34756
34756
|
|
|
34757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34758
34758
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
34759
34759
|
id: String(row2.id),
|
|
34760
34760
|
sourceId: String(row2.source_id),
|
|
@@ -34829,7 +34829,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
34829
34829
|
}, { beforeCommit: check3 });
|
|
34830
34830
|
}, "applyTagConsolidation");
|
|
34831
34831
|
|
|
34832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34833
34833
|
var selections = [
|
|
34834
34834
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
34835
34835
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -34973,7 +34973,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
34973
34973
|
};
|
|
34974
34974
|
}, "previewRows");
|
|
34975
34975
|
|
|
34976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
34977
34977
|
var kinds = ["project", "tag", "topic"];
|
|
34978
34978
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
34979
34979
|
if (signal?.aborted)
|
|
@@ -35237,7 +35237,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35237
35237
|
};
|
|
35238
35238
|
}, "vocabularyStoreOver");
|
|
35239
35239
|
|
|
35240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
35241
35241
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
35242
35242
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
35243
35243
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -35794,7 +35794,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
35794
35794
|
return key2.padEnd(3, "X");
|
|
35795
35795
|
}, "projectKey");
|
|
35796
35796
|
|
|
35797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
35798
35798
|
var DAY5 = 864e5;
|
|
35799
35799
|
var SETTING4 = "logs_pruned_at";
|
|
35800
35800
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -35821,7 +35821,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
35821
35821
|
};
|
|
35822
35822
|
}, "logPruner");
|
|
35823
35823
|
|
|
35824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
35825
35825
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
35826
35826
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
35827
35827
|
var invalid6 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -35947,7 +35947,7 @@ var validateMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
35947
35947
|
}, "validateMailFindings");
|
|
35948
35948
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
35949
35949
|
|
|
35950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
35951
35951
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
35952
35952
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
35953
35953
|
reason: "mail-findings.stale"
|
|
@@ -36237,7 +36237,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
36237
36237
|
};
|
|
36238
36238
|
}, "mailFindingsStoreOver");
|
|
36239
36239
|
|
|
36240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
36241
36241
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
36242
36242
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
36243
36243
|
reason: "meeting-findings.stale"
|
|
@@ -36405,7 +36405,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36405
36405
|
};
|
|
36406
36406
|
}, "meetingFindingsStoreOver");
|
|
36407
36407
|
|
|
36408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
36409
36409
|
var RANK_BATCH = 512;
|
|
36410
36410
|
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";
|
|
36411
36411
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -36676,7 +36676,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
36676
36676
|
}
|
|
36677
36677
|
}), "meetingVectorsOver");
|
|
36678
36678
|
|
|
36679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
36680
36680
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
36681
36681
|
var TEXTS = {
|
|
36682
36682
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -36777,11 +36777,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36777
36777
|
};
|
|
36778
36778
|
}, "sourceMentionStoreOver");
|
|
36779
36779
|
|
|
36780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
36781
36781
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
36782
36782
|
import { dirname } from "node:path";
|
|
36783
36783
|
|
|
36784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
36785
36785
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
36786
36786
|
var CLIENTS_SETTING = "clients";
|
|
36787
36787
|
var coreVersion = (() => {
|
|
@@ -36839,7 +36839,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
36839
36839
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
36840
36840
|
}, "refusalAdvice");
|
|
36841
36841
|
|
|
36842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
36843
36843
|
var GENERATED = [
|
|
36844
36844
|
{
|
|
36845
36845
|
"name": "20261010184427_initial",
|
|
@@ -37806,7 +37806,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
37806
37806
|
}
|
|
37807
37807
|
];
|
|
37808
37808
|
|
|
37809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
37810
37810
|
var MANIFEST = [
|
|
37811
37811
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
37812
37812
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -37894,7 +37894,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
37894
37894
|
return migrations;
|
|
37895
37895
|
}, "generatedMigrations");
|
|
37896
37896
|
|
|
37897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
37898
37898
|
var MIGRATIONS = generatedMigrations();
|
|
37899
37899
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
37900
37900
|
version INTEGER PRIMARY KEY,
|
|
@@ -37947,7 +37947,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
37947
37947
|
}
|
|
37948
37948
|
}, "migrate");
|
|
37949
37949
|
|
|
37950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
37951
37951
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
37952
37952
|
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 ?");
|
|
37953
37953
|
if (pending.get(0, 1) === void 0)
|
|
@@ -37969,7 +37969,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
37969
37969
|
}
|
|
37970
37970
|
}, "fillJoinKeys");
|
|
37971
37971
|
|
|
37972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
37973
37973
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
37974
37974
|
refuseOwnerStoreInTests(path);
|
|
37975
37975
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -37983,8 +37983,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
37983
37983
|
}, "openSqlite");
|
|
37984
37984
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
37985
37985
|
quietSqliteWarning();
|
|
37986
|
-
const { drizzle } = await import("./node-
|
|
37987
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
37986
|
+
const { drizzle } = await import("./node-IB246NCQ.js");
|
|
37987
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-G2Y5SFJM.js");
|
|
37988
37988
|
const client = await nodeClient(path, { readOnly });
|
|
37989
37989
|
try {
|
|
37990
37990
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -37994,8 +37994,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
37994
37994
|
}
|
|
37995
37995
|
}, "openUnderNode");
|
|
37996
37996
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
37997
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
37998
|
-
const { drizzle } = await import("./bun-
|
|
37997
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-MTZY36QK.js");
|
|
37998
|
+
const { drizzle } = await import("./bun-DKZAL6ML.js");
|
|
37999
37999
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
38000
38000
|
try {
|
|
38001
38001
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -38005,7 +38005,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
38005
38005
|
}
|
|
38006
38006
|
}, "openUnderBun");
|
|
38007
38007
|
|
|
38008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
38009
38009
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
38010
38010
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
38011
38011
|
try {
|
|
@@ -38073,7 +38073,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
38073
38073
|
});
|
|
38074
38074
|
}, "movePaymentFacts");
|
|
38075
38075
|
|
|
38076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
38077
38077
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
38078
38078
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
38079
38079
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -38088,7 +38088,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
38088
38088
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
38089
38089
|
}, "assertReadCompatible");
|
|
38090
38090
|
|
|
38091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
38092
38092
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
38093
38093
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
38094
38094
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -38134,7 +38134,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
38134
38134
|
});
|
|
38135
38135
|
}, "moveSuggestedLinks");
|
|
38136
38136
|
|
|
38137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
38138
38138
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
38139
38139
|
var TEST_PROVIDER = "chat";
|
|
38140
38140
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -38155,7 +38155,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
38155
38155
|
}
|
|
38156
38156
|
}, "purgeTestAccounts");
|
|
38157
38157
|
|
|
38158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
38159
38159
|
var BACKFILL_ON_OPEN = 5e3;
|
|
38160
38160
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
38161
38161
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -38220,13 +38220,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
38220
38220
|
}
|
|
38221
38221
|
}, "openStoreContext");
|
|
38222
38222
|
|
|
38223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
38224
38224
|
import { createHash as createHash17 } from "node:crypto";
|
|
38225
38225
|
|
|
38226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
38227
38227
|
import { createHash as createHash16 } from "node:crypto";
|
|
38228
38228
|
|
|
38229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
38230
38230
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
38231
38231
|
var ref = text4(2048);
|
|
38232
38232
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -38292,7 +38292,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
38292
38292
|
}))
|
|
38293
38293
|
});
|
|
38294
38294
|
|
|
38295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
38296
38296
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
38297
38297
|
var invalid9 = /* @__PURE__ */ __name((field4) => {
|
|
38298
38298
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -38425,7 +38425,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
38425
38425
|
return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
|
|
38426
38426
|
}, "projectAnnotationsFingerprint");
|
|
38427
38427
|
|
|
38428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
38429
38429
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
38430
38430
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
38431
38431
|
var targetSchema = strictObject({
|
|
@@ -38532,7 +38532,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
38532
38532
|
}, "planBoundProjectAnnotations");
|
|
38533
38533
|
var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
|
|
38534
38534
|
|
|
38535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
38536
38536
|
import { createHash as createHash18 } from "node:crypto";
|
|
38537
38537
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
38538
38538
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -38626,7 +38626,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
38626
38626
|
})).digest("hex");
|
|
38627
38627
|
}, "projectAnnotationSnapshotFingerprint");
|
|
38628
38628
|
|
|
38629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
38630
38630
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
38631
38631
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
38632
38632
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -38643,7 +38643,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
38643
38643
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
38644
38644
|
}, "projectAnnotationRequest");
|
|
38645
38645
|
|
|
38646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
38647
38647
|
var SnapshotBudget = class {
|
|
38648
38648
|
static {
|
|
38649
38649
|
__name(this, "SnapshotBudget");
|
|
@@ -38669,13 +38669,13 @@ var SnapshotBudget = class {
|
|
|
38669
38669
|
}
|
|
38670
38670
|
};
|
|
38671
38671
|
|
|
38672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
38673
38673
|
import { createHash as createHash20 } from "node:crypto";
|
|
38674
38674
|
|
|
38675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
38676
38676
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
38677
38677
|
|
|
38678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
38679
38679
|
import { createHash as createHash19 } from "node:crypto";
|
|
38680
38680
|
var invalid11 = /* @__PURE__ */ __name(() => {
|
|
38681
38681
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -38818,7 +38818,7 @@ var ProjectSnapshotSources = class {
|
|
|
38818
38818
|
}
|
|
38819
38819
|
};
|
|
38820
38820
|
|
|
38821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
38822
38822
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
38823
38823
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
38824
38824
|
}, "unsupported");
|
|
@@ -38989,7 +38989,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
38989
38989
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
38990
38990
|
}), "projectAnnotationSnapshot");
|
|
38991
38991
|
|
|
38992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
38993
38993
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
38994
38994
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
38995
38995
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -39051,7 +39051,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
39051
39051
|
};
|
|
39052
39052
|
}), "previewAnnotationSnapshot");
|
|
39053
39053
|
|
|
39054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
39055
39055
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
39056
39056
|
const mappings = { ...bindings };
|
|
39057
39057
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -39093,7 +39093,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
39093
39093
|
return mappings;
|
|
39094
39094
|
}, "restoreAnnotationRecords");
|
|
39095
39095
|
|
|
39096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
39097
39097
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
39098
39098
|
async preview(request) {
|
|
39099
39099
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -39123,7 +39123,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
39123
39123
|
}
|
|
39124
39124
|
}), "projectAnnotationStoreOver");
|
|
39125
39125
|
|
|
39126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
39127
39127
|
import { createHash as createHash21 } from "node:crypto";
|
|
39128
39128
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
39129
39129
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -39318,7 +39318,7 @@ var recordFingerprint = /* @__PURE__ */ __name((fields4, relations) => createHas
|
|
|
39318
39318
|
relations: relations.map((relation) => [relation.role, relation.type, relation.external_id]).sort((a, b) => a.join("\0").localeCompare(b.join("\0")))
|
|
39319
39319
|
}))).digest("hex"), "recordFingerprint");
|
|
39320
39320
|
|
|
39321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
39322
39322
|
var PROJECTED = {
|
|
39323
39323
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
39324
39324
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -39658,7 +39658,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39658
39658
|
};
|
|
39659
39659
|
}, "recordStoreOver");
|
|
39660
39660
|
|
|
39661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
39662
39662
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
39663
39663
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
39664
39664
|
let merged = { from: from2, to };
|
|
@@ -39671,7 +39671,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
39671
39671
|
}, "markRange");
|
|
39672
39672
|
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");
|
|
39673
39673
|
|
|
39674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
39675
39675
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
39676
39676
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
39677
39677
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -39692,7 +39692,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
39692
39692
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(prefixOf2(account) + chatId, JSON.stringify({ ...saved, checkedAt: checkedAt ?? new Date(now2).toISOString() }), now2);
|
|
39693
39693
|
}, "setTaskAnalysisMark");
|
|
39694
39694
|
|
|
39695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
39696
39696
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
39697
39697
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
39698
39698
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -39702,7 +39702,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
39702
39702
|
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);
|
|
39703
39703
|
}, "setTaskRulesStop");
|
|
39704
39704
|
|
|
39705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
39706
39706
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39707
39707
|
const { database } = context;
|
|
39708
39708
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -39761,7 +39761,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39761
39761
|
};
|
|
39762
39762
|
}, "syncStoreOver");
|
|
39763
39763
|
|
|
39764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
39765
39765
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39766
39766
|
const { database } = context;
|
|
39767
39767
|
return {
|
|
@@ -39783,7 +39783,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39783
39783
|
};
|
|
39784
39784
|
}, "tagsStoreOver");
|
|
39785
39785
|
|
|
39786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
39787
39787
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
39788
39788
|
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
|
|
39789
39789
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -39910,7 +39910,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
39910
39910
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
39911
39911
|
}, "savePictureChunks");
|
|
39912
39912
|
|
|
39913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
39914
39914
|
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,
|
|
39915
39915
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
39916
39916
|
FROM messages m
|
|
@@ -39999,7 +39999,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
39999
39999
|
return plain2(best(found2));
|
|
40000
40000
|
}, "nearestMessages");
|
|
40001
40001
|
|
|
40002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
40003
40003
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
40004
40004
|
const { database } = context;
|
|
40005
40005
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -40257,7 +40257,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
40257
40257
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
40258
40258
|
}), "vectorsStoreOver");
|
|
40259
40259
|
|
|
40260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
40261
40261
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
40262
40262
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
40263
40263
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -40345,10 +40345,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
40345
40345
|
}
|
|
40346
40346
|
}, "lastBackup");
|
|
40347
40347
|
|
|
40348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
40349
40349
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
40350
40350
|
|
|
40351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
40352
40352
|
var COUNTED_TABLES = [
|
|
40353
40353
|
"accounts",
|
|
40354
40354
|
"chats",
|
|
@@ -40433,7 +40433,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
40433
40433
|
};
|
|
40434
40434
|
}, "storeContents");
|
|
40435
40435
|
|
|
40436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
40437
40437
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
40438
40438
|
const context = await openStoreContext(options);
|
|
40439
40439
|
try {
|