@wirecat/cli-memo 0.131.24 → 0.131.26
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 +9 -12
- package/dist/actions/actions.d.ts +1 -1
- package/dist/actions/actions.d.ts.map +1 -1
- package/dist/actions/actions.js +27 -8
- package/dist/actions/actions.js.map +1 -1
- package/dist/actions/command.d.ts +1 -1
- package/dist/actions/command.d.ts.map +1 -1
- package/dist/actions/command.js +1 -12
- package/dist/actions/command.js.map +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-ZCJTYGOL.js → all-profiles-VULFSNYE.js} +9 -9
- package/dist/bundle/{anthropic-7WVLAKTX.js → anthropic-VXQ6ST2U.js} +6 -6
- package/dist/bundle/{app-server-6G3SXEHO.js → app-server-HQPELIPY.js} +42 -42
- package/dist/bundle/auto-3R4RFJGK.js +86 -0
- package/dist/bundle/{bun-JVBDJKBB.js → bun-2NMWL5YB.js} +2 -2
- package/dist/bundle/{bun-sqlite-P4I7NVMQ.js → bun-sqlite-CT544OXO.js} +5 -5
- package/dist/bundle/{chunk-EGG3PGCM.js → chunk-254TXVLA.js} +2 -2
- package/dist/bundle/{chunk-FXHN2UZW.js → chunk-2ND2XYME.js} +33 -17
- package/dist/bundle/{chunk-5YCNCXL5.js → chunk-3CVDHJER.js} +1 -1
- package/dist/bundle/{chunk-ALGIPJ6L.js → chunk-3ZJE5TIG.js} +2 -2
- package/dist/bundle/{chunk-3KNXQZMO.js → chunk-4ENVJFRM.js} +29 -29
- package/dist/bundle/{chunk-NAH473ZR.js → chunk-5FPQGUJA.js} +1 -1
- package/dist/bundle/{chunk-ZOYGY2PN.js → chunk-6PRRZC7Z.js} +3 -3
- package/dist/bundle/{chunk-CM2H7NRC.js → chunk-6TJCRDNZ.js} +4 -4
- package/dist/bundle/{chunk-AWGV4VOA.js → chunk-7ISENDNK.js} +12 -12
- package/dist/bundle/{chunk-UY2VH3QK.js → chunk-7LMTWOTP.js} +2 -2
- package/dist/bundle/{chunk-2IRCJT4O.js → chunk-A4NZ2XOG.js} +8 -8
- package/dist/bundle/{chunk-R3LNQ3I4.js → chunk-A6PITALJ.js} +4 -2
- package/dist/bundle/{chunk-EACY2ULS.js → chunk-AGMYCYSG.js} +306 -187
- package/dist/bundle/{chunk-EB7LKK4K.js → chunk-ARDUJR5Z.js} +1 -1
- package/dist/bundle/{chunk-UA2C4BCH.js → chunk-BELLQAWL.js} +9 -9
- package/dist/bundle/{chunk-LWIMGWKB.js → chunk-BO4FN4UB.js} +3 -3
- package/dist/bundle/{chunk-3MER7NE6.js → chunk-CRC3AW6N.js} +4 -4
- package/dist/bundle/{chunk-UVR6U55E.js → chunk-CUWI6JIX.js} +6 -6
- package/dist/bundle/{chunk-VLPMB3UU.js → chunk-CW3NJ764.js} +4 -4
- package/dist/bundle/{chunk-ND3GBFEY.js → chunk-DKKWZMR7.js} +2 -2
- package/dist/bundle/{chunk-BTQSFPIM.js → chunk-DUHXWFCB.js} +5 -5
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
- package/dist/bundle/{chunk-R2LJDDZP.js → chunk-FHY664YS.js} +4 -4
- package/dist/bundle/{chunk-JY4LVWGZ.js → chunk-G2BB5WY5.js} +15 -8
- package/dist/bundle/chunk-GJBK3M6X.js +452 -0
- package/dist/bundle/{chunk-ZDOVR4PA.js → chunk-GOEHJK2R.js} +7 -7
- package/dist/bundle/{chunk-GQOXFZBX.js → chunk-GPYGMETC.js} +286 -282
- package/dist/bundle/{chunk-DIMX5AEE.js → chunk-H6O6IQND.js} +5 -5
- package/dist/bundle/{chunk-ELKYINWL.js → chunk-HN3EDDVX.js} +13 -13
- package/dist/bundle/{chunk-GSEDSGJF.js → chunk-HVVBSM2C.js} +753 -648
- package/dist/bundle/{chunk-JCCL7RGH.js → chunk-I7PL5WX2.js} +4 -4
- package/dist/bundle/{chunk-LNXFM4FD.js → chunk-IJ34FAES.js} +45 -26
- package/dist/bundle/{chunk-MPVW7BQZ.js → chunk-IUM5XZWV.js} +6 -6
- package/dist/bundle/{chunk-GRXVN2X7.js → chunk-J57DDKF4.js} +1 -1
- package/dist/bundle/{chunk-INTF3YPV.js → chunk-KFDPW2AR.js} +2 -2
- package/dist/bundle/{chunk-AIGMYGEL.js → chunk-KMZRXGTF.js} +1 -1
- package/dist/bundle/{chunk-MROFZXAB.js → chunk-KTDNFSXC.js} +22 -22
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-VVEFQEWP.js → chunk-LJZFMXDC.js} +22 -22
- package/dist/bundle/{chunk-OQK2IKPB.js → chunk-LMN7SYX4.js} +1 -1
- package/dist/bundle/{chunk-RTESJ5O2.js → chunk-M4QN77GH.js} +4 -4
- package/dist/bundle/{chunk-M43DAAZ7.js → chunk-M6O4DH5F.js} +1 -1
- package/dist/bundle/{chunk-UXCDBNAY.js → chunk-MQAHMAJB.js} +2 -2
- package/dist/bundle/{chunk-XF3LZ32F.js → chunk-NAM2Y63Z.js} +3 -3
- package/dist/bundle/{chunk-UPXUE27A.js → chunk-NH2JSH24.js} +6 -6
- package/dist/bundle/{chunk-3U7OUQV2.js → chunk-OYB3FUYQ.js} +1 -1
- package/dist/bundle/{chunk-J6D34BFP.js → chunk-PWA3RNXN.js} +260 -263
- package/dist/bundle/{chunk-KQSHIQSV.js → chunk-QFW4MJIH.js} +239 -242
- package/dist/bundle/{chunk-CPJEQK4V.js → chunk-QKQ7A4L7.js} +46 -46
- package/dist/bundle/{chunk-N5H6I7WQ.js → chunk-S3RBWUUA.js} +6 -6
- package/dist/bundle/{chunk-Q6MFBH6Q.js → chunk-SY7M2DLJ.js} +9 -9
- package/dist/bundle/{chunk-EKTZEF3Q.js → chunk-TKVRZZE3.js} +3 -27
- package/dist/bundle/{chunk-SKTGBVYC.js → chunk-TPFWNOPG.js} +4 -4
- package/dist/bundle/{chunk-F2ED6KG6.js → chunk-TXANQZEG.js} +3 -3
- package/dist/bundle/{chunk-T4LW6UYQ.js → chunk-TZ7WDQPD.js} +40 -34
- package/dist/bundle/{chunk-AIVUS6WA.js → chunk-UZXCBBDC.js} +15 -12
- package/dist/bundle/{chunk-XSI5NYGB.js → chunk-VL3YCTZD.js} +8 -8
- package/dist/bundle/{chunk-ZLZE5P6M.js → chunk-WRZ7JDA2.js} +8 -8
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
- package/dist/bundle/{chunk-JDDVGGUV.js → chunk-XKGXVVYV.js} +10 -10
- package/dist/bundle/{chunk-ITQBXFMC.js → chunk-YFBKS5BW.js} +3 -3
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-IC2TL7RW.js → chunk-Z3YGDBBS.js} +2 -2
- package/dist/bundle/{chunk-IJC6MFLP.js → chunk-ZR3BPBS6.js} +10 -10
- package/dist/bundle/command-contract-RQMIQKBS.js +32 -0
- package/dist/bundle/{decode-YHX3DQG2.js → decode-7VB3CHK2.js} +5 -5
- package/dist/bundle/{dispatch-MELZFYOS.js → dispatch-CU5KGRQL.js} +8 -8
- package/dist/bundle/{echarts-FBVAP7BR.js → echarts-45D6USAX.js} +2 -2
- package/dist/bundle/{embed-CQJ42S5C.js → embed-KU2RGB24.js} +6 -6
- package/dist/bundle/{embedder-EDXLEJ27.js → embedder-E7YZDZ5Y.js} +9 -9
- package/dist/bundle/{entry-HZEA7QFK.js → entry-N42HJMIN.js} +7 -7
- package/dist/bundle/failure-R355OCVE.js +66 -0
- package/dist/bundle/{failure-RBNZBCZJ.js → failure-TUXXI6JT.js} +2 -2
- package/dist/bundle/{first-run-JZQN7R6M.js → first-run-Y5YNAAO3.js} +11 -11
- package/dist/bundle/first-screen-SNPGBQFZ.js +30 -0
- package/dist/bundle/{instructions-NYVYNWVU.js → instructions-6EFSPC7C.js} +1 -1
- package/dist/bundle/mcp-6Z7UKX7E.js +90 -0
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-2QE6UPGS.js → node-OXC26QXO.js} +2 -2
- package/dist/bundle/{node-sqlite-SDHZJNY7.js → node-sqlite-FNTICDEN.js} +6 -6
- package/dist/bundle/{oauth-FFUJREKS.js → oauth-4JFOFCBB.js} +7 -7
- package/dist/bundle/{open-NT2GYX6N.js → open-WXFCCY7S.js} +5 -5
- package/dist/bundle/{openai-IQA2XR6Z.js → openai-TPQKQNM7.js} +10 -10
- package/dist/bundle/{process-HIEJXYW6.js → process-YWPAOI6G.js} +1 -1
- package/dist/bundle/{chunk-DMQ3342A.js → program-WFUPN7XO.js} +9769 -2059
- package/dist/bundle/{prompt-IOZAME2R.js → prompt-HJUH4EP4.js} +5 -5
- package/dist/bundle/{recognize-2XOAZJ5N.js → recognize-DAIRHALM.js} +4 -4
- package/dist/bundle/{remote-2LE7OTDA.js → remote-MJLWTLAX.js} +7 -7
- package/dist/bundle/{rerank-UKOVVZM6.js → rerank-VAK5HSJE.js} +7 -7
- package/dist/bundle/{serve-S2UHPEBP.js → serve-M2A66WOW.js} +9 -9
- package/dist/bundle/server-33FB7QXW.js +48 -0
- package/dist/bundle/server-AIPDQO57.js +61 -0
- package/dist/bundle/{server-BG4WWQHY.js → server-NN2CBVSX.js} +57 -57
- package/dist/bundle/{state-F5KT3CBD.js → state-6TBUXJOX.js} +6 -6
- package/dist/bundle/{store-WBUUS7FO.js → store-TJCL3QBY.js} +13 -13
- package/dist/bundle/store-maintenance-command-NKJV5A3G.js +48 -0
- package/dist/bundle/update-OXR3SNM2.js +69 -0
- package/dist/config.d.ts +15 -29
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +23 -36
- package/dist/config.js.map +1 -1
- package/dist/context/command.d.ts.map +1 -1
- package/dist/context/command.js +6 -2
- package/dist/context/command.js.map +1 -1
- package/dist/context/context.d.ts +2 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +15 -0
- package/dist/context/context.js.map +1 -1
- package/dist/doctor/command.d.ts +0 -12
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +19 -24
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +3 -9
- package/dist/examples.js.map +1 -1
- package/dist/failure.d.ts +2 -2
- package/dist/mail/command.d.ts.map +1 -1
- package/dist/mail/command.js +2 -87
- package/dist/mail/command.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +1 -1
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/messages-command.d.ts.map +1 -1
- package/dist/mail/messages-command.js +9 -2
- package/dist/mail/messages-command.js.map +1 -1
- package/dist/mail/moved.d.ts +1 -1
- package/dist/mail/moved.d.ts.map +1 -1
- package/dist/mail/moved.js +3 -0
- package/dist/mail/moved.js.map +1 -1
- package/dist/mail/review-command.d.ts +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +5 -8
- package/dist/mail/review-command.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -25
- package/dist/reasons.js.map +1 -1
- package/dist/review/command.d.ts +0 -1
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +2 -10
- package/dist/review/command.js.map +1 -1
- package/dist/review/kinds.d.ts +4 -21
- package/dist/review/kinds.d.ts.map +1 -1
- package/dist/review/kinds.js +13 -174
- package/dist/review/kinds.js.map +1 -1
- package/dist/review/review.js +2 -2
- package/dist/review/review.js.map +1 -1
- package/dist/review/status.js +2 -2
- package/dist/review/status.js.map +1 -1
- package/dist/run/auto.js +3 -3
- package/dist/run/auto.js.map +1 -1
- package/dist/run/import.d.ts +2 -2
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +24 -121
- package/dist/run/import.js.map +1 -1
- package/dist/schedule/command.d.ts +2 -2
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +9 -4
- package/dist/schedule/command.js.map +1 -1
- package/dist/search/command.js +1 -1
- package/dist/store/source-list.d.ts +1 -6
- package/dist/store/source-list.d.ts.map +1 -1
- package/dist/store/source-list.js +11 -46
- package/dist/store/source-list.js.map +1 -1
- package/dist/tasks/command.js +1 -1
- package/dist/tasks/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/set-up.md +3 -3
- package/skills/cli-memo/SKILL.md +13 -21
- package/skills/mail-triage/SKILL.md +28 -16
- package/dist/bundle/auto-JWPM5654.js +0 -86
- package/dist/bundle/chunk-MLMSQK76.js +0 -103
- package/dist/bundle/command-contract-543RRFNU.js +0 -32
- package/dist/bundle/failure-62G7QSPX.js +0 -66
- package/dist/bundle/first-screen-56V3UOQE.js +0 -30
- package/dist/bundle/mcp-Y6IPYDS2.js +0 -90
- package/dist/bundle/program-DEMRKCZY.js +0 -10972
- package/dist/bundle/server-3YNOEPWU.js +0 -61
- package/dist/bundle/server-EZWQ5KP4.js +0 -48
- package/dist/bundle/setup-2X7ADKFH.js +0 -973
- package/dist/bundle/store-maintenance-command-KLST56XF.js +0 -48
- package/dist/bundle/update-WH4CGJGP.js +0 -69
- package/dist/mail/accounts.d.ts +0 -7
- package/dist/mail/accounts.d.ts.map +0 -1
- package/dist/mail/accounts.js +0 -28
- package/dist/mail/accounts.js.map +0 -1
- package/dist/mail/backfill-headers.d.ts +0 -11
- package/dist/mail/backfill-headers.d.ts.map +0 -1
- package/dist/mail/backfill-headers.js +0 -84
- package/dist/mail/backfill-headers.js.map +0 -1
- package/dist/mail/domain-age.d.ts +0 -26
- package/dist/mail/domain-age.d.ts.map +0 -1
- package/dist/mail/domain-age.js +0 -151
- package/dist/mail/domain-age.js.map +0 -1
- package/dist/mail/gmail.d.ts +0 -39
- package/dist/mail/gmail.d.ts.map +0 -1
- package/dist/mail/gmail.js +0 -325
- package/dist/mail/gmail.js.map +0 -1
- package/dist/mail/himalaya.d.ts +0 -22
- package/dist/mail/himalaya.d.ts.map +0 -1
- package/dist/mail/himalaya.js +0 -113
- package/dist/mail/himalaya.js.map +0 -1
- package/dist/mail/mbox.d.ts +0 -9
- package/dist/mail/mbox.d.ts.map +0 -1
- package/dist/mail/mbox.js +0 -230
- package/dist/mail/mbox.js.map +0 -1
- package/dist/mail/repair.d.ts +0 -7
- package/dist/mail/repair.d.ts.map +0 -1
- package/dist/mail/repair.js +0 -54
- package/dist/mail/repair.js.map +0 -1
- package/dist/mail/rule-store.d.ts +0 -12
- package/dist/mail/rule-store.d.ts.map +0 -1
- package/dist/mail/rule-store.js +0 -83
- package/dist/mail/rule-store.js.map +0 -1
- package/dist/mail/setup-command.d.ts +0 -4
- package/dist/mail/setup-command.d.ts.map +0 -1
- package/dist/mail/setup-command.js +0 -41
- package/dist/mail/setup-command.js.map +0 -1
- package/dist/mail/setup.d.ts +0 -19
- package/dist/mail/setup.d.ts.map +0 -1
- package/dist/mail/setup.js +0 -95
- package/dist/mail/setup.js.map +0 -1
- package/dist/mail/slices.d.ts +0 -6
- package/dist/mail/slices.d.ts.map +0 -1
- package/dist/mail/slices.js +0 -7
- package/dist/mail/slices.js.map +0 -1
- package/dist/mail/source.d.ts +0 -7
- package/dist/mail/source.d.ts.map +0 -1
- package/dist/mail/source.js +0 -119
- package/dist/mail/source.js.map +0 -1
- package/dist/mail/sync.d.ts +0 -21
- package/dist/mail/sync.d.ts.map +0 -1
- package/dist/mail/sync.js +0 -24
- package/dist/mail/sync.js.map +0 -1
- /package/dist/bundle/{chunk-CWOKGEL3.js → chunk-DF7NE4ZG.js} +0 -0
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -71,11 +71,11 @@ import {
|
|
|
71
71
|
validateQuery,
|
|
72
72
|
walkQuery,
|
|
73
73
|
zonedMoment
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-QFW4MJIH.js";
|
|
75
75
|
import {
|
|
76
76
|
holdsCredential,
|
|
77
77
|
secretNamed
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-J57DDKF4.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_STEMMERS,
|
|
81
81
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -88,26 +88,26 @@ import {
|
|
|
88
88
|
fold,
|
|
89
89
|
normalize,
|
|
90
90
|
parseStemmers
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-A4NZ2XOG.js";
|
|
92
92
|
import {
|
|
93
93
|
DEFAULT_TASK_CATEGORIES,
|
|
94
94
|
sharedConfigPath,
|
|
95
95
|
storedTaskCategories,
|
|
96
96
|
taskCategoriesReader
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-NH2JSH24.js";
|
|
98
98
|
import {
|
|
99
99
|
refuseOwnerStoreInTests,
|
|
100
100
|
storePath
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-MQAHMAJB.js";
|
|
102
102
|
import {
|
|
103
103
|
quietSqliteWarning,
|
|
104
104
|
storeCapable
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-CUWI6JIX.js";
|
|
106
106
|
import {
|
|
107
107
|
PRAGMAS,
|
|
108
108
|
TIME_LIMIT_FUNCTION,
|
|
109
109
|
TimeLimitReached
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-KMZRXGTF.js";
|
|
111
111
|
import {
|
|
112
112
|
array,
|
|
113
113
|
boolean,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
safeParse,
|
|
125
125
|
strictObject,
|
|
126
126
|
string
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-G2BB5WY5.js";
|
|
128
128
|
import {
|
|
129
129
|
resolveFrom
|
|
130
130
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
CliError,
|
|
133
133
|
isCliError,
|
|
134
134
|
singleLine
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-EB2IULWB.js";
|
|
136
136
|
import {
|
|
137
137
|
SQLiteTable,
|
|
138
138
|
TableAliasProxyHandler,
|
|
@@ -157,12 +157,12 @@ import {
|
|
|
157
157
|
sql,
|
|
158
158
|
sqliteTable,
|
|
159
159
|
text
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-LMN7SYX4.js";
|
|
161
161
|
import {
|
|
162
162
|
__name
|
|
163
163
|
} from "./chunk-ZVVMGPBJ.js";
|
|
164
164
|
|
|
165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
166
166
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
167
167
|
const methods = whole;
|
|
168
168
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -290,7 +290,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
290
290
|
};
|
|
291
291
|
}, "bindAccount");
|
|
292
292
|
|
|
293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
294
294
|
var SCHEME = "msg:";
|
|
295
295
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
296
296
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -304,7 +304,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
304
304
|
return { provider, account, chat: chat2, message: message2 };
|
|
305
305
|
}, "parseLocator");
|
|
306
306
|
|
|
307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
308
308
|
var SIMPLE_REFERENCES = [
|
|
309
309
|
"note",
|
|
310
310
|
"document",
|
|
@@ -451,7 +451,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
451
451
|
return match !== null && byPrefix.has(match[1]);
|
|
452
452
|
}, "looksLikeReference");
|
|
453
453
|
|
|
454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
455
455
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
456
456
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
457
457
|
var PROVIDERS = [
|
|
@@ -567,7 +567,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
567
567
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
568
568
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
569
569
|
|
|
570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
571
571
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
572
572
|
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");
|
|
573
573
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -590,7 +590,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
590
590
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
591
591
|
}, "sourceOf");
|
|
592
592
|
|
|
593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
594
594
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
595
595
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
596
596
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -777,7 +777,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
|
|
|
777
777
|
return { accounts: [...chosen.values()], skipped };
|
|
778
778
|
}, "fitting");
|
|
779
779
|
|
|
780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
781
781
|
var IndexBuilderOn = class {
|
|
782
782
|
static {
|
|
783
783
|
__name(this, "IndexBuilderOn");
|
|
@@ -972,7 +972,7 @@ function alias(table, alias2) {
|
|
|
972
972
|
}
|
|
973
973
|
__name(alias, "alias");
|
|
974
974
|
|
|
975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
976
976
|
var ENTITY_TABLES = {
|
|
977
977
|
account: "accounts",
|
|
978
978
|
attachment: "attachments",
|
|
@@ -1014,7 +1014,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
1014
1014
|
return { table, pointer, type, count, known: known2 };
|
|
1015
1015
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
1016
1016
|
|
|
1017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
1018
1018
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
1019
1019
|
id: integer("id").primaryKey(),
|
|
1020
1020
|
name: text("name").notNull().unique(),
|
|
@@ -1023,7 +1023,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
1023
1023
|
updatedAt: integer("updated_at").notNull()
|
|
1024
1024
|
});
|
|
1025
1025
|
|
|
1026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
1027
1027
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
1028
1028
|
sourceKey: text("source_key").notNull(),
|
|
1029
1029
|
collection: text("collection").notNull(),
|
|
@@ -1033,13 +1033,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
1033
1033
|
createdAt: integer("created_at").notNull()
|
|
1034
1034
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
1037
1037
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
1038
1038
|
id: integer("id").notNull(),
|
|
1039
1039
|
indexableType: text("indexable_type").notNull()
|
|
1040
1040
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
1041
1041
|
|
|
1042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
1043
1043
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
1044
1044
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
1045
1045
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -1065,7 +1065,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
1065
1065
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
1066
1066
|
]);
|
|
1067
1067
|
|
|
1068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
1069
1069
|
var accounts = sqliteTable("accounts", {
|
|
1070
1070
|
id: integer("id").primaryKey(),
|
|
1071
1071
|
provider: text("provider").notNull(),
|
|
@@ -2688,7 +2688,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2688
2688
|
at: integer("at").notNull()
|
|
2689
2689
|
});
|
|
2690
2690
|
|
|
2691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2692
2692
|
var ARMS = [
|
|
2693
2693
|
[
|
|
2694
2694
|
"message",
|
|
@@ -2815,7 +2815,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2815
2815
|
return recomputed;
|
|
2816
2816
|
}, "drainInvolvementQueue");
|
|
2817
2817
|
|
|
2818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2819
2819
|
import { domainToUnicode } from "node:url";
|
|
2820
2820
|
|
|
2821
2821
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12837,7 +12837,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12837
12837
|
}, "oa");
|
|
12838
12838
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12839
12839
|
|
|
12840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12841
12841
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12842
12842
|
var ID = /^[\w-]{10,}$/;
|
|
12843
12843
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12878,7 +12878,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
12878
12878
|
return { url, documentId: googleDocumentId(url) };
|
|
12879
12879
|
}), "googleDocumentLinks");
|
|
12880
12880
|
|
|
12881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12882
12882
|
var PHONE_PLANS = [
|
|
12883
12883
|
{
|
|
12884
12884
|
country: "us",
|
|
@@ -13258,7 +13258,7 @@ var PHONE_PLANS = [
|
|
|
13258
13258
|
}
|
|
13259
13259
|
];
|
|
13260
13260
|
|
|
13261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
13262
13262
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
13263
13263
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
13264
13264
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -13299,7 +13299,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
13299
13299
|
return void 0;
|
|
13300
13300
|
}, "nationalPhone");
|
|
13301
13301
|
|
|
13302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
13303
13303
|
var BEFORE = [
|
|
13304
13304
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
13305
13305
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13559,7 +13559,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
13559
13559
|
return found2.sort((a, b) => a.start - b.start);
|
|
13560
13560
|
}, "findPlaces");
|
|
13561
13561
|
|
|
13562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13563
13563
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13564
13564
|
var MENTION_VERSIONS = {
|
|
13565
13565
|
phone: 1,
|
|
@@ -13749,7 +13749,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13749
13749
|
};
|
|
13750
13750
|
}, "typedPhone");
|
|
13751
13751
|
|
|
13752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13753
13753
|
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";
|
|
13754
13754
|
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";
|
|
13755
13755
|
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";
|
|
@@ -13757,7 +13757,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13757
13757
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13758
13758
|
var NAME_WORDS = WORDS.split(" ");
|
|
13759
13759
|
|
|
13760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13761
13761
|
var LATIN_TO_CYRILLIC = {
|
|
13762
13762
|
shch: "\u0449",
|
|
13763
13763
|
sch: "\u0449",
|
|
@@ -13965,7 +13965,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
13965
13965
|
return found2;
|
|
13966
13966
|
}, "findUnknownNames");
|
|
13967
13967
|
|
|
13968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13969
13969
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13970
13970
|
"webpage",
|
|
13971
13971
|
"share",
|
|
@@ -14005,7 +14005,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
14005
14005
|
});
|
|
14006
14006
|
}, "matchDownloads");
|
|
14007
14007
|
|
|
14008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
14009
14009
|
var QUERY_VERSION = 1;
|
|
14010
14010
|
var QUERY_LIMITS2 = {
|
|
14011
14011
|
...QUERY_LIMITS,
|
|
@@ -14041,7 +14041,7 @@ function exhausted(budget) {
|
|
|
14041
14041
|
}
|
|
14042
14042
|
__name(exhausted, "exhausted");
|
|
14043
14043
|
|
|
14044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
14045
14045
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
14046
14046
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
14047
14047
|
kind: "char",
|
|
@@ -14441,7 +14441,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14441
14441
|
return out;
|
|
14442
14442
|
}, "foldRegex");
|
|
14443
14443
|
|
|
14444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14445
14445
|
var PRESET_VERSION = 1;
|
|
14446
14446
|
var PRESETS = {
|
|
14447
14447
|
password: {
|
|
@@ -14495,7 +14495,7 @@ var PRESETS = {
|
|
|
14495
14495
|
}
|
|
14496
14496
|
};
|
|
14497
14497
|
|
|
14498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14499
14499
|
var FIELD_VERSION = 2;
|
|
14500
14500
|
var UNITS = {
|
|
14501
14501
|
"": 1,
|
|
@@ -14956,12 +14956,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
14956
14956
|
return validateFields(parsed3.output);
|
|
14957
14957
|
}, "validateAst");
|
|
14958
14958
|
|
|
14959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
14960
14960
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
14961
14961
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
14962
14962
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
14963
14963
|
|
|
14964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
14965
14965
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
14966
14966
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
14967
14967
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -14985,7 +14985,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
14985
14985
|
};
|
|
14986
14986
|
}, "linkMatch");
|
|
14987
14987
|
|
|
14988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
14989
14989
|
var SETTING = "phoneCountries";
|
|
14990
14990
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
14991
14991
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -15016,7 +15016,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
15016
15016
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
15017
15017
|
}, "valueMatch");
|
|
15018
15018
|
|
|
15019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
15020
15020
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
15021
15021
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
15022
15022
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -15044,7 +15044,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
15044
15044
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
15045
15045
|
}, "vocabularySimilarity");
|
|
15046
15046
|
|
|
15047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
15048
15048
|
import { createHash } from "node:crypto";
|
|
15049
15049
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
15050
15050
|
try {
|
|
@@ -15110,7 +15110,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
|
|
|
15110
15110
|
});
|
|
15111
15111
|
}, "guardTagCreation");
|
|
15112
15112
|
|
|
15113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
15114
15114
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
15115
15115
|
throw new CliError("validation_error", message2);
|
|
15116
15116
|
}, "invalid");
|
|
@@ -15187,7 +15187,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
15187
15187
|
};
|
|
15188
15188
|
}, "createTagRedirectIndex");
|
|
15189
15189
|
|
|
15190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
15191
15191
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
15192
15192
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
15193
15193
|
if (!row2)
|
|
@@ -15215,7 +15215,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
15215
15215
|
return snapshot2;
|
|
15216
15216
|
}, "tagRedirectSnapshot");
|
|
15217
15217
|
|
|
15218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
15219
15219
|
import { createHash as createHash2 } from "node:crypto";
|
|
15220
15220
|
var TASK_KEY_PREFIXES = {
|
|
15221
15221
|
question: "Q",
|
|
@@ -15243,7 +15243,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15243
15243
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
15244
15244
|
}, "taskAccountOf");
|
|
15245
15245
|
|
|
15246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
15247
15247
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
15248
15248
|
var REFERABLE = {
|
|
15249
15249
|
note: { tombstone: true },
|
|
@@ -15407,7 +15407,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15407
15407
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
15408
15408
|
}, "taskIdOf");
|
|
15409
15409
|
|
|
15410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15411
15411
|
var toMs = /* @__PURE__ */ __name((iso13) => {
|
|
15412
15412
|
if (iso13 === null || iso13 === void 0)
|
|
15413
15413
|
return null;
|
|
@@ -15421,7 +15421,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15421
15421
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15422
15422
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15423
15423
|
|
|
15424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15425
15425
|
var TAG_KINDS = ["tag", "topic"];
|
|
15426
15426
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15427
15427
|
var TAG_TYPE = {
|
|
@@ -15624,7 +15624,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15624
15624
|
return result;
|
|
15625
15625
|
}, "tagsOf");
|
|
15626
15626
|
|
|
15627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15628
15628
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15629
15629
|
var SPEECH = speech("att");
|
|
15630
15630
|
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");
|
|
@@ -15988,7 +15988,7 @@ var FIELD_COMPILERS = {
|
|
|
15988
15988
|
subject
|
|
15989
15989
|
};
|
|
15990
15990
|
|
|
15991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15992
15992
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15993
15993
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15994
15994
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -16004,7 +16004,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
16004
16004
|
};
|
|
16005
16005
|
}, "placeOf");
|
|
16006
16006
|
|
|
16007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
16008
16008
|
var DRAIN_ON_WRITE = 500;
|
|
16009
16009
|
var METHOD = "rules";
|
|
16010
16010
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -16167,7 +16167,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
16167
16167
|
return queued.length;
|
|
16168
16168
|
}, "drainMentions");
|
|
16169
16169
|
|
|
16170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
16171
16171
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
16172
16172
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
16173
16173
|
if (!exists2)
|
|
@@ -16175,7 +16175,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
16175
16175
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
16176
16176
|
}, "indexRow");
|
|
16177
16177
|
|
|
16178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
16179
16179
|
var INDEX = "message_stems";
|
|
16180
16180
|
var SETTING2 = "searchStemmers";
|
|
16181
16181
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -16297,7 +16297,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
16297
16297
|
};
|
|
16298
16298
|
}, "stemmerCache");
|
|
16299
16299
|
|
|
16300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
16301
16301
|
var SQLITE_BUSY = 5;
|
|
16302
16302
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
16303
16303
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -16392,7 +16392,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
16392
16392
|
}
|
|
16393
16393
|
}, "read");
|
|
16394
16394
|
|
|
16395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
16396
16396
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
16397
16397
|
coalesce(CASE k.chunkable_type
|
|
16398
16398
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16534,7 +16534,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16534
16534
|
}, "dropUnusedVectors");
|
|
16535
16535
|
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");
|
|
16536
16536
|
|
|
16537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16538
16538
|
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({
|
|
16539
16539
|
target: [accounts.provider, accounts.externalId],
|
|
16540
16540
|
set: {
|
|
@@ -16643,7 +16643,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16643
16643
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16644
16644
|
}, "dropOrphanPeople");
|
|
16645
16645
|
|
|
16646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
16647
16647
|
var FOLDED = [
|
|
16648
16648
|
{ table: "tasks", column: "title" },
|
|
16649
16649
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -16680,7 +16680,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
16680
16680
|
return filled2;
|
|
16681
16681
|
}, "fillFolded");
|
|
16682
16682
|
|
|
16683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
16684
16684
|
var HISTORY_KEY = "$history";
|
|
16685
16685
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
16686
16686
|
if (typeof text6 !== "string")
|
|
@@ -16756,7 +16756,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
16756
16756
|
return rest;
|
|
16757
16757
|
}, "withoutHistory");
|
|
16758
16758
|
|
|
16759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16760
16760
|
import { createHash as createHash3 } from "node:crypto";
|
|
16761
16761
|
var CHUNK_CHARS = 1200;
|
|
16762
16762
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16861,7 +16861,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16861
16861
|
return chunks2;
|
|
16862
16862
|
}, "cutChunks");
|
|
16863
16863
|
|
|
16864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
16865
16865
|
var DAY = 864e5;
|
|
16866
16866
|
var CURRENCY = [
|
|
16867
16867
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -16987,7 +16987,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
16987
16987
|
return best?.day ?? null;
|
|
16988
16988
|
}, "dueDayOf");
|
|
16989
16989
|
|
|
16990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
16991
16991
|
var DAY2 = 864e5;
|
|
16992
16992
|
var STOP_WORDS = new Set([
|
|
16993
16993
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -17142,7 +17142,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
17142
17142
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
17143
17143
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
17144
17144
|
|
|
17145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
17146
17146
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
17147
17147
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
17148
17148
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17413,7 +17413,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17413
17413
|
};
|
|
17414
17414
|
}, "readiness");
|
|
17415
17415
|
|
|
17416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17417
17417
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17418
17418
|
var SCAN_PAGE2 = 5e3;
|
|
17419
17419
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17476,7 +17476,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17476
17476
|
}, "nearestPictures")
|
|
17477
17477
|
}), "documentPicturesOver");
|
|
17478
17478
|
|
|
17479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
17480
17480
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
17481
17481
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
17482
17482
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -17541,7 +17541,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
17541
17541
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
17542
17542
|
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");
|
|
17543
17543
|
|
|
17544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17545
17545
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17546
17546
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17547
17547
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17631,7 +17631,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17631
17631
|
});
|
|
17632
17632
|
}, "linkMeeting");
|
|
17633
17633
|
|
|
17634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17635
17635
|
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), ''))";
|
|
17636
17636
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17637
17637
|
"working-location",
|
|
@@ -17861,7 +17861,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17861
17861
|
return true;
|
|
17862
17862
|
}, "resetNoteIndex");
|
|
17863
17863
|
|
|
17864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
17865
17865
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
17866
17866
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
17867
17867
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -17880,7 +17880,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
17880
17880
|
}
|
|
17881
17881
|
}, "resolvePersonLinks");
|
|
17882
17882
|
|
|
17883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
17884
17884
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
17885
17885
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
17886
17886
|
find: orm.select({
|
|
@@ -18105,7 +18105,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
18105
18105
|
}, "meetingIdentityPk");
|
|
18106
18106
|
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");
|
|
18107
18107
|
|
|
18108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
18109
18109
|
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");
|
|
18110
18110
|
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");
|
|
18111
18111
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -18385,7 +18385,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
18385
18385
|
}
|
|
18386
18386
|
}, "replaceAutoTags");
|
|
18387
18387
|
|
|
18388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
18389
18389
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
18390
18390
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
18391
18391
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -18404,7 +18404,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
18404
18404
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
18405
18405
|
}, "counterFreshness");
|
|
18406
18406
|
|
|
18407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
18408
18408
|
import { createHash as createHash4 } from "node:crypto";
|
|
18409
18409
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
18410
18410
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -18502,7 +18502,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
18502
18502
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
18503
18503
|
}, "contextEvidenceRequest");
|
|
18504
18504
|
|
|
18505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
18506
18506
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
18507
18507
|
var ACTIVITY = `
|
|
18508
18508
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -18618,7 +18618,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
18618
18618
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
18619
18619
|
}), "mailActivity");
|
|
18620
18620
|
|
|
18621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
18622
18622
|
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");
|
|
18623
18623
|
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;
|
|
18624
18624
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -18759,7 +18759,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
18759
18759
|
return text6 || body2.trim();
|
|
18760
18760
|
}, "mailOwnText");
|
|
18761
18761
|
|
|
18762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
18763
18763
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
18764
18764
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
18765
18765
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18869,7 +18869,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
18869
18869
|
return emails3 + threads;
|
|
18870
18870
|
}, "drainEmailIndex");
|
|
18871
18871
|
|
|
18872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
18873
18873
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
18874
18874
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
18875
18875
|
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,
|
|
@@ -18967,7 +18967,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
18967
18967
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
18968
18968
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
18969
18969
|
|
|
18970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18971
18971
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18972
18972
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18973
18973
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -19017,7 +19017,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
19017
19017
|
return threads.length;
|
|
19018
19018
|
}, "markEmailsRestored");
|
|
19019
19019
|
|
|
19020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
19021
19021
|
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");
|
|
19022
19022
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
19023
19023
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19084,7 +19084,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
19084
19084
|
}
|
|
19085
19085
|
}), "mailRulesOver");
|
|
19086
19086
|
|
|
19087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
19088
19088
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
19089
19089
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
19090
19090
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -19092,7 +19092,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
19092
19092
|
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);
|
|
19093
19093
|
}, "reviewLink");
|
|
19094
19094
|
|
|
19095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
19096
19096
|
function checkMeetingCancelled(signal) {
|
|
19097
19097
|
if (!signal?.aborted)
|
|
19098
19098
|
return;
|
|
@@ -19103,7 +19103,7 @@ function checkMeetingCancelled(signal) {
|
|
|
19103
19103
|
}
|
|
19104
19104
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
19105
19105
|
|
|
19106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
19107
19107
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
19108
19108
|
id: Number(row2.id),
|
|
19109
19109
|
accountId: Number(row2.account_id),
|
|
@@ -19153,7 +19153,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
19153
19153
|
createdAt: Number(row2.created_at)
|
|
19154
19154
|
}), "transcriptRowOf");
|
|
19155
19155
|
|
|
19156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
19157
19157
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
19158
19158
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
19159
19159
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -19320,7 +19320,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19320
19320
|
}
|
|
19321
19321
|
}), "meetingReadsOver");
|
|
19322
19322
|
|
|
19323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
19324
19324
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
19325
19325
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
19326
19326
|
const params = [input.accountId];
|
|
@@ -19363,7 +19363,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
19363
19363
|
return { clauses, params };
|
|
19364
19364
|
}, "meetingSelectionSql");
|
|
19365
19365
|
|
|
19366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
19367
19367
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19368
19368
|
async meetingChatLines(input) {
|
|
19369
19369
|
checkMeetingCancelled(input.signal);
|
|
@@ -19391,7 +19391,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19391
19391
|
}
|
|
19392
19392
|
}), "meetingChatLinesOver");
|
|
19393
19393
|
|
|
19394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
19395
19395
|
var MESSAGE_FIELDS = {
|
|
19396
19396
|
pk: messages.id,
|
|
19397
19397
|
nativeId: messages.externalId,
|
|
@@ -19562,7 +19562,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
19562
19562
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
19563
19563
|
}), "chatActivity");
|
|
19564
19564
|
|
|
19565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
19566
19566
|
var HIT_FIELDS = {
|
|
19567
19567
|
...MESSAGE_FIELDS,
|
|
19568
19568
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -19661,7 +19661,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
19661
19661
|
};
|
|
19662
19662
|
}, "directReplies");
|
|
19663
19663
|
|
|
19664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
19665
19665
|
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");
|
|
19666
19666
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
19667
19667
|
const found2 = identityRow(context, ref3);
|
|
@@ -19792,7 +19792,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
19792
19792
|
}, "mentioning");
|
|
19793
19793
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
19794
19794
|
|
|
19795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
19796
19796
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
19797
19797
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
19798
19798
|
}, "missing");
|
|
@@ -19914,7 +19914,7 @@ function meetingContextLinksOver(context) {
|
|
|
19914
19914
|
}
|
|
19915
19915
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
19916
19916
|
|
|
19917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19918
19918
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19919
19919
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19920
19920
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19943,7 +19943,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19943
19943
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19944
19944
|
}, "indexedText");
|
|
19945
19945
|
|
|
19946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19947
19947
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19948
19948
|
var meetingCurrentIndexRows = `
|
|
19949
19949
|
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
|
|
@@ -19974,7 +19974,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19974
19974
|
}, "invalidateMeetingStems");
|
|
19975
19975
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19976
19976
|
|
|
19977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19978
19978
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19979
19979
|
return {
|
|
19980
19980
|
async indexSearch(original) {
|
|
@@ -20042,10 +20042,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
20042
20042
|
}
|
|
20043
20043
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
20044
20044
|
|
|
20045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
20046
20046
|
import { createHash as createHash5 } from "node:crypto";
|
|
20047
20047
|
|
|
20048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
20049
20049
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
20050
20050
|
const padded = ` ${term} `;
|
|
20051
20051
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -20054,7 +20054,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
20054
20054
|
return [...pieces];
|
|
20055
20055
|
}, "trigrams");
|
|
20056
20056
|
|
|
20057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
20058
20058
|
var SHORTEST_CORRECTION = 3;
|
|
20059
20059
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
20060
20060
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -20101,7 +20101,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
20101
20101
|
return corrections;
|
|
20102
20102
|
}, "correctWords");
|
|
20103
20103
|
|
|
20104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
20105
20105
|
var SHORTEST_GARBLED = 4;
|
|
20106
20106
|
var MOST_WIDENED = 64;
|
|
20107
20107
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -20193,7 +20193,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
20193
20193
|
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));
|
|
20194
20194
|
}, "widenWords");
|
|
20195
20195
|
|
|
20196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
20197
20197
|
import { readFileSync } from "node:fs";
|
|
20198
20198
|
var loaded;
|
|
20199
20199
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -20252,7 +20252,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
20252
20252
|
return false;
|
|
20253
20253
|
}, "knownRussianWord");
|
|
20254
20254
|
|
|
20255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
20256
20256
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
20257
20257
|
var MOST_WORDS = 128;
|
|
20258
20258
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -20479,7 +20479,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
20479
20479
|
return check3(tree);
|
|
20480
20480
|
}, "matchMeetingText");
|
|
20481
20481
|
|
|
20482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
20483
20483
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
20484
20484
|
throw new CliError("validation_error", message2);
|
|
20485
20485
|
}, "fail");
|
|
@@ -20661,7 +20661,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
20661
20661
|
}
|
|
20662
20662
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
20663
20663
|
|
|
20664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
20665
20665
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20666
20666
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
20667
20667
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -20693,7 +20693,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20693
20693
|
}
|
|
20694
20694
|
}), "meetingLanguagesOver");
|
|
20695
20695
|
|
|
20696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
20697
20697
|
import { createHash as createHash6 } from "node:crypto";
|
|
20698
20698
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
20699
20699
|
if (value === void 0)
|
|
@@ -20783,7 +20783,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
20783
20783
|
}
|
|
20784
20784
|
}), "meetingParticipantSearchOver");
|
|
20785
20785
|
|
|
20786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
20787
20787
|
var preparationQueries = {
|
|
20788
20788
|
participants: {
|
|
20789
20789
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -20833,7 +20833,7 @@ var preparationQueries = {
|
|
|
20833
20833
|
}
|
|
20834
20834
|
};
|
|
20835
20835
|
|
|
20836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
20837
20837
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20838
20838
|
async preparationContext(original) {
|
|
20839
20839
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -20874,7 +20874,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20874
20874
|
}
|
|
20875
20875
|
}), "meetingPreparationContextOver");
|
|
20876
20876
|
|
|
20877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
20878
20878
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
20879
20879
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
20880
20880
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -20888,7 +20888,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
20888
20888
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
20889
20889
|
)`, "preparationSubjects");
|
|
20890
20890
|
|
|
20891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
20892
20892
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20893
20893
|
async preparationKnowledge(original) {
|
|
20894
20894
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20933,7 +20933,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
20933
20933
|
}
|
|
20934
20934
|
}), "meetingPreparationKnowledgeOver");
|
|
20935
20935
|
|
|
20936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
20937
20937
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20938
20938
|
async preparationNotes(original) {
|
|
20939
20939
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20986,7 +20986,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20986
20986
|
}
|
|
20987
20987
|
}), "meetingPreparationNotesOver");
|
|
20988
20988
|
|
|
20989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20990
20990
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20991
20991
|
async relatedHistory(original) {
|
|
20992
20992
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -21057,7 +21057,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21057
21057
|
}
|
|
21058
21058
|
}), "meetingRelatedHistoryOver");
|
|
21059
21059
|
|
|
21060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
21061
21061
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
21062
21062
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
21063
21063
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -21138,7 +21138,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21138
21138
|
}
|
|
21139
21139
|
}), "meetingReviewOver");
|
|
21140
21140
|
|
|
21141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
21142
21142
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
21143
21143
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
21144
21144
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -21192,7 +21192,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21192
21192
|
}
|
|
21193
21193
|
}), "meetingSeriesHistoryOver");
|
|
21194
21194
|
|
|
21195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
21196
21196
|
var MOST_ROWS = 5e5;
|
|
21197
21197
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
21198
21198
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -21261,7 +21261,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21261
21261
|
}
|
|
21262
21262
|
}), "meetingStatsOver");
|
|
21263
21263
|
|
|
21264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
21265
21265
|
var CURSOR_KEY = "meetings";
|
|
21266
21266
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
21267
21267
|
id: Number(row2.id),
|
|
@@ -21830,7 +21830,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
21830
21830
|
};
|
|
21831
21831
|
}, "meetingStoreOver");
|
|
21832
21832
|
|
|
21833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
21834
21834
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
21835
21835
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
21836
21836
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -21856,7 +21856,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
21856
21856
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
21857
21857
|
}, "release");
|
|
21858
21858
|
|
|
21859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
21860
21860
|
var THREAD_COLUMNS = {
|
|
21861
21861
|
subject: {
|
|
21862
21862
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -21873,7 +21873,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
21873
21873
|
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);
|
|
21874
21874
|
}, "threadRows");
|
|
21875
21875
|
|
|
21876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
21877
21877
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
21878
21878
|
id: `email:${place.emailId}`,
|
|
21879
21879
|
chatId: place.threadExternalId,
|
|
@@ -22429,7 +22429,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
22429
22429
|
}
|
|
22430
22430
|
}), "mailStoreOver");
|
|
22431
22431
|
|
|
22432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
22433
22433
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
22434
22434
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
22435
22435
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -22519,7 +22519,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
22519
22519
|
}, "knownWord");
|
|
22520
22520
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
22521
22521
|
|
|
22522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
22523
22523
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
22524
22524
|
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");
|
|
22525
22525
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -22605,7 +22605,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
22605
22605
|
return found2;
|
|
22606
22606
|
}, "spokenTranscripts");
|
|
22607
22607
|
|
|
22608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
22609
22609
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
22610
22610
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
22611
22611
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -22652,7 +22652,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
22652
22652
|
});
|
|
22653
22653
|
}, "placeHits");
|
|
22654
22654
|
|
|
22655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
22656
22656
|
var GROUPS = {
|
|
22657
22657
|
chat: {
|
|
22658
22658
|
key: "m.chat_id",
|
|
@@ -22674,7 +22674,7 @@ var GROUPS = {
|
|
|
22674
22674
|
}
|
|
22675
22675
|
};
|
|
22676
22676
|
|
|
22677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
22678
22678
|
var MESSAGES2 = {
|
|
22679
22679
|
rows: "messages",
|
|
22680
22680
|
threads: "chats",
|
|
@@ -23157,7 +23157,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
23157
23157
|
};
|
|
23158
23158
|
}, "runCompiled");
|
|
23159
23159
|
|
|
23160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
23161
23161
|
function invalidMetadata() {
|
|
23162
23162
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
23163
23163
|
}
|
|
@@ -23259,7 +23259,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
23259
23259
|
};
|
|
23260
23260
|
}), "counterTargets");
|
|
23261
23261
|
|
|
23262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
23263
23263
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
23264
23264
|
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,
|
|
23265
23265
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -23378,7 +23378,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
23378
23378
|
}));
|
|
23379
23379
|
}, "attachmentViews");
|
|
23380
23380
|
|
|
23381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
23382
23382
|
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");
|
|
23383
23383
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
23384
23384
|
const { orm, database, now: now2 } = context;
|
|
@@ -23416,7 +23416,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
23416
23416
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
23417
23417
|
}, "intoVoiceAttachment");
|
|
23418
23418
|
|
|
23419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
23420
23420
|
var FIELDS = [
|
|
23421
23421
|
"threadExternalId",
|
|
23422
23422
|
"senderIdentityId",
|
|
@@ -23733,7 +23733,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
23733
23733
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
23734
23734
|
}, "writeDerivedReactions");
|
|
23735
23735
|
|
|
23736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
23737
23737
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
23738
23738
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
23739
23739
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -23754,7 +23754,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
23754
23754
|
};
|
|
23755
23755
|
}, "keysOver");
|
|
23756
23756
|
|
|
23757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
23758
23758
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
23759
23759
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
23760
23760
|
if (!row2)
|
|
@@ -23789,7 +23789,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
23789
23789
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
23790
23790
|
}, "saveProfile");
|
|
23791
23791
|
|
|
23792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
23793
23793
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
23794
23794
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
23795
23795
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -23846,7 +23846,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
23846
23846
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
23847
23847
|
}, "proposedBySql");
|
|
23848
23848
|
|
|
23849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
23850
23850
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
23851
23851
|
const owner = ownerPerson(context.database).id;
|
|
23852
23852
|
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);
|
|
@@ -23867,7 +23867,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
23867
23867
|
return personOf(context, ref3);
|
|
23868
23868
|
}, "linkToOwner");
|
|
23869
23869
|
|
|
23870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
23871
23871
|
var PROVIDERS_SETTING = "providers";
|
|
23872
23872
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
23873
23873
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -23902,7 +23902,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
23902
23902
|
});
|
|
23903
23903
|
}, "registerProvider");
|
|
23904
23904
|
|
|
23905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
23906
23906
|
var DAY3 = 864e5;
|
|
23907
23907
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
23908
23908
|
var TEXT_LIMIT = 20;
|
|
@@ -24101,7 +24101,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
24101
24101
|
};
|
|
24102
24102
|
}, "taskSimilarityOver");
|
|
24103
24103
|
|
|
24104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
24105
24105
|
var SETTING3 = "taskCategories";
|
|
24106
24106
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
24107
24107
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -24120,7 +24120,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
24120
24120
|
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);
|
|
24121
24121
|
}, "saveTaskCategories");
|
|
24122
24122
|
|
|
24123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
24124
24124
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
24125
24125
|
var ALLOWED = "taskAgentClose";
|
|
24126
24126
|
var MIN = "taskAgentCloseMin";
|
|
@@ -24176,10 +24176,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
24176
24176
|
];
|
|
24177
24177
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
24178
24178
|
|
|
24179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
24180
24180
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
24181
24181
|
|
|
24182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
24183
24183
|
var TASK_CLOSE_KIND = "task_close";
|
|
24184
24184
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
24185
24185
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -24227,7 +24227,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
24227
24227
|
}, "assertMayDecide");
|
|
24228
24228
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
24229
24229
|
|
|
24230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
24231
24231
|
var CURRENCY_SCALES = {
|
|
24232
24232
|
AED: 2,
|
|
24233
24233
|
AMD: 2,
|
|
@@ -24312,7 +24312,7 @@ var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
|
24312
24312
|
}, "quantityOf");
|
|
24313
24313
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
24314
24314
|
|
|
24315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
24316
24316
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
24317
24317
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
24318
24318
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -24341,7 +24341,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
24341
24341
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
24342
24342
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
24343
24343
|
|
|
24344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
24345
24345
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
24346
24346
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
24347
24347
|
var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
|
|
@@ -24393,7 +24393,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
24393
24393
|
return `${WORDS2[summary.kind]} ${named2}${notes3 === "" ? "" : ` (${notes3})`}`;
|
|
24394
24394
|
}, "refLabel");
|
|
24395
24395
|
|
|
24396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
24397
24397
|
var EXCERPT_CHARS = 280;
|
|
24398
24398
|
var TITLE_CHARS = 120;
|
|
24399
24399
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -24746,7 +24746,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
24746
24746
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
24747
24747
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
|
|
24748
24748
|
|
|
24749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
24750
24750
|
var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
|
|
24751
24751
|
ref: ref3,
|
|
24752
24752
|
kind: read2.kind,
|
|
@@ -24782,7 +24782,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
24782
24782
|
});
|
|
24783
24783
|
}, "evidenceSourcesOf");
|
|
24784
24784
|
|
|
24785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
24786
24786
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
24787
24787
|
var MAX_TEXT_CHARS = 2e6;
|
|
24788
24788
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -24808,7 +24808,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
24808
24808
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
24809
24809
|
}, "pdfPreviewLimits");
|
|
24810
24810
|
|
|
24811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
24812
24812
|
import { randomBytes } from "node:crypto";
|
|
24813
24813
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
24814
24814
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -24821,7 +24821,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
24821
24821
|
return time3 + random;
|
|
24822
24822
|
}, "ulid");
|
|
24823
24823
|
|
|
24824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
24825
24825
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
24826
24826
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
24827
24827
|
if (!meta && !sections?.length)
|
|
@@ -24842,7 +24842,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
24842
24842
|
return typeof language === "string" && language !== "" ? language : null;
|
|
24843
24843
|
}, "languageOf");
|
|
24844
24844
|
|
|
24845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
24846
24846
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
24847
24847
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
24848
24848
|
if (isObject(value))
|
|
@@ -25085,7 +25085,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
25085
25085
|
};
|
|
25086
25086
|
}, "filesStoreOver");
|
|
25087
25087
|
|
|
25088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
25089
25089
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
25090
25090
|
entity: "document",
|
|
25091
25091
|
backend: "sql",
|
|
@@ -25131,7 +25131,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
25131
25131
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
25132
25132
|
}, "importedDocumentWhere");
|
|
25133
25133
|
|
|
25134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
25135
25135
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
25136
25136
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
25137
25137
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -25657,7 +25657,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25657
25657
|
};
|
|
25658
25658
|
}, "notesStoreOver");
|
|
25659
25659
|
|
|
25660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
25661
25661
|
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";
|
|
25662
25662
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
25663
25663
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -25879,7 +25879,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25879
25879
|
};
|
|
25880
25880
|
}, "memoriesStoreOver");
|
|
25881
25881
|
|
|
25882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
25883
25883
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
25884
25884
|
var KEY = "taskFirstPassPerChat";
|
|
25885
25885
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -25899,7 +25899,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
25899
25899
|
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);
|
|
25900
25900
|
}, "saveFirstPassPerChat");
|
|
25901
25901
|
|
|
25902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
25903
25903
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
25904
25904
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
25905
25905
|
name,
|
|
@@ -26122,7 +26122,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
26122
26122
|
return root === void 0 ? void 0 : { ...query, root };
|
|
26123
26123
|
}, "withoutField");
|
|
26124
26124
|
|
|
26125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
26126
26126
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
26127
26127
|
if (row2.author_type == null)
|
|
26128
26128
|
return null;
|
|
@@ -26150,7 +26150,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
26150
26150
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
26151
26151
|
}, "addComment");
|
|
26152
26152
|
|
|
26153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
26154
26154
|
var TASK_RELATION_KINDS = [
|
|
26155
26155
|
"blocked-by",
|
|
26156
26156
|
"follow-up-of",
|
|
@@ -26280,7 +26280,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
26280
26280
|
};
|
|
26281
26281
|
}, "taskRelationsStoreOver");
|
|
26282
26282
|
|
|
26283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
26284
26284
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
26285
26285
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
26286
26286
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
|
|
@@ -26300,7 +26300,7 @@ var timesAsIso = /* @__PURE__ */ __name((changes) => Object.fromEntries(Object.e
|
|
|
26300
26300
|
var checkRevision = /* @__PURE__ */ __name((row2, expected) => {
|
|
26301
26301
|
if (expected === void 0 || Number(row2.revision) === expected)
|
|
26302
26302
|
return;
|
|
26303
|
-
throw new CliError("
|
|
26303
|
+
throw new CliError("conflict", `task ${String(row2.key)} changed since revision ${expected}; it is at ${String(row2.revision)}: read it again`, { reason: "task.stale", revision: Number(row2.revision) });
|
|
26304
26304
|
}, "checkRevision");
|
|
26305
26305
|
var workTaskOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
26306
26306
|
const { database, now: now2 } = context;
|
|
@@ -26800,7 +26800,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
26800
26800
|
};
|
|
26801
26801
|
}, "workTasksOver");
|
|
26802
26802
|
|
|
26803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
26804
26804
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
26805
26805
|
const { database, now: now2 } = context;
|
|
26806
26806
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -26849,7 +26849,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
26849
26849
|
};
|
|
26850
26850
|
}, "taskCloseOver");
|
|
26851
26851
|
|
|
26852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
26853
26853
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
26854
26854
|
const { database, now: now2 } = context;
|
|
26855
26855
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -27067,7 +27067,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
27067
27067
|
};
|
|
27068
27068
|
}, "taskPairsOver");
|
|
27069
27069
|
|
|
27070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
27071
27071
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
27072
27072
|
var TASK_STATS_SQL = {
|
|
27073
27073
|
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"),
|
|
@@ -27106,7 +27106,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
27106
27106
|
}, "statNames")
|
|
27107
27107
|
}), "taskStatsOver");
|
|
27108
27108
|
|
|
27109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
27110
27110
|
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";
|
|
27111
27111
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
27112
27112
|
const key2 = inboxKey(account);
|
|
@@ -27313,7 +27313,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
27313
27313
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
27314
27314
|
}, "oneOf");
|
|
27315
27315
|
|
|
27316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
27317
27317
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
27318
27318
|
const { database } = context;
|
|
27319
27319
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -27358,7 +27358,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
27358
27358
|
};
|
|
27359
27359
|
}, "accountsStoreOver");
|
|
27360
27360
|
|
|
27361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
27362
27362
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
27363
27363
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
27364
27364
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -27382,7 +27382,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
27382
27382
|
})), "keepDownloads");
|
|
27383
27383
|
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");
|
|
27384
27384
|
|
|
27385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
27386
27386
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
27387
27387
|
const { database } = context;
|
|
27388
27388
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -27439,7 +27439,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
27439
27439
|
}, "keepAttachmentText")
|
|
27440
27440
|
}), "attachmentsStoreOver");
|
|
27441
27441
|
|
|
27442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
27443
27443
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
27444
27444
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
27445
27445
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -27619,7 +27619,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
27619
27619
|
return done;
|
|
27620
27620
|
}, "rekeyChats");
|
|
27621
27621
|
|
|
27622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
27623
27623
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
27624
27624
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
27625
27625
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -27677,7 +27677,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
27677
27677
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
27678
27678
|
}, "chatCoverage");
|
|
27679
27679
|
|
|
27680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
27681
27681
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
27682
27682
|
const { database } = context;
|
|
27683
27683
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -27812,7 +27812,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
27812
27812
|
};
|
|
27813
27813
|
}, "chatsStoreOver");
|
|
27814
27814
|
|
|
27815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
27816
27816
|
import { createHash as createHash7 } from "node:crypto";
|
|
27817
27817
|
var BATCH_CONTEXT = 50;
|
|
27818
27818
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -27950,7 +27950,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
27950
27950
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
27951
27951
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
27952
27952
|
|
|
27953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
27954
27954
|
import { setTimeout } from "node:timers/promises";
|
|
27955
27955
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
27956
27956
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -28262,7 +28262,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
28262
28262
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
28263
28263
|
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");
|
|
28264
28264
|
|
|
28265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
28266
28266
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28267
28267
|
const { database } = context;
|
|
28268
28268
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -28369,7 +28369,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28369
28369
|
};
|
|
28370
28370
|
}, "conversationsStoreOver");
|
|
28371
28371
|
|
|
28372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
28373
28373
|
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";
|
|
28374
28374
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
28375
28375
|
const { database } = context;
|
|
@@ -28394,7 +28394,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28394
28394
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
28395
28395
|
}), "countersStoreOver");
|
|
28396
28396
|
|
|
28397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
28398
28398
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
28399
28399
|
var MENTION_QUERY = defineQuery({
|
|
28400
28400
|
entity: "mention",
|
|
@@ -28610,7 +28610,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
28610
28610
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
28611
28611
|
}, "listPlaces");
|
|
28612
28612
|
|
|
28613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
28614
28614
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
28615
28615
|
const { database } = context;
|
|
28616
28616
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -28645,7 +28645,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28645
28645
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
28646
28646
|
}), "mentionsStoreOver");
|
|
28647
28647
|
|
|
28648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
28649
28649
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
28650
28650
|
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");
|
|
28651
28651
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -28660,7 +28660,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
28660
28660
|
}));
|
|
28661
28661
|
}, "documentLinkMessages");
|
|
28662
28662
|
|
|
28663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
28664
28664
|
var stemmerFor = stemmerCache();
|
|
28665
28665
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
28666
28666
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -28704,7 +28704,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
28704
28704
|
});
|
|
28705
28705
|
}, "laterSharingRare");
|
|
28706
28706
|
|
|
28707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
28708
28708
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
28709
28709
|
const { database } = context;
|
|
28710
28710
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -28839,7 +28839,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28839
28839
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
28840
28840
|
}), "messagesStoreOver");
|
|
28841
28841
|
|
|
28842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
28843
28843
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
28844
28844
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
28845
28845
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -28896,7 +28896,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
28896
28896
|
});
|
|
28897
28897
|
}, "personPreparation");
|
|
28898
28898
|
|
|
28899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
28900
28900
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
28901
28901
|
const id2 = Number(uid);
|
|
28902
28902
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -28904,7 +28904,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
28904
28904
|
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)));
|
|
28905
28905
|
}, "personSeenInAccounts");
|
|
28906
28906
|
|
|
28907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
28908
28908
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
28909
28909
|
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);
|
|
28910
28910
|
if (!row2)
|
|
@@ -28970,7 +28970,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
28970
28970
|
return { id: id2, personId, removed: true };
|
|
28971
28971
|
}, "removeNote");
|
|
28972
28972
|
|
|
28973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
28974
28974
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
28975
28975
|
const { database } = context;
|
|
28976
28976
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -29055,13 +29055,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
29055
29055
|
};
|
|
29056
29056
|
}, "peopleStoreOver");
|
|
29057
29057
|
|
|
29058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
29059
29059
|
import { createHash as createHash9 } from "node:crypto";
|
|
29060
29060
|
|
|
29061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
29062
29062
|
import { createHash as createHash8 } from "node:crypto";
|
|
29063
29063
|
|
|
29064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
29065
29065
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
29066
29066
|
var AUTHOR_MEASURES = [
|
|
29067
29067
|
"messages",
|
|
@@ -29201,7 +29201,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
29201
29201
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
29202
29202
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
29203
29203
|
|
|
29204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
29205
29205
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
29206
29206
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
29207
29207
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -29423,7 +29423,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
29423
29423
|
};
|
|
29424
29424
|
}, "rankReplyGraph");
|
|
29425
29425
|
|
|
29426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
29427
29427
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
29428
29428
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
29429
29429
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -29597,7 +29597,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
29597
29597
|
return { items, evidence, summary, graph: graph.quality };
|
|
29598
29598
|
}, "calculateAdminStatistics");
|
|
29599
29599
|
|
|
29600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
29601
29601
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
29602
29602
|
const dates = [];
|
|
29603
29603
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -29619,7 +29619,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
29619
29619
|
return dates[0].node.resolution.date;
|
|
29620
29620
|
}, "rankingContextRange");
|
|
29621
29621
|
|
|
29622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
29623
29623
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
29624
29624
|
let counts;
|
|
29625
29625
|
try {
|
|
@@ -29914,7 +29914,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
29914
29914
|
});
|
|
29915
29915
|
}, "rankQuery");
|
|
29916
29916
|
|
|
29917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
29918
29918
|
function fail4(message2, reason = "query.too-large") {
|
|
29919
29919
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
29920
29920
|
}
|
|
@@ -30091,7 +30091,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
30091
30091
|
return result;
|
|
30092
30092
|
}), "adminStatisticsQuery");
|
|
30093
30093
|
|
|
30094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
30095
30095
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
30096
30096
|
if (!execution.accounts.length)
|
|
30097
30097
|
return { conversations: [], chats: [] };
|
|
@@ -30109,7 +30109,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
30109
30109
|
return { conversations: conversations2, chats: chats2 };
|
|
30110
30110
|
}, "conversationEligibility");
|
|
30111
30111
|
|
|
30112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
30113
30113
|
import { createHash as createHash10 } from "node:crypto";
|
|
30114
30114
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
30115
30115
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -30259,7 +30259,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
30259
30259
|
return result;
|
|
30260
30260
|
}, "rankingEvidence");
|
|
30261
30261
|
|
|
30262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
30263
30263
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
30264
30264
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
30265
30265
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -30353,7 +30353,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
30353
30353
|
});
|
|
30354
30354
|
}, "waitingChats");
|
|
30355
30355
|
|
|
30356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
30357
30357
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
30358
30358
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
30359
30359
|
if (execution.corpus === "mail")
|
|
@@ -30374,7 +30374,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
30374
30374
|
};
|
|
30375
30375
|
}, "queriesStoreOver");
|
|
30376
30376
|
|
|
30377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
30378
30378
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
30379
30379
|
const { database, now: now2 } = context;
|
|
30380
30380
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -30413,10 +30413,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
30413
30413
|
}));
|
|
30414
30414
|
}, "chatEventsOf");
|
|
30415
30415
|
|
|
30416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
30417
30417
|
import { createHash as createHash11 } from "node:crypto";
|
|
30418
30418
|
|
|
30419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
30420
30420
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
30421
30421
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
30422
30422
|
timeZone: zone,
|
|
@@ -30436,7 +30436,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
|
|
|
30436
30436
|
return date3.toISOString().slice(0, 10);
|
|
30437
30437
|
}, "weekKey");
|
|
30438
30438
|
|
|
30439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
30440
30440
|
var RETENTION_TOLERANCE = 864e5;
|
|
30441
30441
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
30442
30442
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -30490,7 +30490,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
30490
30490
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
30491
30491
|
}, "retentionCohorts");
|
|
30492
30492
|
|
|
30493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
30494
30494
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
30495
30495
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
30496
30496
|
validateRetentionOptions(options);
|
|
@@ -30621,7 +30621,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
30621
30621
|
};
|
|
30622
30622
|
}, "retentionQuery");
|
|
30623
30623
|
|
|
30624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
30625
30625
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
30626
30626
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
30627
30627
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -30752,7 +30752,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
30752
30752
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
30753
30753
|
})), "trackedChats");
|
|
30754
30754
|
|
|
30755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
30756
30756
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
30757
30757
|
const { database } = context;
|
|
30758
30758
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -30808,7 +30808,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30808
30808
|
};
|
|
30809
30809
|
}, "rosterStoreOver");
|
|
30810
30810
|
|
|
30811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
30812
30812
|
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");
|
|
30813
30813
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
30814
30814
|
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 ?`);
|
|
@@ -30832,7 +30832,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
30832
30832
|
}
|
|
30833
30833
|
}, "backfillNormalized");
|
|
30834
30834
|
|
|
30835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
30836
30836
|
var INDEX2 = "message_words";
|
|
30837
30837
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
30838
30838
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -30959,7 +30959,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
30959
30959
|
});
|
|
30960
30960
|
}, "resetSearchIndex");
|
|
30961
30961
|
|
|
30962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
30963
30963
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
30964
30964
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
30965
30965
|
const before2 = stemsState(database);
|
|
@@ -31054,7 +31054,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
31054
31054
|
return resetStems(database, { now: now2 });
|
|
31055
31055
|
}, "followDefaultStemmers");
|
|
31056
31056
|
|
|
31057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
31058
31058
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
31059
31059
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
31060
31060
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -31076,7 +31076,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
31076
31076
|
});
|
|
31077
31077
|
}, "termCandidates");
|
|
31078
31078
|
|
|
31079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
31080
31080
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
31081
31081
|
const { database } = context;
|
|
31082
31082
|
const stemmerFor2 = stemmerCache();
|
|
@@ -31098,7 +31098,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31098
31098
|
};
|
|
31099
31099
|
}, "searchIndexStoreOver");
|
|
31100
31100
|
|
|
31101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
31102
31102
|
var HISTORY_KEPT = 1e3;
|
|
31103
31103
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
31104
31104
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -31167,7 +31167,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
31167
31167
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
31168
31168
|
}, "clearHistory");
|
|
31169
31169
|
|
|
31170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
31171
31171
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
31172
31172
|
const { database } = context;
|
|
31173
31173
|
return {
|
|
@@ -31191,7 +31191,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31191
31191
|
};
|
|
31192
31192
|
}, "searchesStoreOver");
|
|
31193
31193
|
|
|
31194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
31195
31195
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
31196
31196
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
31197
31197
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -31234,7 +31234,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
31234
31234
|
};
|
|
31235
31235
|
}, "agentActionsStoreOver");
|
|
31236
31236
|
|
|
31237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
31238
31238
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
31239
31239
|
}) => {
|
|
31240
31240
|
const { database, now: now2 } = context;
|
|
@@ -31293,7 +31293,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
31293
31293
|
};
|
|
31294
31294
|
}, "botUpdateStoreOver");
|
|
31295
31295
|
|
|
31296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
31297
31297
|
var DAY4 = 864e5;
|
|
31298
31298
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
31299
31299
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -31402,7 +31402,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
31402
31402
|
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);
|
|
31403
31403
|
}, "listEvents");
|
|
31404
31404
|
|
|
31405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
31406
31406
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
31407
31407
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
31408
31408
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -31457,7 +31457,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
31457
31457
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
31458
31458
|
}, "forgetCalendarRows");
|
|
31459
31459
|
|
|
31460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
31461
31461
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
31462
31462
|
id: Number(row2.id),
|
|
31463
31463
|
accountId: Number(row2.account_id),
|
|
@@ -32044,7 +32044,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32044
32044
|
};
|
|
32045
32045
|
}, "eventStoreOver");
|
|
32046
32046
|
|
|
32047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
32048
32048
|
var CATALOG_QUERY = defineQuery({
|
|
32049
32049
|
entity: "document",
|
|
32050
32050
|
backend: "sql",
|
|
@@ -32286,7 +32286,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
32286
32286
|
};
|
|
32287
32287
|
}, "catalogStoreOver");
|
|
32288
32288
|
|
|
32289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
32290
32290
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
32291
32291
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
32292
32292
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -32299,7 +32299,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
32299
32299
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
32300
32300
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
32301
32301
|
|
|
32302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
32303
32303
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
32304
32304
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
32305
32305
|
signal?.throwIfAborted();
|
|
@@ -32398,7 +32398,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
32398
32398
|
});
|
|
32399
32399
|
}, "readMeetingContextEvidence");
|
|
32400
32400
|
|
|
32401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
32402
32402
|
var corpora = {
|
|
32403
32403
|
message: {
|
|
32404
32404
|
table: "messages",
|
|
@@ -32637,7 +32637,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
32637
32637
|
}
|
|
32638
32638
|
}), "contextRecordsOver");
|
|
32639
32639
|
|
|
32640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
32641
32641
|
var NOTE_FIELDS = [
|
|
32642
32642
|
"text",
|
|
32643
32643
|
"exact",
|
|
@@ -33067,7 +33067,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
33067
33067
|
};
|
|
33068
33068
|
}, "noteSearchOver");
|
|
33069
33069
|
|
|
33070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
33071
33071
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
33072
33072
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
33073
33073
|
var EVENT_CORPUS = {
|
|
@@ -33199,7 +33199,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
33199
33199
|
};
|
|
33200
33200
|
}, "eventSearchOver");
|
|
33201
33201
|
|
|
33202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
33203
33203
|
var refuse2 = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
33204
33204
|
throw new CliError(code, message2, { reason });
|
|
33205
33205
|
}, "refuse");
|
|
@@ -33634,7 +33634,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33634
33634
|
};
|
|
33635
33635
|
}, "financeStoreOver");
|
|
33636
33636
|
|
|
33637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
33638
33638
|
var refuse3 = /* @__PURE__ */ __name((message2, reason) => {
|
|
33639
33639
|
throw new CliError("validation_error", message2, { reason });
|
|
33640
33640
|
}, "refuse");
|
|
@@ -33712,7 +33712,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
33712
33712
|
};
|
|
33713
33713
|
}, "paymentEntriesOver");
|
|
33714
33714
|
|
|
33715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
33716
33716
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
33717
33717
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
33718
33718
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -33738,7 +33738,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
33738
33738
|
return valid;
|
|
33739
33739
|
}, "validateEvidenceFindings");
|
|
33740
33740
|
|
|
33741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
33742
33742
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
33743
33743
|
try {
|
|
33744
33744
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -33750,7 +33750,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
33750
33750
|
}
|
|
33751
33751
|
}, "calendarMoment");
|
|
33752
33752
|
|
|
33753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
33754
33754
|
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";
|
|
33755
33755
|
var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
33756
33756
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -33932,7 +33932,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33932
33932
|
};
|
|
33933
33933
|
}, "factsStoreOver");
|
|
33934
33934
|
|
|
33935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
33936
33936
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
33937
33937
|
throw new CliError("validation_error", message2);
|
|
33938
33938
|
}, "invalid");
|
|
@@ -34034,7 +34034,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
34034
34034
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
34035
34035
|
}, "findingsCoreOver");
|
|
34036
34036
|
|
|
34037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
34038
34038
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
34039
34039
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
34040
34040
|
var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -34199,7 +34199,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34199
34199
|
};
|
|
34200
34200
|
}, "proposedActionsStoreOver");
|
|
34201
34201
|
|
|
34202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
34203
34203
|
var stale = /* @__PURE__ */ __name(() => {
|
|
34204
34204
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
34205
34205
|
reason: "evidence-findings.stale"
|
|
@@ -34380,7 +34380,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34380
34380
|
};
|
|
34381
34381
|
}, "evidenceFindingsStoreOver");
|
|
34382
34382
|
|
|
34383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
34384
34384
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
34385
34385
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
34386
34386
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -34433,7 +34433,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
34433
34433
|
}, "forPerson")
|
|
34434
34434
|
}), "involvementStoreOver");
|
|
34435
34435
|
|
|
34436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
34437
34437
|
import { createHash as createHash12 } from "node:crypto";
|
|
34438
34438
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
34439
34439
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -34519,7 +34519,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
34519
34519
|
};
|
|
34520
34520
|
}, "meetingProjectsStoreOver");
|
|
34521
34521
|
|
|
34522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
34523
34523
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
34524
34524
|
id: link3.id,
|
|
34525
34525
|
from: link3.from,
|
|
@@ -34745,16 +34745,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
34745
34745
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
34746
34746
|
}, "decidedOrigin");
|
|
34747
34747
|
|
|
34748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
34749
34749
|
import { createHash as createHash15 } from "node:crypto";
|
|
34750
34750
|
|
|
34751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34752
34752
|
import { createHash as createHash14 } from "node:crypto";
|
|
34753
34753
|
|
|
34754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34755
34755
|
import { createHash as createHash13 } from "node:crypto";
|
|
34756
34756
|
|
|
34757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
34758
34758
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
34759
34759
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
34760
34760
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -34805,7 +34805,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
34805
34805
|
return input;
|
|
34806
34806
|
}, "consolidationApplyInput");
|
|
34807
34807
|
|
|
34808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34809
34809
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
34810
34810
|
id: String(row2.id),
|
|
34811
34811
|
sourceId: String(row2.source_id),
|
|
@@ -34880,7 +34880,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
34880
34880
|
}, { beforeCommit: check3 });
|
|
34881
34881
|
}, "applyTagConsolidation");
|
|
34882
34882
|
|
|
34883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34884
34884
|
var selections = [
|
|
34885
34885
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
34886
34886
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -35024,7 +35024,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
35024
35024
|
};
|
|
35025
35025
|
}, "previewRows");
|
|
35026
35026
|
|
|
35027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
35028
35028
|
var kinds = ["project", "tag", "topic"];
|
|
35029
35029
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
35030
35030
|
if (signal?.aborted)
|
|
@@ -35288,7 +35288,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35288
35288
|
};
|
|
35289
35289
|
}, "vocabularyStoreOver");
|
|
35290
35290
|
|
|
35291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
35292
35292
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
35293
35293
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
35294
35294
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -35845,7 +35845,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
35845
35845
|
return key2.padEnd(3, "X");
|
|
35846
35846
|
}, "projectKey");
|
|
35847
35847
|
|
|
35848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
35849
35849
|
var DAY5 = 864e5;
|
|
35850
35850
|
var SETTING4 = "logs_pruned_at";
|
|
35851
35851
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -35872,7 +35872,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
35872
35872
|
};
|
|
35873
35873
|
}, "logPruner");
|
|
35874
35874
|
|
|
35875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
35876
35876
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
35877
35877
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
35878
35878
|
var invalid6 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -35998,7 +35998,7 @@ var validateMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
35998
35998
|
}, "validateMailFindings");
|
|
35999
35999
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
36000
36000
|
|
|
36001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
36002
36002
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
36003
36003
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
36004
36004
|
reason: "mail-findings.stale"
|
|
@@ -36058,7 +36058,7 @@ var mailFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36058
36058
|
receipt: proposal.result
|
|
36059
36059
|
};
|
|
36060
36060
|
}, "view");
|
|
36061
|
-
const cite = /* @__PURE__ */ __name((findings, account) => {
|
|
36061
|
+
const cite = /* @__PURE__ */ __name((findings, account, deciding = false) => {
|
|
36062
36062
|
const read2 = /* @__PURE__ */ new Map();
|
|
36063
36063
|
const perSender = /* @__PURE__ */ new Map();
|
|
36064
36064
|
let bytes3 = 0;
|
|
@@ -36070,8 +36070,12 @@ var mailFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36070
36070
|
if (!row2) {
|
|
36071
36071
|
const at = parseLocator(reference2);
|
|
36072
36072
|
row2 = database.prepare(EMAIL2).get(at.account, at.chat, at.message);
|
|
36073
|
-
if (!row2)
|
|
36073
|
+
if (!row2 && deciding)
|
|
36074
36074
|
return stale2();
|
|
36075
|
+
if (!row2)
|
|
36076
|
+
throw new CliError("not_found", `no stored email ${reference2}; cite only mail a review gave`, {
|
|
36077
|
+
reason: "mail-findings.not-stored"
|
|
36078
|
+
});
|
|
36075
36079
|
bytes3 += Buffer.byteLength(String(row2.body)) + Buffer.byteLength(String(row2.subject ?? ""));
|
|
36076
36080
|
if (bytes3 > TEXT_BUDGET2)
|
|
36077
36081
|
return invalid7(`finding evidence exceeds the ${TEXT_BUDGET2}-byte stored text budget`);
|
|
@@ -36195,7 +36199,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
36195
36199
|
}
|
|
36196
36200
|
case "new_contact": {
|
|
36197
36201
|
const person2 = Number(identityOfAddress(finding.address)?.person_id);
|
|
36198
|
-
database.prepare("UPDATE persons SET name = ?, updated_at = ? WHERE id = ?
|
|
36202
|
+
database.prepare("UPDATE persons SET name = ?, updated_at = ? WHERE id = ?").run(finding.name, now2(), person2);
|
|
36199
36203
|
return `person:${person2}`;
|
|
36200
36204
|
}
|
|
36201
36205
|
}
|
|
@@ -36259,7 +36263,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
36259
36263
|
const account = accountOf3(proposal);
|
|
36260
36264
|
const chosen = batch.input.findings.filter((finding) => accepted.includes(finding.id));
|
|
36261
36265
|
if (chosen.length)
|
|
36262
|
-
cite(chosen, account);
|
|
36266
|
+
cite(chosen, account, true);
|
|
36263
36267
|
if (proposal.proposedBy.type !== "bot" || !proposal.proposedBy.name)
|
|
36264
36268
|
return invalid7("a findings author must be an agent");
|
|
36265
36269
|
const agent = {
|
|
@@ -36288,7 +36292,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
36288
36292
|
};
|
|
36289
36293
|
}, "mailFindingsStoreOver");
|
|
36290
36294
|
|
|
36291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
36292
36296
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
36293
36297
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
36294
36298
|
reason: "meeting-findings.stale"
|
|
@@ -36456,7 +36460,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36456
36460
|
};
|
|
36457
36461
|
}, "meetingFindingsStoreOver");
|
|
36458
36462
|
|
|
36459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
36460
36464
|
var RANK_BATCH = 512;
|
|
36461
36465
|
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";
|
|
36462
36466
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -36727,7 +36731,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
36727
36731
|
}
|
|
36728
36732
|
}), "meetingVectorsOver");
|
|
36729
36733
|
|
|
36730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
36731
36735
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
36732
36736
|
var TEXTS = {
|
|
36733
36737
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -36828,11 +36832,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36828
36832
|
};
|
|
36829
36833
|
}, "sourceMentionStoreOver");
|
|
36830
36834
|
|
|
36831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
36832
36836
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
36833
36837
|
import { dirname } from "node:path";
|
|
36834
36838
|
|
|
36835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
36836
36840
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
36837
36841
|
var CLIENTS_SETTING = "clients";
|
|
36838
36842
|
var coreVersion = (() => {
|
|
@@ -36890,7 +36894,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
36890
36894
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
36891
36895
|
}, "refusalAdvice");
|
|
36892
36896
|
|
|
36893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
36894
36898
|
var GENERATED = [
|
|
36895
36899
|
{
|
|
36896
36900
|
"name": "20261010184427_initial",
|
|
@@ -37857,7 +37861,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
37857
37861
|
}
|
|
37858
37862
|
];
|
|
37859
37863
|
|
|
37860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
37861
37865
|
var MANIFEST = [
|
|
37862
37866
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
37863
37867
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -37945,7 +37949,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
37945
37949
|
return migrations;
|
|
37946
37950
|
}, "generatedMigrations");
|
|
37947
37951
|
|
|
37948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
37949
37953
|
var MIGRATIONS = generatedMigrations();
|
|
37950
37954
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
37951
37955
|
version INTEGER PRIMARY KEY,
|
|
@@ -37998,7 +38002,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
37998
38002
|
}
|
|
37999
38003
|
}, "migrate");
|
|
38000
38004
|
|
|
38001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
38002
38006
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
38003
38007
|
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 ?");
|
|
38004
38008
|
if (pending.get(0, 1) === void 0)
|
|
@@ -38020,7 +38024,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
38020
38024
|
}
|
|
38021
38025
|
}, "fillJoinKeys");
|
|
38022
38026
|
|
|
38023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
38024
38028
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
38025
38029
|
refuseOwnerStoreInTests(path);
|
|
38026
38030
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -38034,8 +38038,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
38034
38038
|
}, "openSqlite");
|
|
38035
38039
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
38036
38040
|
quietSqliteWarning();
|
|
38037
|
-
const { drizzle } = await import("./node-
|
|
38038
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
38041
|
+
const { drizzle } = await import("./node-OXC26QXO.js");
|
|
38042
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-FNTICDEN.js");
|
|
38039
38043
|
const client = await nodeClient(path, { readOnly });
|
|
38040
38044
|
try {
|
|
38041
38045
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -38045,8 +38049,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
38045
38049
|
}
|
|
38046
38050
|
}, "openUnderNode");
|
|
38047
38051
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
38048
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
38049
|
-
const { drizzle } = await import("./bun-
|
|
38052
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-CT544OXO.js");
|
|
38053
|
+
const { drizzle } = await import("./bun-2NMWL5YB.js");
|
|
38050
38054
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
38051
38055
|
try {
|
|
38052
38056
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -38056,7 +38060,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
38056
38060
|
}
|
|
38057
38061
|
}, "openUnderBun");
|
|
38058
38062
|
|
|
38059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
38060
38064
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
38061
38065
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
38062
38066
|
try {
|
|
@@ -38124,7 +38128,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
38124
38128
|
});
|
|
38125
38129
|
}, "movePaymentFacts");
|
|
38126
38130
|
|
|
38127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
38128
38132
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
38129
38133
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
38130
38134
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -38139,7 +38143,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
38139
38143
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
38140
38144
|
}, "assertReadCompatible");
|
|
38141
38145
|
|
|
38142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
38143
38147
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
38144
38148
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
38145
38149
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -38185,7 +38189,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
38185
38189
|
});
|
|
38186
38190
|
}, "moveSuggestedLinks");
|
|
38187
38191
|
|
|
38188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
38189
38193
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
38190
38194
|
var TEST_PROVIDER = "chat";
|
|
38191
38195
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -38206,7 +38210,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
38206
38210
|
}
|
|
38207
38211
|
}, "purgeTestAccounts");
|
|
38208
38212
|
|
|
38209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
38210
38214
|
var BACKFILL_ON_OPEN = 5e3;
|
|
38211
38215
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
38212
38216
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -38271,10 +38275,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
38271
38275
|
}
|
|
38272
38276
|
}, "openStoreContext");
|
|
38273
38277
|
|
|
38274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
38275
38279
|
import { createHash as createHash16 } from "node:crypto";
|
|
38276
38280
|
|
|
38277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
38278
38282
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
38279
38283
|
var ref = text4(2048);
|
|
38280
38284
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -38340,7 +38344,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
38340
38344
|
}))
|
|
38341
38345
|
});
|
|
38342
38346
|
|
|
38343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
38344
38348
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
38345
38349
|
var invalid9 = /* @__PURE__ */ __name((field4) => {
|
|
38346
38350
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -38444,7 +38448,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
38444
38448
|
invalid9("external.unused");
|
|
38445
38449
|
}, "validateProjectAnnotationsGraph");
|
|
38446
38450
|
|
|
38447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
38448
38452
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
38449
38453
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
38450
38454
|
var targetSchema = strictObject({
|
|
@@ -38550,7 +38554,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
38550
38554
|
};
|
|
38551
38555
|
}, "planBoundProjectAnnotations");
|
|
38552
38556
|
|
|
38553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
38554
38558
|
import { createHash as createHash17 } from "node:crypto";
|
|
38555
38559
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
38556
38560
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -38644,7 +38648,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
38644
38648
|
})).digest("hex");
|
|
38645
38649
|
}, "projectAnnotationSnapshotFingerprint");
|
|
38646
38650
|
|
|
38647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
38648
38652
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
38649
38653
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
38650
38654
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -38661,7 +38665,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
38661
38665
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
38662
38666
|
}, "projectAnnotationRequest");
|
|
38663
38667
|
|
|
38664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
38665
38669
|
var SnapshotBudget = class {
|
|
38666
38670
|
static {
|
|
38667
38671
|
__name(this, "SnapshotBudget");
|
|
@@ -38687,13 +38691,13 @@ var SnapshotBudget = class {
|
|
|
38687
38691
|
}
|
|
38688
38692
|
};
|
|
38689
38693
|
|
|
38690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
38691
38695
|
import { createHash as createHash19 } from "node:crypto";
|
|
38692
38696
|
|
|
38693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
38694
38698
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
38695
38699
|
|
|
38696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
38697
38701
|
import { createHash as createHash18 } from "node:crypto";
|
|
38698
38702
|
var invalid11 = /* @__PURE__ */ __name(() => {
|
|
38699
38703
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -38836,7 +38840,7 @@ var ProjectSnapshotSources = class {
|
|
|
38836
38840
|
}
|
|
38837
38841
|
};
|
|
38838
38842
|
|
|
38839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
38840
38844
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
38841
38845
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
38842
38846
|
}, "unsupported");
|
|
@@ -39007,7 +39011,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
39007
39011
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
39008
39012
|
}), "projectAnnotationSnapshot");
|
|
39009
39013
|
|
|
39010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
39011
39015
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
39012
39016
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
39013
39017
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -39069,7 +39073,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
39069
39073
|
};
|
|
39070
39074
|
}), "previewAnnotationSnapshot");
|
|
39071
39075
|
|
|
39072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
39073
39077
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
39074
39078
|
const mappings = { ...bindings };
|
|
39075
39079
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -39111,7 +39115,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
39111
39115
|
return mappings;
|
|
39112
39116
|
}, "restoreAnnotationRecords");
|
|
39113
39117
|
|
|
39114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
39115
39119
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
39116
39120
|
async preview(request) {
|
|
39117
39121
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -39141,7 +39145,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
39141
39145
|
}
|
|
39142
39146
|
}), "projectAnnotationStoreOver");
|
|
39143
39147
|
|
|
39144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
39145
39149
|
import { createHash as createHash20 } from "node:crypto";
|
|
39146
39150
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
39147
39151
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -39357,7 +39361,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
|
|
|
39357
39361
|
return isObject2(header) ? { ...header, records: records2 } : header;
|
|
39358
39362
|
}, "envelopeOfJsonl");
|
|
39359
39363
|
|
|
39360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
39361
39365
|
var PROJECTED = {
|
|
39362
39366
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
39363
39367
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -39697,7 +39701,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39697
39701
|
};
|
|
39698
39702
|
}, "recordStoreOver");
|
|
39699
39703
|
|
|
39700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
39701
39705
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
39702
39706
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
39703
39707
|
let merged = { from: from2, to };
|
|
@@ -39710,7 +39714,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
39710
39714
|
}, "markRange");
|
|
39711
39715
|
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");
|
|
39712
39716
|
|
|
39713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
39714
39718
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
39715
39719
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
39716
39720
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -39731,7 +39735,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
39731
39735
|
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);
|
|
39732
39736
|
}, "setTaskAnalysisMark");
|
|
39733
39737
|
|
|
39734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
39735
39739
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
39736
39740
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
39737
39741
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -39741,7 +39745,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
39741
39745
|
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);
|
|
39742
39746
|
}, "setTaskRulesStop");
|
|
39743
39747
|
|
|
39744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
39745
39749
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39746
39750
|
const { database } = context;
|
|
39747
39751
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -39800,7 +39804,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39800
39804
|
};
|
|
39801
39805
|
}, "syncStoreOver");
|
|
39802
39806
|
|
|
39803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
39804
39808
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39805
39809
|
const { database } = context;
|
|
39806
39810
|
return {
|
|
@@ -39822,7 +39826,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39822
39826
|
};
|
|
39823
39827
|
}, "tagsStoreOver");
|
|
39824
39828
|
|
|
39825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
39826
39830
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
39827
39831
|
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
|
|
39828
39832
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -39949,7 +39953,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
39949
39953
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
39950
39954
|
}, "savePictureChunks");
|
|
39951
39955
|
|
|
39952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
39953
39957
|
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,
|
|
39954
39958
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
39955
39959
|
FROM messages m
|
|
@@ -40038,7 +40042,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
40038
40042
|
return plain2(best(found2));
|
|
40039
40043
|
}, "nearestMessages");
|
|
40040
40044
|
|
|
40041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
40042
40046
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
40043
40047
|
const { database } = context;
|
|
40044
40048
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -40296,7 +40300,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
40296
40300
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
40297
40301
|
}), "vectorsStoreOver");
|
|
40298
40302
|
|
|
40299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
40300
40304
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
40301
40305
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
40302
40306
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -40384,10 +40388,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
40384
40388
|
}
|
|
40385
40389
|
}, "lastBackup");
|
|
40386
40390
|
|
|
40387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
40388
40392
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
40389
40393
|
|
|
40390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
40391
40395
|
var COUNTED_TABLES = [
|
|
40392
40396
|
"accounts",
|
|
40393
40397
|
"chats",
|
|
@@ -40472,7 +40476,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
40472
40476
|
};
|
|
40473
40477
|
}, "storeContents");
|
|
40474
40478
|
|
|
40475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
40476
40480
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
40477
40481
|
const context = await openStoreContext(options);
|
|
40478
40482
|
try {
|