@wirecat/cli-memo 0.131.48 → 0.131.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-5YVSKBEV.js → all-profiles-3HADTQZA.js} +5 -5
- package/dist/bundle/{anthropic-BMK6F36V.js → anthropic-RI4DWC3G.js} +3 -3
- package/dist/bundle/{app-server-PUBWKHUG.js → app-server-6EKWAYJI.js} +35 -35
- package/dist/bundle/auto-C7G3WVRU.js +86 -0
- package/dist/bundle/{bun-ZBM364I6.js → bun-HUHQD76Z.js} +2 -2
- package/dist/bundle/{bun-sqlite-YLBILWBE.js → bun-sqlite-RPSKGB4O.js} +2 -2
- package/dist/bundle/{chunk-DNZYXNMB.js → chunk-2HPYP3ZT.js} +4 -4
- package/dist/bundle/{chunk-ADV7DNGM.js → chunk-2MFBZ2UM.js} +3 -3
- package/dist/bundle/{chunk-T56R3TF2.js → chunk-2OIGV355.js} +47 -47
- package/dist/bundle/{chunk-RCEDN42Q.js → chunk-355PHJYX.js} +1 -1
- package/dist/bundle/{chunk-U2EFWFDN.js → chunk-3BG5VYMV.js} +7 -7
- package/dist/bundle/{chunk-QUQJZSRF.js → chunk-4VQPPX47.js} +289 -279
- package/dist/bundle/{chunk-QTBFV5RL.js → chunk-57LMWEDK.js} +2 -2
- package/dist/bundle/{chunk-C3I6L7JZ.js → chunk-5JVA43HX.js} +5 -5
- package/dist/bundle/{chunk-NWRITJ7F.js → chunk-5RVL7GYA.js} +1 -1
- package/dist/bundle/{chunk-LDHFV34C.js → chunk-5TWUUDKP.js} +7 -1
- package/dist/bundle/{chunk-TZROQCQ5.js → chunk-6N6BVPVX.js} +3 -3
- package/dist/bundle/{chunk-DGLSE6XA.js → chunk-7ZLOZGIC.js} +5 -5
- package/dist/bundle/{chunk-UK2MMZFW.js → chunk-AKD62EUH.js} +1 -1
- package/dist/bundle/{chunk-X3KMQW2Z.js → chunk-D5KGXYG6.js} +28 -21
- package/dist/bundle/{chunk-YZEIVLAG.js → chunk-DJRBSOWH.js} +3 -3
- package/dist/bundle/{chunk-H4726KFZ.js → chunk-DVA6MQWK.js} +1 -1
- package/dist/bundle/{chunk-UHWQ2YXW.js → chunk-EJDV5IIF.js} +1 -1
- package/dist/bundle/{chunk-F7S25YVA.js → chunk-FOM7WE2C.js} +7 -7
- package/dist/bundle/{chunk-IGYOKYG7.js → chunk-GIDZGGAD.js} +2 -2
- package/dist/bundle/{chunk-E4YCKC3F.js → chunk-GV6XJMUW.js} +10 -10
- package/dist/bundle/{chunk-TW643BIA.js → chunk-HCMXUHHF.js} +56 -56
- package/dist/bundle/{chunk-YBN7UF2Y.js → chunk-HXOAPH47.js} +1 -1
- package/dist/bundle/{chunk-MKLDUZ7N.js → chunk-IXXBPSXO.js} +1 -1
- package/dist/bundle/{chunk-CSPAEYKK.js → chunk-KVOHC4ZM.js} +21 -13
- package/dist/bundle/{chunk-3LA6OE35.js → chunk-LUPJB7ZD.js} +8 -8
- package/dist/bundle/{chunk-YO7AUGUT.js → chunk-LZWXGO3G.js} +1 -1
- package/dist/bundle/{chunk-EGVRMA2C.js → chunk-N6IHOYMT.js} +11 -11
- package/dist/bundle/{chunk-DHO2JWF7.js → chunk-ND6D4A6H.js} +1 -1
- package/dist/bundle/{chunk-C6UTJATA.js → chunk-NJDGZRF5.js} +10 -10
- package/dist/bundle/{chunk-5BDWOMH6.js → chunk-NTQUBSIJ.js} +5 -5
- package/dist/bundle/{chunk-PUZ2G2KS.js → chunk-O3KOW7RG.js} +6 -6
- package/dist/bundle/{chunk-DMI3SFLF.js → chunk-OT23U5LT.js} +1 -1
- package/dist/bundle/{chunk-VJJCF52V.js → chunk-P2LMXIHL.js} +323 -289
- package/dist/bundle/{chunk-RSJJGXZP.js → chunk-P2TISY3R.js} +1 -1
- package/dist/bundle/{chunk-MIMLBSUQ.js → chunk-PEYCLVIO.js} +2 -2
- package/dist/bundle/{chunk-4FDK7LVF.js → chunk-PJMGQJAX.js} +4 -4
- package/dist/bundle/{chunk-HE56X542.js → chunk-PUTGTW6W.js} +1 -1
- package/dist/bundle/{chunk-VOJU5FVA.js → chunk-PYRHU35W.js} +149 -149
- package/dist/bundle/{chunk-XR4N2MYB.js → chunk-QCPUC3HW.js} +12 -12
- package/dist/bundle/{chunk-66KZBRZN.js → chunk-QCRJNWJZ.js} +2 -2
- package/dist/bundle/{chunk-MN3SFFTU.js → chunk-RKFKRCOH.js} +274 -253
- package/dist/bundle/{chunk-FTRFN3MU.js → chunk-RYMYE5PF.js} +7 -7
- package/dist/bundle/{chunk-TYOZC3BU.js → chunk-S7F4ZDFU.js} +2 -2
- package/dist/bundle/{chunk-2O32QNK3.js → chunk-SLIF5EMS.js} +17 -8
- package/dist/bundle/{chunk-BRLVX4V6.js → chunk-SSPSNSC5.js} +1 -1
- package/dist/bundle/{chunk-SGDTAVMU.js → chunk-TSUNLSIN.js} +1 -1
- package/dist/bundle/{chunk-X7UITQ66.js → chunk-UAR6UMFL.js} +4 -4
- package/dist/bundle/{chunk-VICARVCN.js → chunk-UDJTRFRV.js} +1 -1
- package/dist/bundle/{chunk-LDXCFBIC.js → chunk-UJLYVXP6.js} +31 -31
- package/dist/bundle/{chunk-U64G664E.js → chunk-V2DMJ6ES.js} +4 -4
- package/dist/bundle/{chunk-J737T3RM.js → chunk-W6JQNNJ5.js} +2 -2
- package/dist/bundle/{chunk-3A3KPJHP.js → chunk-XH6K2B5L.js} +4 -4
- package/dist/bundle/{chunk-IWEL7QCT.js → chunk-XXGBXCBQ.js} +9 -9
- package/dist/bundle/{chunk-EQ237UYC.js → chunk-XZZFHQGM.js} +20 -20
- package/dist/bundle/{chunk-KNUUZW42.js → chunk-Y6VH7IRN.js} +27 -27
- package/dist/bundle/{chunk-DPQL5JK6.js → chunk-ZA7FKGB7.js} +2 -2
- package/dist/bundle/{chunk-IHFK634F.js → chunk-ZDHNEYKO.js} +5 -5
- package/dist/bundle/{command-contract-BRZAKY6L.js → command-contract-MRLLZQ4M.js} +11 -11
- package/dist/bundle/{decode-WW5ZMB5R.js → decode-IYWZ3X7X.js} +2 -2
- package/dist/bundle/{echarts-ODD3E2RQ.js → echarts-5LLJ6JXC.js} +2 -2
- package/dist/bundle/{embed-3ETM2WYU.js → embed-EGY2R4FN.js} +3 -3
- package/dist/bundle/{embedder-6YL3WFBR.js → embedder-K2BGPWNX.js} +6 -6
- package/dist/bundle/{entry-F2UGXKZ3.js → entry-NMAZNDNU.js} +4 -4
- package/dist/bundle/failure-FW4NJI7G.js +66 -0
- package/dist/bundle/{first-run-OHQHOP5U.js → first-run-QDCSWX3N.js} +5 -5
- package/dist/bundle/{first-screen-ULF26GYG.js → first-screen-YABO6OZ7.js} +12 -12
- package/dist/bundle/{instructions-RS5VERM7.js → instructions-P72XX4AK.js} +1 -1
- package/dist/bundle/{mcp-TS2UAN5I.js → mcp-QRZ2HSON.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-BU6NHYHF.js → node-ZB4RNICS.js} +2 -2
- package/dist/bundle/{node-sqlite-WAF44CWS.js → node-sqlite-7XJ4J4E5.js} +3 -3
- package/dist/bundle/{oauth-T7RCNIYO.js → oauth-FMH3JIPT.js} +4 -4
- package/dist/bundle/{open-QLX2IVTC.js → open-PRCTOHHL.js} +2 -2
- package/dist/bundle/{openai-O25HCJEY.js → openai-VW4W6SIO.js} +7 -7
- package/dist/bundle/{process-SB2X3TKY.js → process-XNN4WG6N.js} +1 -1
- package/dist/bundle/{program-SDLIDODQ.js → program-TVT22XUQ.js} +180 -85
- package/dist/bundle/{prompt-OHVHUNV4.js → prompt-RT55UZGB.js} +2 -2
- package/dist/bundle/{recognize-SESVG7O3.js → recognize-AQ2UXUC2.js} +1 -1
- package/dist/bundle/{remote-DNGLVDYJ.js → remote-T3P5OWRR.js} +4 -4
- package/dist/bundle/{rerank-SF3OUPEB.js → rerank-743T3675.js} +4 -4
- package/dist/bundle/{serve-6RK7QFZ2.js → serve-BSKOU4FJ.js} +6 -6
- package/dist/bundle/{server-N6PCX7K7.js → server-ECOTCYJ3.js} +50 -50
- package/dist/bundle/server-VMWVYGK7.js +48 -0
- package/dist/bundle/server-ZFHSK6TT.js +61 -0
- package/dist/bundle/{state-J6WLL4TQ.js → state-MDMI3I2Z.js} +3 -3
- package/dist/bundle/{store-R2PHK3FR.js → store-I3DIZALN.js} +9 -9
- package/dist/bundle/store-maintenance-command-HZPQPOK7.js +48 -0
- package/dist/bundle/update-ZIZAU5RE.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +1 -0
- package/dist/examples.js.map +1 -1
- package/dist/memories/memory.d.ts.map +1 -1
- package/dist/memories/memory.js +3 -1
- package/dist/memories/memory.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/folders-command.d.ts.map +1 -1
- package/dist/notes/folders-command.js +51 -1
- package/dist/notes/folders-command.js.map +1 -1
- package/dist/notes/folders.d.ts +1 -0
- package/dist/notes/folders.d.ts.map +1 -1
- package/dist/notes/folders.js +1 -0
- package/dist/notes/folders.js.map +1 -1
- package/dist/notes/import.d.ts +3 -1
- package/dist/notes/import.d.ts.map +1 -1
- package/dist/notes/import.js +20 -3
- package/dist/notes/import.js.map +1 -1
- package/dist/notes/state.d.ts +2 -0
- package/dist/notes/state.d.ts.map +1 -1
- package/dist/notes/state.js +3 -1
- package/dist/notes/state.js.map +1 -1
- package/dist/progress.d.ts +12 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +19 -0
- package/dist/progress.js.map +1 -0
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/run/auto.d.ts +3 -0
- package/dist/run/auto.d.ts.map +1 -1
- package/dist/run/auto.js +16 -4
- package/dist/run/auto.js.map +1 -1
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +7 -1
- package/dist/run/import.js.map +1 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +7 -2
- package/dist/search/answers.js.map +1 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +5 -4
- package/dist/search/search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-FXCXORUF.js +0 -86
- package/dist/bundle/failure-X7CYCJWD.js +0 -66
- package/dist/bundle/server-JKWE764O.js +0 -61
- package/dist/bundle/server-RKGTOY4D.js +0 -48
- package/dist/bundle/store-maintenance-command-LRZ5R3UM.js +0 -48
- package/dist/bundle/update-RV2WSULI.js +0 -69
- /package/dist/bundle/{chunk-IO44XLFM.js → chunk-CDFNOKPG.js} +0 -0
|
@@ -102,11 +102,11 @@ import {
|
|
|
102
102
|
validateQuery,
|
|
103
103
|
walkQuery,
|
|
104
104
|
zonedMoment
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-HCMXUHHF.js";
|
|
106
106
|
import {
|
|
107
107
|
holdsCredential,
|
|
108
108
|
secretNamed
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-EJDV5IIF.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-RYMYE5PF.js";
|
|
123
123
|
import {
|
|
124
124
|
DEFAULT_TASK_CATEGORIES,
|
|
125
125
|
sharedConfigPath,
|
|
126
126
|
storedTaskCategories,
|
|
127
127
|
taskCategoriesReader
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-V2DMJ6ES.js";
|
|
129
129
|
import {
|
|
130
130
|
refuseOwnerStoreInTests,
|
|
131
131
|
storePath
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-LZWXGO3G.js";
|
|
133
133
|
import {
|
|
134
134
|
quietSqliteWarning,
|
|
135
135
|
storeCapable
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-NTQUBSIJ.js";
|
|
137
137
|
import {
|
|
138
138
|
PRAGMAS,
|
|
139
139
|
TIME_LIMIT_FUNCTION,
|
|
140
140
|
TimeLimitReached,
|
|
141
141
|
isQueryOnly
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-PUTGTW6W.js";
|
|
143
143
|
import {
|
|
144
144
|
array,
|
|
145
145
|
boolean,
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
sql,
|
|
190
190
|
sqliteTable,
|
|
191
191
|
text
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-P2TISY3R.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.
|
|
9936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
10868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
12654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
12781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
22803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
22844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
23224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
23265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
23525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
23715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
23723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
23931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
23971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
24007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
24407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
24461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
24922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
24927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
24951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
24982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
25974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
26958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
27113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
27384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
27447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
27512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
27602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
27834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
27853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
28954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
29990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
30021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
30089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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.
|
|
30092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/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",
|
|
@@ -30138,6 +30138,12 @@ var read2 = /* @__PURE__ */ __name((text6, fields4) => {
|
|
|
30138
30138
|
const unknown2 = leaves.find(({ field: field4 }) => !fields4.has(field4));
|
|
30139
30139
|
if (unknown2)
|
|
30140
30140
|
return { at: text6.lastIndexOf(unknown2.field, unknown2.span.start) };
|
|
30141
|
+
const questions = leaves.flatMap(({ implicit, operator, value, span }) => {
|
|
30142
|
+
const mark = /^[^*?]*[^*?\\]\?+$/u.test(value) && implicit && operator === "wildcard" ? /\?+$/u.exec(value) : null;
|
|
30143
|
+
return mark ? [span.end - mark[0].length] : [];
|
|
30144
|
+
});
|
|
30145
|
+
if (questions.length)
|
|
30146
|
+
return { questions };
|
|
30141
30147
|
const wordless = leaves.filter(({ implicit, operator, value }) => implicit && (operator === "term" || operator === "phrase") && !/[\p{L}\p{N}]/u.test(value));
|
|
30142
30148
|
const words3 = wordless.length < leaves.length;
|
|
30143
30149
|
return { wordless: words3 ? wordless : [], words: words3 };
|
|
@@ -30161,6 +30167,10 @@ var plainQuery = /* @__PURE__ */ __name((text6, fields4 = SEARCH_FIELDS) => {
|
|
|
30161
30167
|
} catch {
|
|
30162
30168
|
return text6;
|
|
30163
30169
|
}
|
|
30170
|
+
if ("questions" in reading) {
|
|
30171
|
+
current = reading.questions.sort((a, b) => b - a).reduce((left, at) => left.slice(0, at) + left.slice(at).replace(/^\?+/u, (marks) => "\\?".repeat(marks.length)), current);
|
|
30172
|
+
continue;
|
|
30173
|
+
}
|
|
30164
30174
|
if ("wordless" in reading) {
|
|
30165
30175
|
if (!reading.words && current !== text6)
|
|
30166
30176
|
return text6;
|
|
@@ -30184,7 +30194,7 @@ var plainQuery = /* @__PURE__ */ __name((text6, fields4 = SEARCH_FIELDS) => {
|
|
|
30184
30194
|
return text6;
|
|
30185
30195
|
}, "plainQuery");
|
|
30186
30196
|
|
|
30187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
30188
30198
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
30189
30199
|
const padded = ` ${term} `;
|
|
30190
30200
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -30193,7 +30203,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
30193
30203
|
return [...pieces];
|
|
30194
30204
|
}, "trigrams");
|
|
30195
30205
|
|
|
30196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
30197
30207
|
var SHORTEST_CORRECTION = 3;
|
|
30198
30208
|
var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
|
|
30199
30209
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -30240,7 +30250,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
30240
30250
|
return corrections;
|
|
30241
30251
|
}, "correctWords");
|
|
30242
30252
|
|
|
30243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
30244
30254
|
var SHORTEST_GARBLED = 4;
|
|
30245
30255
|
var MOST_WIDENED = 64;
|
|
30246
30256
|
var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -30332,7 +30342,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
30332
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));
|
|
30333
30343
|
}, "widenWords");
|
|
30334
30344
|
|
|
30335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
30336
30346
|
import { readFileSync } from "node:fs";
|
|
30337
30347
|
var loaded;
|
|
30338
30348
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -30391,7 +30401,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
|
|
|
30391
30401
|
return false;
|
|
30392
30402
|
}, "knownRussianWord");
|
|
30393
30403
|
|
|
30394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
30395
30405
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
30396
30406
|
var MOST_WORDS = 128;
|
|
30397
30407
|
var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
|
|
@@ -30618,7 +30628,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
30618
30628
|
return check3(tree);
|
|
30619
30629
|
}, "matchMeetingText");
|
|
30620
30630
|
|
|
30621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
30622
30632
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
30623
30633
|
throw new CliError("validation_error", message2);
|
|
30624
30634
|
}, "fail");
|
|
@@ -30800,7 +30810,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
30800
30810
|
}
|
|
30801
30811
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
30802
30812
|
|
|
30803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
30804
30814
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30805
30815
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
30806
30816
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -30832,7 +30842,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30832
30842
|
}
|
|
30833
30843
|
}), "meetingLanguagesOver");
|
|
30834
30844
|
|
|
30835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
30836
30846
|
import { createHash as createHash6 } from "node:crypto";
|
|
30837
30847
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
30838
30848
|
if (value === void 0)
|
|
@@ -30922,7 +30932,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
30922
30932
|
}
|
|
30923
30933
|
}), "meetingParticipantSearchOver");
|
|
30924
30934
|
|
|
30925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
30926
30936
|
var preparationQueries = {
|
|
30927
30937
|
participants: {
|
|
30928
30938
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -30972,7 +30982,7 @@ var preparationQueries = {
|
|
|
30972
30982
|
}
|
|
30973
30983
|
};
|
|
30974
30984
|
|
|
30975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
30976
30986
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30977
30987
|
async preparationContext(original) {
|
|
30978
30988
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -31013,7 +31023,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31013
31023
|
}
|
|
31014
31024
|
}), "meetingPreparationContextOver");
|
|
31015
31025
|
|
|
31016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
31017
31027
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
31018
31028
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
31019
31029
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -31027,7 +31037,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
31027
31037
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
31028
31038
|
)`, "preparationSubjects");
|
|
31029
31039
|
|
|
31030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
31031
31041
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
31032
31042
|
async preparationKnowledge(original) {
|
|
31033
31043
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -31072,7 +31082,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
31072
31082
|
}
|
|
31073
31083
|
}), "meetingPreparationKnowledgeOver");
|
|
31074
31084
|
|
|
31075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
31076
31086
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
31077
31087
|
async preparationNotes(original) {
|
|
31078
31088
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -31125,7 +31135,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31125
31135
|
}
|
|
31126
31136
|
}), "meetingPreparationNotesOver");
|
|
31127
31137
|
|
|
31128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
31129
31139
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
31130
31140
|
async relatedHistory(original) {
|
|
31131
31141
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -31196,7 +31206,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31196
31206
|
}
|
|
31197
31207
|
}), "meetingRelatedHistoryOver");
|
|
31198
31208
|
|
|
31199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
31200
31210
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
31201
31211
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
31202
31212
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -31277,7 +31287,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31277
31287
|
}
|
|
31278
31288
|
}), "meetingReviewOver");
|
|
31279
31289
|
|
|
31280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
31281
31291
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
31282
31292
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
31283
31293
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -31331,7 +31341,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31331
31341
|
}
|
|
31332
31342
|
}), "meetingSeriesHistoryOver");
|
|
31333
31343
|
|
|
31334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
31335
31345
|
var MOST_ROWS = 5e5;
|
|
31336
31346
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
31337
31347
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -31400,7 +31410,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31400
31410
|
}
|
|
31401
31411
|
}), "meetingStatsOver");
|
|
31402
31412
|
|
|
31403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
31404
31414
|
var CURSOR_KEY = "meetings";
|
|
31405
31415
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
31406
31416
|
id: Number(row2.id),
|
|
@@ -31969,7 +31979,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31969
31979
|
};
|
|
31970
31980
|
}, "meetingStoreOver");
|
|
31971
31981
|
|
|
31972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
31973
31983
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
31974
31984
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
31975
31985
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -31995,7 +32005,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
31995
32005
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
31996
32006
|
}, "release");
|
|
31997
32007
|
|
|
31998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
31999
32009
|
var THREAD_COLUMNS = {
|
|
32000
32010
|
subject: {
|
|
32001
32011
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -32012,7 +32022,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
32012
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);
|
|
32013
32023
|
}, "threadRows");
|
|
32014
32024
|
|
|
32015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
32016
32026
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
32017
32027
|
id: `email:${place.emailId}`,
|
|
32018
32028
|
chatId: place.threadExternalId,
|
|
@@ -32550,7 +32560,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
32550
32560
|
}
|
|
32551
32561
|
}), "mailStoreOver");
|
|
32552
32562
|
|
|
32553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
32554
32564
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
32555
32565
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
32556
32566
|
var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
|
|
@@ -32640,7 +32650,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
32640
32650
|
}, "knownWord");
|
|
32641
32651
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
32642
32652
|
|
|
32643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
32644
32654
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
32645
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");
|
|
32646
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
|
|
@@ -32726,7 +32736,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
32726
32736
|
return found2;
|
|
32727
32737
|
}, "spokenTranscripts");
|
|
32728
32738
|
|
|
32729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
32730
32740
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
32731
32741
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
32732
32742
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -32773,7 +32783,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
32773
32783
|
});
|
|
32774
32784
|
}, "placeHits");
|
|
32775
32785
|
|
|
32776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
32777
32787
|
var GROUPS = {
|
|
32778
32788
|
chat: {
|
|
32779
32789
|
key: "m.chat_id",
|
|
@@ -32795,7 +32805,7 @@ var GROUPS = {
|
|
|
32795
32805
|
}
|
|
32796
32806
|
};
|
|
32797
32807
|
|
|
32798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
32799
32809
|
var MESSAGES2 = {
|
|
32800
32810
|
rows: "messages",
|
|
32801
32811
|
threads: "chats",
|
|
@@ -33278,7 +33288,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
33278
33288
|
};
|
|
33279
33289
|
}, "runCompiled");
|
|
33280
33290
|
|
|
33281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
33282
33292
|
function invalidMetadata() {
|
|
33283
33293
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
33284
33294
|
}
|
|
@@ -33380,7 +33390,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
33380
33390
|
};
|
|
33381
33391
|
}), "counterTargets");
|
|
33382
33392
|
|
|
33383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
33384
33394
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
33385
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,
|
|
33386
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
|
|
@@ -33499,7 +33509,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
33499
33509
|
}));
|
|
33500
33510
|
}, "attachmentViews");
|
|
33501
33511
|
|
|
33502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
33503
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");
|
|
33504
33514
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
33505
33515
|
const { orm, database, now: now2 } = context;
|
|
@@ -33537,7 +33547,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
33537
33547
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
33538
33548
|
}, "intoVoiceAttachment");
|
|
33539
33549
|
|
|
33540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
33541
33551
|
var FIELDS = [
|
|
33542
33552
|
"threadExternalId",
|
|
33543
33553
|
"senderIdentityId",
|
|
@@ -33854,7 +33864,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
33854
33864
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
33855
33865
|
}, "writeDerivedReactions");
|
|
33856
33866
|
|
|
33857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
33858
33868
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
33859
33869
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
33860
33870
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -33875,7 +33885,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
33875
33885
|
};
|
|
33876
33886
|
}, "keysOver");
|
|
33877
33887
|
|
|
33878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
33879
33889
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
33880
33890
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
33881
33891
|
if (!row2)
|
|
@@ -33910,7 +33920,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
33910
33920
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
33911
33921
|
}, "saveProfile");
|
|
33912
33922
|
|
|
33913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
33914
33924
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
33915
33925
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
33916
33926
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -33967,7 +33977,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
33967
33977
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
33968
33978
|
}, "proposedBySql");
|
|
33969
33979
|
|
|
33970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
33971
33981
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
33972
33982
|
const owner = ownerPerson(context.database).id;
|
|
33973
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);
|
|
@@ -33988,7 +33998,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
33988
33998
|
return personOf(context, ref3);
|
|
33989
33999
|
}, "linkToOwner");
|
|
33990
34000
|
|
|
33991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
33992
34002
|
var PROVIDERS_SETTING = "providers";
|
|
33993
34003
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
33994
34004
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -34023,7 +34033,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
34023
34033
|
});
|
|
34024
34034
|
}, "registerProvider");
|
|
34025
34035
|
|
|
34026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
34027
34037
|
var DAY3 = 864e5;
|
|
34028
34038
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
34029
34039
|
var TEXT_LIMIT = 20;
|
|
@@ -34222,7 +34232,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
34222
34232
|
};
|
|
34223
34233
|
}, "taskSimilarityOver");
|
|
34224
34234
|
|
|
34225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
34226
34236
|
var SETTING3 = "taskCategories";
|
|
34227
34237
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
34228
34238
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -34241,7 +34251,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
34241
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);
|
|
34242
34252
|
}, "saveTaskCategories");
|
|
34243
34253
|
|
|
34244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
34245
34255
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
34246
34256
|
var ALLOWED = "taskAgentClose";
|
|
34247
34257
|
var MIN = "taskAgentCloseMin";
|
|
@@ -34297,10 +34307,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
34297
34307
|
];
|
|
34298
34308
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
34299
34309
|
|
|
34300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
34301
34311
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
34302
34312
|
|
|
34303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
34304
34314
|
var TASK_CLOSE_KIND = "task_close";
|
|
34305
34315
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
34306
34316
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -34348,7 +34358,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
34348
34358
|
}, "assertMayDecide");
|
|
34349
34359
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
34350
34360
|
|
|
34351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
34352
34362
|
var DEAL_KINDS = ["deal", "lead"];
|
|
34353
34363
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
34354
34364
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -34358,7 +34368,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
34358
34368
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
34359
34369
|
}, "dealLine");
|
|
34360
34370
|
|
|
34361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
34362
34372
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
34363
34373
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
34364
34374
|
var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
|
|
@@ -34414,7 +34424,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
34414
34424
|
return `${WORDS2[summary.kind]} ${named3}${notes2 === "" ? "" : ` (${notes2})`}`;
|
|
34415
34425
|
}, "refLabel");
|
|
34416
34426
|
|
|
34417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
34418
34428
|
var EXCERPT_CHARS = 280;
|
|
34419
34429
|
var TITLE_CHARS = 120;
|
|
34420
34430
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -34787,7 +34797,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
34787
34797
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
34788
34798
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read3]) => [text6, summaryOf2(read3, options.excerpt === true)])), "refSummariesOf");
|
|
34789
34799
|
|
|
34790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
34791
34801
|
var sourceOf3 = /* @__PURE__ */ __name((read3, ref3) => ({
|
|
34792
34802
|
ref: ref3,
|
|
34793
34803
|
kind: read3.kind,
|
|
@@ -34823,7 +34833,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
34823
34833
|
});
|
|
34824
34834
|
}, "evidenceSourcesOf");
|
|
34825
34835
|
|
|
34826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
34827
34837
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
34828
34838
|
var MAX_TEXT_CHARS = 2e6;
|
|
34829
34839
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -34849,7 +34859,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
34849
34859
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
34850
34860
|
}, "pdfPreviewLimits");
|
|
34851
34861
|
|
|
34852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
34853
34863
|
import { randomBytes } from "node:crypto";
|
|
34854
34864
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
34855
34865
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -34862,7 +34872,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
34862
34872
|
return time3 + random;
|
|
34863
34873
|
}, "ulid");
|
|
34864
34874
|
|
|
34865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
34866
34876
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
34867
34877
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
34868
34878
|
if (!meta && !sections?.length)
|
|
@@ -34883,7 +34893,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
34883
34893
|
return typeof language === "string" && language !== "" ? language : null;
|
|
34884
34894
|
}, "languageOf");
|
|
34885
34895
|
|
|
34886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
34887
34897
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
34888
34898
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
34889
34899
|
if (isObject(value))
|
|
@@ -35126,7 +35136,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
35126
35136
|
};
|
|
35127
35137
|
}, "filesStoreOver");
|
|
35128
35138
|
|
|
35129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
35130
35140
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
35131
35141
|
entity: "document",
|
|
35132
35142
|
backend: "sql",
|
|
@@ -35172,7 +35182,28 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
35172
35182
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
35173
35183
|
}, "importedDocumentWhere");
|
|
35174
35184
|
|
|
35175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/note-dates.js
|
|
35186
|
+
var dateFileNotes = /* @__PURE__ */ __name((database, folder, dates) => {
|
|
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
|
+
const legacy = database.prepare("SELECT id FROM documents WHERE account_id = ? AND external_id = ? AND deleted_at IS NULL");
|
|
35189
|
+
const dateFile = database.prepare("UPDATE files SET external_updated_at = ? WHERE id = ? AND external_updated_at IS NOT ?");
|
|
35190
|
+
const dateDocument = database.prepare("UPDATE documents SET external_updated_at = ? WHERE id = ? AND account_id = ? AND external_id = ? AND external_updated_at IS NOT ?");
|
|
35191
|
+
let changed = 0;
|
|
35192
|
+
for (const { path, modifiedAt } of dates) {
|
|
35193
|
+
const time3 = Date.parse(modifiedAt);
|
|
35194
|
+
if (!Number.isFinite(time3))
|
|
35195
|
+
throw new CliError("validation_error", `${modifiedAt} is not a time`);
|
|
35196
|
+
const place = fileAt.get(folder, path);
|
|
35197
|
+
const id2 = place?.document_id ?? legacy.get(folder, path)?.id;
|
|
35198
|
+
const file = place ? dateFile.run(time3, Number(place.id), time3).changes : 0;
|
|
35199
|
+
const document = id2 == null ? 0 : dateDocument.run(time3, Number(id2), folder, path, time3).changes;
|
|
35200
|
+
if (file + document > 0)
|
|
35201
|
+
changed++;
|
|
35202
|
+
}
|
|
35203
|
+
return changed;
|
|
35204
|
+
}, "dateFileNotes");
|
|
35205
|
+
|
|
35206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
35176
35207
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
35177
35208
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35178
35209
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -35200,6 +35231,7 @@ var documentOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
35200
35231
|
contentHash: row2.content_hash == null ? null : String(row2.content_hash),
|
|
35201
35232
|
revision: Number(row2.revision),
|
|
35202
35233
|
exportPath: row2.export_path == null ? null : String(row2.export_path),
|
|
35234
|
+
modifiedAt: optionalIso(row2.external_updated_at),
|
|
35203
35235
|
createdAt: iso2(row2.created_at),
|
|
35204
35236
|
updatedAt: iso2(row2.updated_at),
|
|
35205
35237
|
deletedAt: optionalIso(row2.deleted_at)
|
|
@@ -35216,6 +35248,7 @@ var noteOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
35216
35248
|
contentHash: null,
|
|
35217
35249
|
revision: Number(row2.revision),
|
|
35218
35250
|
exportPath: null,
|
|
35251
|
+
modifiedAt: null,
|
|
35219
35252
|
createdAt: iso2(row2.created_at),
|
|
35220
35253
|
updatedAt: iso2(row2.updated_at),
|
|
35221
35254
|
deletedAt: optionalIso(row2.deleted_at)
|
|
@@ -35531,6 +35564,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35531
35564
|
});
|
|
35532
35565
|
return noteAt(id2, folder, target);
|
|
35533
35566
|
}), "renameFileNote"),
|
|
35567
|
+
dateFileNotes: /* @__PURE__ */ __name(async (folderId, dates) => write(database, () => dateFileNotes(database, Number(folderRow(folderId).id), dates)), "dateFileNotes"),
|
|
35534
35568
|
deleteFileNotes: /* @__PURE__ */ __name(async (folderId, paths) => write(database, () => {
|
|
35535
35569
|
const folder = Number(folderRow(folderId).id);
|
|
35536
35570
|
let deleted = 0;
|
|
@@ -35588,7 +35622,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35588
35622
|
const aboutId = about?.id ?? null;
|
|
35589
35623
|
const files2 = options.source === "internal" ? [] : database.prepare(
|
|
35590
35624
|
// In a folder, a document is wherever one of its live files is, under that file's path.
|
|
35591
|
-
(folder === null ? "SELECT d.* FROM documents d WHERE d.deleted_at IS NULL AND ? IS NULL AND ? IS NULL " : "SELECT d.*, f.account_id AS account_id, CASE WHEN a.provider IN ('local', 'obsidian') THEN f.external_id ELSE d.external_id END AS external_id FROM files f JOIN documents d ON d.id = f.document_id JOIN accounts a ON a.id = f.account_id WHERE f.deleted_at IS NULL AND d.deleted_at IS NULL AND f.account_id = ? AND ? IS NOT NULL ") + `AND coalesce(json_extract(d.metadata, '$.catalog.active'), 1)=1 AND (? IS NULL OR EXISTS (SELECT 1 FROM links l WHERE l.from_type = 'document' AND l.from_id = d.id AND l.kind = ${linkKind("about")} AND l.to_type = ? AND l.to_id = ?)) ${documentText ? `AND ${documentText.sql} ` : ""}ORDER BY d.created_at DESC, d.id DESC LIMIT ?`
|
|
35625
|
+
(folder === null ? "SELECT d.* FROM documents d WHERE d.deleted_at IS NULL AND ? IS NULL AND ? IS NULL " : "SELECT d.*, f.account_id AS account_id, CASE WHEN a.provider IN ('local', 'obsidian') THEN f.external_id ELSE d.external_id END AS external_id, coalesce(f.external_updated_at, d.external_updated_at) AS external_updated_at FROM files f JOIN documents d ON d.id = f.document_id JOIN accounts a ON a.id = f.account_id WHERE f.deleted_at IS NULL AND d.deleted_at IS NULL AND f.account_id = ? AND ? IS NOT NULL ") + `AND coalesce(json_extract(d.metadata, '$.catalog.active'), 1)=1 AND (? IS NULL OR EXISTS (SELECT 1 FROM links l WHERE l.from_type = 'document' AND l.from_id = d.id AND l.kind = ${linkKind("about")} AND l.to_type = ? AND l.to_id = ?)) ${documentText ? `AND ${documentText.sql} ` : ""}ORDER BY d.created_at DESC, d.id DESC LIMIT ?`
|
|
35592
35626
|
).all(folder, folder, aboutType, aboutType, aboutId, ...documentText?.params ?? [], limit + offset + 1).map(documentOf);
|
|
35593
35627
|
const written2 = options.source === "file" || folder !== null ? [] : database.prepare(`SELECT n.* FROM notes n WHERE n.deleted_at IS NULL AND (? IS NULL OR (n.notable_type = ? AND n.notable_id = ?) OR EXISTS (SELECT 1 FROM links l WHERE l.from_type = 'note' AND l.from_id = n.id AND l.kind = ${linkKind("about")} AND l.to_type = ? AND l.to_id = ?)) ${noteText2 ? `AND ${noteText2.sql} ` : ""}ORDER BY n.created_at DESC, n.id DESC LIMIT ?`).all(aboutType, aboutType, aboutId, aboutType, aboutId, ...noteText2?.params ?? [], limit + offset + 1).map(noteOf);
|
|
35594
35628
|
const all2 = [...files2, ...written2].sort((a, b) => b.createdAt.localeCompare(a.createdAt) || b.ref.localeCompare(a.ref));
|
|
@@ -35698,7 +35732,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35698
35732
|
};
|
|
35699
35733
|
}, "notesStoreOver");
|
|
35700
35734
|
|
|
35701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
35702
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";
|
|
35703
35737
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35704
35738
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -35920,7 +35954,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35920
35954
|
};
|
|
35921
35955
|
}, "memoriesStoreOver");
|
|
35922
35956
|
|
|
35923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
35924
35958
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
35925
35959
|
var KEY = "taskFirstPassPerChat";
|
|
35926
35960
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -35940,7 +35974,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
35940
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);
|
|
35941
35975
|
}, "saveFirstPassPerChat");
|
|
35942
35976
|
|
|
35943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/external-links.js
|
|
35944
35978
|
var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
|
|
35945
35979
|
var EXTERNAL_ID_CHARS = 200;
|
|
35946
35980
|
var SOURCE_URL_CHARS = 2e3;
|
|
@@ -35967,7 +36001,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
|
|
|
35967
36001
|
return text6;
|
|
35968
36002
|
}, "sourceUrlOf");
|
|
35969
36003
|
|
|
35970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
35971
36005
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
35972
36006
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
35973
36007
|
name,
|
|
@@ -36190,7 +36224,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
36190
36224
|
return root === void 0 ? void 0 : { ...query, root };
|
|
36191
36225
|
}, "withoutField");
|
|
36192
36226
|
|
|
36193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
36194
36228
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
36195
36229
|
if (row2.author_type == null)
|
|
36196
36230
|
return null;
|
|
@@ -36218,7 +36252,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
36218
36252
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
36219
36253
|
}, "addComment");
|
|
36220
36254
|
|
|
36221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
36222
36256
|
var TASK_RELATION_KINDS = [
|
|
36223
36257
|
"blocked-by",
|
|
36224
36258
|
"follow-up-of",
|
|
@@ -36348,7 +36382,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
36348
36382
|
};
|
|
36349
36383
|
}, "taskRelationsStoreOver");
|
|
36350
36384
|
|
|
36351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
36352
36386
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
36353
36387
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
36354
36388
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
|
|
@@ -36877,7 +36911,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
36877
36911
|
};
|
|
36878
36912
|
}, "workTasksOver");
|
|
36879
36913
|
|
|
36880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
36881
36915
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
36882
36916
|
const { database, now: now2 } = context;
|
|
36883
36917
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -36926,7 +36960,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
36926
36960
|
};
|
|
36927
36961
|
}, "taskCloseOver");
|
|
36928
36962
|
|
|
36929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
36930
36964
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
36931
36965
|
const { database, now: now2 } = context;
|
|
36932
36966
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -37144,7 +37178,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
37144
37178
|
};
|
|
37145
37179
|
}, "taskPairsOver");
|
|
37146
37180
|
|
|
37147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
37148
37182
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
37149
37183
|
var TASK_STATS_SQL = {
|
|
37150
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"),
|
|
@@ -37183,7 +37217,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
37183
37217
|
}, "statNames")
|
|
37184
37218
|
}), "taskStatsOver");
|
|
37185
37219
|
|
|
37186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
37187
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";
|
|
37188
37222
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
37189
37223
|
const key2 = inboxKey(account);
|
|
@@ -37390,7 +37424,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
37390
37424
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
37391
37425
|
}, "oneOf");
|
|
37392
37426
|
|
|
37393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
37394
37428
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
37395
37429
|
const { database } = context;
|
|
37396
37430
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -37435,7 +37469,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
37435
37469
|
};
|
|
37436
37470
|
}, "accountsStoreOver");
|
|
37437
37471
|
|
|
37438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
37439
37473
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
37440
37474
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
37441
37475
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -37459,7 +37493,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
37459
37493
|
})), "keepDownloads");
|
|
37460
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");
|
|
37461
37495
|
|
|
37462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
37463
37497
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
37464
37498
|
const { database } = context;
|
|
37465
37499
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -37516,7 +37550,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
37516
37550
|
}, "keepAttachmentText")
|
|
37517
37551
|
}), "attachmentsStoreOver");
|
|
37518
37552
|
|
|
37519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
37520
37554
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
37521
37555
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
37522
37556
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -37696,7 +37730,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
37696
37730
|
return done;
|
|
37697
37731
|
}, "rekeyChats");
|
|
37698
37732
|
|
|
37699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
37700
37734
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
37701
37735
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
37702
37736
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -37754,7 +37788,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
37754
37788
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
37755
37789
|
}, "chatCoverage");
|
|
37756
37790
|
|
|
37757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
37758
37792
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
37759
37793
|
const { database } = context;
|
|
37760
37794
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -37889,7 +37923,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
37889
37923
|
};
|
|
37890
37924
|
}, "chatsStoreOver");
|
|
37891
37925
|
|
|
37892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
37893
37927
|
import { createHash as createHash7 } from "node:crypto";
|
|
37894
37928
|
var BATCH_CONTEXT = 50;
|
|
37895
37929
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -38027,7 +38061,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
38027
38061
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
38028
38062
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
38029
38063
|
|
|
38030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
38031
38065
|
import { setTimeout } from "node:timers/promises";
|
|
38032
38066
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
38033
38067
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -38339,7 +38373,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
38339
38373
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
38340
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");
|
|
38341
38375
|
|
|
38342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
38343
38377
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
38344
38378
|
const { database } = context;
|
|
38345
38379
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -38446,7 +38480,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
38446
38480
|
};
|
|
38447
38481
|
}, "conversationsStoreOver");
|
|
38448
38482
|
|
|
38449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
38450
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";
|
|
38451
38485
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
38452
38486
|
const { database } = context;
|
|
@@ -38471,7 +38505,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38471
38505
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
38472
38506
|
}), "countersStoreOver");
|
|
38473
38507
|
|
|
38474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
38475
38509
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
38476
38510
|
var MENTION_QUERY = defineQuery({
|
|
38477
38511
|
entity: "mention",
|
|
@@ -38687,7 +38721,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
38687
38721
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
38688
38722
|
}, "listPlaces");
|
|
38689
38723
|
|
|
38690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
38691
38725
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
38692
38726
|
const { database } = context;
|
|
38693
38727
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -38722,7 +38756,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38722
38756
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
38723
38757
|
}), "mentionsStoreOver");
|
|
38724
38758
|
|
|
38725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
38726
38760
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
38727
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");
|
|
38728
38762
|
const rows = messageId === void 0 ? read3.all(chatKey) : read3.all(chatKey, messageId);
|
|
@@ -38737,7 +38771,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
38737
38771
|
}));
|
|
38738
38772
|
}, "documentLinkMessages");
|
|
38739
38773
|
|
|
38740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
38741
38775
|
var stemmerFor = stemmerCache();
|
|
38742
38776
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
38743
38777
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -38781,7 +38815,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
38781
38815
|
});
|
|
38782
38816
|
}, "laterSharingRare");
|
|
38783
38817
|
|
|
38784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
38785
38819
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
38786
38820
|
const { database } = context;
|
|
38787
38821
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -38916,7 +38950,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38916
38950
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
38917
38951
|
}), "messagesStoreOver");
|
|
38918
38952
|
|
|
38919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
38920
38954
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
38921
38955
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
38922
38956
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -38973,7 +39007,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
38973
39007
|
});
|
|
38974
39008
|
}, "personPreparation");
|
|
38975
39009
|
|
|
38976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
38977
39011
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
38978
39012
|
const id2 = Number(uid);
|
|
38979
39013
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -38981,7 +39015,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
38981
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)));
|
|
38982
39016
|
}, "personSeenInAccounts");
|
|
38983
39017
|
|
|
38984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
38985
39019
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
38986
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);
|
|
38987
39021
|
if (!row2)
|
|
@@ -39047,7 +39081,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
39047
39081
|
return { id: id2, personId, removed: true };
|
|
39048
39082
|
}, "removeNote");
|
|
39049
39083
|
|
|
39050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
39051
39085
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
39052
39086
|
const { database } = context;
|
|
39053
39087
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -39132,13 +39166,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
39132
39166
|
};
|
|
39133
39167
|
}, "peopleStoreOver");
|
|
39134
39168
|
|
|
39135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
39136
39170
|
import { createHash as createHash9 } from "node:crypto";
|
|
39137
39171
|
|
|
39138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39139
39173
|
import { createHash as createHash8 } from "node:crypto";
|
|
39140
39174
|
|
|
39141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
39142
39176
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
39143
39177
|
var AUTHOR_MEASURES = [
|
|
39144
39178
|
"messages",
|
|
@@ -39278,7 +39312,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
39278
39312
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
39279
39313
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
39280
39314
|
|
|
39281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
39282
39316
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
39283
39317
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
39284
39318
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -39500,7 +39534,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
39500
39534
|
};
|
|
39501
39535
|
}, "rankReplyGraph");
|
|
39502
39536
|
|
|
39503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39504
39538
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
39505
39539
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
39506
39540
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -39674,7 +39708,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
39674
39708
|
return { items, evidence, summary, graph: graph.quality };
|
|
39675
39709
|
}, "calculateAdminStatistics");
|
|
39676
39710
|
|
|
39677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
39678
39712
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
39679
39713
|
const dates = [];
|
|
39680
39714
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -39696,7 +39730,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
39696
39730
|
return dates[0].node.resolution.date;
|
|
39697
39731
|
}, "rankingContextRange");
|
|
39698
39732
|
|
|
39699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
39700
39734
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
39701
39735
|
let counts;
|
|
39702
39736
|
try {
|
|
@@ -39991,7 +40025,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
39991
40025
|
});
|
|
39992
40026
|
}, "rankQuery");
|
|
39993
40027
|
|
|
39994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
39995
40029
|
function fail4(message2, reason = "query.too-large") {
|
|
39996
40030
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
39997
40031
|
}
|
|
@@ -40168,7 +40202,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
40168
40202
|
return result;
|
|
40169
40203
|
}), "adminStatisticsQuery");
|
|
40170
40204
|
|
|
40171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
40172
40206
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
40173
40207
|
if (!execution.accounts.length)
|
|
40174
40208
|
return { conversations: [], chats: [] };
|
|
@@ -40186,7 +40220,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
40186
40220
|
return { conversations: conversations2, chats: chats2 };
|
|
40187
40221
|
}, "conversationEligibility");
|
|
40188
40222
|
|
|
40189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
40190
40224
|
import { createHash as createHash10 } from "node:crypto";
|
|
40191
40225
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
40192
40226
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -40336,7 +40370,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
40336
40370
|
return result;
|
|
40337
40371
|
}, "rankingEvidence");
|
|
40338
40372
|
|
|
40339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
40340
40374
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
40341
40375
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
40342
40376
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -40430,7 +40464,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
40430
40464
|
});
|
|
40431
40465
|
}, "waitingChats");
|
|
40432
40466
|
|
|
40433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
40434
40468
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
40435
40469
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
40436
40470
|
if (execution.corpus === "mail")
|
|
@@ -40451,7 +40485,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
40451
40485
|
};
|
|
40452
40486
|
}, "queriesStoreOver");
|
|
40453
40487
|
|
|
40454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
40455
40489
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
40456
40490
|
const { database, now: now2 } = context;
|
|
40457
40491
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -40490,10 +40524,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
40490
40524
|
}));
|
|
40491
40525
|
}, "chatEventsOf");
|
|
40492
40526
|
|
|
40493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40494
40528
|
import { createHash as createHash11 } from "node:crypto";
|
|
40495
40529
|
|
|
40496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
40497
40531
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
40498
40532
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
40499
40533
|
timeZone: zone,
|
|
@@ -40513,7 +40547,7 @@ var weekKey = /* @__PURE__ */ __name((day2) => {
|
|
|
40513
40547
|
return date3.toISOString().slice(0, 10);
|
|
40514
40548
|
}, "weekKey");
|
|
40515
40549
|
|
|
40516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
40517
40551
|
var RETENTION_TOLERANCE = 864e5;
|
|
40518
40552
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
40519
40553
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -40567,7 +40601,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
40567
40601
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
40568
40602
|
}, "retentionCohorts");
|
|
40569
40603
|
|
|
40570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40571
40605
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
40572
40606
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
40573
40607
|
validateRetentionOptions(options);
|
|
@@ -40698,7 +40732,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
40698
40732
|
};
|
|
40699
40733
|
}, "retentionQuery");
|
|
40700
40734
|
|
|
40701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
40702
40736
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
40703
40737
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
40704
40738
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -40829,7 +40863,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
40829
40863
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
40830
40864
|
})), "trackedChats");
|
|
40831
40865
|
|
|
40832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
40833
40867
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40834
40868
|
const { database } = context;
|
|
40835
40869
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -40885,7 +40919,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40885
40919
|
};
|
|
40886
40920
|
}, "rosterStoreOver");
|
|
40887
40921
|
|
|
40888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
40889
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");
|
|
40890
40924
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
40891
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 ?`);
|
|
@@ -40909,7 +40943,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
40909
40943
|
}
|
|
40910
40944
|
}, "backfillNormalized");
|
|
40911
40945
|
|
|
40912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
40913
40947
|
var INDEX2 = "message_words";
|
|
40914
40948
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
40915
40949
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -41036,7 +41070,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
41036
41070
|
});
|
|
41037
41071
|
}, "resetSearchIndex");
|
|
41038
41072
|
|
|
41039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
41040
41074
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
41041
41075
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
41042
41076
|
const before2 = stemsState(database);
|
|
@@ -41131,7 +41165,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
41131
41165
|
return resetStems(database, { now: now2 });
|
|
41132
41166
|
}, "followDefaultStemmers");
|
|
41133
41167
|
|
|
41134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
41135
41169
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
41136
41170
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
41137
41171
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -41153,7 +41187,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
41153
41187
|
});
|
|
41154
41188
|
}, "termCandidates");
|
|
41155
41189
|
|
|
41156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
41157
41191
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
41158
41192
|
const { database } = context;
|
|
41159
41193
|
const stemmerFor2 = stemmerCache();
|
|
@@ -41177,7 +41211,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41177
41211
|
};
|
|
41178
41212
|
}, "searchIndexStoreOver");
|
|
41179
41213
|
|
|
41180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
41181
41215
|
var HISTORY_KEPT = 1e3;
|
|
41182
41216
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
41183
41217
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -41246,7 +41280,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
41246
41280
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
41247
41281
|
}, "clearHistory");
|
|
41248
41282
|
|
|
41249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
41250
41284
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
41251
41285
|
const { database } = context;
|
|
41252
41286
|
return {
|
|
@@ -41270,7 +41304,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41270
41304
|
};
|
|
41271
41305
|
}, "searchesStoreOver");
|
|
41272
41306
|
|
|
41273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
41274
41308
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
41275
41309
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
41276
41310
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -41313,7 +41347,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
41313
41347
|
};
|
|
41314
41348
|
}, "agentActionsStoreOver");
|
|
41315
41349
|
|
|
41316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
41317
41351
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
41318
41352
|
}) => {
|
|
41319
41353
|
const { database, now: now2 } = context;
|
|
@@ -41372,7 +41406,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
41372
41406
|
};
|
|
41373
41407
|
}, "botUpdateStoreOver");
|
|
41374
41408
|
|
|
41375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
41376
41410
|
var DAY4 = 864e5;
|
|
41377
41411
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
41378
41412
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -41481,7 +41515,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
41481
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);
|
|
41482
41516
|
}, "listEvents");
|
|
41483
41517
|
|
|
41484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
41485
41519
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
41486
41520
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
41487
41521
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -41536,7 +41570,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
41536
41570
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
41537
41571
|
}, "forgetCalendarRows");
|
|
41538
41572
|
|
|
41539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
41540
41574
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
41541
41575
|
id: Number(row2.id),
|
|
41542
41576
|
accountId: Number(row2.account_id),
|
|
@@ -42123,7 +42157,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
42123
42157
|
};
|
|
42124
42158
|
}, "eventStoreOver");
|
|
42125
42159
|
|
|
42126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
42127
42161
|
var CATALOG_QUERY = defineQuery({
|
|
42128
42162
|
entity: "document",
|
|
42129
42163
|
backend: "sql",
|
|
@@ -42365,7 +42399,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
42365
42399
|
};
|
|
42366
42400
|
}, "catalogStoreOver");
|
|
42367
42401
|
|
|
42368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
42369
42403
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
42370
42404
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
42371
42405
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -42378,7 +42412,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
42378
42412
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
42379
42413
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
42380
42414
|
|
|
42381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
42382
42416
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
42383
42417
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
42384
42418
|
signal?.throwIfAborted();
|
|
@@ -42477,7 +42511,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
42477
42511
|
});
|
|
42478
42512
|
}, "readMeetingContextEvidence");
|
|
42479
42513
|
|
|
42480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
42481
42515
|
var corpora = {
|
|
42482
42516
|
message: {
|
|
42483
42517
|
table: "messages",
|
|
@@ -42716,7 +42750,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
42716
42750
|
}
|
|
42717
42751
|
}), "contextRecordsOver");
|
|
42718
42752
|
|
|
42719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
42720
42754
|
import { createHash as createHash12 } from "node:crypto";
|
|
42721
42755
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
42722
42756
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -42948,7 +42982,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
|
|
|
42948
42982
|
return isObject2(header) ? { ...header, records: records2 } : header;
|
|
42949
42983
|
}, "envelopeOfJsonl");
|
|
42950
42984
|
|
|
42951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/crm.js
|
|
42952
42986
|
var TABLES = { deal: "deals", lead: "leads" };
|
|
42953
42987
|
var SOURCE = "crm";
|
|
42954
42988
|
var crmIdentityId = /* @__PURE__ */ __name((key2, externalId, type = "contact") => `${key2.account}/${type}/${externalId}`, "crmIdentityId");
|
|
@@ -43223,7 +43257,7 @@ var crmCopiesOver = /* @__PURE__ */ __name((context, people2) => {
|
|
|
43223
43257
|
};
|
|
43224
43258
|
}, "crmCopiesOver");
|
|
43225
43259
|
|
|
43226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
43227
43261
|
var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
43228
43262
|
throw new CliError(code, message2, { reason });
|
|
43229
43263
|
}, "refuse");
|
|
@@ -43684,7 +43718,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43684
43718
|
};
|
|
43685
43719
|
}, "financeStoreOver");
|
|
43686
43720
|
|
|
43687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/deals.js
|
|
43688
43722
|
var TABLES2 = { deal: "deals", lead: "leads" };
|
|
43689
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");
|
|
43690
43724
|
var MAX_STAGES = 30;
|
|
@@ -44024,16 +44058,16 @@ var dealsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
44024
44058
|
};
|
|
44025
44059
|
}, "dealsStoreOver");
|
|
44026
44060
|
|
|
44027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
|
|
44028
44062
|
import { createHash as createHash13, randomBytes as randomBytes2 } from "node:crypto";
|
|
44029
44063
|
|
|
44030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/decision-requests.js
|
|
44031
44065
|
var DECISION_ACTIONS = ["confirm", "reject", "ask-confirm", "ask-reject", "back", "later"];
|
|
44032
44066
|
var DECISION_TTL_MS = 72 * 60 * 60 * 1e3;
|
|
44033
44067
|
var TOKEN2 = /^[A-Za-z0-9_-]{21}[AQgw]$/;
|
|
44034
44068
|
var isDecisionToken = /* @__PURE__ */ __name((value) => typeof value === "string" && TOKEN2.test(value), "isDecisionToken");
|
|
44035
44069
|
|
|
44036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
|
|
44037
44071
|
var digestOf = /* @__PURE__ */ __name((token) => createHash13("sha256").update(token).digest("hex"), "digestOf");
|
|
44038
44072
|
var newToken = /* @__PURE__ */ __name(() => randomBytes2(16).toString("base64url"), "newToken");
|
|
44039
44073
|
var requestOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -44129,7 +44163,7 @@ var decisionRequestStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
44129
44163
|
};
|
|
44130
44164
|
}, "decisionRequestStoreOver");
|
|
44131
44165
|
|
|
44132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
44133
44167
|
var NOTE_FIELDS = [
|
|
44134
44168
|
"text",
|
|
44135
44169
|
"exact",
|
|
@@ -44559,7 +44593,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
44559
44593
|
};
|
|
44560
44594
|
}, "noteSearchOver");
|
|
44561
44595
|
|
|
44562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
44563
44597
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
44564
44598
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
44565
44599
|
var EVENT_CORPUS = {
|
|
@@ -44691,7 +44725,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
44691
44725
|
};
|
|
44692
44726
|
}, "eventSearchOver");
|
|
44693
44727
|
|
|
44694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
44695
44729
|
var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
|
|
44696
44730
|
throw new CliError("validation_error", message2, { reason });
|
|
44697
44731
|
}, "refuse");
|
|
@@ -44769,7 +44803,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
44769
44803
|
};
|
|
44770
44804
|
}, "paymentEntriesOver");
|
|
44771
44805
|
|
|
44772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
44773
44807
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
44774
44808
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
44775
44809
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -44795,7 +44829,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
44795
44829
|
return valid;
|
|
44796
44830
|
}, "validateEvidenceFindings");
|
|
44797
44831
|
|
|
44798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
44799
44833
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
44800
44834
|
try {
|
|
44801
44835
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -44807,7 +44841,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
44807
44841
|
}
|
|
44808
44842
|
}, "calendarMoment");
|
|
44809
44843
|
|
|
44810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
44811
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";
|
|
44812
44846
|
var iso10 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
44813
44847
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -45016,7 +45050,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45016
45050
|
};
|
|
45017
45051
|
}, "factsStoreOver");
|
|
45018
45052
|
|
|
45019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
45020
45054
|
var invalid5 = /* @__PURE__ */ __name((message2) => {
|
|
45021
45055
|
throw new CliError("validation_error", message2);
|
|
45022
45056
|
}, "invalid");
|
|
@@ -45120,7 +45154,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
45120
45154
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
45121
45155
|
}, "findingsCoreOver");
|
|
45122
45156
|
|
|
45123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
45124
45158
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
45125
45159
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
45126
45160
|
var iso11 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -45285,7 +45319,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45285
45319
|
};
|
|
45286
45320
|
}, "proposedActionsStoreOver");
|
|
45287
45321
|
|
|
45288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
45289
45323
|
var stale = /* @__PURE__ */ __name(() => {
|
|
45290
45324
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
45291
45325
|
reason: "evidence-findings.stale"
|
|
@@ -45466,7 +45500,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45466
45500
|
};
|
|
45467
45501
|
}, "evidenceFindingsStoreOver");
|
|
45468
45502
|
|
|
45469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
45470
45504
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
45471
45505
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
45472
45506
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -45519,7 +45553,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
45519
45553
|
}, "forPerson")
|
|
45520
45554
|
}), "involvementStoreOver");
|
|
45521
45555
|
|
|
45522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
45523
45557
|
import { createHash as createHash14 } from "node:crypto";
|
|
45524
45558
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
45525
45559
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -45605,7 +45639,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
45605
45639
|
};
|
|
45606
45640
|
}, "meetingProjectsStoreOver");
|
|
45607
45641
|
|
|
45608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
45609
45643
|
var ORGANIZATIONS_QUERY = {
|
|
45610
45644
|
entity: "organization",
|
|
45611
45645
|
backend: "sql",
|
|
@@ -45646,7 +45680,7 @@ var REMINDERS_QUERY = {
|
|
|
45646
45680
|
})
|
|
45647
45681
|
};
|
|
45648
45682
|
|
|
45649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/organizations.js
|
|
45650
45684
|
var organizationOf = /* @__PURE__ */ __name((row2) => ({
|
|
45651
45685
|
id: String(row2.id),
|
|
45652
45686
|
ref: `organization:${row2.id}`,
|
|
@@ -45679,7 +45713,7 @@ var organizationsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) =>
|
|
|
45679
45713
|
}), "updateOrganization")
|
|
45680
45714
|
}), "organizationsStoreOver");
|
|
45681
45715
|
|
|
45682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
45683
45717
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
45684
45718
|
id: link3.id,
|
|
45685
45719
|
from: link3.from,
|
|
@@ -45905,16 +45939,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
45905
45939
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
45906
45940
|
}, "decidedOrigin");
|
|
45907
45941
|
|
|
45908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
45909
45943
|
import { createHash as createHash17 } from "node:crypto";
|
|
45910
45944
|
|
|
45911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
45912
45946
|
import { createHash as createHash16 } from "node:crypto";
|
|
45913
45947
|
|
|
45914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
45915
45949
|
import { createHash as createHash15 } from "node:crypto";
|
|
45916
45950
|
|
|
45917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
45918
45952
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
45919
45953
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
45920
45954
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -45965,7 +45999,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
45965
45999
|
return input;
|
|
45966
46000
|
}, "consolidationApplyInput");
|
|
45967
46001
|
|
|
45968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
45969
46003
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
45970
46004
|
id: String(row2.id),
|
|
45971
46005
|
sourceId: String(row2.source_id),
|
|
@@ -46040,7 +46074,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
46040
46074
|
}, { beforeCommit: check3 });
|
|
46041
46075
|
}, "applyTagConsolidation");
|
|
46042
46076
|
|
|
46043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
46044
46078
|
var selections = [
|
|
46045
46079
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
46046
46080
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -46184,7 +46218,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
46184
46218
|
};
|
|
46185
46219
|
}, "previewRows");
|
|
46186
46220
|
|
|
46187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
46188
46222
|
var kinds = ["project", "tag", "topic"];
|
|
46189
46223
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
46190
46224
|
if (signal?.aborted)
|
|
@@ -46448,7 +46482,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
46448
46482
|
};
|
|
46449
46483
|
}, "vocabularyStoreOver");
|
|
46450
46484
|
|
|
46451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
46452
46486
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
46453
46487
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
46454
46488
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -46989,7 +47023,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
46989
47023
|
return key2.padEnd(3, "X");
|
|
46990
47024
|
}, "projectKey");
|
|
46991
47025
|
|
|
46992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
46993
47027
|
var DAY5 = 864e5;
|
|
46994
47028
|
var SETTING4 = "logs_pruned_at";
|
|
46995
47029
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -47016,7 +47050,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
47016
47050
|
};
|
|
47017
47051
|
}, "logPruner");
|
|
47018
47052
|
|
|
47019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
47020
47054
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
47021
47055
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
47022
47056
|
var invalid7 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -47392,7 +47426,7 @@ var checkMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
47392
47426
|
}, "checkMailFindings");
|
|
47393
47427
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
47394
47428
|
|
|
47395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
47396
47430
|
var import_disposable_email_domains_js = __toESM(require_dist(), 1);
|
|
47397
47431
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
47398
47432
|
var WEIGHTS = {
|
|
@@ -47525,7 +47559,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
47525
47559
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
47526
47560
|
}, "scoreGroup");
|
|
47527
47561
|
|
|
47528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
|
|
47529
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";
|
|
47530
47564
|
var orderOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
47531
47565
|
const { database, now: now2 } = context;
|
|
@@ -47677,7 +47711,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
47677
47711
|
};
|
|
47678
47712
|
}, "ordersStoreOver");
|
|
47679
47713
|
|
|
47680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
47681
47715
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
47682
47716
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
47683
47717
|
reason: "mail-findings.stale"
|
|
@@ -48134,7 +48168,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
48134
48168
|
};
|
|
48135
48169
|
}, "mailFindingsStoreOver");
|
|
48136
48170
|
|
|
48137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
48138
48172
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
48139
48173
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
48140
48174
|
reason: "meeting-findings.stale"
|
|
@@ -48302,7 +48336,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
48302
48336
|
};
|
|
48303
48337
|
}, "meetingFindingsStoreOver");
|
|
48304
48338
|
|
|
48305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
48306
48340
|
var RANK_BATCH = 512;
|
|
48307
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";
|
|
48308
48342
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -48573,7 +48607,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
48573
48607
|
}
|
|
48574
48608
|
}), "meetingVectorsOver");
|
|
48575
48609
|
|
|
48576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
48577
48611
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
48578
48612
|
var TEXTS = {
|
|
48579
48613
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -48674,11 +48708,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
48674
48708
|
};
|
|
48675
48709
|
}, "sourceMentionStoreOver");
|
|
48676
48710
|
|
|
48677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
48678
48712
|
import { accessSync, constants, existsSync, mkdirSync as mkdirSync2, statSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
48679
48713
|
import { dirname as dirname2 } from "node:path";
|
|
48680
48714
|
|
|
48681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
48682
48716
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
48683
48717
|
var CLIENTS_SETTING = "clients";
|
|
48684
48718
|
var coreVersion = (() => {
|
|
@@ -48736,7 +48770,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
48736
48770
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
48737
48771
|
}, "refusalAdvice");
|
|
48738
48772
|
|
|
48739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
48740
48774
|
var GENERATED = [
|
|
48741
48775
|
{
|
|
48742
48776
|
"name": "20261010184427_initial",
|
|
@@ -49815,7 +49849,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
49815
49849
|
}
|
|
49816
49850
|
];
|
|
49817
49851
|
|
|
49818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/rollback-copy.js
|
|
49819
49853
|
import { mkdirSync, rmSync, statfsSync, writeFileSync } from "node:fs";
|
|
49820
49854
|
import { basename, dirname, join as join2, parse } from "node:path";
|
|
49821
49855
|
var DERIVED = /(_fts|_words|_stems|_trigrams|_pending)$|^(embeddings|chunks|chunk_messages|mentions|involvements|search_terms)$|^vector_index/;
|
|
@@ -50048,7 +50082,7 @@ var rollBack = /* @__PURE__ */ __name((database, path) => {
|
|
|
50048
50082
|
return { ...result, foreignKeyViolations };
|
|
50049
50083
|
}, "rollBack");
|
|
50050
50084
|
|
|
50051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
50052
50086
|
var V31_TABLES = [
|
|
50053
50087
|
"accounts",
|
|
50054
50088
|
"account_identities",
|
|
@@ -50196,7 +50230,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
50196
50230
|
return migrations;
|
|
50197
50231
|
}, "generatedMigrations");
|
|
50198
50232
|
|
|
50199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
50200
50234
|
var MIGRATIONS = generatedMigrations();
|
|
50201
50235
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
50202
50236
|
version INTEGER PRIMARY KEY,
|
|
@@ -50275,7 +50309,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
50275
50309
|
}
|
|
50276
50310
|
}, "migrate");
|
|
50277
50311
|
|
|
50278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
50279
50313
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
50280
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 ?");
|
|
50281
50315
|
if (pending.get(0, 1) === void 0)
|
|
@@ -50297,7 +50331,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
50297
50331
|
}
|
|
50298
50332
|
}, "fillJoinKeys");
|
|
50299
50333
|
|
|
50300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
50301
50335
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
50302
50336
|
refuseOwnerStoreInTests(path);
|
|
50303
50337
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -50311,8 +50345,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
50311
50345
|
}, "openSqlite");
|
|
50312
50346
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
50313
50347
|
quietSqliteWarning();
|
|
50314
|
-
const { drizzle } = await import("./node-
|
|
50315
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
50348
|
+
const { drizzle } = await import("./node-ZB4RNICS.js");
|
|
50349
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-7XJ4J4E5.js");
|
|
50316
50350
|
const client = await nodeClient(path, { readOnly });
|
|
50317
50351
|
try {
|
|
50318
50352
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -50322,8 +50356,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
50322
50356
|
}
|
|
50323
50357
|
}, "openUnderNode");
|
|
50324
50358
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
50325
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
50326
|
-
const { drizzle } = await import("./bun-
|
|
50359
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-RPSKGB4O.js");
|
|
50360
|
+
const { drizzle } = await import("./bun-HUHQD76Z.js");
|
|
50327
50361
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
50328
50362
|
try {
|
|
50329
50363
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -50333,7 +50367,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
50333
50367
|
}
|
|
50334
50368
|
}, "openUnderBun");
|
|
50335
50369
|
|
|
50336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
50337
50371
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
50338
50372
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
50339
50373
|
try {
|
|
@@ -50401,7 +50435,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
50401
50435
|
});
|
|
50402
50436
|
}, "movePaymentFacts");
|
|
50403
50437
|
|
|
50404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
50405
50439
|
var readCompatibility = /* @__PURE__ */ __name((database, command) => {
|
|
50406
50440
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
50407
50441
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -50419,7 +50453,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
50419
50453
|
throw new CliError("configuration_error", `The store needs schema ${MIGRATIONS.at(-1)?.version ?? 0} maintenance before a read-only open`);
|
|
50420
50454
|
}, "assertReadCompatible");
|
|
50421
50455
|
|
|
50422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
50423
50457
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
50424
50458
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
50425
50459
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -50465,7 +50499,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
50465
50499
|
});
|
|
50466
50500
|
}, "moveSuggestedLinks");
|
|
50467
50501
|
|
|
50468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
50469
50503
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
50470
50504
|
var TEST_PROVIDER = "chat";
|
|
50471
50505
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -50486,7 +50520,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
50486
50520
|
}
|
|
50487
50521
|
}, "purgeTestAccounts");
|
|
50488
50522
|
|
|
50489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
50490
50524
|
var BACKFILL_ON_OPEN = 5e3;
|
|
50491
50525
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
50492
50526
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -50582,10 +50616,10 @@ var openStoreContext = /* @__PURE__ */ __name(async (options = {}) => {
|
|
|
50582
50616
|
}
|
|
50583
50617
|
}, "openStoreContext");
|
|
50584
50618
|
|
|
50585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
50586
50620
|
import { createHash as createHash18 } from "node:crypto";
|
|
50587
50621
|
|
|
50588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
50589
50623
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
50590
50624
|
var ref = text4(2048);
|
|
50591
50625
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -50651,7 +50685,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
50651
50685
|
}))
|
|
50652
50686
|
});
|
|
50653
50687
|
|
|
50654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
50655
50689
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
50656
50690
|
var invalid10 = /* @__PURE__ */ __name((field4) => {
|
|
50657
50691
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -50755,7 +50789,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
50755
50789
|
invalid10("external.unused");
|
|
50756
50790
|
}, "validateProjectAnnotationsGraph");
|
|
50757
50791
|
|
|
50758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
50759
50793
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
50760
50794
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
50761
50795
|
var targetSchema = strictObject({
|
|
@@ -50861,7 +50895,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
50861
50895
|
};
|
|
50862
50896
|
}, "planBoundProjectAnnotations");
|
|
50863
50897
|
|
|
50864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
50865
50899
|
import { createHash as createHash19 } from "node:crypto";
|
|
50866
50900
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
50867
50901
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -50955,7 +50989,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
50955
50989
|
})).digest("hex");
|
|
50956
50990
|
}, "projectAnnotationSnapshotFingerprint");
|
|
50957
50991
|
|
|
50958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
50959
50993
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
50960
50994
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
50961
50995
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -50972,7 +51006,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
50972
51006
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
50973
51007
|
}, "projectAnnotationRequest");
|
|
50974
51008
|
|
|
50975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
50976
51010
|
var SnapshotBudget = class {
|
|
50977
51011
|
static {
|
|
50978
51012
|
__name(this, "SnapshotBudget");
|
|
@@ -50998,13 +51032,13 @@ var SnapshotBudget = class {
|
|
|
50998
51032
|
}
|
|
50999
51033
|
};
|
|
51000
51034
|
|
|
51001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
51002
51036
|
import { createHash as createHash21 } from "node:crypto";
|
|
51003
51037
|
|
|
51004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
51005
51039
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
51006
51040
|
|
|
51007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
51008
51042
|
import { createHash as createHash20 } from "node:crypto";
|
|
51009
51043
|
var invalid12 = /* @__PURE__ */ __name(() => {
|
|
51010
51044
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -51147,7 +51181,7 @@ var ProjectSnapshotSources = class {
|
|
|
51147
51181
|
}
|
|
51148
51182
|
};
|
|
51149
51183
|
|
|
51150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
51151
51185
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
51152
51186
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
51153
51187
|
}, "unsupported");
|
|
@@ -51318,7 +51352,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
51318
51352
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
51319
51353
|
}), "projectAnnotationSnapshot");
|
|
51320
51354
|
|
|
51321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
51322
51356
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
51323
51357
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
51324
51358
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -51380,7 +51414,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
51380
51414
|
};
|
|
51381
51415
|
}), "previewAnnotationSnapshot");
|
|
51382
51416
|
|
|
51383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
51384
51418
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
51385
51419
|
const mappings = { ...bindings };
|
|
51386
51420
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -51422,7 +51456,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
51422
51456
|
return mappings;
|
|
51423
51457
|
}, "restoreAnnotationRecords");
|
|
51424
51458
|
|
|
51425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
51426
51460
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
51427
51461
|
async preview(request) {
|
|
51428
51462
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -51452,7 +51486,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
51452
51486
|
}
|
|
51453
51487
|
}), "projectAnnotationStoreOver");
|
|
51454
51488
|
|
|
51455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
51456
51490
|
var PROJECTED = {
|
|
51457
51491
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
51458
51492
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -51865,7 +51899,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51865
51899
|
};
|
|
51866
51900
|
}, "recordStoreOver");
|
|
51867
51901
|
|
|
51868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
51869
51903
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
51870
51904
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
51871
51905
|
let merged = { from: from2, to };
|
|
@@ -51878,7 +51912,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
51878
51912
|
}, "markRange");
|
|
51879
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");
|
|
51880
51914
|
|
|
51881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
51882
51916
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
51883
51917
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
51884
51918
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -51899,7 +51933,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
51899
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);
|
|
51900
51934
|
}, "setTaskAnalysisMark");
|
|
51901
51935
|
|
|
51902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
51903
51937
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
51904
51938
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
51905
51939
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -51909,7 +51943,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
51909
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);
|
|
51910
51944
|
}, "setTaskRulesStop");
|
|
51911
51945
|
|
|
51912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
51913
51947
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
51914
51948
|
const { database } = context;
|
|
51915
51949
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -51968,7 +52002,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51968
52002
|
};
|
|
51969
52003
|
}, "syncStoreOver");
|
|
51970
52004
|
|
|
51971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
51972
52006
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
51973
52007
|
const { database } = context;
|
|
51974
52008
|
return {
|
|
@@ -51990,7 +52024,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51990
52024
|
};
|
|
51991
52025
|
}, "tagsStoreOver");
|
|
51992
52026
|
|
|
51993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
51994
52028
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
51995
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
|
|
51996
52030
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -52117,7 +52151,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
52117
52151
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
52118
52152
|
}, "savePictureChunks");
|
|
52119
52153
|
|
|
52120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
52121
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,
|
|
52122
52156
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
52123
52157
|
FROM messages m
|
|
@@ -52206,7 +52240,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
52206
52240
|
return plain2(best(found2));
|
|
52207
52241
|
}, "nearestMessages");
|
|
52208
52242
|
|
|
52209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
52210
52244
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
52211
52245
|
const { database } = context;
|
|
52212
52246
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -52464,7 +52498,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
52464
52498
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
52465
52499
|
}), "vectorsStoreOver");
|
|
52466
52500
|
|
|
52467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
52468
52502
|
import { existsSync as existsSync2, readFileSync as readFileSync4 } from "node:fs";
|
|
52469
52503
|
import { dirname as dirname3, join as join3 } from "node:path";
|
|
52470
52504
|
var BOOKKEEPING2 = ["schema_migrations", "store_settings"];
|
|
@@ -52552,10 +52586,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
52552
52586
|
}
|
|
52553
52587
|
}, "lastBackup");
|
|
52554
52588
|
|
|
52555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
52556
52590
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
52557
52591
|
|
|
52558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
52559
52593
|
var COUNTED_TABLES = [
|
|
52560
52594
|
"accounts",
|
|
52561
52595
|
"chats",
|
|
@@ -52640,7 +52674,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
52640
52674
|
};
|
|
52641
52675
|
}, "storeContents");
|
|
52642
52676
|
|
|
52643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
52644
52678
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
52645
52679
|
const context = await openStoreContext(options);
|
|
52646
52680
|
try {
|