@wirecat/mail-cli 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MXGDUBAM.js → all-profiles-X6ROLLMF.js} +5 -5
- package/dist/bundle/{anthropic-A2QA4W7L.js → anthropic-MPARKCMJ.js} +3 -3
- package/dist/bundle/{app-server-PMIMK6FK.js → app-server-JQ5XCXWT.js} +39 -39
- package/dist/bundle/{bun-3UW3LFNL.js → bun-H7LT5433.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGFZFKAX.js → bun-sqlite-AGK2BHAN.js} +2 -2
- package/dist/bundle/{chunk-QBBKSCQD.js → chunk-24MHYGNE.js} +247 -247
- package/dist/bundle/{chunk-DM4ULDS3.js → chunk-25N52S7U.js} +5 -5
- package/dist/bundle/{chunk-NI6WX55Z.js → chunk-2FDROA4Q.js} +2 -2
- package/dist/bundle/{chunk-6U6Z3GXR.js → chunk-3LMWAO6A.js} +5 -5
- package/dist/bundle/{chunk-RVZ4JIRR.js → chunk-3W6VSSQQ.js} +1 -1
- package/dist/bundle/{chunk-CRS63C3T.js → chunk-3Y7H3CXI.js} +1 -1
- package/dist/bundle/{chunk-EVO77D3Y.js → chunk-4EFKQXA5.js} +7 -7
- package/dist/bundle/{chunk-WS4L47DG.js → chunk-4MIC7S7B.js} +1 -1
- package/dist/bundle/{chunk-U4IF2MOB.js → chunk-5NYUCY5W.js} +1 -1
- package/dist/bundle/{chunk-W5J6I5GW.js → chunk-64FN5JK6.js} +2 -2
- package/dist/bundle/{chunk-2KZJWBXB.js → chunk-65SVO3T7.js} +2 -2
- package/dist/bundle/{chunk-PXCIM6D5.js → chunk-6FBBDIX6.js} +5 -5
- package/dist/bundle/{chunk-BEUQ2X7U.js → chunk-BNPCRWZ6.js} +6 -6
- package/dist/bundle/{chunk-BCDPLG7T.js → chunk-CHK3V7FG.js} +1 -1
- package/dist/bundle/{chunk-6J3DKKOV.js → chunk-DL32PWLR.js} +10 -10
- package/dist/bundle/{chunk-SZ5PKNDF.js → chunk-DQHAXX33.js} +6 -6
- package/dist/bundle/{chunk-4QDBMYK4.js → chunk-EUJTQY43.js} +42 -42
- package/dist/bundle/{chunk-NSODLSEL.js → chunk-EVG7MOAH.js} +91 -91
- package/dist/bundle/{chunk-Z5GDZ3QF.js → chunk-FEA5E7WQ.js} +2 -2
- package/dist/bundle/{chunk-AO3XYONW.js → chunk-FUDHVV4R.js} +21 -21
- package/dist/bundle/{chunk-OAQ4UB6V.js → chunk-GPCKNZIA.js} +3 -3
- package/dist/bundle/{chunk-2MQXXPPK.js → chunk-HWLAV2HM.js} +16 -16
- package/dist/bundle/{chunk-XWNCXFR5.js → chunk-HZ42NO25.js} +1 -1
- package/dist/bundle/{chunk-J5RKMQ6A.js → chunk-INVEYTAL.js} +43 -43
- package/dist/bundle/{chunk-W7H3PZ67.js → chunk-IYC3IHEZ.js} +2 -2
- package/dist/bundle/{chunk-RFWTPSJX.js → chunk-J4MY3QIN.js} +14 -14
- package/dist/bundle/{chunk-KEZHPPMI.js → chunk-JYVZDJNO.js} +2 -2
- package/dist/bundle/{chunk-DYCPBLUC.js → chunk-JZMPDFM4.js} +1 -1
- package/dist/bundle/{chunk-LN7TNZIS.js → chunk-K3RWO7LR.js} +5 -5
- package/dist/bundle/{chunk-EU35YQXE.js → chunk-KWHFDVAF.js} +21 -21
- package/dist/bundle/{chunk-J6ACLZKV.js → chunk-M55XFZMG.js} +7 -7
- package/dist/bundle/{chunk-FSBKLJXM.js → chunk-N6YA4OQI.js} +194 -194
- package/dist/bundle/{chunk-TMQA4KR7.js → chunk-NTWORG4T.js} +1 -1
- package/dist/bundle/{chunk-NWKLBZN5.js → chunk-OZGDPG6I.js} +26 -26
- package/dist/bundle/{chunk-EN3UZPGB.js → chunk-PC3AFEEA.js} +3 -3
- package/dist/bundle/{chunk-7JUTNCQX.js → chunk-PTDJXPXG.js} +9 -9
- package/dist/bundle/{chunk-5W74YMCK.js → chunk-PXQ7A5HQ.js} +2 -2
- package/dist/bundle/{chunk-6JK46V5X.js → chunk-QO4K6R7K.js} +4 -4
- package/dist/bundle/{chunk-KF4YULWC.js → chunk-QXXBDW6N.js} +8 -8
- package/dist/bundle/{chunk-NEBO3NZU.js → chunk-RGM66WZ3.js} +2 -2
- package/dist/bundle/{chunk-TCWJYOZV.js → chunk-SEL7SJCM.js} +4 -4
- package/dist/bundle/{chunk-WWNAQ75T.js → chunk-SUB4DRMA.js} +1 -1
- package/dist/bundle/{chunk-L2ZHPIFC.js → chunk-SYFBRZ5F.js} +1 -1
- package/dist/bundle/{chunk-VGR3AGAC.js → chunk-TKFQ3GNY.js} +5 -5
- package/dist/bundle/{chunk-KBKEZV4L.js → chunk-TVZFDVZP.js} +12 -12
- package/dist/bundle/{chunk-ZKAT6I2I.js → chunk-U6BDAY55.js} +1 -1
- package/dist/bundle/{chunk-Q5DOXSBM.js → chunk-UHBCL66Y.js} +1 -1
- package/dist/bundle/{chunk-UR6WHUJF.js → chunk-VOGSDGVL.js} +1 -1
- package/dist/bundle/{chunk-CMNFLAUG.js → chunk-YLSV3WOO.js} +4 -4
- package/dist/bundle/{chunk-YS2WUWY7.js → chunk-YXQIZORE.js} +3 -3
- package/dist/bundle/{chunk-VSDVH2M2.js → chunk-Z3TZTOR2.js} +46 -46
- package/dist/bundle/{command-contract-Q32SL5KX.js → command-contract-T3H5CAX3.js} +13 -13
- package/dist/bundle/{decode-NF4TGOR3.js → decode-ZATANRER.js} +2 -2
- package/dist/bundle/{dist-DVYY3YFG.js → dist-JN22LNLZ.js} +9 -9
- package/dist/bundle/{echarts-F3USGP5B.js → echarts-WKTVUY3O.js} +2 -2
- package/dist/bundle/{embed-2RXV3BEC.js → embed-AVKPYK4V.js} +3 -3
- package/dist/bundle/{embedder-I2SJMC6N.js → embedder-PSV2E5TR.js} +6 -6
- package/dist/bundle/{first-run-3GA7YCKZ.js → first-run-YN4SF5RZ.js} +5 -5
- package/dist/bundle/{first-screen-JFIXKYAK.js → first-screen-IJJZJP6Q.js} +14 -14
- package/dist/bundle/{instructions-VHI5CWH5.js → instructions-W5SJW23S.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-4RBB3RDY.js → node-BHBFRH6H.js} +2 -2
- package/dist/bundle/{node-sqlite-FWYX3P2D.js → node-sqlite-7FHC3W5U.js} +2 -2
- package/dist/bundle/{oauth-6JKKRGLX.js → oauth-ORPM6FLL.js} +4 -4
- package/dist/bundle/{open-7JSNC3MR.js → open-AY5KLPWO.js} +1 -1
- package/dist/bundle/{openai-ASLWL3D6.js → openai-U7VALRI7.js} +10 -10
- package/dist/bundle/{process-AB2D2G2Q.js → process-7AWARSC5.js} +1 -1
- package/dist/bundle/{program-ZJPQ3IDU.js → program-2W4J47LM.js} +317 -303
- package/dist/bundle/{prompt-JDFVQR3L.js → prompt-STNX6JL7.js} +2 -2
- package/dist/bundle/{recognize-PKYA4HRC.js → recognize-2XWWTN6Y.js} +1 -1
- package/dist/bundle/{remote-USBVVO4O.js → remote-OIC32DKQ.js} +4 -4
- package/dist/bundle/{rerank-UBMV6KO6.js → rerank-IFTSO576.js} +4 -4
- package/dist/bundle/{serve-SVS3YOYS.js → serve-P2D2AJAU.js} +6 -6
- package/dist/bundle/server-6D7W5Q4A.js +63 -0
- package/dist/bundle/{server-7PZMYXY6.js → server-DFEJBMXO.js} +31 -31
- package/dist/bundle/{sqlite-runtime-IDPTXAM7.js → sqlite-runtime-DD4Y35DQ.js} +2 -2
- package/dist/bundle/{state-6G2TSVP7.js → state-XUSQMIKJ.js} +3 -3
- package/dist/bundle/{store-L56GFI4P.js → store-EQC5DKSY.js} +9 -9
- package/dist/bundle/{store-7A464D4X.js → store-T3PKOLER.js} +11 -11
- package/dist/bundle/store-maintenance-command-7YQZXE4V.js +52 -0
- package/dist/oauth.d.ts +2 -5
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +4 -7
- package/dist/oauth.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/server-KA7Q5XCL.js +0 -63
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +0 -52
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
rankingWords,
|
|
32
32
|
useStoredProviders,
|
|
33
33
|
validCounter
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TKFQ3GNY.js";
|
|
35
35
|
import {
|
|
36
36
|
FACT_STATUSES,
|
|
37
37
|
FACT_TYPES,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
matches,
|
|
55
55
|
priorityBand,
|
|
56
56
|
priorityLabel
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-DQHAXX33.js";
|
|
58
58
|
import {
|
|
59
59
|
CHAT_MESSAGES_READ,
|
|
60
60
|
MEETING_FINDINGS_KIND,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
validateQuery,
|
|
95
95
|
walkQuery,
|
|
96
96
|
zonedMoment
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-EUJTQY43.js";
|
|
98
98
|
import {
|
|
99
99
|
DEFAULT_STEMMERS,
|
|
100
100
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -107,18 +107,18 @@ import {
|
|
|
107
107
|
fold,
|
|
108
108
|
normalize,
|
|
109
109
|
parseStemmers
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-4EFKQXA5.js";
|
|
111
111
|
import {
|
|
112
112
|
DEFAULT_TASK_CATEGORIES,
|
|
113
113
|
sharedConfigPath,
|
|
114
114
|
storedTaskCategories,
|
|
115
115
|
taskCategoriesReader
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-QO4K6R7K.js";
|
|
117
117
|
import {
|
|
118
118
|
PRAGMAS,
|
|
119
119
|
quietSqliteWarning,
|
|
120
120
|
storeCapable
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-25N52S7U.js";
|
|
122
122
|
import {
|
|
123
123
|
SQLiteTable,
|
|
124
124
|
TableAliasProxyHandler,
|
|
@@ -143,10 +143,10 @@ import {
|
|
|
143
143
|
sql,
|
|
144
144
|
sqliteTable,
|
|
145
145
|
text
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-3W6VSSQQ.js";
|
|
147
147
|
import {
|
|
148
148
|
storePath
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-HZ42NO25.js";
|
|
150
150
|
import {
|
|
151
151
|
array,
|
|
152
152
|
boolean,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
__name
|
|
176
176
|
} from "./chunk-ZVVMGPBJ.js";
|
|
177
177
|
|
|
178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
179
179
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
180
180
|
const methods = whole;
|
|
181
181
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -303,7 +303,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
303
303
|
};
|
|
304
304
|
}, "bindAccount");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
307
307
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
308
308
|
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");
|
|
309
309
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -326,7 +326,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
326
326
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
327
327
|
}, "sourceOf");
|
|
328
328
|
|
|
329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
330
330
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
331
331
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
332
332
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -513,7 +513,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf = (kind3)
|
|
|
513
513
|
return { accounts: [...chosen.values()], skipped };
|
|
514
514
|
}, "fitting");
|
|
515
515
|
|
|
516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
517
517
|
var IndexBuilderOn = class {
|
|
518
518
|
static {
|
|
519
519
|
__name(this, "IndexBuilderOn");
|
|
@@ -708,7 +708,7 @@ function alias(table, alias2) {
|
|
|
708
708
|
}
|
|
709
709
|
__name(alias, "alias");
|
|
710
710
|
|
|
711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
712
712
|
var ENTITY_TABLES = {
|
|
713
713
|
account: "accounts",
|
|
714
714
|
attachment: "attachments",
|
|
@@ -748,7 +748,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
748
748
|
return { table, pointer, type, count, known: known2 };
|
|
749
749
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
750
750
|
|
|
751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
752
752
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
753
753
|
id: integer("id").primaryKey(),
|
|
754
754
|
name: text("name").notNull().unique(),
|
|
@@ -757,7 +757,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
757
757
|
updatedAt: integer("updated_at").notNull()
|
|
758
758
|
});
|
|
759
759
|
|
|
760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
761
761
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
762
762
|
sourceKey: text("source_key").notNull(),
|
|
763
763
|
collection: text("collection").notNull(),
|
|
@@ -767,13 +767,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
767
767
|
createdAt: integer("created_at").notNull()
|
|
768
768
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
769
769
|
|
|
770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
771
771
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
772
772
|
id: integer("id").notNull(),
|
|
773
773
|
indexableType: text("indexable_type").notNull()
|
|
774
774
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
777
777
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
778
778
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
779
779
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -799,7 +799,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
799
799
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
800
800
|
]);
|
|
801
801
|
|
|
802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
803
803
|
var accounts = sqliteTable("accounts", {
|
|
804
804
|
id: integer("id").primaryKey(),
|
|
805
805
|
provider: text("provider").notNull(),
|
|
@@ -2300,7 +2300,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2300
2300
|
at: integer("at").notNull()
|
|
2301
2301
|
});
|
|
2302
2302
|
|
|
2303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2304
2304
|
var ARMS = [
|
|
2305
2305
|
[
|
|
2306
2306
|
"message",
|
|
@@ -2427,7 +2427,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2427
2427
|
return recomputed;
|
|
2428
2428
|
}, "drainInvolvementQueue");
|
|
2429
2429
|
|
|
2430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2431
2431
|
import { domainToUnicode } from "node:url";
|
|
2432
2432
|
|
|
2433
2433
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12449,7 +12449,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12449
12449
|
}, "oa");
|
|
12450
12450
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12451
12451
|
|
|
12452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12453
12453
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12454
12454
|
var ID = /^[\w-]{10,}$/;
|
|
12455
12455
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12490,7 +12490,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text5) => [...text5.matchAll(L
|
|
|
12490
12490
|
return { url, documentId: googleDocumentId(url) };
|
|
12491
12491
|
}), "googleDocumentLinks");
|
|
12492
12492
|
|
|
12493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12494
12494
|
var PHONE_PLANS = [
|
|
12495
12495
|
{
|
|
12496
12496
|
country: "us",
|
|
@@ -12870,7 +12870,7 @@ var PHONE_PLANS = [
|
|
|
12870
12870
|
}
|
|
12871
12871
|
];
|
|
12872
12872
|
|
|
12873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
12874
12874
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
12875
12875
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
12876
12876
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -12911,7 +12911,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
12911
12911
|
return void 0;
|
|
12912
12912
|
}, "nationalPhone");
|
|
12913
12913
|
|
|
12914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
12915
12915
|
var BEFORE = [
|
|
12916
12916
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
12917
12917
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13171,7 +13171,7 @@ var findPlaces = /* @__PURE__ */ __name((text5) => {
|
|
|
13171
13171
|
return found2.sort((a, b) => a.start - b.start);
|
|
13172
13172
|
}, "findPlaces");
|
|
13173
13173
|
|
|
13174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13175
13175
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13176
13176
|
var MENTION_VERSIONS = {
|
|
13177
13177
|
phone: 1,
|
|
@@ -13361,7 +13361,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13361
13361
|
};
|
|
13362
13362
|
}, "typedPhone");
|
|
13363
13363
|
|
|
13364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13365
13365
|
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";
|
|
13366
13366
|
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";
|
|
13367
13367
|
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";
|
|
@@ -13369,7 +13369,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13369
13369
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13370
13370
|
var NAME_WORDS = WORDS.split(" ");
|
|
13371
13371
|
|
|
13372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13373
13373
|
var LATIN_TO_CYRILLIC = {
|
|
13374
13374
|
shch: "\u0449",
|
|
13375
13375
|
sch: "\u0449",
|
|
@@ -13577,7 +13577,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text5, stem, taken) => {
|
|
|
13577
13577
|
return found2;
|
|
13578
13578
|
}, "findUnknownNames");
|
|
13579
13579
|
|
|
13580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13581
13581
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13582
13582
|
"webpage",
|
|
13583
13583
|
"share",
|
|
@@ -13617,7 +13617,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
13617
13617
|
});
|
|
13618
13618
|
}, "matchDownloads");
|
|
13619
13619
|
|
|
13620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
13621
13621
|
var QUERY_VERSION = 1;
|
|
13622
13622
|
var QUERY_LIMITS2 = {
|
|
13623
13623
|
...QUERY_LIMITS,
|
|
@@ -13648,7 +13648,7 @@ function exhausted(budget) {
|
|
|
13648
13648
|
}
|
|
13649
13649
|
__name(exhausted, "exhausted");
|
|
13650
13650
|
|
|
13651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
13652
13652
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
13653
13653
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
13654
13654
|
kind: "char",
|
|
@@ -14048,7 +14048,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14048
14048
|
return out;
|
|
14049
14049
|
}, "foldRegex");
|
|
14050
14050
|
|
|
14051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14052
14052
|
var PRESET_VERSION = 1;
|
|
14053
14053
|
var PRESETS = {
|
|
14054
14054
|
password: {
|
|
@@ -14102,7 +14102,7 @@ var PRESETS = {
|
|
|
14102
14102
|
}
|
|
14103
14103
|
};
|
|
14104
14104
|
|
|
14105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14106
14106
|
var FIELD_VERSION = 2;
|
|
14107
14107
|
var UNITS = {
|
|
14108
14108
|
"": 1,
|
|
@@ -14562,12 +14562,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
14562
14562
|
return validateFields(parsed2.output);
|
|
14563
14563
|
}, "validateAst");
|
|
14564
14564
|
|
|
14565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
14566
14566
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
14567
14567
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
14568
14568
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
14569
14569
|
|
|
14570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
14571
14571
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
14572
14572
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
14573
14573
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -14591,7 +14591,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
14591
14591
|
};
|
|
14592
14592
|
}, "linkMatch");
|
|
14593
14593
|
|
|
14594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
14595
14595
|
var SETTING = "phoneCountries";
|
|
14596
14596
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
14597
14597
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -14622,7 +14622,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
14622
14622
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
14623
14623
|
}, "valueMatch");
|
|
14624
14624
|
|
|
14625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
14626
14626
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
14627
14627
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
14628
14628
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -14650,7 +14650,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
14650
14650
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
14651
14651
|
}, "vocabularySimilarity");
|
|
14652
14652
|
|
|
14653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
14654
14654
|
import { createHash } from "node:crypto";
|
|
14655
14655
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
14656
14656
|
try {
|
|
@@ -14716,7 +14716,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
|
|
|
14716
14716
|
});
|
|
14717
14717
|
}, "guardTagCreation");
|
|
14718
14718
|
|
|
14719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
14720
14720
|
var invalid = /* @__PURE__ */ __name((message2) => {
|
|
14721
14721
|
throw new CliError("validation_error", message2);
|
|
14722
14722
|
}, "invalid");
|
|
@@ -14793,7 +14793,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
14793
14793
|
};
|
|
14794
14794
|
}, "createTagRedirectIndex");
|
|
14795
14795
|
|
|
14796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
14797
14797
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
14798
14798
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
14799
14799
|
if (!row2)
|
|
@@ -14821,7 +14821,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
14821
14821
|
return snapshot2;
|
|
14822
14822
|
}, "tagRedirectSnapshot");
|
|
14823
14823
|
|
|
14824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
14825
14825
|
import { createHash as createHash2 } from "node:crypto";
|
|
14826
14826
|
var TASK_KEY_PREFIXES = {
|
|
14827
14827
|
question: "Q",
|
|
@@ -14849,7 +14849,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14849
14849
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
14850
14850
|
}, "taskAccountOf");
|
|
14851
14851
|
|
|
14852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
14853
14853
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
14854
14854
|
var REFERABLE = {
|
|
14855
14855
|
note: { tombstone: true },
|
|
@@ -15010,7 +15010,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15010
15010
|
}, "taskIdOf");
|
|
15011
15011
|
var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
|
|
15012
15012
|
|
|
15013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15014
15014
|
var toMs = /* @__PURE__ */ __name((iso11) => {
|
|
15015
15015
|
if (iso11 === null || iso11 === void 0)
|
|
15016
15016
|
return null;
|
|
@@ -15024,7 +15024,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15024
15024
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15025
15025
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15026
15026
|
|
|
15027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15028
15028
|
var TAG_KINDS = ["tag", "topic"];
|
|
15029
15029
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15030
15030
|
var TAG_TYPE = {
|
|
@@ -15227,7 +15227,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15227
15227
|
return result;
|
|
15228
15228
|
}, "tagsOf");
|
|
15229
15229
|
|
|
15230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15231
15231
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15232
15232
|
var SPEECH = speech("att");
|
|
15233
15233
|
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");
|
|
@@ -15588,7 +15588,7 @@ var FIELD_COMPILERS = {
|
|
|
15588
15588
|
subject
|
|
15589
15589
|
};
|
|
15590
15590
|
|
|
15591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15592
15592
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15593
15593
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15594
15594
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -15604,7 +15604,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
15604
15604
|
};
|
|
15605
15605
|
}, "placeOf");
|
|
15606
15606
|
|
|
15607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
15608
15608
|
var DRAIN_ON_WRITE = 500;
|
|
15609
15609
|
var METHOD = "rules";
|
|
15610
15610
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -15767,7 +15767,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
15767
15767
|
return queued.length;
|
|
15768
15768
|
}, "drainMentions");
|
|
15769
15769
|
|
|
15770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
15771
15771
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
15772
15772
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
15773
15773
|
if (!exists2)
|
|
@@ -15775,7 +15775,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
15775
15775
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
15776
15776
|
}, "indexRow");
|
|
15777
15777
|
|
|
15778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
15779
15779
|
var INDEX = "message_stems";
|
|
15780
15780
|
var SETTING2 = "searchStemmers";
|
|
15781
15781
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -15897,7 +15897,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
15897
15897
|
};
|
|
15898
15898
|
}, "stemmerCache");
|
|
15899
15899
|
|
|
15900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
15901
15901
|
var SQLITE_BUSY = 5;
|
|
15902
15902
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
15903
15903
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -15992,7 +15992,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
15992
15992
|
}
|
|
15993
15993
|
}, "read");
|
|
15994
15994
|
|
|
15995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
15996
15996
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
15997
15997
|
coalesce(CASE k.chunkable_type
|
|
15998
15998
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16134,7 +16134,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16134
16134
|
}, "dropUnusedVectors");
|
|
16135
16135
|
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");
|
|
16136
16136
|
|
|
16137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16138
16138
|
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({
|
|
16139
16139
|
target: [accounts.provider, accounts.externalId],
|
|
16140
16140
|
set: {
|
|
@@ -16240,7 +16240,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16240
16240
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16241
16241
|
}, "dropOrphanPeople");
|
|
16242
16242
|
|
|
16243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
16244
16244
|
var FOLDED = [
|
|
16245
16245
|
{ table: "tasks", column: "title" },
|
|
16246
16246
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -16277,7 +16277,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
16277
16277
|
return filled2;
|
|
16278
16278
|
}, "fillFolded");
|
|
16279
16279
|
|
|
16280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16281
16281
|
import { createHash as createHash3 } from "node:crypto";
|
|
16282
16282
|
var CHUNK_CHARS = 1200;
|
|
16283
16283
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16382,7 +16382,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16382
16382
|
return chunks2;
|
|
16383
16383
|
}, "cutChunks");
|
|
16384
16384
|
|
|
16385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
16386
16386
|
var DAY = 864e5;
|
|
16387
16387
|
var CURRENCY = [
|
|
16388
16388
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -16499,7 +16499,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
|
|
|
16499
16499
|
return best?.day ?? null;
|
|
16500
16500
|
}, "dueDayOf");
|
|
16501
16501
|
|
|
16502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
16503
16503
|
var DAY2 = 864e5;
|
|
16504
16504
|
var STOP_WORDS = new Set([
|
|
16505
16505
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -16654,7 +16654,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
16654
16654
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
16655
16655
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
16656
16656
|
|
|
16657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
16658
16658
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
16659
16659
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
16660
16660
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -16925,7 +16925,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
16925
16925
|
};
|
|
16926
16926
|
}, "readiness");
|
|
16927
16927
|
|
|
16928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
16929
16929
|
var DOCUMENT_PICTURE = "document_picture";
|
|
16930
16930
|
var SCAN_PAGE2 = 5e3;
|
|
16931
16931
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -16988,7 +16988,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
16988
16988
|
}, "nearestPictures")
|
|
16989
16989
|
}), "documentPicturesOver");
|
|
16990
16990
|
|
|
16991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
16992
16992
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
16993
16993
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
16994
16994
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -17053,7 +17053,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
17053
17053
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
17054
17054
|
var bound2 = /* @__PURE__ */ __name(({ sql: text5, params }) => sql.join(text5.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
|
|
17055
17055
|
|
|
17056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17057
17057
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17058
17058
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17059
17059
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17143,7 +17143,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17143
17143
|
});
|
|
17144
17144
|
}, "linkMeeting");
|
|
17145
17145
|
|
|
17146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17147
17147
|
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), ''))";
|
|
17148
17148
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17149
17149
|
"working-location",
|
|
@@ -17373,7 +17373,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17373
17373
|
return true;
|
|
17374
17374
|
}, "resetNoteIndex");
|
|
17375
17375
|
|
|
17376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
17377
17377
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
17378
17378
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
17379
17379
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -17392,7 +17392,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
17392
17392
|
}
|
|
17393
17393
|
}, "resolvePersonLinks");
|
|
17394
17394
|
|
|
17395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
17396
17396
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
17397
17397
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
17398
17398
|
find: orm.select({
|
|
@@ -17617,7 +17617,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
17617
17617
|
}, "meetingIdentityPk");
|
|
17618
17618
|
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");
|
|
17619
17619
|
|
|
17620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
17621
17621
|
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");
|
|
17622
17622
|
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");
|
|
17623
17623
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -17897,7 +17897,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
17897
17897
|
}
|
|
17898
17898
|
}, "replaceAutoTags");
|
|
17899
17899
|
|
|
17900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
17901
17901
|
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");
|
|
17902
17902
|
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;
|
|
17903
17903
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -17978,7 +17978,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
|
|
|
17978
17978
|
return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
|
|
17979
17979
|
}, "mailCore");
|
|
17980
17980
|
|
|
17981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
17982
17982
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
17983
17983
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
17984
17984
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18088,7 +18088,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
18088
18088
|
return emails3 + threads;
|
|
18089
18089
|
}, "drainEmailIndex");
|
|
18090
18090
|
|
|
18091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
18092
18092
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
18093
18093
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
18094
18094
|
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,
|
|
@@ -18134,7 +18134,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
18134
18134
|
leave.run(emailId, Number(box.id), emailId, Number(box.id));
|
|
18135
18135
|
}, "forgetLocations");
|
|
18136
18136
|
|
|
18137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18138
18138
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18139
18139
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18140
18140
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -18184,7 +18184,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
18184
18184
|
return threads.length;
|
|
18185
18185
|
}, "markEmailsRestored");
|
|
18186
18186
|
|
|
18187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
18188
18188
|
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");
|
|
18189
18189
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
18190
18190
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18251,7 +18251,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
18251
18251
|
}
|
|
18252
18252
|
}), "mailRulesOver");
|
|
18253
18253
|
|
|
18254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
18255
18255
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
18256
18256
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
18257
18257
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -18259,7 +18259,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
18259
18259
|
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);
|
|
18260
18260
|
}, "reviewLink");
|
|
18261
18261
|
|
|
18262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
18263
18263
|
function checkMeetingCancelled(signal) {
|
|
18264
18264
|
if (!signal?.aborted)
|
|
18265
18265
|
return;
|
|
@@ -18270,7 +18270,7 @@ function checkMeetingCancelled(signal) {
|
|
|
18270
18270
|
}
|
|
18271
18271
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
18272
18272
|
|
|
18273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
18274
18274
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
18275
18275
|
id: Number(row2.id),
|
|
18276
18276
|
accountId: Number(row2.account_id),
|
|
@@ -18320,7 +18320,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
18320
18320
|
createdAt: Number(row2.created_at)
|
|
18321
18321
|
}), "transcriptRowOf");
|
|
18322
18322
|
|
|
18323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
18324
18324
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
18325
18325
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
18326
18326
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -18487,7 +18487,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18487
18487
|
}
|
|
18488
18488
|
}), "meetingReadsOver");
|
|
18489
18489
|
|
|
18490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
18491
18491
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
18492
18492
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
18493
18493
|
const params = [input.accountId];
|
|
@@ -18530,7 +18530,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
18530
18530
|
return { clauses, params };
|
|
18531
18531
|
}, "meetingSelectionSql");
|
|
18532
18532
|
|
|
18533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
18534
18534
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
18535
18535
|
async meetingChatLines(input) {
|
|
18536
18536
|
checkMeetingCancelled(input.signal);
|
|
@@ -18558,7 +18558,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18558
18558
|
}
|
|
18559
18559
|
}), "meetingChatLinesOver");
|
|
18560
18560
|
|
|
18561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
18562
18562
|
var MESSAGE_FIELDS = {
|
|
18563
18563
|
pk: messages.id,
|
|
18564
18564
|
nativeId: messages.externalId,
|
|
@@ -18725,7 +18725,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
18725
18725
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
18726
18726
|
}), "chatActivity");
|
|
18727
18727
|
|
|
18728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
18729
18729
|
var HIT_FIELDS = {
|
|
18730
18730
|
...MESSAGE_FIELDS,
|
|
18731
18731
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -18824,7 +18824,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
18824
18824
|
};
|
|
18825
18825
|
}, "directReplies");
|
|
18826
18826
|
|
|
18827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
18828
18828
|
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");
|
|
18829
18829
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
18830
18830
|
const found2 = identityRow(context, ref3);
|
|
@@ -18955,7 +18955,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
18955
18955
|
}, "mentioning");
|
|
18956
18956
|
var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
18957
18957
|
|
|
18958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
18959
18959
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
18960
18960
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
18961
18961
|
}, "missing");
|
|
@@ -19077,7 +19077,7 @@ function meetingContextLinksOver(context) {
|
|
|
19077
19077
|
}
|
|
19078
19078
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
19079
19079
|
|
|
19080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19081
19081
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19082
19082
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19083
19083
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19106,7 +19106,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19106
19106
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19107
19107
|
}, "indexedText");
|
|
19108
19108
|
|
|
19109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19110
19110
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19111
19111
|
var meetingCurrentIndexRows = `
|
|
19112
19112
|
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
|
|
@@ -19137,7 +19137,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19137
19137
|
}, "invalidateMeetingStems");
|
|
19138
19138
|
var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19139
19139
|
|
|
19140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19141
19141
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19142
19142
|
return {
|
|
19143
19143
|
async indexSearch(original) {
|
|
@@ -19205,10 +19205,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
19205
19205
|
}
|
|
19206
19206
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
19207
19207
|
|
|
19208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19209
19209
|
import { createHash as createHash4 } from "node:crypto";
|
|
19210
19210
|
|
|
19211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
19212
19212
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
19213
19213
|
const padded = ` ${term} `;
|
|
19214
19214
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -19217,7 +19217,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
19217
19217
|
return [...pieces];
|
|
19218
19218
|
}, "trigrams");
|
|
19219
19219
|
|
|
19220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
19221
19221
|
var SHORTEST_CORRECTION = 3;
|
|
19222
19222
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
19223
19223
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -19264,7 +19264,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
19264
19264
|
return corrections;
|
|
19265
19265
|
}, "correctWords");
|
|
19266
19266
|
|
|
19267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
19268
19268
|
var SHORTEST_GARBLED = 4;
|
|
19269
19269
|
var MOST_WIDENED = 64;
|
|
19270
19270
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -19356,7 +19356,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
19356
19356
|
return found2.map((words3) => words3.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word) => word.term));
|
|
19357
19357
|
}, "widenWords");
|
|
19358
19358
|
|
|
19359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
19360
19360
|
import { readFileSync } from "node:fs";
|
|
19361
19361
|
var loaded;
|
|
19362
19362
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -19415,7 +19415,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
19415
19415
|
return false;
|
|
19416
19416
|
}, "knownRussianWord");
|
|
19417
19417
|
|
|
19418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
19419
19419
|
var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
19420
19420
|
var MOST_WORDS = 128;
|
|
19421
19421
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -19642,7 +19642,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
|
|
|
19642
19642
|
return check3(tree);
|
|
19643
19643
|
}, "matchMeetingText");
|
|
19644
19644
|
|
|
19645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19646
19646
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
19647
19647
|
throw new CliError("validation_error", message2);
|
|
19648
19648
|
}, "fail");
|
|
@@ -19819,7 +19819,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
19819
19819
|
}
|
|
19820
19820
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
19821
19821
|
|
|
19822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
19823
19823
|
import { createHash as createHash5 } from "node:crypto";
|
|
19824
19824
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
19825
19825
|
if (value === void 0)
|
|
@@ -19909,7 +19909,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
19909
19909
|
}
|
|
19910
19910
|
}), "meetingParticipantSearchOver");
|
|
19911
19911
|
|
|
19912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
19913
19913
|
var preparationQueries = {
|
|
19914
19914
|
participants: {
|
|
19915
19915
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -19959,7 +19959,7 @@ var preparationQueries = {
|
|
|
19959
19959
|
}
|
|
19960
19960
|
};
|
|
19961
19961
|
|
|
19962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
19963
19963
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19964
19964
|
async preparationContext(original) {
|
|
19965
19965
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -20000,7 +20000,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20000
20000
|
}
|
|
20001
20001
|
}), "meetingPreparationContextOver");
|
|
20002
20002
|
|
|
20003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
20004
20004
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
20005
20005
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
20006
20006
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -20014,7 +20014,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
20014
20014
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
20015
20015
|
)`, "preparationSubjects");
|
|
20016
20016
|
|
|
20017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
20018
20018
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20019
20019
|
async preparationKnowledge(original) {
|
|
20020
20020
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20059,7 +20059,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
20059
20059
|
}
|
|
20060
20060
|
}), "meetingPreparationKnowledgeOver");
|
|
20061
20061
|
|
|
20062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
20063
20063
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20064
20064
|
async preparationNotes(original) {
|
|
20065
20065
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20112,7 +20112,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20112
20112
|
}
|
|
20113
20113
|
}), "meetingPreparationNotesOver");
|
|
20114
20114
|
|
|
20115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20116
20116
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20117
20117
|
async relatedHistory(original) {
|
|
20118
20118
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -20183,7 +20183,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20183
20183
|
}
|
|
20184
20184
|
}), "meetingRelatedHistoryOver");
|
|
20185
20185
|
|
|
20186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
20187
20187
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
20188
20188
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
20189
20189
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -20264,7 +20264,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20264
20264
|
}
|
|
20265
20265
|
}), "meetingReviewOver");
|
|
20266
20266
|
|
|
20267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
20268
20268
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
20269
20269
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
20270
20270
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -20318,7 +20318,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20318
20318
|
}
|
|
20319
20319
|
}), "meetingSeriesHistoryOver");
|
|
20320
20320
|
|
|
20321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
20322
20322
|
var MOST_ROWS = 5e5;
|
|
20323
20323
|
var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20324
20324
|
async meetingStats(input) {
|
|
@@ -20365,7 +20365,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20365
20365
|
}
|
|
20366
20366
|
}), "meetingStatsOver");
|
|
20367
20367
|
|
|
20368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
20369
20369
|
var CURSOR_KEY = "meetings";
|
|
20370
20370
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
20371
20371
|
id: Number(row2.id),
|
|
@@ -20929,7 +20929,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
20929
20929
|
};
|
|
20930
20930
|
}, "meetingStoreOver");
|
|
20931
20931
|
|
|
20932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
20933
20933
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
20934
20934
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
20935
20935
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -20955,7 +20955,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
20955
20955
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
20956
20956
|
}, "release");
|
|
20957
20957
|
|
|
20958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
20959
20959
|
var THREAD_COLUMNS = {
|
|
20960
20960
|
subject: {
|
|
20961
20961
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -20972,7 +20972,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
20972
20972
|
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);
|
|
20973
20973
|
}, "threadRows");
|
|
20974
20974
|
|
|
20975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
20976
20976
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
20977
20977
|
id: `email:${place.emailId}`,
|
|
20978
20978
|
chatId: place.threadExternalId,
|
|
@@ -21529,7 +21529,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
21529
21529
|
}
|
|
21530
21530
|
}), "mailStoreOver");
|
|
21531
21531
|
|
|
21532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
21533
21533
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21534
21534
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
21535
21535
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -21619,7 +21619,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
21619
21619
|
}, "knownWord");
|
|
21620
21620
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
21621
21621
|
|
|
21622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
21623
21623
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
21624
21624
|
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");
|
|
21625
21625
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -21705,7 +21705,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
21705
21705
|
return found2;
|
|
21706
21706
|
}, "spokenTranscripts");
|
|
21707
21707
|
|
|
21708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
21709
21709
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
21710
21710
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
21711
21711
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -21752,7 +21752,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
21752
21752
|
});
|
|
21753
21753
|
}, "placeHits");
|
|
21754
21754
|
|
|
21755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
21756
21756
|
var MESSAGES2 = {
|
|
21757
21757
|
rows: "messages",
|
|
21758
21758
|
threads: "chats",
|
|
@@ -22226,7 +22226,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
22226
22226
|
};
|
|
22227
22227
|
}, "runQuery");
|
|
22228
22228
|
|
|
22229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
22230
22230
|
function invalidMetadata() {
|
|
22231
22231
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
22232
22232
|
}
|
|
@@ -22328,7 +22328,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
22328
22328
|
};
|
|
22329
22329
|
}), "counterTargets");
|
|
22330
22330
|
|
|
22331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
22332
22332
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
22333
22333
|
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,
|
|
22334
22334
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -22447,7 +22447,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
22447
22447
|
}));
|
|
22448
22448
|
}, "attachmentViews");
|
|
22449
22449
|
|
|
22450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
22451
22451
|
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");
|
|
22452
22452
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
|
|
22453
22453
|
const { orm, database, now: now2 } = context;
|
|
@@ -22485,7 +22485,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
22485
22485
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
22486
22486
|
}, "intoVoiceAttachment");
|
|
22487
22487
|
|
|
22488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
22489
22489
|
var FIELDS = [
|
|
22490
22490
|
"threadExternalId",
|
|
22491
22491
|
"senderIdentityId",
|
|
@@ -22802,7 +22802,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
22802
22802
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
22803
22803
|
}, "writeDerivedReactions");
|
|
22804
22804
|
|
|
22805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
22806
22806
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
22807
22807
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
22808
22808
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -22823,7 +22823,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
22823
22823
|
};
|
|
22824
22824
|
}, "keysOver");
|
|
22825
22825
|
|
|
22826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
22827
22827
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
22828
22828
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
22829
22829
|
if (!row2)
|
|
@@ -22858,7 +22858,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
22858
22858
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
22859
22859
|
}, "saveProfile");
|
|
22860
22860
|
|
|
22861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
22862
22862
|
var BOT_KINDS = ["agent", "script", "integration"];
|
|
22863
22863
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
22864
22864
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -22894,7 +22894,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
22894
22894
|
return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
|
|
22895
22895
|
}, "originOfActor");
|
|
22896
22896
|
|
|
22897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
22898
22898
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
22899
22899
|
const owner = ownerPerson(context.database).id;
|
|
22900
22900
|
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);
|
|
@@ -22915,7 +22915,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
22915
22915
|
return personOf(context, ref3);
|
|
22916
22916
|
}, "linkToOwner");
|
|
22917
22917
|
|
|
22918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
22919
22919
|
var PROVIDERS_SETTING = "providers";
|
|
22920
22920
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
22921
22921
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -22950,7 +22950,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
22950
22950
|
});
|
|
22951
22951
|
}, "registerProvider");
|
|
22952
22952
|
|
|
22953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
22954
22954
|
var DAY3 = 864e5;
|
|
22955
22955
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
22956
22956
|
var TEXT_LIMIT = 20;
|
|
@@ -23149,7 +23149,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
23149
23149
|
};
|
|
23150
23150
|
}, "taskSimilarityOver");
|
|
23151
23151
|
|
|
23152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
23153
23153
|
var SETTING3 = "taskCategories";
|
|
23154
23154
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
23155
23155
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -23168,7 +23168,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
23168
23168
|
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);
|
|
23169
23169
|
}, "saveTaskCategories");
|
|
23170
23170
|
|
|
23171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
23172
23172
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
23173
23173
|
var ALLOWED = "taskAgentClose";
|
|
23174
23174
|
var MIN = "taskAgentCloseMin";
|
|
@@ -23224,7 +23224,7 @@ var SUGGESTION_COLUMNS = [
|
|
|
23224
23224
|
];
|
|
23225
23225
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
23226
23226
|
|
|
23227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
23228
23228
|
var EXCERPT_CHARS = 280;
|
|
23229
23229
|
var excerptOf = /* @__PURE__ */ __name((text5) => {
|
|
23230
23230
|
if (text5 == null)
|
|
@@ -23289,7 +23289,7 @@ var sourcesOfReferences = /* @__PURE__ */ __name((database, references) => [...n
|
|
|
23289
23289
|
};
|
|
23290
23290
|
}), "sourcesOfReferences");
|
|
23291
23291
|
|
|
23292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
23293
23293
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
23294
23294
|
var MAX_TEXT_CHARS = 2e6;
|
|
23295
23295
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -23315,7 +23315,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
23315
23315
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
23316
23316
|
}, "pdfPreviewLimits");
|
|
23317
23317
|
|
|
23318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
23319
23319
|
import { randomBytes } from "node:crypto";
|
|
23320
23320
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23321
23321
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -23328,7 +23328,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
23328
23328
|
return time3 + random;
|
|
23329
23329
|
}, "ulid");
|
|
23330
23330
|
|
|
23331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
23332
23332
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
23333
23333
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
23334
23334
|
if (!meta && !sections?.length)
|
|
@@ -23349,7 +23349,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
23349
23349
|
return typeof language === "string" && language !== "" ? language : null;
|
|
23350
23350
|
}, "languageOf");
|
|
23351
23351
|
|
|
23352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
23353
23353
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
23354
23354
|
var objectOf = /* @__PURE__ */ __name((value) => {
|
|
23355
23355
|
if (isObject(value))
|
|
@@ -23592,7 +23592,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
23592
23592
|
};
|
|
23593
23593
|
}, "filesStoreOver");
|
|
23594
23594
|
|
|
23595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
23596
23596
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
23597
23597
|
entity: "document",
|
|
23598
23598
|
backend: "sql",
|
|
@@ -23638,7 +23638,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
23638
23638
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
23639
23639
|
}, "importedDocumentWhere");
|
|
23640
23640
|
|
|
23641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
23642
23642
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
23643
23643
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23644
23644
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -24148,7 +24148,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
24148
24148
|
};
|
|
24149
24149
|
}, "notesStoreOver");
|
|
24150
24150
|
|
|
24151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
24152
24152
|
var NAMED = "SELECT m.*, b.name AS author_name FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
|
|
24153
24153
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
24154
24154
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -24344,7 +24344,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
24344
24344
|
};
|
|
24345
24345
|
}, "memoriesStoreOver");
|
|
24346
24346
|
|
|
24347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
24348
24348
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
24349
24349
|
var KEY = "taskFirstPassPerChat";
|
|
24350
24350
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -24364,7 +24364,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
24364
24364
|
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);
|
|
24365
24365
|
}, "saveFirstPassPerChat");
|
|
24366
24366
|
|
|
24367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
24368
24368
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
24369
24369
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
24370
24370
|
name,
|
|
@@ -24585,7 +24585,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
24585
24585
|
return root === void 0 ? void 0 : { ...query, root };
|
|
24586
24586
|
}, "withoutField");
|
|
24587
24587
|
|
|
24588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
24589
24589
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
24590
24590
|
if (row2.author_type == null)
|
|
24591
24591
|
return null;
|
|
@@ -24613,7 +24613,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
24613
24613
|
return commentsOf(database, task).find((one) => one.ref === `note:${made}`);
|
|
24614
24614
|
}, "addComment");
|
|
24615
24615
|
|
|
24616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
24617
24617
|
var TASK_RELATION_KINDS = [
|
|
24618
24618
|
"blocked-by",
|
|
24619
24619
|
"follow-up-of",
|
|
@@ -24743,7 +24743,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
24743
24743
|
};
|
|
24744
24744
|
}, "taskRelationsStoreOver");
|
|
24745
24745
|
|
|
24746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
24747
24747
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
24748
24748
|
var TASK_EVENT_KINDS = [
|
|
24749
24749
|
"created",
|
|
@@ -25272,7 +25272,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
25272
25272
|
};
|
|
25273
25273
|
}, "workTasksOver");
|
|
25274
25274
|
|
|
25275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
25276
25276
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
25277
25277
|
const { database, now: now2 } = context;
|
|
25278
25278
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -25321,7 +25321,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
25321
25321
|
};
|
|
25322
25322
|
}, "taskCloseOver");
|
|
25323
25323
|
|
|
25324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
25325
25325
|
var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
|
|
25326
25326
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
25327
25327
|
const { database, now: now2 } = context;
|
|
@@ -25540,7 +25540,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
25540
25540
|
};
|
|
25541
25541
|
}, "taskPairsOver");
|
|
25542
25542
|
|
|
25543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
25544
25544
|
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";
|
|
25545
25545
|
var taskStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25546
25546
|
const { database, now: now2 } = context;
|
|
@@ -25745,7 +25745,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
25745
25745
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
25746
25746
|
}, "oneOf");
|
|
25747
25747
|
|
|
25748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
25749
25749
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
25750
25750
|
const { database } = context;
|
|
25751
25751
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -25790,7 +25790,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
25790
25790
|
};
|
|
25791
25791
|
}, "accountsStoreOver");
|
|
25792
25792
|
|
|
25793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
25794
25794
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
25795
25795
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
25796
25796
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -25814,7 +25814,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
25814
25814
|
})), "keepDownloads");
|
|
25815
25815
|
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");
|
|
25816
25816
|
|
|
25817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
25818
25818
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
25819
25819
|
const { database } = context;
|
|
25820
25820
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25871,7 +25871,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25871
25871
|
}, "keepAttachmentText")
|
|
25872
25872
|
}), "attachmentsStoreOver");
|
|
25873
25873
|
|
|
25874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
25875
25875
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
25876
25876
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
25877
25877
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -26051,7 +26051,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
26051
26051
|
return done;
|
|
26052
26052
|
}, "rekeyChats");
|
|
26053
26053
|
|
|
26054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
26055
26055
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
26056
26056
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
26057
26057
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -26083,7 +26083,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
|
|
|
26083
26083
|
});
|
|
26084
26084
|
}, "chatCompleteness");
|
|
26085
26085
|
|
|
26086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
26087
26087
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
26088
26088
|
const { database } = context;
|
|
26089
26089
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -26190,7 +26190,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
26190
26190
|
};
|
|
26191
26191
|
}, "chatsStoreOver");
|
|
26192
26192
|
|
|
26193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
26194
26194
|
import { createHash as createHash6 } from "node:crypto";
|
|
26195
26195
|
var BATCH_CONTEXT = 50;
|
|
26196
26196
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -26328,7 +26328,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
26328
26328
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
26329
26329
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
26330
26330
|
|
|
26331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
26332
26332
|
import { setTimeout } from "node:timers/promises";
|
|
26333
26333
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
26334
26334
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -26640,7 +26640,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
26640
26640
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
26641
26641
|
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");
|
|
26642
26642
|
|
|
26643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
26644
26644
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
26645
26645
|
const { database } = context;
|
|
26646
26646
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -26747,7 +26747,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
26747
26747
|
};
|
|
26748
26748
|
}, "conversationsStoreOver");
|
|
26749
26749
|
|
|
26750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
26751
26751
|
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";
|
|
26752
26752
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
26753
26753
|
const { database } = context;
|
|
@@ -26772,7 +26772,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26772
26772
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
26773
26773
|
}), "countersStoreOver");
|
|
26774
26774
|
|
|
26775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
26776
26776
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
26777
26777
|
var MENTION_QUERY = defineQuery({
|
|
26778
26778
|
entity: "mention",
|
|
@@ -26988,7 +26988,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
26988
26988
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
26989
26989
|
}, "listPlaces");
|
|
26990
26990
|
|
|
26991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
26992
26992
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
26993
26993
|
const { database } = context;
|
|
26994
26994
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -27023,7 +27023,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
27023
27023
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
27024
27024
|
}), "mentionsStoreOver");
|
|
27025
27025
|
|
|
27026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
27027
27027
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
27028
27028
|
const read2 = database.prepare("SELECT m.id, m.external_id, m.text, m.sent_at, m.sender_name, coalesce(m.sender_chat_external_id, i.external_id) AS sender_id FROM messages m LEFT JOIN identities i ON i.id = m.sender_identity_id WHERE m.chat_id = ? AND m.deleted_at IS NULL AND (m.text LIKE '%google.com%' OR m.text LIKE '%forms.gle%') " + (messageId === void 0 ? "" : "AND m.external_id = ? ") + "ORDER BY m.sent_at DESC, m.id DESC");
|
|
27029
27029
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -27038,7 +27038,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
27038
27038
|
}));
|
|
27039
27039
|
}, "documentLinkMessages");
|
|
27040
27040
|
|
|
27041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
27042
27042
|
var stemmerFor = stemmerCache();
|
|
27043
27043
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
27044
27044
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -27082,7 +27082,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
27082
27082
|
});
|
|
27083
27083
|
}, "laterSharingRare");
|
|
27084
27084
|
|
|
27085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
27086
27086
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
27087
27087
|
const { database } = context;
|
|
27088
27088
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -27217,7 +27217,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
27217
27217
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
27218
27218
|
}), "messagesStoreOver");
|
|
27219
27219
|
|
|
27220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
27221
27221
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
27222
27222
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
27223
27223
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -27274,7 +27274,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
27274
27274
|
});
|
|
27275
27275
|
}, "personPreparation");
|
|
27276
27276
|
|
|
27277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
27278
27278
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
27279
27279
|
const id2 = Number(uid);
|
|
27280
27280
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -27282,7 +27282,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
27282
27282
|
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)));
|
|
27283
27283
|
}, "personSeenInAccounts");
|
|
27284
27284
|
|
|
27285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
27286
27286
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
27287
27287
|
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);
|
|
27288
27288
|
if (!row2)
|
|
@@ -27348,7 +27348,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
27348
27348
|
return { id: id2, personId, removed: true };
|
|
27349
27349
|
}, "removeNote");
|
|
27350
27350
|
|
|
27351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
27352
27352
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
27353
27353
|
const { database } = context;
|
|
27354
27354
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -27433,13 +27433,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
27433
27433
|
};
|
|
27434
27434
|
}, "peopleStoreOver");
|
|
27435
27435
|
|
|
27436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
27437
27437
|
import { createHash as createHash8 } from "node:crypto";
|
|
27438
27438
|
|
|
27439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
27440
27440
|
import { createHash as createHash7 } from "node:crypto";
|
|
27441
27441
|
|
|
27442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
27443
27443
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
27444
27444
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
27445
27445
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -27661,7 +27661,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
27661
27661
|
};
|
|
27662
27662
|
}, "rankReplyGraph");
|
|
27663
27663
|
|
|
27664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
27665
27665
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
27666
27666
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
27667
27667
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -27835,7 +27835,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
27835
27835
|
return { items, evidence, summary, graph: graph.quality };
|
|
27836
27836
|
}, "calculateAdminStatistics");
|
|
27837
27837
|
|
|
27838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
27839
27839
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
27840
27840
|
const dates = [];
|
|
27841
27841
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -27857,7 +27857,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
27857
27857
|
return dates[0].node.resolution.date;
|
|
27858
27858
|
}, "rankingContextRange");
|
|
27859
27859
|
|
|
27860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
27861
27861
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
27862
27862
|
let counts;
|
|
27863
27863
|
try {
|
|
@@ -28152,7 +28152,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
28152
28152
|
});
|
|
28153
28153
|
}, "rankQuery");
|
|
28154
28154
|
|
|
28155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
28156
28156
|
function fail4(message2, reason = "query.too-large") {
|
|
28157
28157
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
28158
28158
|
}
|
|
@@ -28329,7 +28329,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
28329
28329
|
return result;
|
|
28330
28330
|
}), "adminStatisticsQuery");
|
|
28331
28331
|
|
|
28332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
28333
28333
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
28334
28334
|
if (!execution.accounts.length)
|
|
28335
28335
|
return { conversations: [], chats: [] };
|
|
@@ -28347,7 +28347,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
28347
28347
|
return { conversations: conversations2, chats: chats2 };
|
|
28348
28348
|
}, "conversationEligibility");
|
|
28349
28349
|
|
|
28350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
28351
28351
|
import { createHash as createHash9 } from "node:crypto";
|
|
28352
28352
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
28353
28353
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -28497,7 +28497,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
28497
28497
|
return result;
|
|
28498
28498
|
}, "rankingEvidence");
|
|
28499
28499
|
|
|
28500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
28501
28501
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
28502
28502
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
28503
28503
|
if (execution.corpus === "mail")
|
|
@@ -28516,7 +28516,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
28516
28516
|
};
|
|
28517
28517
|
}, "queriesStoreOver");
|
|
28518
28518
|
|
|
28519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
28520
28520
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
28521
28521
|
const { database, now: now2 } = context;
|
|
28522
28522
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -28555,10 +28555,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
28555
28555
|
}));
|
|
28556
28556
|
}, "chatEventsOf");
|
|
28557
28557
|
|
|
28558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
28559
28559
|
import { createHash as createHash10 } from "node:crypto";
|
|
28560
28560
|
|
|
28561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
28562
28562
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
28563
28563
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
28564
28564
|
timeZone: zone,
|
|
@@ -28573,7 +28573,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
|
28573
28573
|
};
|
|
28574
28574
|
}, "calendarKey");
|
|
28575
28575
|
|
|
28576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
28577
28577
|
var RETENTION_TOLERANCE = 864e5;
|
|
28578
28578
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
28579
28579
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -28627,7 +28627,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
28627
28627
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
28628
28628
|
}, "retentionCohorts");
|
|
28629
28629
|
|
|
28630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
28631
28631
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
28632
28632
|
var week = /* @__PURE__ */ __name((day) => {
|
|
28633
28633
|
const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
@@ -28763,7 +28763,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
28763
28763
|
};
|
|
28764
28764
|
}, "retentionQuery");
|
|
28765
28765
|
|
|
28766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
28767
28767
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
28768
28768
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
28769
28769
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -28894,7 +28894,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
28894
28894
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
28895
28895
|
})), "trackedChats");
|
|
28896
28896
|
|
|
28897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
28898
28898
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28899
28899
|
const { database } = context;
|
|
28900
28900
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -28950,7 +28950,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28950
28950
|
};
|
|
28951
28951
|
}, "rosterStoreOver");
|
|
28952
28952
|
|
|
28953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
28954
28954
|
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");
|
|
28955
28955
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
28956
28956
|
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 ?`);
|
|
@@ -28974,7 +28974,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
28974
28974
|
}
|
|
28975
28975
|
}, "backfillNormalized");
|
|
28976
28976
|
|
|
28977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
28978
28978
|
var INDEX2 = "message_words";
|
|
28979
28979
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
28980
28980
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -29101,7 +29101,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
29101
29101
|
});
|
|
29102
29102
|
}, "resetSearchIndex");
|
|
29103
29103
|
|
|
29104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
29105
29105
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
29106
29106
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
29107
29107
|
const before2 = stemsState(database);
|
|
@@ -29196,7 +29196,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
29196
29196
|
return resetStems(database, { now: now2 });
|
|
29197
29197
|
}, "followDefaultStemmers");
|
|
29198
29198
|
|
|
29199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
29200
29200
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
29201
29201
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
29202
29202
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -29218,7 +29218,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
29218
29218
|
});
|
|
29219
29219
|
}, "termCandidates");
|
|
29220
29220
|
|
|
29221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
29222
29222
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
29223
29223
|
const { database } = context;
|
|
29224
29224
|
const stemmerFor2 = stemmerCache();
|
|
@@ -29240,7 +29240,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29240
29240
|
};
|
|
29241
29241
|
}, "searchIndexStoreOver");
|
|
29242
29242
|
|
|
29243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
29244
29244
|
var HISTORY_KEPT = 1e3;
|
|
29245
29245
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
29246
29246
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -29309,7 +29309,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
29309
29309
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
29310
29310
|
}, "clearHistory");
|
|
29311
29311
|
|
|
29312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
29313
29313
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
29314
29314
|
const { database } = context;
|
|
29315
29315
|
return {
|
|
@@ -29333,7 +29333,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29333
29333
|
};
|
|
29334
29334
|
}, "searchesStoreOver");
|
|
29335
29335
|
|
|
29336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
29337
29337
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
29338
29338
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
29339
29339
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -29376,7 +29376,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
29376
29376
|
};
|
|
29377
29377
|
}, "agentActionsStoreOver");
|
|
29378
29378
|
|
|
29379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
29380
29380
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
29381
29381
|
}) => {
|
|
29382
29382
|
const { database, now: now2 } = context;
|
|
@@ -29435,7 +29435,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
29435
29435
|
};
|
|
29436
29436
|
}, "botUpdateStoreOver");
|
|
29437
29437
|
|
|
29438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
29439
29439
|
var DAY4 = 864e5;
|
|
29440
29440
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
29441
29441
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -29544,7 +29544,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
29544
29544
|
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);
|
|
29545
29545
|
}, "listEvents");
|
|
29546
29546
|
|
|
29547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
29548
29548
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
29549
29549
|
id: Number(row2.id),
|
|
29550
29550
|
accountId: Number(row2.account_id),
|
|
@@ -30124,7 +30124,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30124
30124
|
};
|
|
30125
30125
|
}, "eventStoreOver");
|
|
30126
30126
|
|
|
30127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
30128
30128
|
var CATALOG_QUERY = defineQuery({
|
|
30129
30129
|
entity: "document",
|
|
30130
30130
|
backend: "sql",
|
|
@@ -30366,7 +30366,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
30366
30366
|
};
|
|
30367
30367
|
}, "catalogStoreOver");
|
|
30368
30368
|
|
|
30369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
30370
30370
|
import { createHash as createHash11 } from "node:crypto";
|
|
30371
30371
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
30372
30372
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -30464,7 +30464,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
30464
30464
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
30465
30465
|
}, "contextEvidenceRequest");
|
|
30466
30466
|
|
|
30467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
30468
30468
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
30469
30469
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
30470
30470
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -30477,7 +30477,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
30477
30477
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
30478
30478
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
30479
30479
|
|
|
30480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
30481
30481
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
30482
30482
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
30483
30483
|
signal?.throwIfAborted();
|
|
@@ -30576,7 +30576,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
30576
30576
|
});
|
|
30577
30577
|
}, "readMeetingContextEvidence");
|
|
30578
30578
|
|
|
30579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
30580
30580
|
var corpora = {
|
|
30581
30581
|
message: {
|
|
30582
30582
|
table: "messages",
|
|
@@ -30815,7 +30815,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30815
30815
|
}
|
|
30816
30816
|
}), "contextRecordsOver");
|
|
30817
30817
|
|
|
30818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
30819
30819
|
var NOTE_FIELDS = [
|
|
30820
30820
|
"text",
|
|
30821
30821
|
"exact",
|
|
@@ -31245,7 +31245,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
31245
31245
|
};
|
|
31246
31246
|
}, "noteSearchOver");
|
|
31247
31247
|
|
|
31248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
31249
31249
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
31250
31250
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
31251
31251
|
var EVENT_CORPUS = {
|
|
@@ -31377,7 +31377,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
31377
31377
|
};
|
|
31378
31378
|
}, "eventSearchOver");
|
|
31379
31379
|
|
|
31380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
31381
31381
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
31382
31382
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
31383
31383
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -31396,7 +31396,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFinding
|
|
|
31396
31396
|
anySubject: true
|
|
31397
31397
|
}), "validateEvidenceFindings");
|
|
31398
31398
|
|
|
31399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
31400
31400
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
31401
31401
|
try {
|
|
31402
31402
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -31408,7 +31408,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
31408
31408
|
}
|
|
31409
31409
|
}, "calendarMoment");
|
|
31410
31410
|
|
|
31411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
31412
31412
|
var NAMED3 = "SELECT f.*, b.name AS author_name FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
|
|
31413
31413
|
var iso8 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
31414
31414
|
var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -31557,7 +31557,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31557
31557
|
};
|
|
31558
31558
|
}, "factsStoreOver");
|
|
31559
31559
|
|
|
31560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
31561
31561
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
31562
31562
|
throw new CliError("validation_error", message2);
|
|
31563
31563
|
}, "invalid");
|
|
@@ -31656,7 +31656,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
31656
31656
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes };
|
|
31657
31657
|
}, "findingsCoreOver");
|
|
31658
31658
|
|
|
31659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
31660
31660
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
31661
31661
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
31662
31662
|
var iso9 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -31803,7 +31803,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31803
31803
|
};
|
|
31804
31804
|
}, "proposedActionsStoreOver");
|
|
31805
31805
|
|
|
31806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
31807
31807
|
var stale = /* @__PURE__ */ __name(() => {
|
|
31808
31808
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
31809
31809
|
reason: "evidence-findings.stale"
|
|
@@ -31975,7 +31975,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31975
31975
|
};
|
|
31976
31976
|
}, "evidenceFindingsStoreOver");
|
|
31977
31977
|
|
|
31978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
31979
31979
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
31980
31980
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
31981
31981
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -32028,7 +32028,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
32028
32028
|
}, "forPerson")
|
|
32029
32029
|
}), "involvementStoreOver");
|
|
32030
32030
|
|
|
32031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
32032
32032
|
import { createHash as createHash12 } from "node:crypto";
|
|
32033
32033
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
32034
32034
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -32114,16 +32114,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
32114
32114
|
};
|
|
32115
32115
|
}, "meetingProjectsStoreOver");
|
|
32116
32116
|
|
|
32117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
32118
32118
|
import { createHash as createHash15 } from "node:crypto";
|
|
32119
32119
|
|
|
32120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
32121
32121
|
import { createHash as createHash14 } from "node:crypto";
|
|
32122
32122
|
|
|
32123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
32124
32124
|
import { createHash as createHash13 } from "node:crypto";
|
|
32125
32125
|
|
|
32126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
32127
32127
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
32128
32128
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
32129
32129
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -32174,7 +32174,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
32174
32174
|
return input;
|
|
32175
32175
|
}, "consolidationApplyInput");
|
|
32176
32176
|
|
|
32177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
32178
32178
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
32179
32179
|
id: String(row2.id),
|
|
32180
32180
|
sourceId: String(row2.source_id),
|
|
@@ -32249,7 +32249,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
32249
32249
|
}, { beforeCommit: check3 });
|
|
32250
32250
|
}, "applyTagConsolidation");
|
|
32251
32251
|
|
|
32252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
32253
32253
|
var selections = [
|
|
32254
32254
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
32255
32255
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -32393,7 +32393,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
32393
32393
|
};
|
|
32394
32394
|
}, "previewRows");
|
|
32395
32395
|
|
|
32396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
32397
32397
|
var kinds = ["project", "tag", "topic"];
|
|
32398
32398
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
32399
32399
|
if (signal?.aborted)
|
|
@@ -32657,7 +32657,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32657
32657
|
};
|
|
32658
32658
|
}, "vocabularyStoreOver");
|
|
32659
32659
|
|
|
32660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
32661
32661
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
32662
32662
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
32663
32663
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -33179,7 +33179,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
33179
33179
|
return key2.padEnd(3, "X");
|
|
33180
33180
|
}, "projectKey");
|
|
33181
33181
|
|
|
33182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
33183
33183
|
var DAY5 = 864e5;
|
|
33184
33184
|
var SETTING4 = "logs_pruned_at";
|
|
33185
33185
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -33206,7 +33206,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
33206
33206
|
};
|
|
33207
33207
|
}, "logPruner");
|
|
33208
33208
|
|
|
33209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
33210
33210
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
33211
33211
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
33212
33212
|
reason: "meeting-findings.stale"
|
|
@@ -33375,7 +33375,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33375
33375
|
};
|
|
33376
33376
|
}, "meetingFindingsStoreOver");
|
|
33377
33377
|
|
|
33378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
33379
33379
|
var RANK_BATCH = 512;
|
|
33380
33380
|
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";
|
|
33381
33381
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -33646,7 +33646,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
33646
33646
|
}
|
|
33647
33647
|
}), "meetingVectorsOver");
|
|
33648
33648
|
|
|
33649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
33650
33650
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
33651
33651
|
var TEXTS = {
|
|
33652
33652
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -33747,11 +33747,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33747
33747
|
};
|
|
33748
33748
|
}, "sourceMentionStoreOver");
|
|
33749
33749
|
|
|
33750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
33751
33751
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
33752
33752
|
import { dirname } from "node:path";
|
|
33753
33753
|
|
|
33754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
33755
33755
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
33756
33756
|
var CLIENTS_SETTING = "clients";
|
|
33757
33757
|
var coreVersion = (() => {
|
|
@@ -33809,7 +33809,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
33809
33809
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
33810
33810
|
}, "refusalAdvice");
|
|
33811
33811
|
|
|
33812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
33813
33813
|
var GENERATED = [
|
|
33814
33814
|
{
|
|
33815
33815
|
"name": "20261010184427_initial",
|
|
@@ -34705,7 +34705,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
34705
34705
|
}
|
|
34706
34706
|
];
|
|
34707
34707
|
|
|
34708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
34709
34709
|
var MANIFEST = [
|
|
34710
34710
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
34711
34711
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -34786,7 +34786,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
34786
34786
|
return migrations;
|
|
34787
34787
|
}, "generatedMigrations");
|
|
34788
34788
|
|
|
34789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
34790
34790
|
var MIGRATIONS = generatedMigrations();
|
|
34791
34791
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
34792
34792
|
version INTEGER PRIMARY KEY,
|
|
@@ -34839,7 +34839,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
34839
34839
|
}
|
|
34840
34840
|
}, "migrate");
|
|
34841
34841
|
|
|
34842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
34843
34843
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
34844
34844
|
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 ?");
|
|
34845
34845
|
if (pending.get(0, 1) === void 0)
|
|
@@ -34861,7 +34861,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
34861
34861
|
}
|
|
34862
34862
|
}, "fillJoinKeys");
|
|
34863
34863
|
|
|
34864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
34865
34865
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
34866
34866
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
34867
34867
|
try {
|
|
@@ -34874,8 +34874,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
34874
34874
|
}, "openSqlite");
|
|
34875
34875
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
34876
34876
|
quietSqliteWarning();
|
|
34877
|
-
const { drizzle } = await import("./node-
|
|
34878
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
34877
|
+
const { drizzle } = await import("./node-BHBFRH6H.js");
|
|
34878
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-7FHC3W5U.js");
|
|
34879
34879
|
const client = await nodeClient(path, { readOnly });
|
|
34880
34880
|
try {
|
|
34881
34881
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -34885,8 +34885,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
34885
34885
|
}
|
|
34886
34886
|
}, "openUnderNode");
|
|
34887
34887
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
34888
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
34889
|
-
const { drizzle } = await import("./bun-
|
|
34888
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-AGK2BHAN.js");
|
|
34889
|
+
const { drizzle } = await import("./bun-H7LT5433.js");
|
|
34890
34890
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
34891
34891
|
try {
|
|
34892
34892
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -34896,7 +34896,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
34896
34896
|
}
|
|
34897
34897
|
}, "openUnderBun");
|
|
34898
34898
|
|
|
34899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
34900
34900
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
34901
34901
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
34902
34902
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -34911,7 +34911,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
34911
34911
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
34912
34912
|
}, "assertReadCompatible");
|
|
34913
34913
|
|
|
34914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
34915
34915
|
var BACKFILL_ON_OPEN = 5e3;
|
|
34916
34916
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
34917
34917
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -34967,13 +34967,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
34967
34967
|
}
|
|
34968
34968
|
}, "openStoreContext");
|
|
34969
34969
|
|
|
34970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
34971
34971
|
import { createHash as createHash17 } from "node:crypto";
|
|
34972
34972
|
|
|
34973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
34974
34974
|
import { createHash as createHash16 } from "node:crypto";
|
|
34975
34975
|
|
|
34976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
34977
34977
|
var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
34978
34978
|
var ref = text3(2048);
|
|
34979
34979
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -35039,7 +35039,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
35039
35039
|
}))
|
|
35040
35040
|
});
|
|
35041
35041
|
|
|
35042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
35043
35043
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
35044
35044
|
var invalid5 = /* @__PURE__ */ __name((field4) => {
|
|
35045
35045
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -35172,7 +35172,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
35172
35172
|
return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
|
|
35173
35173
|
}, "projectAnnotationsFingerprint");
|
|
35174
35174
|
|
|
35175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
35176
35176
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
35177
35177
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
35178
35178
|
var targetSchema = strictObject({
|
|
@@ -35279,7 +35279,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
35279
35279
|
}, "planBoundProjectAnnotations");
|
|
35280
35280
|
var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
|
|
35281
35281
|
|
|
35282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
35283
35283
|
import { createHash as createHash18 } from "node:crypto";
|
|
35284
35284
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
35285
35285
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -35373,7 +35373,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
35373
35373
|
})).digest("hex");
|
|
35374
35374
|
}, "projectAnnotationSnapshotFingerprint");
|
|
35375
35375
|
|
|
35376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
35377
35377
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
35378
35378
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
35379
35379
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -35390,7 +35390,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
35390
35390
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
35391
35391
|
}, "projectAnnotationRequest");
|
|
35392
35392
|
|
|
35393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
35394
35394
|
var SnapshotBudget = class {
|
|
35395
35395
|
static {
|
|
35396
35396
|
__name(this, "SnapshotBudget");
|
|
@@ -35416,13 +35416,13 @@ var SnapshotBudget = class {
|
|
|
35416
35416
|
}
|
|
35417
35417
|
};
|
|
35418
35418
|
|
|
35419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
35420
35420
|
import { createHash as createHash20 } from "node:crypto";
|
|
35421
35421
|
|
|
35422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
35423
35423
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
35424
35424
|
|
|
35425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
35426
35426
|
import { createHash as createHash19 } from "node:crypto";
|
|
35427
35427
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
35428
35428
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -35565,7 +35565,7 @@ var ProjectSnapshotSources = class {
|
|
|
35565
35565
|
}
|
|
35566
35566
|
};
|
|
35567
35567
|
|
|
35568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
35569
35569
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
35570
35570
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
35571
35571
|
}, "unsupported");
|
|
@@ -35736,7 +35736,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
35736
35736
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
35737
35737
|
}), "projectAnnotationSnapshot");
|
|
35738
35738
|
|
|
35739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
35740
35740
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
35741
35741
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
35742
35742
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -35798,7 +35798,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
35798
35798
|
};
|
|
35799
35799
|
}), "previewAnnotationSnapshot");
|
|
35800
35800
|
|
|
35801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
35802
35802
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
35803
35803
|
const mappings = { ...bindings };
|
|
35804
35804
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -35840,7 +35840,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
35840
35840
|
return mappings;
|
|
35841
35841
|
}, "restoreAnnotationRecords");
|
|
35842
35842
|
|
|
35843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
35844
35844
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
35845
35845
|
async preview(request) {
|
|
35846
35846
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -35870,7 +35870,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35870
35870
|
}
|
|
35871
35871
|
}), "projectAnnotationStoreOver");
|
|
35872
35872
|
|
|
35873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
35874
35874
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
35875
35875
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
35876
35876
|
let merged = { from: from2, to };
|
|
@@ -35883,7 +35883,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
35883
35883
|
}, "markRange");
|
|
35884
35884
|
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");
|
|
35885
35885
|
|
|
35886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
35887
35887
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
35888
35888
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
35889
35889
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -35893,7 +35893,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
35893
35893
|
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);
|
|
35894
35894
|
}, "setTaskRulesStop");
|
|
35895
35895
|
|
|
35896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
35897
35897
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
35898
35898
|
const { database } = context;
|
|
35899
35899
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -35949,7 +35949,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35949
35949
|
};
|
|
35950
35950
|
}, "syncStoreOver");
|
|
35951
35951
|
|
|
35952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
35953
35953
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
35954
35954
|
const { database } = context;
|
|
35955
35955
|
return {
|
|
@@ -35971,7 +35971,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35971
35971
|
};
|
|
35972
35972
|
}, "tagsStoreOver");
|
|
35973
35973
|
|
|
35974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
35975
35975
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
35976
35976
|
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
|
|
35977
35977
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -36098,7 +36098,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
36098
36098
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
36099
36099
|
}, "savePictureChunks");
|
|
36100
36100
|
|
|
36101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
36102
36102
|
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,
|
|
36103
36103
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
36104
36104
|
FROM messages m
|
|
@@ -36187,7 +36187,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
36187
36187
|
return plain2(best(found2));
|
|
36188
36188
|
}, "nearestMessages");
|
|
36189
36189
|
|
|
36190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
36191
36191
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
36192
36192
|
const { database } = context;
|
|
36193
36193
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -36445,7 +36445,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
36445
36445
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
36446
36446
|
}), "vectorsStoreOver");
|
|
36447
36447
|
|
|
36448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
36449
36449
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
36450
36450
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
36451
36451
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -36533,10 +36533,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
36533
36533
|
}
|
|
36534
36534
|
}, "lastBackup");
|
|
36535
36535
|
|
|
36536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
36537
36537
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
36538
36538
|
|
|
36539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
36540
36540
|
var COUNTED_TABLES = [
|
|
36541
36541
|
"accounts",
|
|
36542
36542
|
"chats",
|
|
@@ -36621,7 +36621,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
36621
36621
|
};
|
|
36622
36622
|
}, "storeContents");
|
|
36623
36623
|
|
|
36624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
36625
36625
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
36626
36626
|
const context = await openStoreContext(options);
|
|
36627
36627
|
try {
|