@wirecat/cli-memo 0.131.49 → 0.131.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author.d.ts +6 -3
- package/dist/author.d.ts.map +1 -1
- package/dist/author.js +9 -4
- package/dist/author.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-3HADTQZA.js → all-profiles-3R3VE3W2.js} +9 -9
- package/dist/bundle/{anthropic-RI4DWC3G.js → anthropic-QVYJRACM.js} +6 -6
- package/dist/bundle/{app-server-6EKWAYJI.js → app-server-T3D2PIGZ.js} +42 -42
- package/dist/bundle/auto-XJCSM7WE.js +86 -0
- package/dist/bundle/{bun-HUHQD76Z.js → bun-DTDD2OHK.js} +2 -2
- package/dist/bundle/{bun-sqlite-RPSKGB4O.js → bun-sqlite-DWICJAH3.js} +5 -5
- package/dist/bundle/{chunk-NTQUBSIJ.js → chunk-3OL3QRFS.js} +6 -6
- package/dist/bundle/{chunk-2HPYP3ZT.js → chunk-4A6JOJLR.js} +4 -4
- package/dist/bundle/{chunk-EJDV5IIF.js → chunk-4GWFRZ2U.js} +1 -1
- package/dist/bundle/{chunk-LZWXGO3G.js → chunk-4MWP6Z3W.js} +2 -2
- package/dist/bundle/{chunk-Y6VH7IRN.js → chunk-4RHIJMRX.js} +29 -29
- package/dist/bundle/{chunk-BXTDAGM4.js → chunk-4ZW6ZJ2V.js} +2 -2
- package/dist/bundle/{chunk-ZA7FKGB7.js → chunk-526KVXRI.js} +2 -2
- package/dist/bundle/{chunk-OT23U5LT.js → chunk-56BBTOS2.js} +2 -2
- package/dist/bundle/{chunk-QCPUC3HW.js → chunk-5JY464PN.js} +13 -13
- package/dist/bundle/{chunk-57LMWEDK.js → chunk-5ZGOT57S.js} +3 -3
- package/dist/bundle/{chunk-EBNNONF5.js → chunk-64JCY7XJ.js} +8 -8
- package/dist/bundle/{chunk-3BG5VYMV.js → chunk-66A646SL.js} +10 -10
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-UDJTRFRV.js → chunk-6MEVHKIO.js} +1 -1
- package/dist/bundle/{chunk-UAR6UMFL.js → chunk-6O37NSG6.js} +5 -5
- package/dist/bundle/{chunk-UG4BO256.js → chunk-7C3MP5LH.js} +6 -6
- package/dist/bundle/{chunk-WNW6VW27.js → chunk-AEVTXHTY.js} +7 -7
- package/dist/bundle/{chunk-V2DMJ6ES.js → chunk-AWLAMVNY.js} +6 -6
- package/dist/bundle/{chunk-P2TISY3R.js → chunk-BUHTAMPF.js} +1 -1
- package/dist/bundle/{chunk-AKD62EUH.js → chunk-CPLYNBAJ.js} +2 -2
- package/dist/bundle/{chunk-RYMYE5PF.js → chunk-CZOBBAXM.js} +8 -8
- package/dist/bundle/{chunk-SSPSNSC5.js → chunk-E3WIMCV5.js} +1 -1
- package/dist/bundle/{chunk-IXXBPSXO.js → chunk-E7TMOUWZ.js} +2 -2
- package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-EBDX6DNB.js} +61 -21
- package/dist/bundle/{chunk-6N6BVPVX.js → chunk-ECLBZGWI.js} +4 -4
- package/dist/bundle/{chunk-O3KOW7RG.js → chunk-ETD2DRJD.js} +8 -8
- package/dist/bundle/{chunk-HXOAPH47.js → chunk-FJ3DAE4M.js} +1 -1
- package/dist/bundle/{chunk-GIDZGGAD.js → chunk-FZ4GVE36.js} +4 -4
- package/dist/bundle/{chunk-KVOHC4ZM.js → chunk-GBWOMPZ7.js} +4 -4
- package/dist/bundle/{chunk-PYRHU35W.js → chunk-GSCGRBEQ.js} +155 -155
- package/dist/bundle/{chunk-ND6D4A6H.js → chunk-H65NWA3X.js} +3 -3
- package/dist/bundle/{chunk-4VQPPX47.js → chunk-H7RSMNHL.js} +263 -263
- package/dist/bundle/{chunk-D5KGXYG6.js → chunk-HRLQQLVD.js} +22 -22
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-IK6KH3RE.js} +1 -1
- package/dist/bundle/{chunk-OQTBCPSG.js → chunk-JBSMBHTM.js} +8 -8
- package/dist/bundle/{chunk-HCMXUHHF.js → chunk-JCNBJ3FN.js} +66 -66
- package/dist/bundle/{chunk-5RVL7GYA.js → chunk-JINNS3FI.js} +2 -2
- package/dist/bundle/{chunk-RKFKRCOH.js → chunk-LYUVULFK.js} +260 -260
- package/dist/bundle/{chunk-FOM7WE2C.js → chunk-MVV32ZTO.js} +9 -9
- package/dist/bundle/{chunk-7RNHFNHX.js → chunk-MZMJALJT.js} +4 -4
- package/dist/bundle/{chunk-XXGBXCBQ.js → chunk-N3UA5PO4.js} +11 -11
- package/dist/bundle/{chunk-355PHJYX.js → chunk-O5UP2KZL.js} +1 -1
- package/dist/bundle/{chunk-XZZFHQGM.js → chunk-O5Z74SBZ.js} +22 -22
- package/dist/bundle/{chunk-P2LMXIHL.js → chunk-OBVKXHOH.js} +291 -291
- package/dist/bundle/{chunk-DJRBSOWH.js → chunk-OJFRMK2W.js} +4 -4
- package/dist/bundle/{chunk-BYVASZVV.js → chunk-PNNM72BO.js} +5 -5
- package/dist/bundle/{chunk-S7F4ZDFU.js → chunk-PWYCF76F.js} +3 -3
- package/dist/bundle/{chunk-2OIGV355.js → chunk-PX2B5ZRL.js} +50 -50
- package/dist/bundle/{chunk-5JVA43HX.js → chunk-QFC7V5VW.js} +6 -6
- package/dist/bundle/{chunk-NJDGZRF5.js → chunk-QIFK3EZM.js} +14 -14
- package/dist/bundle/{chunk-DVA6MQWK.js → chunk-REROHDUR.js} +1 -1
- package/dist/bundle/{chunk-LUPJB7ZD.js → chunk-RL2DSQCD.js} +9 -9
- package/dist/bundle/{chunk-UJLYVXP6.js → chunk-ROP27ZJU.js} +34 -34
- package/dist/bundle/{chunk-N6IHOYMT.js → chunk-SXVPRYEF.js} +161 -36
- package/dist/bundle/{chunk-GV6XJMUW.js → chunk-UDAATSWZ.js} +12 -12
- package/dist/bundle/{chunk-XH6K2B5L.js → chunk-UQ2OA6EM.js} +4 -4
- package/dist/bundle/{chunk-TSUNLSIN.js → chunk-V3TELYLZ.js} +2 -2
- package/dist/bundle/{chunk-O3ZOYXH3.js → chunk-WLKDS65F.js} +20 -20
- package/dist/bundle/{chunk-W6JQNNJ5.js → chunk-WPW6ULD7.js} +3 -3
- package/dist/bundle/{chunk-PEYCLVIO.js → chunk-XGNNI3S3.js} +2 -2
- package/dist/bundle/{chunk-PUTGTW6W.js → chunk-XN5YDZY7.js} +1 -1
- package/dist/bundle/{chunk-GAKZOX2S.js → chunk-YPLKNKAD.js} +7 -7
- package/dist/bundle/{chunk-QCRJNWJZ.js → chunk-YZB5IL4L.js} +3 -3
- package/dist/bundle/{chunk-QNM36ARO.js → chunk-ZC2LNXGO.js} +2 -2
- package/dist/bundle/command-contract-OTVOQLZS.js +32 -0
- package/dist/bundle/{decode-IYWZ3X7X.js → decode-ISKRNDDM.js} +5 -5
- package/dist/bundle/{dispatch-HCRXCPCF.js → dispatch-W4ZVXTJT.js} +10 -10
- package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-TINXXXCB.js} +2 -2
- package/dist/bundle/{embed-EGY2R4FN.js → embed-R2KJDGEX.js} +6 -6
- package/dist/bundle/{embedder-K2BGPWNX.js → embedder-X2Y5RLKE.js} +9 -9
- package/dist/bundle/{entry-NMAZNDNU.js → entry-2MUKT36Z.js} +7 -7
- package/dist/bundle/{failure-G4DCTWFD.js → failure-GQHAQVGH.js} +2 -2
- package/dist/bundle/failure-KYUARIL2.js +66 -0
- package/dist/bundle/{first-run-QDCSWX3N.js → first-run-6BSAM4BD.js} +11 -11
- package/dist/bundle/first-screen-ALXB4ONR.js +30 -0
- package/dist/bundle/{instructions-P72XX4AK.js → instructions-E5NBM2NJ.js} +1 -1
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/mcp-YUPBMZPV.js +90 -0
- package/dist/bundle/memo.js +41 -17
- package/dist/bundle/{node-ZB4RNICS.js → node-NBHZ4XWV.js} +2 -2
- package/dist/bundle/{node-sqlite-7XJ4J4E5.js → node-sqlite-3CBWCPNC.js} +6 -6
- package/dist/bundle/{oauth-FMH3JIPT.js → oauth-L5XC2THD.js} +7 -7
- package/dist/bundle/{open-PRCTOHHL.js → open-WR6QQPVB.js} +5 -5
- package/dist/bundle/{openai-VW4W6SIO.js → openai-MCPELYCJ.js} +10 -10
- package/dist/bundle/{process-XNN4WG6N.js → process-EAEC2FBD.js} +1 -1
- package/dist/bundle/{program-OSHEAD76.js → program-WKKBFQIW.js} +94 -66
- package/dist/bundle/{prompt-RT55UZGB.js → prompt-M4Z35LQ5.js} +5 -5
- package/dist/bundle/{recognize-AQ2UXUC2.js → recognize-VT6NKW6D.js} +4 -4
- package/dist/bundle/{remote-T3P5OWRR.js → remote-6QTPH5PJ.js} +7 -7
- package/dist/bundle/{rerank-743T3675.js → rerank-MJYLXZ4K.js} +7 -7
- package/dist/bundle/{serve-BSKOU4FJ.js → serve-KQ6OL3OH.js} +9 -9
- package/dist/bundle/server-AVAJTC5G.js +61 -0
- package/dist/bundle/server-QAFF3RP5.js +48 -0
- package/dist/bundle/{server-7GH6JLM3.js → server-UJIH2SBV.js} +58 -58
- package/dist/bundle/{state-MDMI3I2Z.js → state-2PDCOSJN.js} +6 -6
- package/dist/bundle/{store-I3DIZALN.js → store-SXYAS5EI.js} +13 -13
- package/dist/bundle/store-maintenance-command-ARTXRVYD.js +48 -0
- package/dist/bundle/update-MOZKRB2Z.js +69 -0
- package/dist/mcp/catalogue.js +1 -1
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/notes/about.js +2 -2
- package/dist/notes/about.js.map +1 -1
- package/dist/notes/dates.d.ts +3 -0
- package/dist/notes/dates.d.ts.map +1 -0
- package/dist/notes/dates.js +15 -0
- package/dist/notes/dates.js.map +1 -0
- package/dist/notes/import.d.ts.map +1 -1
- package/dist/notes/import.js +12 -0
- package/dist/notes/import.js.map +1 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +3 -1
- package/dist/people/command.js.map +1 -1
- package/dist/search/search.js +1 -1
- package/dist/search/search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/cli-memo/SKILL.md +1 -1
- package/skills/cli-memo/topics/proposals.md +2 -2
- package/skills/mail-triage/SKILL.md +1 -1
- package/skills/morning-digest/SKILL.md +1 -1
- package/dist/bundle/auto-NKUBNWLS.js +0 -86
- package/dist/bundle/command-contract-MRLLZQ4M.js +0 -32
- package/dist/bundle/failure-SACX3WGX.js +0 -66
- package/dist/bundle/first-screen-YABO6OZ7.js +0 -30
- package/dist/bundle/mcp-QRZ2HSON.js +0 -90
- package/dist/bundle/server-VMWVYGK7.js +0 -48
- package/dist/bundle/server-ZFHSK6TT.js +0 -61
- package/dist/bundle/store-maintenance-command-HZPQPOK7.js +0 -48
- package/dist/bundle/update-Y3UQ5DQJ.js +0 -69
- /package/dist/bundle/{chunk-CDFNOKPG.js → chunk-4ZSY3MKL.js} +0 -0
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-SW6C6WH5.js} +0 -0
|
@@ -102,11 +102,11 @@ import {
|
|
|
102
102
|
validateQuery,
|
|
103
103
|
walkQuery,
|
|
104
104
|
zonedMoment
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-JCNBJ3FN.js";
|
|
106
106
|
import {
|
|
107
107
|
holdsCredential,
|
|
108
108
|
secretNamed
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-4GWFRZ2U.js";
|
|
110
110
|
import {
|
|
111
111
|
DEFAULT_STEMMERS,
|
|
112
112
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -119,27 +119,27 @@ import {
|
|
|
119
119
|
fold,
|
|
120
120
|
normalize,
|
|
121
121
|
parseStemmers
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-CZOBBAXM.js";
|
|
123
123
|
import {
|
|
124
124
|
DEFAULT_TASK_CATEGORIES,
|
|
125
125
|
sharedConfigPath,
|
|
126
126
|
storedTaskCategories,
|
|
127
127
|
taskCategoriesReader
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-AWLAMVNY.js";
|
|
129
129
|
import {
|
|
130
130
|
refuseOwnerStoreInTests,
|
|
131
131
|
storePath
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-4MWP6Z3W.js";
|
|
133
133
|
import {
|
|
134
134
|
quietSqliteWarning,
|
|
135
135
|
storeCapable
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-3OL3QRFS.js";
|
|
137
137
|
import {
|
|
138
138
|
PRAGMAS,
|
|
139
139
|
TIME_LIMIT_FUNCTION,
|
|
140
140
|
TimeLimitReached,
|
|
141
141
|
isQueryOnly
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-XN5YDZY7.js";
|
|
143
143
|
import {
|
|
144
144
|
array,
|
|
145
145
|
boolean,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
safeParse,
|
|
157
157
|
strictObject,
|
|
158
158
|
string
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-64JCY7XJ.js";
|
|
160
160
|
import {
|
|
161
161
|
resolveFrom
|
|
162
162
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
CliError,
|
|
165
165
|
isCliError,
|
|
166
166
|
singleLine
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-4ZW6ZJ2V.js";
|
|
168
168
|
import {
|
|
169
169
|
SQLiteTable,
|
|
170
170
|
TableAliasProxyHandler,
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
sql,
|
|
190
190
|
sqliteTable,
|
|
191
191
|
text
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-BUHTAMPF.js";
|
|
193
193
|
import {
|
|
194
194
|
__commonJS,
|
|
195
195
|
__name,
|
|
@@ -9933,7 +9933,7 @@ var require_cjs = __commonJS({
|
|
|
9933
9933
|
}
|
|
9934
9934
|
});
|
|
9935
9935
|
|
|
9936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
9936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
9937
9937
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
9938
9938
|
const methods = whole;
|
|
9939
9939
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -10061,7 +10061,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
10061
10061
|
};
|
|
10062
10062
|
}, "bindAccount");
|
|
10063
10063
|
|
|
10064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
10065
10065
|
var SCHEME = "msg:";
|
|
10066
10066
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
10067
10067
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -10075,7 +10075,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
10075
10075
|
return { provider, account, chat: chat2, message: message2 };
|
|
10076
10076
|
}, "parseLocator");
|
|
10077
10077
|
|
|
10078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
10079
10079
|
var SIMPLE_REFERENCES = [
|
|
10080
10080
|
"note",
|
|
10081
10081
|
"document",
|
|
@@ -10226,7 +10226,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
10226
10226
|
return match !== null && byPrefix.has(match[1]);
|
|
10227
10227
|
}, "looksLikeReference");
|
|
10228
10228
|
|
|
10229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
10230
10230
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
10231
10231
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
10232
10232
|
var PROVIDERS = [
|
|
@@ -10342,7 +10342,7 @@ var providerNamed = /* @__PURE__ */ __name((word2) => {
|
|
|
10342
10342
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
10343
10343
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
10344
10344
|
|
|
10345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
10346
10346
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
10347
10347
|
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");
|
|
10348
10348
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -10365,7 +10365,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
10365
10365
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
10366
10366
|
}, "sourceOf");
|
|
10367
10367
|
|
|
10368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
10369
10369
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
10370
10370
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
10371
10371
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -10553,7 +10553,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
|
|
|
10553
10553
|
return { accounts: [...chosen.values()], skipped };
|
|
10554
10554
|
}, "fitting");
|
|
10555
10555
|
|
|
10556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
10557
10557
|
var IndexBuilderOn = class {
|
|
10558
10558
|
static {
|
|
10559
10559
|
__name(this, "IndexBuilderOn");
|
|
@@ -10748,7 +10748,7 @@ function alias(table, alias2) {
|
|
|
10748
10748
|
}
|
|
10749
10749
|
__name(alias, "alias");
|
|
10750
10750
|
|
|
10751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
10752
10752
|
var ENTITY_TABLES = {
|
|
10753
10753
|
account: "accounts",
|
|
10754
10754
|
attachment: "attachments",
|
|
@@ -10794,7 +10794,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
10794
10794
|
return { table, pointer, type, count, known: known2 };
|
|
10795
10795
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
10796
10796
|
|
|
10797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
10798
10798
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
10799
10799
|
id: integer("id").primaryKey(),
|
|
10800
10800
|
name: text("name").notNull().unique(),
|
|
@@ -10803,7 +10803,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
10803
10803
|
updatedAt: integer("updated_at").notNull()
|
|
10804
10804
|
});
|
|
10805
10805
|
|
|
10806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
10807
10807
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
10808
10808
|
sourceKey: text("source_key").notNull(),
|
|
10809
10809
|
collection: text("collection").notNull(),
|
|
@@ -10813,13 +10813,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
10813
10813
|
createdAt: integer("created_at").notNull()
|
|
10814
10814
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
10815
10815
|
|
|
10816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
10817
10817
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
10818
10818
|
id: integer("id").notNull(),
|
|
10819
10819
|
indexableType: text("indexable_type").notNull()
|
|
10820
10820
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
10821
10821
|
|
|
10822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/decision-requests.js
|
|
10823
10823
|
var decisionRequests = sqliteTable("decision_requests", {
|
|
10824
10824
|
id: integer("id").primaryKey(),
|
|
10825
10825
|
tokenDigest: text("token_digest").notNull().unique(),
|
|
@@ -10839,7 +10839,7 @@ var decisionRequests = sqliteTable("decision_requests", {
|
|
|
10839
10839
|
index("decision_requests_by_channel_bot_profile_chat_id_message_id").on(table.channel, table.botProfile, table.chatId, table.messageId)
|
|
10840
10840
|
]);
|
|
10841
10841
|
|
|
10842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
10843
10843
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
10844
10844
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
10845
10845
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -10865,7 +10865,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
10865
10865
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
10866
10866
|
]);
|
|
10867
10867
|
|
|
10868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
10868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
10869
10869
|
var accounts = sqliteTable("accounts", {
|
|
10870
10870
|
id: integer("id").primaryKey(),
|
|
10871
10871
|
provider: text("provider").notNull(),
|
|
@@ -12651,7 +12651,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
12651
12651
|
at: integer("at").notNull()
|
|
12652
12652
|
});
|
|
12653
12653
|
|
|
12654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
12654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
12655
12655
|
var ARMS = [
|
|
12656
12656
|
[
|
|
12657
12657
|
"message",
|
|
@@ -12778,7 +12778,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
12778
12778
|
return recomputed;
|
|
12779
12779
|
}, "drainInvolvementQueue");
|
|
12780
12780
|
|
|
12781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
12781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
12782
12782
|
import { domainToUnicode } from "node:url";
|
|
12783
12783
|
|
|
12784
12784
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -22800,7 +22800,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
22800
22800
|
}, "oa");
|
|
22801
22801
|
var na = { parse: O, get: aa, isValid: oa };
|
|
22802
22802
|
|
|
22803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
22803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
22804
22804
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
22805
22805
|
var ID = /^[\w-]{10,}$/;
|
|
22806
22806
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -22841,7 +22841,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
22841
22841
|
return { url, documentId: googleDocumentId(url) };
|
|
22842
22842
|
}), "googleDocumentLinks");
|
|
22843
22843
|
|
|
22844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
22844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
22845
22845
|
var PHONE_PLANS = [
|
|
22846
22846
|
{
|
|
22847
22847
|
country: "us",
|
|
@@ -23221,7 +23221,7 @@ var PHONE_PLANS = [
|
|
|
23221
23221
|
}
|
|
23222
23222
|
];
|
|
23223
23223
|
|
|
23224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
23224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
23225
23225
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
23226
23226
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
23227
23227
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -23262,7 +23262,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
23262
23262
|
return void 0;
|
|
23263
23263
|
}, "nationalPhone");
|
|
23264
23264
|
|
|
23265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
23265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
23266
23266
|
var BEFORE = [
|
|
23267
23267
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
23268
23268
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -23522,7 +23522,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
23522
23522
|
return found2.sort((a, b) => a.start - b.start);
|
|
23523
23523
|
}, "findPlaces");
|
|
23524
23524
|
|
|
23525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
23525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
23526
23526
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
23527
23527
|
var MENTION_VERSIONS = {
|
|
23528
23528
|
phone: 1,
|
|
@@ -23712,7 +23712,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
23712
23712
|
};
|
|
23713
23713
|
}, "typedPhone");
|
|
23714
23714
|
|
|
23715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
23715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
23716
23716
|
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";
|
|
23717
23717
|
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";
|
|
23718
23718
|
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";
|
|
@@ -23720,7 +23720,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
23720
23720
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
23721
23721
|
var NAME_WORDS = WORDS.split(" ");
|
|
23722
23722
|
|
|
23723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
23723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
23724
23724
|
var LATIN_TO_CYRILLIC = {
|
|
23725
23725
|
shch: "\u0449",
|
|
23726
23726
|
sch: "\u0449",
|
|
@@ -23928,7 +23928,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
23928
23928
|
return found2;
|
|
23929
23929
|
}, "findUnknownNames");
|
|
23930
23930
|
|
|
23931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
23931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
23932
23932
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
23933
23933
|
"webpage",
|
|
23934
23934
|
"share",
|
|
@@ -23968,7 +23968,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
23968
23968
|
});
|
|
23969
23969
|
}, "matchDownloads");
|
|
23970
23970
|
|
|
23971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
23971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
23972
23972
|
var QUERY_VERSION = 1;
|
|
23973
23973
|
var QUERY_LIMITS2 = {
|
|
23974
23974
|
...QUERY_LIMITS,
|
|
@@ -24004,7 +24004,7 @@ function exhausted(budget) {
|
|
|
24004
24004
|
}
|
|
24005
24005
|
__name(exhausted, "exhausted");
|
|
24006
24006
|
|
|
24007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
24007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
24008
24008
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
24009
24009
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
24010
24010
|
kind: "char",
|
|
@@ -24404,7 +24404,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
24404
24404
|
return out;
|
|
24405
24405
|
}, "foldRegex");
|
|
24406
24406
|
|
|
24407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
24407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
24408
24408
|
var PRESET_VERSION = 1;
|
|
24409
24409
|
var PRESETS = {
|
|
24410
24410
|
password: {
|
|
@@ -24458,7 +24458,7 @@ var PRESETS = {
|
|
|
24458
24458
|
}
|
|
24459
24459
|
};
|
|
24460
24460
|
|
|
24461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
24461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
24462
24462
|
var FIELD_VERSION = 2;
|
|
24463
24463
|
var UNITS = {
|
|
24464
24464
|
"": 1,
|
|
@@ -24919,12 +24919,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
24919
24919
|
return validateFields(parsed3.output);
|
|
24920
24920
|
}, "validateAst");
|
|
24921
24921
|
|
|
24922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
24922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
24923
24923
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
24924
24924
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
24925
24925
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
24926
24926
|
|
|
24927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
24927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
24928
24928
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
24929
24929
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
24930
24930
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -24948,7 +24948,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
24948
24948
|
};
|
|
24949
24949
|
}, "linkMatch");
|
|
24950
24950
|
|
|
24951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
24951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
24952
24952
|
var SETTING = "phoneCountries";
|
|
24953
24953
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
24954
24954
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -24979,7 +24979,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
24979
24979
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
24980
24980
|
}, "valueMatch");
|
|
24981
24981
|
|
|
24982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
24982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
24983
24983
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
24984
24984
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
24985
24985
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -25007,7 +25007,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
25007
25007
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
25008
25008
|
}, "vocabularySimilarity");
|
|
25009
25009
|
|
|
25010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
25011
25011
|
import { createHash } from "node:crypto";
|
|
25012
25012
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
25013
25013
|
try {
|
|
@@ -25073,7 +25073,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
|
|
|
25073
25073
|
});
|
|
25074
25074
|
}, "guardTagCreation");
|
|
25075
25075
|
|
|
25076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
25077
25077
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
25078
25078
|
throw new CliError("validation_error", message2);
|
|
25079
25079
|
}, "invalid");
|
|
@@ -25150,7 +25150,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
25150
25150
|
};
|
|
25151
25151
|
}, "createTagRedirectIndex");
|
|
25152
25152
|
|
|
25153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
25154
25154
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
25155
25155
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
25156
25156
|
if (!row2)
|
|
@@ -25178,7 +25178,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
25178
25178
|
return snapshot2;
|
|
25179
25179
|
}, "tagRedirectSnapshot");
|
|
25180
25180
|
|
|
25181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
25182
25182
|
import { createHash as createHash2 } from "node:crypto";
|
|
25183
25183
|
var TASK_KEY_PREFIXES = {
|
|
25184
25184
|
question: "Q",
|
|
@@ -25206,7 +25206,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25206
25206
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
25207
25207
|
}, "taskAccountOf");
|
|
25208
25208
|
|
|
25209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
25210
25210
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
25211
25211
|
var REFERABLE = {
|
|
25212
25212
|
note: { tombstone: true },
|
|
@@ -25374,7 +25374,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25374
25374
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
25375
25375
|
}, "taskIdOf");
|
|
25376
25376
|
|
|
25377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
25378
25378
|
var toMs = /* @__PURE__ */ __name((iso14) => {
|
|
25379
25379
|
if (iso14 === null || iso14 === void 0)
|
|
25380
25380
|
return null;
|
|
@@ -25388,7 +25388,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
25388
25388
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
25389
25389
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
25390
25390
|
|
|
25391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
25392
25392
|
var TAG_KINDS = ["tag", "topic"];
|
|
25393
25393
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
25394
25394
|
var TAG_TYPE = {
|
|
@@ -25591,7 +25591,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
25591
25591
|
return result;
|
|
25592
25592
|
}, "tagsOf");
|
|
25593
25593
|
|
|
25594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
25595
25595
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
25596
25596
|
var SPEECH = speech("att");
|
|
25597
25597
|
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");
|
|
@@ -25955,7 +25955,7 @@ var FIELD_COMPILERS = {
|
|
|
25955
25955
|
subject
|
|
25956
25956
|
};
|
|
25957
25957
|
|
|
25958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
25959
25959
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
25960
25960
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
25961
25961
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -25971,7 +25971,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
25971
25971
|
};
|
|
25972
25972
|
}, "placeOf");
|
|
25973
25973
|
|
|
25974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
25974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
25975
25975
|
var DRAIN_ON_WRITE = 500;
|
|
25976
25976
|
var METHOD = "rules";
|
|
25977
25977
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -26134,7 +26134,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
26134
26134
|
return queued.length;
|
|
26135
26135
|
}, "drainMentions");
|
|
26136
26136
|
|
|
26137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
26138
26138
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
26139
26139
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
26140
26140
|
if (!exists2)
|
|
@@ -26142,7 +26142,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
26142
26142
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
26143
26143
|
}, "indexRow");
|
|
26144
26144
|
|
|
26145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
26146
26146
|
var INDEX = "message_stems";
|
|
26147
26147
|
var SETTING2 = "searchStemmers";
|
|
26148
26148
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -26264,7 +26264,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
26264
26264
|
};
|
|
26265
26265
|
}, "stemmerCache");
|
|
26266
26266
|
|
|
26267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
26268
26268
|
var SQLITE_BUSY = 5;
|
|
26269
26269
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
26270
26270
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -26359,7 +26359,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
26359
26359
|
}
|
|
26360
26360
|
}, "read");
|
|
26361
26361
|
|
|
26362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
26363
26363
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
26364
26364
|
coalesce(CASE k.chunkable_type
|
|
26365
26365
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -26501,7 +26501,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
26501
26501
|
}, "dropUnusedVectors");
|
|
26502
26502
|
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");
|
|
26503
26503
|
|
|
26504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
26505
26505
|
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({
|
|
26506
26506
|
target: [accounts.provider, accounts.externalId],
|
|
26507
26507
|
set: {
|
|
@@ -26611,7 +26611,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
26611
26611
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
26612
26612
|
}, "dropOrphanPeople");
|
|
26613
26613
|
|
|
26614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
26615
26615
|
var FOLDED = [
|
|
26616
26616
|
{ table: "tasks", column: "title" },
|
|
26617
26617
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -26648,7 +26648,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
26648
26648
|
return filled2;
|
|
26649
26649
|
}, "fillFolded");
|
|
26650
26650
|
|
|
26651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
26652
26652
|
var HISTORY_KEY = "$history";
|
|
26653
26653
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
26654
26654
|
if (typeof text6 !== "string")
|
|
@@ -26724,7 +26724,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
26724
26724
|
return rest;
|
|
26725
26725
|
}, "withoutHistory");
|
|
26726
26726
|
|
|
26727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
26728
26728
|
import { createHash as createHash3 } from "node:crypto";
|
|
26729
26729
|
var CHUNK_CHARS = 1200;
|
|
26730
26730
|
var CHUNK_OVERLAP = 150;
|
|
@@ -26829,7 +26829,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
26829
26829
|
return chunks2;
|
|
26830
26830
|
}, "cutChunks");
|
|
26831
26831
|
|
|
26832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
26833
26833
|
var DAY = 864e5;
|
|
26834
26834
|
var CURRENCY = [
|
|
26835
26835
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -26955,7 +26955,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
26955
26955
|
return best?.day ?? null;
|
|
26956
26956
|
}, "dueDayOf");
|
|
26957
26957
|
|
|
26958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
26958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
26959
26959
|
var DAY2 = 864e5;
|
|
26960
26960
|
var STOP_WORDS = new Set([
|
|
26961
26961
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -27110,7 +27110,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
27110
27110
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
27111
27111
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
27112
27112
|
|
|
27113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
27113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
27114
27114
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
27115
27115
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
27116
27116
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -27381,7 +27381,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
27381
27381
|
};
|
|
27382
27382
|
}, "readiness");
|
|
27383
27383
|
|
|
27384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
27384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
27385
27385
|
var DOCUMENT_PICTURE = "document_picture";
|
|
27386
27386
|
var SCAN_PAGE2 = 5e3;
|
|
27387
27387
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -27444,7 +27444,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
27444
27444
|
}, "nearestPictures")
|
|
27445
27445
|
}), "documentPicturesOver");
|
|
27446
27446
|
|
|
27447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
27447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
27448
27448
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
27449
27449
|
const literal5 = escaped2 ?? plain2 ?? "";
|
|
27450
27450
|
return wildcard ?? (/[*?[]/u.test(literal5) ? `[${literal5}]` : literal5);
|
|
@@ -27509,7 +27509,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
27509
27509
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
27510
27510
|
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");
|
|
27511
27511
|
|
|
27512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
27512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
27513
27513
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
27514
27514
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
27515
27515
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -27599,7 +27599,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
27599
27599
|
});
|
|
27600
27600
|
}, "linkMeeting");
|
|
27601
27601
|
|
|
27602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
27602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
27603
27603
|
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), ''))";
|
|
27604
27604
|
var UNSEARCHED_EVENT_TYPES = [
|
|
27605
27605
|
"working-location",
|
|
@@ -27831,7 +27831,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
27831
27831
|
return true;
|
|
27832
27832
|
}, "resetNoteIndex");
|
|
27833
27833
|
|
|
27834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
27834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
27835
27835
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
27836
27836
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
27837
27837
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -27850,7 +27850,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
27850
27850
|
}
|
|
27851
27851
|
}, "resolvePersonLinks");
|
|
27852
27852
|
|
|
27853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
27853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
27854
27854
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
27855
27855
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
27856
27856
|
find: orm.select({
|
|
@@ -28075,7 +28075,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
28075
28075
|
}, "meetingIdentityPk");
|
|
28076
28076
|
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");
|
|
28077
28077
|
|
|
28078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
28079
28079
|
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");
|
|
28080
28080
|
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");
|
|
28081
28081
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -28355,7 +28355,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
28355
28355
|
}
|
|
28356
28356
|
}, "replaceAutoTags");
|
|
28357
28357
|
|
|
28358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
28359
28359
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
28360
28360
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
28361
28361
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -28374,7 +28374,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
28374
28374
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
28375
28375
|
}, "counterFreshness");
|
|
28376
28376
|
|
|
28377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
28378
28378
|
import { createHash as createHash4 } from "node:crypto";
|
|
28379
28379
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
28380
28380
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -28472,7 +28472,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
28472
28472
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
28473
28473
|
}, "contextEvidenceRequest");
|
|
28474
28474
|
|
|
28475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
28476
28476
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
28477
28477
|
var ACTIVITY = `
|
|
28478
28478
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -28602,7 +28602,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
28602
28602
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
28603
28603
|
}), "mailActivity");
|
|
28604
28604
|
|
|
28605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
28606
28606
|
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");
|
|
28607
28607
|
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;
|
|
28608
28608
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -28743,7 +28743,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
28743
28743
|
return text6 || body2.trim();
|
|
28744
28744
|
}, "mailOwnText");
|
|
28745
28745
|
|
|
28746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
28747
28747
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
28748
28748
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
28749
28749
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -28853,7 +28853,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
28853
28853
|
return emails3 + threads;
|
|
28854
28854
|
}, "drainEmailIndex");
|
|
28855
28855
|
|
|
28856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
28857
28857
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
28858
28858
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
28859
28859
|
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,
|
|
@@ -28951,7 +28951,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
28951
28951
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
28952
28952
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
28953
28953
|
|
|
28954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
28954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
28955
28955
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
28956
28956
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
28957
28957
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -29001,7 +29001,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
29001
29001
|
return threads.length;
|
|
29002
29002
|
}, "markEmailsRestored");
|
|
29003
29003
|
|
|
29004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-nearest.js
|
|
29005
29005
|
var MAIL_PIECE_ROWS = `SELECT p.id, p.content_hash AS hash, p.type, p.owner, p.position, p.email_id AS email, v.vector
|
|
29006
29006
|
FROM ${MAIL_PIECES} JOIN embeddings v ON v.model = ? AND v.content_hash = p.content_hash
|
|
29007
29007
|
WHERE p.account_id = ?
|
|
@@ -29061,7 +29061,7 @@ var indexedMailPieces = /* @__PURE__ */ __name((database, model, query, filter,
|
|
|
29061
29061
|
}, "indexedMailPieces");
|
|
29062
29062
|
var nearestMailPieces = /* @__PURE__ */ __name((database, model, query, filter, depth) => (filter.threadExternalId === void 0 ? indexedMailPieces(database, model, query, filter, depth) : void 0) ?? scannedMailPieces(database, model, query, filter), "nearestMailPieces");
|
|
29063
29063
|
|
|
29064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
29065
29065
|
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");
|
|
29066
29066
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
29067
29067
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -29128,7 +29128,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
29128
29128
|
}
|
|
29129
29129
|
}), "mailRulesOver");
|
|
29130
29130
|
|
|
29131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
29132
29132
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
29133
29133
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
29134
29134
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -29136,7 +29136,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
29136
29136
|
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);
|
|
29137
29137
|
}, "reviewLink");
|
|
29138
29138
|
|
|
29139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
29140
29140
|
function checkMeetingCancelled(signal) {
|
|
29141
29141
|
if (!signal?.aborted)
|
|
29142
29142
|
return;
|
|
@@ -29147,7 +29147,7 @@ function checkMeetingCancelled(signal) {
|
|
|
29147
29147
|
}
|
|
29148
29148
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
29149
29149
|
|
|
29150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
29151
29151
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
29152
29152
|
id: Number(row2.id),
|
|
29153
29153
|
accountId: Number(row2.account_id),
|
|
@@ -29197,7 +29197,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
29197
29197
|
createdAt: Number(row2.created_at)
|
|
29198
29198
|
}), "transcriptRowOf");
|
|
29199
29199
|
|
|
29200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
29201
29201
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
29202
29202
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
29203
29203
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -29364,7 +29364,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29364
29364
|
}
|
|
29365
29365
|
}), "meetingReadsOver");
|
|
29366
29366
|
|
|
29367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
29368
29368
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
29369
29369
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
29370
29370
|
const params = [input.accountId];
|
|
@@ -29407,7 +29407,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
29407
29407
|
return { clauses, params };
|
|
29408
29408
|
}, "meetingSelectionSql");
|
|
29409
29409
|
|
|
29410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
29411
29411
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
29412
29412
|
async meetingChatLines(input) {
|
|
29413
29413
|
checkMeetingCancelled(input.signal);
|
|
@@ -29435,7 +29435,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29435
29435
|
}
|
|
29436
29436
|
}), "meetingChatLinesOver");
|
|
29437
29437
|
|
|
29438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
29439
29439
|
var MESSAGE_FIELDS = {
|
|
29440
29440
|
pk: messages.id,
|
|
29441
29441
|
nativeId: messages.externalId,
|
|
@@ -29606,7 +29606,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
29606
29606
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
29607
29607
|
}), "chatActivity");
|
|
29608
29608
|
|
|
29609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
29610
29610
|
var HIT_FIELDS = {
|
|
29611
29611
|
...MESSAGE_FIELDS,
|
|
29612
29612
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -29705,7 +29705,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
29705
29705
|
};
|
|
29706
29706
|
}, "directReplies");
|
|
29707
29707
|
|
|
29708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
29709
29709
|
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");
|
|
29710
29710
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
29711
29711
|
const found2 = identityRow(context, ref3);
|
|
@@ -29836,7 +29836,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
29836
29836
|
}, "mentioning");
|
|
29837
29837
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
29838
29838
|
|
|
29839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
29840
29840
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
29841
29841
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
29842
29842
|
}, "missing");
|
|
@@ -29958,7 +29958,7 @@ function meetingContextLinksOver(context) {
|
|
|
29958
29958
|
}
|
|
29959
29959
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
29960
29960
|
|
|
29961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
29962
29962
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
29963
29963
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
29964
29964
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -29987,7 +29987,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
29987
29987
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
29988
29988
|
}, "indexedText");
|
|
29989
29989
|
|
|
29990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
29990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
29991
29991
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
29992
29992
|
var meetingCurrentIndexRows = `
|
|
29993
29993
|
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
|
|
@@ -30018,7 +30018,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
30018
30018
|
}, "invalidateMeetingStems");
|
|
30019
30019
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
30020
30020
|
|
|
30021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
30022
30022
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
30023
30023
|
return {
|
|
30024
30024
|
async indexSearch(original) {
|
|
@@ -30086,10 +30086,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
30086
30086
|
}
|
|
30087
30087
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
30088
30088
|
|
|
30089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
30090
30090
|
import { createHash as createHash5 } from "node:crypto";
|
|
30091
30091
|
|
|
30092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
|
|
30093
30093
|
var REPAIRED = /* @__PURE__ */ new Set([
|
|
30094
30094
|
"query.invalid-syntax",
|
|
30095
30095
|
"query.unclosed-literal",
|
|
@@ -30194,7 +30194,7 @@ var plainQuery = /* @__PURE__ */ __name((text6, fields4 = SEARCH_FIELDS) => {
|
|
|
30194
30194
|
return text6;
|
|
30195
30195
|
}, "plainQuery");
|
|
30196
30196
|
|
|
30197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
30198
30198
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
30199
30199
|
const padded = ` ${term} `;
|
|
30200
30200
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -30203,7 +30203,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
30203
30203
|
return [...pieces];
|
|
30204
30204
|
}, "trigrams");
|
|
30205
30205
|
|
|
30206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
30207
30207
|
var SHORTEST_CORRECTION = 3;
|
|
30208
30208
|
var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
|
|
30209
30209
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -30250,7 +30250,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
30250
30250
|
return corrections;
|
|
30251
30251
|
}, "correctWords");
|
|
30252
30252
|
|
|
30253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
30254
30254
|
var SHORTEST_GARBLED = 4;
|
|
30255
30255
|
var MOST_WIDENED = 64;
|
|
30256
30256
|
var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -30342,7 +30342,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
30342
30342
|
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((word2) => word2.term));
|
|
30343
30343
|
}, "widenWords");
|
|
30344
30344
|
|
|
30345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
30346
30346
|
import { readFileSync } from "node:fs";
|
|
30347
30347
|
var loaded;
|
|
30348
30348
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -30401,7 +30401,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
|
|
|
30401
30401
|
return false;
|
|
30402
30402
|
}, "knownRussianWord");
|
|
30403
30403
|
|
|
30404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
30405
30405
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
30406
30406
|
var MOST_WORDS = 128;
|
|
30407
30407
|
var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
|
|
@@ -30628,7 +30628,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
30628
30628
|
return check3(tree);
|
|
30629
30629
|
}, "matchMeetingText");
|
|
30630
30630
|
|
|
30631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
30632
30632
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
30633
30633
|
throw new CliError("validation_error", message2);
|
|
30634
30634
|
}, "fail");
|
|
@@ -30810,7 +30810,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
30810
30810
|
}
|
|
30811
30811
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
30812
30812
|
|
|
30813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
30814
30814
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30815
30815
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
30816
30816
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -30842,7 +30842,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30842
30842
|
}
|
|
30843
30843
|
}), "meetingLanguagesOver");
|
|
30844
30844
|
|
|
30845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
30846
30846
|
import { createHash as createHash6 } from "node:crypto";
|
|
30847
30847
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
30848
30848
|
if (value === void 0)
|
|
@@ -30932,7 +30932,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
30932
30932
|
}
|
|
30933
30933
|
}), "meetingParticipantSearchOver");
|
|
30934
30934
|
|
|
30935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
30936
30936
|
var preparationQueries = {
|
|
30937
30937
|
participants: {
|
|
30938
30938
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -30982,7 +30982,7 @@ var preparationQueries = {
|
|
|
30982
30982
|
}
|
|
30983
30983
|
};
|
|
30984
30984
|
|
|
30985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
30985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
30986
30986
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30987
30987
|
async preparationContext(original) {
|
|
30988
30988
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -31023,7 +31023,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31023
31023
|
}
|
|
31024
31024
|
}), "meetingPreparationContextOver");
|
|
31025
31025
|
|
|
31026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
31027
31027
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
31028
31028
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
31029
31029
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -31037,7 +31037,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
31037
31037
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
31038
31038
|
)`, "preparationSubjects");
|
|
31039
31039
|
|
|
31040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
31041
31041
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
31042
31042
|
async preparationKnowledge(original) {
|
|
31043
31043
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -31082,7 +31082,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
31082
31082
|
}
|
|
31083
31083
|
}), "meetingPreparationKnowledgeOver");
|
|
31084
31084
|
|
|
31085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
31086
31086
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
31087
31087
|
async preparationNotes(original) {
|
|
31088
31088
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -31135,7 +31135,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31135
31135
|
}
|
|
31136
31136
|
}), "meetingPreparationNotesOver");
|
|
31137
31137
|
|
|
31138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
31139
31139
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
31140
31140
|
async relatedHistory(original) {
|
|
31141
31141
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -31206,7 +31206,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31206
31206
|
}
|
|
31207
31207
|
}), "meetingRelatedHistoryOver");
|
|
31208
31208
|
|
|
31209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
31210
31210
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
31211
31211
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
31212
31212
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -31287,7 +31287,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31287
31287
|
}
|
|
31288
31288
|
}), "meetingReviewOver");
|
|
31289
31289
|
|
|
31290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
31291
31291
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
31292
31292
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
31293
31293
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -31341,7 +31341,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31341
31341
|
}
|
|
31342
31342
|
}), "meetingSeriesHistoryOver");
|
|
31343
31343
|
|
|
31344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
31345
31345
|
var MOST_ROWS = 5e5;
|
|
31346
31346
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
31347
31347
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -31410,7 +31410,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31410
31410
|
}
|
|
31411
31411
|
}), "meetingStatsOver");
|
|
31412
31412
|
|
|
31413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
31414
31414
|
var CURSOR_KEY = "meetings";
|
|
31415
31415
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
31416
31416
|
id: Number(row2.id),
|
|
@@ -31979,7 +31979,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31979
31979
|
};
|
|
31980
31980
|
}, "meetingStoreOver");
|
|
31981
31981
|
|
|
31982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
31982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
31983
31983
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
31984
31984
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
31985
31985
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -32005,7 +32005,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
32005
32005
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
32006
32006
|
}, "release");
|
|
32007
32007
|
|
|
32008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
32008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
32009
32009
|
var THREAD_COLUMNS = {
|
|
32010
32010
|
subject: {
|
|
32011
32011
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -32022,7 +32022,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
32022
32022
|
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);
|
|
32023
32023
|
}, "threadRows");
|
|
32024
32024
|
|
|
32025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
32025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
32026
32026
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
32027
32027
|
id: `email:${place.emailId}`,
|
|
32028
32028
|
chatId: place.threadExternalId,
|
|
@@ -32560,7 +32560,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
32560
32560
|
}
|
|
32561
32561
|
}), "mailStoreOver");
|
|
32562
32562
|
|
|
32563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
32563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
32564
32564
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
32565
32565
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
32566
32566
|
var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
|
|
@@ -32650,7 +32650,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
32650
32650
|
}, "knownWord");
|
|
32651
32651
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
32652
32652
|
|
|
32653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
32653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
32654
32654
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
32655
32655
|
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");
|
|
32656
32656
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -32736,7 +32736,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
32736
32736
|
return found2;
|
|
32737
32737
|
}, "spokenTranscripts");
|
|
32738
32738
|
|
|
32739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
32739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
32740
32740
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
32741
32741
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
32742
32742
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -32783,7 +32783,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
32783
32783
|
});
|
|
32784
32784
|
}, "placeHits");
|
|
32785
32785
|
|
|
32786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
32786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
32787
32787
|
var GROUPS = {
|
|
32788
32788
|
chat: {
|
|
32789
32789
|
key: "m.chat_id",
|
|
@@ -32805,7 +32805,7 @@ var GROUPS = {
|
|
|
32805
32805
|
}
|
|
32806
32806
|
};
|
|
32807
32807
|
|
|
32808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
32808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
32809
32809
|
var MESSAGES2 = {
|
|
32810
32810
|
rows: "messages",
|
|
32811
32811
|
threads: "chats",
|
|
@@ -33288,7 +33288,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
33288
33288
|
};
|
|
33289
33289
|
}, "runCompiled");
|
|
33290
33290
|
|
|
33291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
33292
33292
|
function invalidMetadata() {
|
|
33293
33293
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
33294
33294
|
}
|
|
@@ -33390,7 +33390,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
33390
33390
|
};
|
|
33391
33391
|
}), "counterTargets");
|
|
33392
33392
|
|
|
33393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
33394
33394
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
33395
33395
|
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,
|
|
33396
33396
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -33509,7 +33509,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
33509
33509
|
}));
|
|
33510
33510
|
}, "attachmentViews");
|
|
33511
33511
|
|
|
33512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
33513
33513
|
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");
|
|
33514
33514
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
33515
33515
|
const { orm, database, now: now2 } = context;
|
|
@@ -33547,7 +33547,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
33547
33547
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
33548
33548
|
}, "intoVoiceAttachment");
|
|
33549
33549
|
|
|
33550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
33551
33551
|
var FIELDS = [
|
|
33552
33552
|
"threadExternalId",
|
|
33553
33553
|
"senderIdentityId",
|
|
@@ -33864,7 +33864,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
33864
33864
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
33865
33865
|
}, "writeDerivedReactions");
|
|
33866
33866
|
|
|
33867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
33868
33868
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
33869
33869
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
33870
33870
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -33885,7 +33885,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
33885
33885
|
};
|
|
33886
33886
|
}, "keysOver");
|
|
33887
33887
|
|
|
33888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
33889
33889
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
33890
33890
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
33891
33891
|
if (!row2)
|
|
@@ -33920,7 +33920,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
33920
33920
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
33921
33921
|
}, "saveProfile");
|
|
33922
33922
|
|
|
33923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
33924
33924
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
33925
33925
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
33926
33926
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -33977,7 +33977,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
33977
33977
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
33978
33978
|
}, "proposedBySql");
|
|
33979
33979
|
|
|
33980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
33980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
33981
33981
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
33982
33982
|
const owner = ownerPerson(context.database).id;
|
|
33983
33983
|
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);
|
|
@@ -33998,7 +33998,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
33998
33998
|
return personOf(context, ref3);
|
|
33999
33999
|
}, "linkToOwner");
|
|
34000
34000
|
|
|
34001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
34002
34002
|
var PROVIDERS_SETTING = "providers";
|
|
34003
34003
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
34004
34004
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -34033,7 +34033,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
34033
34033
|
});
|
|
34034
34034
|
}, "registerProvider");
|
|
34035
34035
|
|
|
34036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
34037
34037
|
var DAY3 = 864e5;
|
|
34038
34038
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
34039
34039
|
var TEXT_LIMIT = 20;
|
|
@@ -34232,7 +34232,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
34232
34232
|
};
|
|
34233
34233
|
}, "taskSimilarityOver");
|
|
34234
34234
|
|
|
34235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
34236
34236
|
var SETTING3 = "taskCategories";
|
|
34237
34237
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
34238
34238
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -34251,7 +34251,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
34251
34251
|
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);
|
|
34252
34252
|
}, "saveTaskCategories");
|
|
34253
34253
|
|
|
34254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
34255
34255
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
34256
34256
|
var ALLOWED = "taskAgentClose";
|
|
34257
34257
|
var MIN = "taskAgentCloseMin";
|
|
@@ -34307,10 +34307,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
34307
34307
|
];
|
|
34308
34308
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
34309
34309
|
|
|
34310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
34311
34311
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
34312
34312
|
|
|
34313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
34314
34314
|
var TASK_CLOSE_KIND = "task_close";
|
|
34315
34315
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
34316
34316
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -34358,7 +34358,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
34358
34358
|
}, "assertMayDecide");
|
|
34359
34359
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
34360
34360
|
|
|
34361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
34362
34362
|
var DEAL_KINDS = ["deal", "lead"];
|
|
34363
34363
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
34364
34364
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -34368,7 +34368,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
34368
34368
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
34369
34369
|
}, "dealLine");
|
|
34370
34370
|
|
|
34371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
34372
34372
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
34373
34373
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
34374
34374
|
var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
|
|
@@ -34424,7 +34424,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
34424
34424
|
return `${WORDS2[summary.kind]} ${named3}${notes2 === "" ? "" : ` (${notes2})`}`;
|
|
34425
34425
|
}, "refLabel");
|
|
34426
34426
|
|
|
34427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
34428
34428
|
var EXCERPT_CHARS = 280;
|
|
34429
34429
|
var TITLE_CHARS = 120;
|
|
34430
34430
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -34797,7 +34797,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
34797
34797
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
34798
34798
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read3]) => [text6, summaryOf2(read3, options.excerpt === true)])), "refSummariesOf");
|
|
34799
34799
|
|
|
34800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
34801
34801
|
var sourceOf3 = /* @__PURE__ */ __name((read3, ref3) => ({
|
|
34802
34802
|
ref: ref3,
|
|
34803
34803
|
kind: read3.kind,
|
|
@@ -34833,7 +34833,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
34833
34833
|
});
|
|
34834
34834
|
}, "evidenceSourcesOf");
|
|
34835
34835
|
|
|
34836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
34837
34837
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
34838
34838
|
var MAX_TEXT_CHARS = 2e6;
|
|
34839
34839
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -34859,7 +34859,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
34859
34859
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
34860
34860
|
}, "pdfPreviewLimits");
|
|
34861
34861
|
|
|
34862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
34863
34863
|
import { randomBytes } from "node:crypto";
|
|
34864
34864
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
34865
34865
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -34872,7 +34872,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
34872
34872
|
return time3 + random;
|
|
34873
34873
|
}, "ulid");
|
|
34874
34874
|
|
|
34875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
34876
34876
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
34877
34877
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
34878
34878
|
if (!meta && !sections?.length)
|
|
@@ -34893,7 +34893,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
34893
34893
|
return typeof language === "string" && language !== "" ? language : null;
|
|
34894
34894
|
}, "languageOf");
|
|
34895
34895
|
|
|
34896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
34896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
34897
34897
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
34898
34898
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
34899
34899
|
if (isObject(value))
|
|
@@ -35136,7 +35136,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
35136
35136
|
};
|
|
35137
35137
|
}, "filesStoreOver");
|
|
35138
35138
|
|
|
35139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
35139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
35140
35140
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
35141
35141
|
entity: "document",
|
|
35142
35142
|
backend: "sql",
|
|
@@ -35182,7 +35182,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
35182
35182
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
35183
35183
|
}, "importedDocumentWhere");
|
|
35184
35184
|
|
|
35185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
35185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/note-dates.js
|
|
35186
35186
|
var dateFileNotes = /* @__PURE__ */ __name((database, folder, dates) => {
|
|
35187
35187
|
const fileAt = database.prepare("SELECT id, document_id FROM files WHERE account_id = ? AND external_id = ? AND kind <> 'folder' AND deleted_at IS NULL");
|
|
35188
35188
|
const legacy = database.prepare("SELECT id FROM documents WHERE account_id = ? AND external_id = ? AND deleted_at IS NULL");
|
|
@@ -35203,7 +35203,7 @@ var dateFileNotes = /* @__PURE__ */ __name((database, folder, dates) => {
|
|
|
35203
35203
|
return changed;
|
|
35204
35204
|
}, "dateFileNotes");
|
|
35205
35205
|
|
|
35206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
35206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
35207
35207
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
35208
35208
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35209
35209
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -35732,7 +35732,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35732
35732
|
};
|
|
35733
35733
|
}, "notesStoreOver");
|
|
35734
35734
|
|
|
35735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
35735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
35736
35736
|
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";
|
|
35737
35737
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35738
35738
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -35954,7 +35954,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35954
35954
|
};
|
|
35955
35955
|
}, "memoriesStoreOver");
|
|
35956
35956
|
|
|
35957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
35957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
35958
35958
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
35959
35959
|
var KEY = "taskFirstPassPerChat";
|
|
35960
35960
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -35974,7 +35974,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
35974
35974
|
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);
|
|
35975
35975
|
}, "saveFirstPassPerChat");
|
|
35976
35976
|
|
|
35977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
35977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/external-links.js
|
|
35978
35978
|
var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
|
|
35979
35979
|
var EXTERNAL_ID_CHARS = 200;
|
|
35980
35980
|
var SOURCE_URL_CHARS = 2e3;
|
|
@@ -36001,7 +36001,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
|
|
|
36001
36001
|
return text6;
|
|
36002
36002
|
}, "sourceUrlOf");
|
|
36003
36003
|
|
|
36004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
36004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
36005
36005
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
36006
36006
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
36007
36007
|
name,
|
|
@@ -36224,7 +36224,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
36224
36224
|
return root === void 0 ? void 0 : { ...query, root };
|
|
36225
36225
|
}, "withoutField");
|
|
36226
36226
|
|
|
36227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
36227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
36228
36228
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
36229
36229
|
if (row2.author_type == null)
|
|
36230
36230
|
return null;
|
|
@@ -36252,7 +36252,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
36252
36252
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
36253
36253
|
}, "addComment");
|
|
36254
36254
|
|
|
36255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
36255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
36256
36256
|
var TASK_RELATION_KINDS = [
|
|
36257
36257
|
"blocked-by",
|
|
36258
36258
|
"follow-up-of",
|
|
@@ -36382,7 +36382,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
36382
36382
|
};
|
|
36383
36383
|
}, "taskRelationsStoreOver");
|
|
36384
36384
|
|
|
36385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
36385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
36386
36386
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
36387
36387
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
36388
36388
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
|
|
@@ -36911,7 +36911,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
36911
36911
|
};
|
|
36912
36912
|
}, "workTasksOver");
|
|
36913
36913
|
|
|
36914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
36914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
36915
36915
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
36916
36916
|
const { database, now: now2 } = context;
|
|
36917
36917
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -36960,7 +36960,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
36960
36960
|
};
|
|
36961
36961
|
}, "taskCloseOver");
|
|
36962
36962
|
|
|
36963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
36963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
36964
36964
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
36965
36965
|
const { database, now: now2 } = context;
|
|
36966
36966
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -37178,7 +37178,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
37178
37178
|
};
|
|
37179
37179
|
}, "taskPairsOver");
|
|
37180
37180
|
|
|
37181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
37182
37182
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
37183
37183
|
var TASK_STATS_SQL = {
|
|
37184
37184
|
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"),
|
|
@@ -37217,7 +37217,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
37217
37217
|
}, "statNames")
|
|
37218
37218
|
}), "taskStatsOver");
|
|
37219
37219
|
|
|
37220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
37221
37221
|
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";
|
|
37222
37222
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
37223
37223
|
const key2 = inboxKey(account);
|
|
@@ -37424,7 +37424,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
37424
37424
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
37425
37425
|
}, "oneOf");
|
|
37426
37426
|
|
|
37427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
37428
37428
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
37429
37429
|
const { database } = context;
|
|
37430
37430
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -37469,7 +37469,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
37469
37469
|
};
|
|
37470
37470
|
}, "accountsStoreOver");
|
|
37471
37471
|
|
|
37472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
37473
37473
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
37474
37474
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
37475
37475
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -37493,7 +37493,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
37493
37493
|
})), "keepDownloads");
|
|
37494
37494
|
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");
|
|
37495
37495
|
|
|
37496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
37497
37497
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
37498
37498
|
const { database } = context;
|
|
37499
37499
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -37550,7 +37550,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
37550
37550
|
}, "keepAttachmentText")
|
|
37551
37551
|
}), "attachmentsStoreOver");
|
|
37552
37552
|
|
|
37553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
37554
37554
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
37555
37555
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
37556
37556
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -37730,7 +37730,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
37730
37730
|
return done;
|
|
37731
37731
|
}, "rekeyChats");
|
|
37732
37732
|
|
|
37733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
37734
37734
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
37735
37735
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
37736
37736
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -37788,7 +37788,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
37788
37788
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
37789
37789
|
}, "chatCoverage");
|
|
37790
37790
|
|
|
37791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
37792
37792
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
37793
37793
|
const { database } = context;
|
|
37794
37794
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -37923,7 +37923,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
37923
37923
|
};
|
|
37924
37924
|
}, "chatsStoreOver");
|
|
37925
37925
|
|
|
37926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
37926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
37927
37927
|
import { createHash as createHash7 } from "node:crypto";
|
|
37928
37928
|
var BATCH_CONTEXT = 50;
|
|
37929
37929
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -38061,7 +38061,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
38061
38061
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
38062
38062
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
38063
38063
|
|
|
38064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
38065
38065
|
import { setTimeout } from "node:timers/promises";
|
|
38066
38066
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
38067
38067
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -38373,7 +38373,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
38373
38373
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
38374
38374
|
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");
|
|
38375
38375
|
|
|
38376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
38377
38377
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
38378
38378
|
const { database } = context;
|
|
38379
38379
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -38480,7 +38480,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
38480
38480
|
};
|
|
38481
38481
|
}, "conversationsStoreOver");
|
|
38482
38482
|
|
|
38483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
38484
38484
|
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";
|
|
38485
38485
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
38486
38486
|
const { database } = context;
|
|
@@ -38505,7 +38505,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38505
38505
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
38506
38506
|
}), "countersStoreOver");
|
|
38507
38507
|
|
|
38508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
38509
38509
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
38510
38510
|
var MENTION_QUERY = defineQuery({
|
|
38511
38511
|
entity: "mention",
|
|
@@ -38721,7 +38721,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
38721
38721
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
38722
38722
|
}, "listPlaces");
|
|
38723
38723
|
|
|
38724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
38725
38725
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
38726
38726
|
const { database } = context;
|
|
38727
38727
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -38756,7 +38756,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38756
38756
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
38757
38757
|
}), "mentionsStoreOver");
|
|
38758
38758
|
|
|
38759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
38760
38760
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
38761
38761
|
const read3 = database.prepare("SELECT m.id, m.external_id, m.text, m.sent_at, m.sender_name, coalesce(m.sender_chat_external_id, i.external_id) AS sender_id FROM messages m LEFT JOIN identities i ON i.id = m.sender_identity_id WHERE m.chat_id = ? AND m.deleted_at IS NULL AND (m.text LIKE '%google.com%' OR m.text LIKE '%forms.gle%') " + (messageId === void 0 ? "" : "AND m.external_id = ? ") + "ORDER BY m.sent_at DESC, m.id DESC");
|
|
38762
38762
|
const rows = messageId === void 0 ? read3.all(chatKey) : read3.all(chatKey, messageId);
|
|
@@ -38771,7 +38771,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
38771
38771
|
}));
|
|
38772
38772
|
}, "documentLinkMessages");
|
|
38773
38773
|
|
|
38774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
38775
38775
|
var stemmerFor = stemmerCache();
|
|
38776
38776
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
38777
38777
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -38815,7 +38815,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
38815
38815
|
});
|
|
38816
38816
|
}, "laterSharingRare");
|
|
38817
38817
|
|
|
38818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
38819
38819
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
38820
38820
|
const { database } = context;
|
|
38821
38821
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -38950,7 +38950,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38950
38950
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
38951
38951
|
}), "messagesStoreOver");
|
|
38952
38952
|
|
|
38953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
38953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
38954
38954
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
38955
38955
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
38956
38956
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -39007,7 +39007,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
39007
39007
|
});
|
|
39008
39008
|
}, "personPreparation");
|
|
39009
39009
|
|
|
39010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
39011
39011
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
39012
39012
|
const id2 = Number(uid);
|
|
39013
39013
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -39015,7 +39015,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
39015
39015
|
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)));
|
|
39016
39016
|
}, "personSeenInAccounts");
|
|
39017
39017
|
|
|
39018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
39019
39019
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
39020
39020
|
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);
|
|
39021
39021
|
if (!row2)
|
|
@@ -39081,7 +39081,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
39081
39081
|
return { id: id2, personId, removed: true };
|
|
39082
39082
|
}, "removeNote");
|
|
39083
39083
|
|
|
39084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
39085
39085
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
39086
39086
|
const { database } = context;
|
|
39087
39087
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -39166,13 +39166,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
39166
39166
|
};
|
|
39167
39167
|
}, "peopleStoreOver");
|
|
39168
39168
|
|
|
39169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
39170
39170
|
import { createHash as createHash9 } from "node:crypto";
|
|
39171
39171
|
|
|
39172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39173
39173
|
import { createHash as createHash8 } from "node:crypto";
|
|
39174
39174
|
|
|
39175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
39176
39176
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
39177
39177
|
var AUTHOR_MEASURES = [
|
|
39178
39178
|
"messages",
|
|
@@ -39312,7 +39312,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
39312
39312
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
39313
39313
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
39314
39314
|
|
|
39315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
39316
39316
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
39317
39317
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
39318
39318
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -39534,7 +39534,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
39534
39534
|
};
|
|
39535
39535
|
}, "rankReplyGraph");
|
|
39536
39536
|
|
|
39537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39538
39538
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
39539
39539
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
39540
39540
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -39708,7 +39708,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
39708
39708
|
return { items, evidence, summary, graph: graph.quality };
|
|
39709
39709
|
}, "calculateAdminStatistics");
|
|
39710
39710
|
|
|
39711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
39712
39712
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
39713
39713
|
const dates = [];
|
|
39714
39714
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -39730,7 +39730,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
39730
39730
|
return dates[0].node.resolution.date;
|
|
39731
39731
|
}, "rankingContextRange");
|
|
39732
39732
|
|
|
39733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
39733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
39734
39734
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
39735
39735
|
let counts;
|
|
39736
39736
|
try {
|
|
@@ -40025,7 +40025,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
40025
40025
|
});
|
|
40026
40026
|
}, "rankQuery");
|
|
40027
40027
|
|
|
40028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
40029
40029
|
function fail4(message2, reason = "query.too-large") {
|
|
40030
40030
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
40031
40031
|
}
|
|
@@ -40202,7 +40202,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
40202
40202
|
return result;
|
|
40203
40203
|
}), "adminStatisticsQuery");
|
|
40204
40204
|
|
|
40205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
40206
40206
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
40207
40207
|
if (!execution.accounts.length)
|
|
40208
40208
|
return { conversations: [], chats: [] };
|
|
@@ -40220,7 +40220,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
40220
40220
|
return { conversations: conversations2, chats: chats2 };
|
|
40221
40221
|
}, "conversationEligibility");
|
|
40222
40222
|
|
|
40223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
40224
40224
|
import { createHash as createHash10 } from "node:crypto";
|
|
40225
40225
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
40226
40226
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -40370,7 +40370,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
40370
40370
|
return result;
|
|
40371
40371
|
}, "rankingEvidence");
|
|
40372
40372
|
|
|
40373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
40374
40374
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
40375
40375
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
40376
40376
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -40464,7 +40464,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
40464
40464
|
});
|
|
40465
40465
|
}, "waitingChats");
|
|
40466
40466
|
|
|
40467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
40468
40468
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
40469
40469
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
40470
40470
|
if (execution.corpus === "mail")
|
|
@@ -40485,7 +40485,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
40485
40485
|
};
|
|
40486
40486
|
}, "queriesStoreOver");
|
|
40487
40487
|
|
|
40488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
40489
40489
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
40490
40490
|
const { database, now: now2 } = context;
|
|
40491
40491
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -40524,10 +40524,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
40524
40524
|
}));
|
|
40525
40525
|
}, "chatEventsOf");
|
|
40526
40526
|
|
|
40527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40528
40528
|
import { createHash as createHash11 } from "node:crypto";
|
|
40529
40529
|
|
|
40530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
40531
40531
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
40532
40532
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
40533
40533
|
timeZone: zone,
|
|
@@ -40547,7 +40547,7 @@ var weekKey = /* @__PURE__ */ __name((day2) => {
|
|
|
40547
40547
|
return date3.toISOString().slice(0, 10);
|
|
40548
40548
|
}, "weekKey");
|
|
40549
40549
|
|
|
40550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
40551
40551
|
var RETENTION_TOLERANCE = 864e5;
|
|
40552
40552
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
40553
40553
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -40601,7 +40601,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
40601
40601
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
40602
40602
|
}, "retentionCohorts");
|
|
40603
40603
|
|
|
40604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40605
40605
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
40606
40606
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
40607
40607
|
validateRetentionOptions(options);
|
|
@@ -40732,7 +40732,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
40732
40732
|
};
|
|
40733
40733
|
}, "retentionQuery");
|
|
40734
40734
|
|
|
40735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
40736
40736
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
40737
40737
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
40738
40738
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -40863,7 +40863,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
40863
40863
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
40864
40864
|
})), "trackedChats");
|
|
40865
40865
|
|
|
40866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
40867
40867
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40868
40868
|
const { database } = context;
|
|
40869
40869
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -40919,7 +40919,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40919
40919
|
};
|
|
40920
40920
|
}, "rosterStoreOver");
|
|
40921
40921
|
|
|
40922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
40923
40923
|
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");
|
|
40924
40924
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
40925
40925
|
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 ?`);
|
|
@@ -40943,7 +40943,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
40943
40943
|
}
|
|
40944
40944
|
}, "backfillNormalized");
|
|
40945
40945
|
|
|
40946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
40946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
40947
40947
|
var INDEX2 = "message_words";
|
|
40948
40948
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
40949
40949
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -41070,7 +41070,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
41070
41070
|
});
|
|
41071
41071
|
}, "resetSearchIndex");
|
|
41072
41072
|
|
|
41073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
41074
41074
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
41075
41075
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
41076
41076
|
const before2 = stemsState(database);
|
|
@@ -41165,7 +41165,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
41165
41165
|
return resetStems(database, { now: now2 });
|
|
41166
41166
|
}, "followDefaultStemmers");
|
|
41167
41167
|
|
|
41168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
41169
41169
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
41170
41170
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
41171
41171
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -41187,7 +41187,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
41187
41187
|
});
|
|
41188
41188
|
}, "termCandidates");
|
|
41189
41189
|
|
|
41190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
41191
41191
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
41192
41192
|
const { database } = context;
|
|
41193
41193
|
const stemmerFor2 = stemmerCache();
|
|
@@ -41211,7 +41211,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41211
41211
|
};
|
|
41212
41212
|
}, "searchIndexStoreOver");
|
|
41213
41213
|
|
|
41214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
41215
41215
|
var HISTORY_KEPT = 1e3;
|
|
41216
41216
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
41217
41217
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -41280,7 +41280,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
41280
41280
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
41281
41281
|
}, "clearHistory");
|
|
41282
41282
|
|
|
41283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
41284
41284
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
41285
41285
|
const { database } = context;
|
|
41286
41286
|
return {
|
|
@@ -41304,7 +41304,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41304
41304
|
};
|
|
41305
41305
|
}, "searchesStoreOver");
|
|
41306
41306
|
|
|
41307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
41308
41308
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
41309
41309
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
41310
41310
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -41347,7 +41347,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
41347
41347
|
};
|
|
41348
41348
|
}, "agentActionsStoreOver");
|
|
41349
41349
|
|
|
41350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
41351
41351
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
41352
41352
|
}) => {
|
|
41353
41353
|
const { database, now: now2 } = context;
|
|
@@ -41406,7 +41406,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
41406
41406
|
};
|
|
41407
41407
|
}, "botUpdateStoreOver");
|
|
41408
41408
|
|
|
41409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
41410
41410
|
var DAY4 = 864e5;
|
|
41411
41411
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
41412
41412
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -41515,7 +41515,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
41515
41515
|
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);
|
|
41516
41516
|
}, "listEvents");
|
|
41517
41517
|
|
|
41518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
41519
41519
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
41520
41520
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
41521
41521
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -41570,7 +41570,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
41570
41570
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
41571
41571
|
}, "forgetCalendarRows");
|
|
41572
41572
|
|
|
41573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
41573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
41574
41574
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
41575
41575
|
id: Number(row2.id),
|
|
41576
41576
|
accountId: Number(row2.account_id),
|
|
@@ -42157,7 +42157,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
42157
42157
|
};
|
|
42158
42158
|
}, "eventStoreOver");
|
|
42159
42159
|
|
|
42160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
42160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
42161
42161
|
var CATALOG_QUERY = defineQuery({
|
|
42162
42162
|
entity: "document",
|
|
42163
42163
|
backend: "sql",
|
|
@@ -42399,7 +42399,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
42399
42399
|
};
|
|
42400
42400
|
}, "catalogStoreOver");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
42403
42403
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
42404
42404
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
42405
42405
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -42412,7 +42412,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
42412
42412
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
42413
42413
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
42414
42414
|
|
|
42415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
42415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
42416
42416
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
42417
42417
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
42418
42418
|
signal?.throwIfAborted();
|
|
@@ -42511,7 +42511,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
42511
42511
|
});
|
|
42512
42512
|
}, "readMeetingContextEvidence");
|
|
42513
42513
|
|
|
42514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
42514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
42515
42515
|
var corpora = {
|
|
42516
42516
|
message: {
|
|
42517
42517
|
table: "messages",
|
|
@@ -42750,7 +42750,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
42750
42750
|
}
|
|
42751
42751
|
}), "contextRecordsOver");
|
|
42752
42752
|
|
|
42753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
42753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
42754
42754
|
import { createHash as createHash12 } from "node:crypto";
|
|
42755
42755
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
42756
42756
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -42982,7 +42982,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
|
|
|
42982
42982
|
return isObject2(header) ? { ...header, records: records2 } : header;
|
|
42983
42983
|
}, "envelopeOfJsonl");
|
|
42984
42984
|
|
|
42985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
42985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/crm.js
|
|
42986
42986
|
var TABLES = { deal: "deals", lead: "leads" };
|
|
42987
42987
|
var SOURCE = "crm";
|
|
42988
42988
|
var crmIdentityId = /* @__PURE__ */ __name((key2, externalId, type = "contact") => `${key2.account}/${type}/${externalId}`, "crmIdentityId");
|
|
@@ -43257,7 +43257,7 @@ var crmCopiesOver = /* @__PURE__ */ __name((context, people2) => {
|
|
|
43257
43257
|
};
|
|
43258
43258
|
}, "crmCopiesOver");
|
|
43259
43259
|
|
|
43260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
43260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
43261
43261
|
var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
43262
43262
|
throw new CliError(code, message2, { reason });
|
|
43263
43263
|
}, "refuse");
|
|
@@ -43718,7 +43718,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43718
43718
|
};
|
|
43719
43719
|
}, "financeStoreOver");
|
|
43720
43720
|
|
|
43721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
43721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/deals.js
|
|
43722
43722
|
var TABLES2 = { deal: "deals", lead: "leads" };
|
|
43723
43723
|
var itemsSql = /* @__PURE__ */ __name((kind4) => `SELECT d.*, s.name AS stage_name, s.pipeline_id, p.name AS pipeline_name, b.name AS author_name, b.kind AS author_kind, a.provider AS account_provider, a.external_id AS account_external_id FROM ${TABLES2[kind4]} d JOIN pipeline_stages s ON s.id = d.stage_id JOIN pipelines p ON p.id = s.pipeline_id LEFT JOIN bots b ON d.author_type = 'bot' AND b.id = d.author_id LEFT JOIN accounts a ON a.id = d.account_id`, "itemsSql");
|
|
43724
43724
|
var MAX_STAGES = 30;
|
|
@@ -44058,16 +44058,16 @@ var dealsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
44058
44058
|
};
|
|
44059
44059
|
}, "dealsStoreOver");
|
|
44060
44060
|
|
|
44061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
|
|
44062
44062
|
import { createHash as createHash13, randomBytes as randomBytes2 } from "node:crypto";
|
|
44063
44063
|
|
|
44064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/decision-requests.js
|
|
44065
44065
|
var DECISION_ACTIONS = ["confirm", "reject", "ask-confirm", "ask-reject", "back", "later"];
|
|
44066
44066
|
var DECISION_TTL_MS = 72 * 60 * 60 * 1e3;
|
|
44067
44067
|
var TOKEN2 = /^[A-Za-z0-9_-]{21}[AQgw]$/;
|
|
44068
44068
|
var isDecisionToken = /* @__PURE__ */ __name((value) => typeof value === "string" && TOKEN2.test(value), "isDecisionToken");
|
|
44069
44069
|
|
|
44070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
|
|
44071
44071
|
var digestOf = /* @__PURE__ */ __name((token) => createHash13("sha256").update(token).digest("hex"), "digestOf");
|
|
44072
44072
|
var newToken = /* @__PURE__ */ __name(() => randomBytes2(16).toString("base64url"), "newToken");
|
|
44073
44073
|
var requestOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -44163,7 +44163,7 @@ var decisionRequestStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
44163
44163
|
};
|
|
44164
44164
|
}, "decisionRequestStoreOver");
|
|
44165
44165
|
|
|
44166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
44167
44167
|
var NOTE_FIELDS = [
|
|
44168
44168
|
"text",
|
|
44169
44169
|
"exact",
|
|
@@ -44593,7 +44593,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
44593
44593
|
};
|
|
44594
44594
|
}, "noteSearchOver");
|
|
44595
44595
|
|
|
44596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
44597
44597
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
44598
44598
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
44599
44599
|
var EVENT_CORPUS = {
|
|
@@ -44725,7 +44725,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
44725
44725
|
};
|
|
44726
44726
|
}, "eventSearchOver");
|
|
44727
44727
|
|
|
44728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
44729
44729
|
var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
|
|
44730
44730
|
throw new CliError("validation_error", message2, { reason });
|
|
44731
44731
|
}, "refuse");
|
|
@@ -44803,7 +44803,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
44803
44803
|
};
|
|
44804
44804
|
}, "paymentEntriesOver");
|
|
44805
44805
|
|
|
44806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
44807
44807
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
44808
44808
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
44809
44809
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -44829,7 +44829,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
44829
44829
|
return valid;
|
|
44830
44830
|
}, "validateEvidenceFindings");
|
|
44831
44831
|
|
|
44832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
44833
44833
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
44834
44834
|
try {
|
|
44835
44835
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -44841,7 +44841,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
44841
44841
|
}
|
|
44842
44842
|
}, "calendarMoment");
|
|
44843
44843
|
|
|
44844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
44844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
44845
44845
|
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";
|
|
44846
44846
|
var iso10 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
44847
44847
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -45050,7 +45050,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45050
45050
|
};
|
|
45051
45051
|
}, "factsStoreOver");
|
|
45052
45052
|
|
|
45053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
45054
45054
|
var invalid5 = /* @__PURE__ */ __name((message2) => {
|
|
45055
45055
|
throw new CliError("validation_error", message2);
|
|
45056
45056
|
}, "invalid");
|
|
@@ -45154,7 +45154,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
45154
45154
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
45155
45155
|
}, "findingsCoreOver");
|
|
45156
45156
|
|
|
45157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
45158
45158
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
45159
45159
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
45160
45160
|
var iso11 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -45319,7 +45319,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45319
45319
|
};
|
|
45320
45320
|
}, "proposedActionsStoreOver");
|
|
45321
45321
|
|
|
45322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
45323
45323
|
var stale = /* @__PURE__ */ __name(() => {
|
|
45324
45324
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
45325
45325
|
reason: "evidence-findings.stale"
|
|
@@ -45500,7 +45500,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45500
45500
|
};
|
|
45501
45501
|
}, "evidenceFindingsStoreOver");
|
|
45502
45502
|
|
|
45503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
45504
45504
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
45505
45505
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
45506
45506
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -45553,7 +45553,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
45553
45553
|
}, "forPerson")
|
|
45554
45554
|
}), "involvementStoreOver");
|
|
45555
45555
|
|
|
45556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
45557
45557
|
import { createHash as createHash14 } from "node:crypto";
|
|
45558
45558
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
45559
45559
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -45639,7 +45639,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
45639
45639
|
};
|
|
45640
45640
|
}, "meetingProjectsStoreOver");
|
|
45641
45641
|
|
|
45642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
45643
45643
|
var ORGANIZATIONS_QUERY = {
|
|
45644
45644
|
entity: "organization",
|
|
45645
45645
|
backend: "sql",
|
|
@@ -45680,7 +45680,7 @@ var REMINDERS_QUERY = {
|
|
|
45680
45680
|
})
|
|
45681
45681
|
};
|
|
45682
45682
|
|
|
45683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/organizations.js
|
|
45684
45684
|
var organizationOf = /* @__PURE__ */ __name((row2) => ({
|
|
45685
45685
|
id: String(row2.id),
|
|
45686
45686
|
ref: `organization:${row2.id}`,
|
|
@@ -45713,7 +45713,7 @@ var organizationsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) =>
|
|
|
45713
45713
|
}), "updateOrganization")
|
|
45714
45714
|
}), "organizationsStoreOver");
|
|
45715
45715
|
|
|
45716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
45717
45717
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
45718
45718
|
id: link3.id,
|
|
45719
45719
|
from: link3.from,
|
|
@@ -45939,16 +45939,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
45939
45939
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
45940
45940
|
}, "decidedOrigin");
|
|
45941
45941
|
|
|
45942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
45943
45943
|
import { createHash as createHash17 } from "node:crypto";
|
|
45944
45944
|
|
|
45945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
45946
45946
|
import { createHash as createHash16 } from "node:crypto";
|
|
45947
45947
|
|
|
45948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
45949
45949
|
import { createHash as createHash15 } from "node:crypto";
|
|
45950
45950
|
|
|
45951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
45951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
45952
45952
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
45953
45953
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
45954
45954
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -45999,7 +45999,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
45999
45999
|
return input;
|
|
46000
46000
|
}, "consolidationApplyInput");
|
|
46001
46001
|
|
|
46002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
46002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
46003
46003
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
46004
46004
|
id: String(row2.id),
|
|
46005
46005
|
sourceId: String(row2.source_id),
|
|
@@ -46074,7 +46074,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
46074
46074
|
}, { beforeCommit: check3 });
|
|
46075
46075
|
}, "applyTagConsolidation");
|
|
46076
46076
|
|
|
46077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
46077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
46078
46078
|
var selections = [
|
|
46079
46079
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
46080
46080
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -46218,7 +46218,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
46218
46218
|
};
|
|
46219
46219
|
}, "previewRows");
|
|
46220
46220
|
|
|
46221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
46221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
46222
46222
|
var kinds = ["project", "tag", "topic"];
|
|
46223
46223
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
46224
46224
|
if (signal?.aborted)
|
|
@@ -46482,7 +46482,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
46482
46482
|
};
|
|
46483
46483
|
}, "vocabularyStoreOver");
|
|
46484
46484
|
|
|
46485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
46485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
46486
46486
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
46487
46487
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
46488
46488
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -47023,7 +47023,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
47023
47023
|
return key2.padEnd(3, "X");
|
|
47024
47024
|
}, "projectKey");
|
|
47025
47025
|
|
|
47026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
47026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
47027
47027
|
var DAY5 = 864e5;
|
|
47028
47028
|
var SETTING4 = "logs_pruned_at";
|
|
47029
47029
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -47050,7 +47050,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
47050
47050
|
};
|
|
47051
47051
|
}, "logPruner");
|
|
47052
47052
|
|
|
47053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
47053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
47054
47054
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
47055
47055
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
47056
47056
|
var invalid7 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -47426,7 +47426,7 @@ var checkMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
47426
47426
|
}, "checkMailFindings");
|
|
47427
47427
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
47428
47428
|
|
|
47429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
47429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
47430
47430
|
var import_disposable_email_domains_js = __toESM(require_dist(), 1);
|
|
47431
47431
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
47432
47432
|
var WEIGHTS = {
|
|
@@ -47559,7 +47559,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
47559
47559
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
47560
47560
|
}, "scoreGroup");
|
|
47561
47561
|
|
|
47562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
47562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
|
|
47563
47563
|
var ORDERS = "SELECT o.*, b.name AS author_name, b.kind AS author_kind FROM orders o LEFT JOIN bots b ON o.author_type = 'bot' AND b.id = o.author_id";
|
|
47564
47564
|
var orderOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
47565
47565
|
const { database, now: now2 } = context;
|
|
@@ -47711,7 +47711,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
47711
47711
|
};
|
|
47712
47712
|
}, "ordersStoreOver");
|
|
47713
47713
|
|
|
47714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
47714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
47715
47715
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
47716
47716
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
47717
47717
|
reason: "mail-findings.stale"
|
|
@@ -48168,7 +48168,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
48168
48168
|
};
|
|
48169
48169
|
}, "mailFindingsStoreOver");
|
|
48170
48170
|
|
|
48171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
48171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
48172
48172
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
48173
48173
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
48174
48174
|
reason: "meeting-findings.stale"
|
|
@@ -48336,7 +48336,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
48336
48336
|
};
|
|
48337
48337
|
}, "meetingFindingsStoreOver");
|
|
48338
48338
|
|
|
48339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
48339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
48340
48340
|
var RANK_BATCH = 512;
|
|
48341
48341
|
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";
|
|
48342
48342
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -48607,7 +48607,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
48607
48607
|
}
|
|
48608
48608
|
}), "meetingVectorsOver");
|
|
48609
48609
|
|
|
48610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
48610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
48611
48611
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
48612
48612
|
var TEXTS = {
|
|
48613
48613
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -48708,11 +48708,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
48708
48708
|
};
|
|
48709
48709
|
}, "sourceMentionStoreOver");
|
|
48710
48710
|
|
|
48711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
48711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
48712
48712
|
import { accessSync, constants, existsSync, mkdirSync as mkdirSync2, statSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
48713
48713
|
import { dirname as dirname2 } from "node:path";
|
|
48714
48714
|
|
|
48715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
48715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
48716
48716
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
48717
48717
|
var CLIENTS_SETTING = "clients";
|
|
48718
48718
|
var coreVersion = (() => {
|
|
@@ -48770,7 +48770,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
48770
48770
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
48771
48771
|
}, "refusalAdvice");
|
|
48772
48772
|
|
|
48773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
48773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
48774
48774
|
var GENERATED = [
|
|
48775
48775
|
{
|
|
48776
48776
|
"name": "20261010184427_initial",
|
|
@@ -49849,7 +49849,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
49849
49849
|
}
|
|
49850
49850
|
];
|
|
49851
49851
|
|
|
49852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
49852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/rollback-copy.js
|
|
49853
49853
|
import { mkdirSync, rmSync, statfsSync, writeFileSync } from "node:fs";
|
|
49854
49854
|
import { basename, dirname, join as join2, parse } from "node:path";
|
|
49855
49855
|
var DERIVED = /(_fts|_words|_stems|_trigrams|_pending)$|^(embeddings|chunks|chunk_messages|mentions|involvements|search_terms)$|^vector_index/;
|
|
@@ -50082,7 +50082,7 @@ var rollBack = /* @__PURE__ */ __name((database, path) => {
|
|
|
50082
50082
|
return { ...result, foreignKeyViolations };
|
|
50083
50083
|
}, "rollBack");
|
|
50084
50084
|
|
|
50085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
50086
50086
|
var V31_TABLES = [
|
|
50087
50087
|
"accounts",
|
|
50088
50088
|
"account_identities",
|
|
@@ -50230,7 +50230,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
50230
50230
|
return migrations;
|
|
50231
50231
|
}, "generatedMigrations");
|
|
50232
50232
|
|
|
50233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
50234
50234
|
var MIGRATIONS = generatedMigrations();
|
|
50235
50235
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
50236
50236
|
version INTEGER PRIMARY KEY,
|
|
@@ -50309,7 +50309,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
50309
50309
|
}
|
|
50310
50310
|
}, "migrate");
|
|
50311
50311
|
|
|
50312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
50313
50313
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
50314
50314
|
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 ?");
|
|
50315
50315
|
if (pending.get(0, 1) === void 0)
|
|
@@ -50331,7 +50331,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
50331
50331
|
}
|
|
50332
50332
|
}, "fillJoinKeys");
|
|
50333
50333
|
|
|
50334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
50335
50335
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
50336
50336
|
refuseOwnerStoreInTests(path);
|
|
50337
50337
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -50345,8 +50345,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
50345
50345
|
}, "openSqlite");
|
|
50346
50346
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
50347
50347
|
quietSqliteWarning();
|
|
50348
|
-
const { drizzle } = await import("./node-
|
|
50349
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
50348
|
+
const { drizzle } = await import("./node-NBHZ4XWV.js");
|
|
50349
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-3CBWCPNC.js");
|
|
50350
50350
|
const client = await nodeClient(path, { readOnly });
|
|
50351
50351
|
try {
|
|
50352
50352
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -50356,8 +50356,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
50356
50356
|
}
|
|
50357
50357
|
}, "openUnderNode");
|
|
50358
50358
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
50359
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
50360
|
-
const { drizzle } = await import("./bun-
|
|
50359
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-DWICJAH3.js");
|
|
50360
|
+
const { drizzle } = await import("./bun-DTDD2OHK.js");
|
|
50361
50361
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
50362
50362
|
try {
|
|
50363
50363
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -50367,7 +50367,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
50367
50367
|
}
|
|
50368
50368
|
}, "openUnderBun");
|
|
50369
50369
|
|
|
50370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
50371
50371
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
50372
50372
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
50373
50373
|
try {
|
|
@@ -50435,7 +50435,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
50435
50435
|
});
|
|
50436
50436
|
}, "movePaymentFacts");
|
|
50437
50437
|
|
|
50438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
50439
50439
|
var readCompatibility = /* @__PURE__ */ __name((database, command) => {
|
|
50440
50440
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
50441
50441
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -50453,7 +50453,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
50453
50453
|
throw new CliError("configuration_error", `The store needs schema ${MIGRATIONS.at(-1)?.version ?? 0} maintenance before a read-only open`);
|
|
50454
50454
|
}, "assertReadCompatible");
|
|
50455
50455
|
|
|
50456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
50457
50457
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
50458
50458
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
50459
50459
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -50499,7 +50499,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
50499
50499
|
});
|
|
50500
50500
|
}, "moveSuggestedLinks");
|
|
50501
50501
|
|
|
50502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
50503
50503
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
50504
50504
|
var TEST_PROVIDER = "chat";
|
|
50505
50505
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -50520,7 +50520,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
50520
50520
|
}
|
|
50521
50521
|
}, "purgeTestAccounts");
|
|
50522
50522
|
|
|
50523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
50524
50524
|
var BACKFILL_ON_OPEN = 5e3;
|
|
50525
50525
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
50526
50526
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -50616,10 +50616,10 @@ var openStoreContext = /* @__PURE__ */ __name(async (options = {}) => {
|
|
|
50616
50616
|
}
|
|
50617
50617
|
}, "openStoreContext");
|
|
50618
50618
|
|
|
50619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
50620
50620
|
import { createHash as createHash18 } from "node:crypto";
|
|
50621
50621
|
|
|
50622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
50623
50623
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
50624
50624
|
var ref = text4(2048);
|
|
50625
50625
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -50685,7 +50685,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
50685
50685
|
}))
|
|
50686
50686
|
});
|
|
50687
50687
|
|
|
50688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
50689
50689
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
50690
50690
|
var invalid10 = /* @__PURE__ */ __name((field4) => {
|
|
50691
50691
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -50789,7 +50789,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
50789
50789
|
invalid10("external.unused");
|
|
50790
50790
|
}, "validateProjectAnnotationsGraph");
|
|
50791
50791
|
|
|
50792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
50793
50793
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
50794
50794
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
50795
50795
|
var targetSchema = strictObject({
|
|
@@ -50895,7 +50895,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
50895
50895
|
};
|
|
50896
50896
|
}, "planBoundProjectAnnotations");
|
|
50897
50897
|
|
|
50898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
50899
50899
|
import { createHash as createHash19 } from "node:crypto";
|
|
50900
50900
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
50901
50901
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -50989,7 +50989,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
50989
50989
|
})).digest("hex");
|
|
50990
50990
|
}, "projectAnnotationSnapshotFingerprint");
|
|
50991
50991
|
|
|
50992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
50992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
50993
50993
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
50994
50994
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
50995
50995
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -51006,7 +51006,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
51006
51006
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
51007
51007
|
}, "projectAnnotationRequest");
|
|
51008
51008
|
|
|
51009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
51010
51010
|
var SnapshotBudget = class {
|
|
51011
51011
|
static {
|
|
51012
51012
|
__name(this, "SnapshotBudget");
|
|
@@ -51032,13 +51032,13 @@ var SnapshotBudget = class {
|
|
|
51032
51032
|
}
|
|
51033
51033
|
};
|
|
51034
51034
|
|
|
51035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
51036
51036
|
import { createHash as createHash21 } from "node:crypto";
|
|
51037
51037
|
|
|
51038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
51039
51039
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
51040
51040
|
|
|
51041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
51042
51042
|
import { createHash as createHash20 } from "node:crypto";
|
|
51043
51043
|
var invalid12 = /* @__PURE__ */ __name(() => {
|
|
51044
51044
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -51181,7 +51181,7 @@ var ProjectSnapshotSources = class {
|
|
|
51181
51181
|
}
|
|
51182
51182
|
};
|
|
51183
51183
|
|
|
51184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
51185
51185
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
51186
51186
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
51187
51187
|
}, "unsupported");
|
|
@@ -51352,7 +51352,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
51352
51352
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
51353
51353
|
}), "projectAnnotationSnapshot");
|
|
51354
51354
|
|
|
51355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
51356
51356
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
51357
51357
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
51358
51358
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -51414,7 +51414,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
51414
51414
|
};
|
|
51415
51415
|
}), "previewAnnotationSnapshot");
|
|
51416
51416
|
|
|
51417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
51418
51418
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
51419
51419
|
const mappings = { ...bindings };
|
|
51420
51420
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -51456,7 +51456,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
51456
51456
|
return mappings;
|
|
51457
51457
|
}, "restoreAnnotationRecords");
|
|
51458
51458
|
|
|
51459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
51460
51460
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
51461
51461
|
async preview(request) {
|
|
51462
51462
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -51486,7 +51486,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
51486
51486
|
}
|
|
51487
51487
|
}), "projectAnnotationStoreOver");
|
|
51488
51488
|
|
|
51489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
51490
51490
|
var PROJECTED = {
|
|
51491
51491
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
51492
51492
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -51899,7 +51899,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51899
51899
|
};
|
|
51900
51900
|
}, "recordStoreOver");
|
|
51901
51901
|
|
|
51902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
51903
51903
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
51904
51904
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
51905
51905
|
let merged = { from: from2, to };
|
|
@@ -51912,7 +51912,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
51912
51912
|
}, "markRange");
|
|
51913
51913
|
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");
|
|
51914
51914
|
|
|
51915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
51916
51916
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
51917
51917
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
51918
51918
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -51933,7 +51933,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
51933
51933
|
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);
|
|
51934
51934
|
}, "setTaskAnalysisMark");
|
|
51935
51935
|
|
|
51936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
51937
51937
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
51938
51938
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
51939
51939
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -51943,7 +51943,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
51943
51943
|
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);
|
|
51944
51944
|
}, "setTaskRulesStop");
|
|
51945
51945
|
|
|
51946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
51946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
51947
51947
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
51948
51948
|
const { database } = context;
|
|
51949
51949
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -52002,7 +52002,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
52002
52002
|
};
|
|
52003
52003
|
}, "syncStoreOver");
|
|
52004
52004
|
|
|
52005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
52006
52006
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
52007
52007
|
const { database } = context;
|
|
52008
52008
|
return {
|
|
@@ -52024,7 +52024,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
52024
52024
|
};
|
|
52025
52025
|
}, "tagsStoreOver");
|
|
52026
52026
|
|
|
52027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
52028
52028
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
52029
52029
|
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
|
|
52030
52030
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -52151,7 +52151,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
52151
52151
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
52152
52152
|
}, "savePictureChunks");
|
|
52153
52153
|
|
|
52154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
52155
52155
|
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,
|
|
52156
52156
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
52157
52157
|
FROM messages m
|
|
@@ -52240,7 +52240,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
52240
52240
|
return plain2(best(found2));
|
|
52241
52241
|
}, "nearestMessages");
|
|
52242
52242
|
|
|
52243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
52244
52244
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
52245
52245
|
const { database } = context;
|
|
52246
52246
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -52498,7 +52498,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
52498
52498
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
52499
52499
|
}), "vectorsStoreOver");
|
|
52500
52500
|
|
|
52501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
52502
52502
|
import { existsSync as existsSync2, readFileSync as readFileSync4 } from "node:fs";
|
|
52503
52503
|
import { dirname as dirname3, join as join3 } from "node:path";
|
|
52504
52504
|
var BOOKKEEPING2 = ["schema_migrations", "store_settings"];
|
|
@@ -52586,10 +52586,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
52586
52586
|
}
|
|
52587
52587
|
}, "lastBackup");
|
|
52588
52588
|
|
|
52589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
52590
52590
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
52591
52591
|
|
|
52592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
52593
52593
|
var COUNTED_TABLES = [
|
|
52594
52594
|
"accounts",
|
|
52595
52595
|
"chats",
|
|
@@ -52674,7 +52674,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
52674
52674
|
};
|
|
52675
52675
|
}, "storeContents");
|
|
52676
52676
|
|
|
52677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.
|
|
52677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_d9de6622c75caef4cd0a02912b39a001/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
52678
52678
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
52679
52679
|
const context = await openStoreContext(options);
|
|
52680
52680
|
try {
|