@wirecat/mail-cli 0.4.0 → 0.5.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-55XPXQHY.js → all-profiles-GR5JXYEQ.js} +5 -5
- package/dist/bundle/{anthropic-K5B6I4LB.js → anthropic-REBXE65F.js} +3 -3
- package/dist/bundle/{app-server-VWWLQLTZ.js → app-server-QJ7ICQXZ.js} +39 -39
- package/dist/bundle/{bun-EO7AI6YP.js → bun-WAX4QHW5.js} +2 -2
- package/dist/bundle/{bun-sqlite-F24A4IOP.js → bun-sqlite-5S7TQ4SG.js} +2 -2
- package/dist/bundle/{chunk-5RUTHKXZ.js → chunk-2FXVBCA3.js} +3 -3
- package/dist/bundle/{chunk-UO7X2VW4.js → chunk-2MRECWJZ.js} +5 -5
- package/dist/bundle/{chunk-BHKI5OCD.js → chunk-2U4IANVV.js} +1 -1
- package/dist/bundle/{chunk-6BNMEOVS.js → chunk-2YQNBIDQ.js} +3 -3
- package/dist/bundle/{chunk-HORM6VRV.js → chunk-4BMNP2FT.js} +1 -1
- package/dist/bundle/{chunk-M4NTQ247.js → chunk-4XJ4AM3K.js} +10 -10
- package/dist/bundle/{chunk-X7AXH2IC.js → chunk-5CXAH4Y6.js} +195 -195
- package/dist/bundle/{chunk-YYTWV5GU.js → chunk-5FK6RD4M.js} +42 -42
- package/dist/bundle/{chunk-VWHRIGYJ.js → chunk-5INWLYBD.js} +2 -2
- package/dist/bundle/{chunk-EDKV6D6T.js → chunk-6EO7GVYJ.js} +1 -1
- package/dist/bundle/{chunk-IIO6NXCA.js → chunk-6GE3EADU.js} +2 -2
- package/dist/bundle/{chunk-RLSGMMGC.js → chunk-6TY3DGCC.js} +4 -4
- package/dist/bundle/{chunk-JKHI3PH7.js → chunk-7A7BHABA.js} +1 -1
- package/dist/bundle/{chunk-SY3SP7EI.js → chunk-7F3NDIYL.js} +5 -5
- package/dist/bundle/{chunk-ANRI6EZY.js → chunk-7JCRQX56.js} +7 -7
- package/dist/bundle/{chunk-MGBGE2Y4.js → chunk-7XNPSIWD.js} +2 -2
- package/dist/bundle/{chunk-7IYDIU4P.js → chunk-AFCGOZR7.js} +5 -5
- package/dist/bundle/{chunk-ID24SLH3.js → chunk-B5WSIWY5.js} +16 -16
- package/dist/bundle/{chunk-HJEMHZRU.js → chunk-BFJV4FWJ.js} +1 -1
- package/dist/bundle/{chunk-LKDK5YMI.js → chunk-BLS5YG77.js} +1 -1
- package/dist/bundle/{chunk-UJYCKCFR.js → chunk-CEAANMJ2.js} +2 -2
- package/dist/bundle/{chunk-7QQ4EMYF.js → chunk-DXDQOZ2P.js} +2 -2
- package/dist/bundle/{chunk-NL5LNYGX.js → chunk-EB3R2PV3.js} +21 -21
- package/dist/bundle/{chunk-VWXCEEUH.js → chunk-EL554DV2.js} +2 -2
- package/dist/bundle/{chunk-JZFIHVRB.js → chunk-ESNNQA7D.js} +26 -26
- package/dist/bundle/{chunk-ZAR67WKR.js → chunk-F3NYA4KN.js} +5 -5
- package/dist/bundle/{chunk-QYWDC7NP.js → chunk-FSUNGHRI.js} +43 -43
- package/dist/bundle/{chunk-EOEYP7CJ.js → chunk-HCMUGUAG.js} +2 -2
- package/dist/bundle/{chunk-HUB42T2Z.js → chunk-IBYTYIYO.js} +46 -46
- package/dist/bundle/{chunk-CCNHVZ3G.js → chunk-IWDOGGMY.js} +246 -246
- package/dist/bundle/{chunk-WFBTPZK3.js → chunk-JJBQPA7D.js} +3 -3
- package/dist/bundle/{chunk-7X64JS6S.js → chunk-KIDF77MA.js} +1 -1
- package/dist/bundle/{chunk-2ADB5DSG.js → chunk-LFRHIXCF.js} +2 -2
- package/dist/bundle/{chunk-FFKNUVVD.js → chunk-LNS27BTB.js} +1 -1
- package/dist/bundle/{chunk-F7KAJNNK.js → chunk-LOA4X6JW.js} +4 -4
- package/dist/bundle/{chunk-4KLJN3LK.js → chunk-M6BDHZON.js} +11 -11
- package/dist/bundle/{chunk-F6JTOQIK.js → chunk-MMDCL42A.js} +4 -4
- package/dist/bundle/{chunk-SWRNMYDL.js → chunk-MQUJEQTU.js} +1 -1
- package/dist/bundle/{chunk-CSI73XJ5.js → chunk-PJCTWPJB.js} +6 -6
- package/dist/bundle/{chunk-CADRRSQK.js → chunk-QXOSGGKS.js} +1 -1
- package/dist/bundle/{chunk-VP5GCMHM.js → chunk-S677WGOQ.js} +5 -5
- package/dist/bundle/{chunk-2NZGUKYK.js → chunk-SQ7KOBRA.js} +6 -6
- package/dist/bundle/{chunk-UZDHK26H.js → chunk-SWJAG5IE.js} +1 -1
- package/dist/bundle/{chunk-OM4ZBLT7.js → chunk-VDAIJM5L.js} +13 -13
- package/dist/bundle/{chunk-ORYYYM5Y.js → chunk-VXAZZGXE.js} +21 -21
- package/dist/bundle/{chunk-2LP46EUH.js → chunk-WNCCYHRV.js} +91 -91
- package/dist/bundle/{chunk-H7K2DN3R.js → chunk-WNI5BZFB.js} +7 -7
- package/dist/bundle/{chunk-XJ5TBPCK.js → chunk-YD5WV757.js} +1 -1
- package/dist/bundle/{chunk-YSSMDVT3.js → chunk-YKPBC3NL.js} +1 -1
- package/dist/bundle/{chunk-6BR6JMCR.js → chunk-YRGBZZUW.js} +9 -9
- package/dist/bundle/{command-contract-L65UZ7AF.js → command-contract-GPUED3GT.js} +13 -13
- package/dist/bundle/{decode-ON4KBMEX.js → decode-D7BDVIVB.js} +2 -2
- package/dist/bundle/{dist-FMN7UZ7R.js → dist-KJOAJ6NF.js} +14 -14
- package/dist/bundle/{echarts-XPA226QR.js → echarts-IVRX7XHP.js} +2 -2
- package/dist/bundle/{embed-QERDAB73.js → embed-X527RBTG.js} +3 -3
- package/dist/bundle/{embedder-I76YT3E5.js → embedder-F4PSJS6S.js} +6 -6
- package/dist/bundle/{first-run-KZJFR55N.js → first-run-M5CIX6NA.js} +5 -5
- package/dist/bundle/{first-screen-EORANEAK.js → first-screen-M7MT776O.js} +14 -14
- package/dist/bundle/{instructions-NN3BCFIM.js → instructions-UX36BT5F.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-2S75QJ6B.js → node-OXT7WE2T.js} +2 -2
- package/dist/bundle/{node-sqlite-RC7WM3EG.js → node-sqlite-X2PSEHA4.js} +2 -2
- package/dist/bundle/{oauth-FUHLZCKV.js → oauth-MYK4BSYN.js} +4 -4
- package/dist/bundle/{open-JOKT7LKY.js → open-GONIP2DH.js} +1 -1
- package/dist/bundle/{openai-U3IMQ6UI.js → openai-YJFNUOQT.js} +10 -10
- package/dist/bundle/{process-LKODK722.js → process-7IEUUSRK.js} +1 -1
- package/dist/bundle/{program-RMLIQXCA.js → program-Q73TTG3E.js} +291 -288
- package/dist/bundle/{prompt-23VYMNNB.js → prompt-SKQ72KN7.js} +2 -2
- package/dist/bundle/{recognize-TXO3462R.js → recognize-GC7CU2DB.js} +1 -1
- package/dist/bundle/{remote-5F4ZOASM.js → remote-UEXFZP2I.js} +4 -4
- package/dist/bundle/{rerank-TXSDPEFE.js → rerank-2U2NDEZP.js} +4 -4
- package/dist/bundle/{serve-TWYECYWM.js → serve-OOGKFEWL.js} +6 -6
- package/dist/bundle/server-4JMHDHZ7.js +63 -0
- package/dist/bundle/{server-3S3BKE6D.js → server-FZ3LFQTF.js} +31 -31
- package/dist/bundle/{sqlite-runtime-BEOBGC6K.js → sqlite-runtime-GIQSW6LJ.js} +2 -2
- package/dist/bundle/{state-ERWIUTQQ.js → state-EMFXPQVZ.js} +3 -3
- package/dist/bundle/{store-4RY5UMOP.js → store-BDU4UPNK.js} +11 -11
- package/dist/bundle/{store-2JO4JGQL.js → store-LDI62AUG.js} +9 -9
- package/dist/bundle/store-maintenance-command-OFRPORN2.js +52 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -2
- package/dist/program.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-2GEAXKX2.js +0 -63
- package/dist/bundle/store-maintenance-command-T7D4OTN7.js +0 -52
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
rankingWords,
|
|
32
32
|
useStoredProviders,
|
|
33
33
|
validCounter
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7F3NDIYL.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-SQ7KOBRA.js";
|
|
58
58
|
import {
|
|
59
59
|
CHAT_MESSAGES_READ,
|
|
60
60
|
MEETING_FINDINGS_KIND,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
validateQuery,
|
|
94
94
|
walkQuery,
|
|
95
95
|
zonedMoment
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-5FK6RD4M.js";
|
|
97
97
|
import {
|
|
98
98
|
DEFAULT_STEMMERS,
|
|
99
99
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -106,18 +106,18 @@ import {
|
|
|
106
106
|
fold,
|
|
107
107
|
normalize,
|
|
108
108
|
parseStemmers
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-7JCRQX56.js";
|
|
110
110
|
import {
|
|
111
111
|
DEFAULT_TASK_CATEGORIES,
|
|
112
112
|
sharedConfigPath,
|
|
113
113
|
storedTaskCategories,
|
|
114
114
|
taskCategoriesReader
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-LOA4X6JW.js";
|
|
116
116
|
import {
|
|
117
117
|
PRAGMAS,
|
|
118
118
|
quietSqliteWarning,
|
|
119
119
|
storeCapable
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-2MRECWJZ.js";
|
|
121
121
|
import {
|
|
122
122
|
SQLiteTable,
|
|
123
123
|
TableAliasProxyHandler,
|
|
@@ -142,10 +142,10 @@ import {
|
|
|
142
142
|
sql,
|
|
143
143
|
sqliteTable,
|
|
144
144
|
text
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-KIDF77MA.js";
|
|
146
146
|
import {
|
|
147
147
|
storePath
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-SWJAG5IE.js";
|
|
149
149
|
import {
|
|
150
150
|
array,
|
|
151
151
|
boolean,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
__name
|
|
175
175
|
} from "./chunk-ZVVMGPBJ.js";
|
|
176
176
|
|
|
177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
178
178
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
179
179
|
const methods = whole;
|
|
180
180
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -302,7 +302,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
302
302
|
};
|
|
303
303
|
}, "bindAccount");
|
|
304
304
|
|
|
305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
306
306
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
307
307
|
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");
|
|
308
308
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -325,7 +325,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
325
325
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
326
326
|
}, "sourceOf");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
329
329
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
330
330
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
331
331
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -512,7 +512,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf = (kind3)
|
|
|
512
512
|
return { accounts: [...chosen.values()], skipped };
|
|
513
513
|
}, "fitting");
|
|
514
514
|
|
|
515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
516
516
|
var IndexBuilderOn = class {
|
|
517
517
|
static {
|
|
518
518
|
__name(this, "IndexBuilderOn");
|
|
@@ -707,7 +707,7 @@ function alias(table, alias2) {
|
|
|
707
707
|
}
|
|
708
708
|
__name(alias, "alias");
|
|
709
709
|
|
|
710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
711
711
|
var ENTITY_TABLES = {
|
|
712
712
|
account: "accounts",
|
|
713
713
|
attachment: "attachments",
|
|
@@ -747,7 +747,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
747
747
|
return { table, pointer, type, count, known: known2 };
|
|
748
748
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
749
749
|
|
|
750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
751
751
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
752
752
|
id: integer("id").primaryKey(),
|
|
753
753
|
name: text("name").notNull().unique(),
|
|
@@ -756,7 +756,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
756
756
|
updatedAt: integer("updated_at").notNull()
|
|
757
757
|
});
|
|
758
758
|
|
|
759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
760
760
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
761
761
|
sourceKey: text("source_key").notNull(),
|
|
762
762
|
collection: text("collection").notNull(),
|
|
@@ -766,13 +766,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
766
766
|
createdAt: integer("created_at").notNull()
|
|
767
767
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
768
768
|
|
|
769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
770
770
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
771
771
|
id: integer("id").notNull(),
|
|
772
772
|
indexableType: text("indexable_type").notNull()
|
|
773
773
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
774
774
|
|
|
775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
776
776
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
777
777
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
778
778
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -798,7 +798,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
798
798
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
799
799
|
]);
|
|
800
800
|
|
|
801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
802
802
|
var accounts = sqliteTable("accounts", {
|
|
803
803
|
id: integer("id").primaryKey(),
|
|
804
804
|
provider: text("provider").notNull(),
|
|
@@ -2299,7 +2299,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2299
2299
|
at: integer("at").notNull()
|
|
2300
2300
|
});
|
|
2301
2301
|
|
|
2302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2303
2303
|
var ARMS = [
|
|
2304
2304
|
[
|
|
2305
2305
|
"message",
|
|
@@ -2426,7 +2426,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2426
2426
|
return recomputed;
|
|
2427
2427
|
}, "drainInvolvementQueue");
|
|
2428
2428
|
|
|
2429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2430
2430
|
import { domainToUnicode } from "node:url";
|
|
2431
2431
|
|
|
2432
2432
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12448,7 +12448,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12448
12448
|
}, "oa");
|
|
12449
12449
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12450
12450
|
|
|
12451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12452
12452
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12453
12453
|
var ID = /^[\w-]{10,}$/;
|
|
12454
12454
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12489,7 +12489,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text5) => [...text5.matchAll(L
|
|
|
12489
12489
|
return { url, documentId: googleDocumentId(url) };
|
|
12490
12490
|
}), "googleDocumentLinks");
|
|
12491
12491
|
|
|
12492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12493
12493
|
var PHONE_PLANS = [
|
|
12494
12494
|
{
|
|
12495
12495
|
country: "us",
|
|
@@ -12869,7 +12869,7 @@ var PHONE_PLANS = [
|
|
|
12869
12869
|
}
|
|
12870
12870
|
];
|
|
12871
12871
|
|
|
12872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
12873
12873
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
12874
12874
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
12875
12875
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -12910,7 +12910,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
12910
12910
|
return void 0;
|
|
12911
12911
|
}, "nationalPhone");
|
|
12912
12912
|
|
|
12913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
12914
12914
|
var BEFORE = [
|
|
12915
12915
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
12916
12916
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13170,7 +13170,7 @@ var findPlaces = /* @__PURE__ */ __name((text5) => {
|
|
|
13170
13170
|
return found2.sort((a, b) => a.start - b.start);
|
|
13171
13171
|
}, "findPlaces");
|
|
13172
13172
|
|
|
13173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13174
13174
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13175
13175
|
var MENTION_VERSIONS = {
|
|
13176
13176
|
phone: 1,
|
|
@@ -13360,7 +13360,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13360
13360
|
};
|
|
13361
13361
|
}, "typedPhone");
|
|
13362
13362
|
|
|
13363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13364
13364
|
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";
|
|
13365
13365
|
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";
|
|
13366
13366
|
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";
|
|
@@ -13368,7 +13368,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13368
13368
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13369
13369
|
var NAME_WORDS = WORDS.split(" ");
|
|
13370
13370
|
|
|
13371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13372
13372
|
var LATIN_TO_CYRILLIC = {
|
|
13373
13373
|
shch: "\u0449",
|
|
13374
13374
|
sch: "\u0449",
|
|
@@ -13576,7 +13576,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text5, stem, taken) => {
|
|
|
13576
13576
|
return found2;
|
|
13577
13577
|
}, "findUnknownNames");
|
|
13578
13578
|
|
|
13579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13580
13580
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13581
13581
|
"webpage",
|
|
13582
13582
|
"share",
|
|
@@ -13608,7 +13608,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
13608
13608
|
});
|
|
13609
13609
|
}, "matchDownloads");
|
|
13610
13610
|
|
|
13611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
13612
13612
|
var QUERY_VERSION = 1;
|
|
13613
13613
|
var QUERY_LIMITS2 = {
|
|
13614
13614
|
...QUERY_LIMITS,
|
|
@@ -13639,7 +13639,7 @@ function exhausted(budget) {
|
|
|
13639
13639
|
}
|
|
13640
13640
|
__name(exhausted, "exhausted");
|
|
13641
13641
|
|
|
13642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
13643
13643
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
13644
13644
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
13645
13645
|
kind: "char",
|
|
@@ -14039,7 +14039,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14039
14039
|
return out;
|
|
14040
14040
|
}, "foldRegex");
|
|
14041
14041
|
|
|
14042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14043
14043
|
var PRESET_VERSION = 1;
|
|
14044
14044
|
var PRESETS = {
|
|
14045
14045
|
password: {
|
|
@@ -14093,7 +14093,7 @@ var PRESETS = {
|
|
|
14093
14093
|
}
|
|
14094
14094
|
};
|
|
14095
14095
|
|
|
14096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14097
14097
|
var FIELD_VERSION = 2;
|
|
14098
14098
|
var UNITS = {
|
|
14099
14099
|
"": 1,
|
|
@@ -14553,12 +14553,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
14553
14553
|
return validateFields(parsed2.output);
|
|
14554
14554
|
}, "validateAst");
|
|
14555
14555
|
|
|
14556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
14557
14557
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
14558
14558
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
14559
14559
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
14560
14560
|
|
|
14561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
14562
14562
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
14563
14563
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
14564
14564
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -14582,7 +14582,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
14582
14582
|
};
|
|
14583
14583
|
}, "linkMatch");
|
|
14584
14584
|
|
|
14585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
14586
14586
|
var SETTING = "phoneCountries";
|
|
14587
14587
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
14588
14588
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -14613,7 +14613,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
14613
14613
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
14614
14614
|
}, "valueMatch");
|
|
14615
14615
|
|
|
14616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
14617
14617
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
14618
14618
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
14619
14619
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -14641,7 +14641,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
14641
14641
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
14642
14642
|
}, "vocabularySimilarity");
|
|
14643
14643
|
|
|
14644
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
14645
14645
|
import { createHash } from "node:crypto";
|
|
14646
14646
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
14647
14647
|
try {
|
|
@@ -14707,7 +14707,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
|
|
|
14707
14707
|
});
|
|
14708
14708
|
}, "guardTagCreation");
|
|
14709
14709
|
|
|
14710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
14711
14711
|
var invalid = /* @__PURE__ */ __name((message2) => {
|
|
14712
14712
|
throw new CliError("validation_error", message2);
|
|
14713
14713
|
}, "invalid");
|
|
@@ -14784,7 +14784,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
14784
14784
|
};
|
|
14785
14785
|
}, "createTagRedirectIndex");
|
|
14786
14786
|
|
|
14787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
14788
14788
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
14789
14789
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
14790
14790
|
if (!row2)
|
|
@@ -14812,7 +14812,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
14812
14812
|
return snapshot2;
|
|
14813
14813
|
}, "tagRedirectSnapshot");
|
|
14814
14814
|
|
|
14815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
14816
14816
|
import { createHash as createHash2 } from "node:crypto";
|
|
14817
14817
|
var TASK_KEY_PREFIXES = {
|
|
14818
14818
|
question: "Q",
|
|
@@ -14840,7 +14840,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14840
14840
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
14841
14841
|
}, "taskAccountOf");
|
|
14842
14842
|
|
|
14843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
14844
14844
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
14845
14845
|
var REFERABLE = {
|
|
14846
14846
|
note: { tombstone: true },
|
|
@@ -14998,7 +14998,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14998
14998
|
}, "taskIdOf");
|
|
14999
14999
|
var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
|
|
15000
15000
|
|
|
15001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15002
15002
|
var toMs = /* @__PURE__ */ __name((iso11) => {
|
|
15003
15003
|
if (iso11 === null || iso11 === void 0)
|
|
15004
15004
|
return null;
|
|
@@ -15012,7 +15012,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15012
15012
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15013
15013
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15014
15014
|
|
|
15015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15016
15016
|
var TAG_KINDS = ["tag", "topic"];
|
|
15017
15017
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15018
15018
|
var TAG_TYPE = {
|
|
@@ -15215,7 +15215,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15215
15215
|
return result;
|
|
15216
15216
|
}, "tagsOf");
|
|
15217
15217
|
|
|
15218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15219
15219
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15220
15220
|
var SPEECH = speech("att");
|
|
15221
15221
|
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");
|
|
@@ -15576,7 +15576,7 @@ var FIELD_COMPILERS = {
|
|
|
15576
15576
|
subject
|
|
15577
15577
|
};
|
|
15578
15578
|
|
|
15579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15580
15580
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15581
15581
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15582
15582
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -15592,7 +15592,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
15592
15592
|
};
|
|
15593
15593
|
}, "placeOf");
|
|
15594
15594
|
|
|
15595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
15596
15596
|
var DRAIN_ON_WRITE = 500;
|
|
15597
15597
|
var METHOD = "rules";
|
|
15598
15598
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -15755,7 +15755,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
15755
15755
|
return queued.length;
|
|
15756
15756
|
}, "drainMentions");
|
|
15757
15757
|
|
|
15758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
15759
15759
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
15760
15760
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
15761
15761
|
if (!exists2)
|
|
@@ -15763,7 +15763,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
15763
15763
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
15764
15764
|
}, "indexRow");
|
|
15765
15765
|
|
|
15766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
15767
15767
|
var INDEX = "message_stems";
|
|
15768
15768
|
var SETTING2 = "searchStemmers";
|
|
15769
15769
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -15885,7 +15885,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
15885
15885
|
};
|
|
15886
15886
|
}, "stemmerCache");
|
|
15887
15887
|
|
|
15888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
15889
15889
|
var SQLITE_BUSY = 5;
|
|
15890
15890
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
15891
15891
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -15980,7 +15980,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
15980
15980
|
}
|
|
15981
15981
|
}, "read");
|
|
15982
15982
|
|
|
15983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
15984
15984
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
15985
15985
|
coalesce(CASE k.chunkable_type
|
|
15986
15986
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16122,7 +16122,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16122
16122
|
}, "dropUnusedVectors");
|
|
16123
16123
|
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");
|
|
16124
16124
|
|
|
16125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16126
16126
|
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({
|
|
16127
16127
|
target: [accounts.provider, accounts.externalId],
|
|
16128
16128
|
set: {
|
|
@@ -16228,7 +16228,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16228
16228
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16229
16229
|
}, "dropOrphanPeople");
|
|
16230
16230
|
|
|
16231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
16232
16232
|
var FOLDED = [
|
|
16233
16233
|
{ table: "tasks", column: "title" },
|
|
16234
16234
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -16265,7 +16265,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
16265
16265
|
return filled2;
|
|
16266
16266
|
}, "fillFolded");
|
|
16267
16267
|
|
|
16268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16269
16269
|
import { createHash as createHash3 } from "node:crypto";
|
|
16270
16270
|
var CHUNK_CHARS = 1200;
|
|
16271
16271
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16370,7 +16370,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16370
16370
|
return chunks2;
|
|
16371
16371
|
}, "cutChunks");
|
|
16372
16372
|
|
|
16373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
16374
16374
|
var DAY = 864e5;
|
|
16375
16375
|
var CURRENCY = [
|
|
16376
16376
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -16487,7 +16487,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
|
|
|
16487
16487
|
return best?.day ?? null;
|
|
16488
16488
|
}, "dueDayOf");
|
|
16489
16489
|
|
|
16490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
16491
16491
|
var DAY2 = 864e5;
|
|
16492
16492
|
var STOP_WORDS = new Set([
|
|
16493
16493
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -16642,7 +16642,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
16642
16642
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
16643
16643
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
16644
16644
|
|
|
16645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
16646
16646
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
16647
16647
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
16648
16648
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -16913,7 +16913,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
16913
16913
|
};
|
|
16914
16914
|
}, "readiness");
|
|
16915
16915
|
|
|
16916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
16917
16917
|
var DOCUMENT_PICTURE = "document_picture";
|
|
16918
16918
|
var SCAN_PAGE2 = 5e3;
|
|
16919
16919
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -16976,7 +16976,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
16976
16976
|
}, "nearestPictures")
|
|
16977
16977
|
}), "documentPicturesOver");
|
|
16978
16978
|
|
|
16979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
16980
16980
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
16981
16981
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
16982
16982
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -17041,7 +17041,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
17041
17041
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
17042
17042
|
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");
|
|
17043
17043
|
|
|
17044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17045
17045
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17046
17046
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17047
17047
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17131,7 +17131,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17131
17131
|
});
|
|
17132
17132
|
}, "linkMeeting");
|
|
17133
17133
|
|
|
17134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17135
17135
|
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), ''))";
|
|
17136
17136
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17137
17137
|
"working-location",
|
|
@@ -17361,7 +17361,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17361
17361
|
return true;
|
|
17362
17362
|
}, "resetNoteIndex");
|
|
17363
17363
|
|
|
17364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
17365
17365
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
17366
17366
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
17367
17367
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -17380,7 +17380,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
17380
17380
|
}
|
|
17381
17381
|
}, "resolvePersonLinks");
|
|
17382
17382
|
|
|
17383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
17384
17384
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
17385
17385
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
17386
17386
|
find: orm.select({
|
|
@@ -17605,7 +17605,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
17605
17605
|
}, "meetingIdentityPk");
|
|
17606
17606
|
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");
|
|
17607
17607
|
|
|
17608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
17609
17609
|
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");
|
|
17610
17610
|
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");
|
|
17611
17611
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -17885,7 +17885,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
17885
17885
|
}
|
|
17886
17886
|
}, "replaceAutoTags");
|
|
17887
17887
|
|
|
17888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
17889
17889
|
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");
|
|
17890
17890
|
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;
|
|
17891
17891
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -17966,7 +17966,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
|
|
|
17966
17966
|
return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
|
|
17967
17967
|
}, "mailCore");
|
|
17968
17968
|
|
|
17969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
17970
17970
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
17971
17971
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
17972
17972
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18076,7 +18076,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
18076
18076
|
return emails3 + threads;
|
|
18077
18077
|
}, "drainEmailIndex");
|
|
18078
18078
|
|
|
18079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
18080
18080
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
18081
18081
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
18082
18082
|
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,
|
|
@@ -18122,7 +18122,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
18122
18122
|
leave.run(emailId, Number(box.id), emailId, Number(box.id));
|
|
18123
18123
|
}, "forgetLocations");
|
|
18124
18124
|
|
|
18125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18126
18126
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18127
18127
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18128
18128
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -18172,7 +18172,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
18172
18172
|
return threads.length;
|
|
18173
18173
|
}, "markEmailsRestored");
|
|
18174
18174
|
|
|
18175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
18176
18176
|
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");
|
|
18177
18177
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
18178
18178
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18239,7 +18239,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
18239
18239
|
}
|
|
18240
18240
|
}), "mailRulesOver");
|
|
18241
18241
|
|
|
18242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
18243
18243
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
18244
18244
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
18245
18245
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -18247,7 +18247,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
18247
18247
|
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);
|
|
18248
18248
|
}, "reviewLink");
|
|
18249
18249
|
|
|
18250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
18251
18251
|
function checkMeetingCancelled(signal) {
|
|
18252
18252
|
if (!signal?.aborted)
|
|
18253
18253
|
return;
|
|
@@ -18258,7 +18258,7 @@ function checkMeetingCancelled(signal) {
|
|
|
18258
18258
|
}
|
|
18259
18259
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
18262
18262
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
18263
18263
|
id: Number(row2.id),
|
|
18264
18264
|
accountId: Number(row2.account_id),
|
|
@@ -18308,7 +18308,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
18308
18308
|
createdAt: Number(row2.created_at)
|
|
18309
18309
|
}), "transcriptRowOf");
|
|
18310
18310
|
|
|
18311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
18312
18312
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
18313
18313
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
18314
18314
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -18475,7 +18475,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18475
18475
|
}
|
|
18476
18476
|
}), "meetingReadsOver");
|
|
18477
18477
|
|
|
18478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
18479
18479
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
18480
18480
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
18481
18481
|
const params = [input.accountId];
|
|
@@ -18518,7 +18518,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
18518
18518
|
return { clauses, params };
|
|
18519
18519
|
}, "meetingSelectionSql");
|
|
18520
18520
|
|
|
18521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
18522
18522
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
18523
18523
|
async meetingChatLines(input) {
|
|
18524
18524
|
checkMeetingCancelled(input.signal);
|
|
@@ -18546,7 +18546,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18546
18546
|
}
|
|
18547
18547
|
}), "meetingChatLinesOver");
|
|
18548
18548
|
|
|
18549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
18550
18550
|
var MESSAGE_FIELDS = {
|
|
18551
18551
|
pk: messages.id,
|
|
18552
18552
|
nativeId: messages.externalId,
|
|
@@ -18713,7 +18713,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
18713
18713
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
18714
18714
|
}), "chatActivity");
|
|
18715
18715
|
|
|
18716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
18717
18717
|
var HIT_FIELDS = {
|
|
18718
18718
|
...MESSAGE_FIELDS,
|
|
18719
18719
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -18812,7 +18812,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
18812
18812
|
};
|
|
18813
18813
|
}, "directReplies");
|
|
18814
18814
|
|
|
18815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
18816
18816
|
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");
|
|
18817
18817
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
18818
18818
|
const found2 = identityRow(context, ref3);
|
|
@@ -18943,7 +18943,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
18943
18943
|
}, "mentioning");
|
|
18944
18944
|
var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
18945
18945
|
|
|
18946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
18947
18947
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
18948
18948
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
18949
18949
|
}, "missing");
|
|
@@ -19065,7 +19065,7 @@ function meetingContextLinksOver(context) {
|
|
|
19065
19065
|
}
|
|
19066
19066
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
19067
19067
|
|
|
19068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19069
19069
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19070
19070
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19071
19071
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19094,7 +19094,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19094
19094
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19095
19095
|
}, "indexedText");
|
|
19096
19096
|
|
|
19097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19098
19098
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19099
19099
|
var meetingCurrentIndexRows = `
|
|
19100
19100
|
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
|
|
@@ -19125,7 +19125,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19125
19125
|
}, "invalidateMeetingStems");
|
|
19126
19126
|
var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19127
19127
|
|
|
19128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19129
19129
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19130
19130
|
return {
|
|
19131
19131
|
async indexSearch(original) {
|
|
@@ -19193,10 +19193,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
19193
19193
|
}
|
|
19194
19194
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
19195
19195
|
|
|
19196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19197
19197
|
import { createHash as createHash4 } from "node:crypto";
|
|
19198
19198
|
|
|
19199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
19200
19200
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
19201
19201
|
const padded = ` ${term} `;
|
|
19202
19202
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -19205,7 +19205,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
19205
19205
|
return [...pieces];
|
|
19206
19206
|
}, "trigrams");
|
|
19207
19207
|
|
|
19208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
19209
19209
|
var SHORTEST_CORRECTION = 3;
|
|
19210
19210
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
19211
19211
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -19252,7 +19252,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
19252
19252
|
return corrections;
|
|
19253
19253
|
}, "correctWords");
|
|
19254
19254
|
|
|
19255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
19256
19256
|
var SHORTEST_GARBLED = 4;
|
|
19257
19257
|
var MOST_WIDENED = 64;
|
|
19258
19258
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -19344,7 +19344,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
19344
19344
|
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));
|
|
19345
19345
|
}, "widenWords");
|
|
19346
19346
|
|
|
19347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
19348
19348
|
import { readFileSync } from "node:fs";
|
|
19349
19349
|
var loaded;
|
|
19350
19350
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -19403,7 +19403,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
19403
19403
|
return false;
|
|
19404
19404
|
}, "knownRussianWord");
|
|
19405
19405
|
|
|
19406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
19407
19407
|
var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
19408
19408
|
var MOST_WORDS = 128;
|
|
19409
19409
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -19630,7 +19630,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
|
|
|
19630
19630
|
return check3(tree);
|
|
19631
19631
|
}, "matchMeetingText");
|
|
19632
19632
|
|
|
19633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19634
19634
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
19635
19635
|
throw new CliError("validation_error", message2);
|
|
19636
19636
|
}, "fail");
|
|
@@ -19807,7 +19807,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
19807
19807
|
}
|
|
19808
19808
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
19809
19809
|
|
|
19810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
19811
19811
|
import { createHash as createHash5 } from "node:crypto";
|
|
19812
19812
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
19813
19813
|
if (value === void 0)
|
|
@@ -19897,7 +19897,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
19897
19897
|
}
|
|
19898
19898
|
}), "meetingParticipantSearchOver");
|
|
19899
19899
|
|
|
19900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
19901
19901
|
var preparationQueries = {
|
|
19902
19902
|
participants: {
|
|
19903
19903
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -19947,7 +19947,7 @@ var preparationQueries = {
|
|
|
19947
19947
|
}
|
|
19948
19948
|
};
|
|
19949
19949
|
|
|
19950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
19951
19951
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19952
19952
|
async preparationContext(original) {
|
|
19953
19953
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -19988,7 +19988,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19988
19988
|
}
|
|
19989
19989
|
}), "meetingPreparationContextOver");
|
|
19990
19990
|
|
|
19991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
19992
19992
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
19993
19993
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
19994
19994
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -20002,7 +20002,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
20002
20002
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
20003
20003
|
)`, "preparationSubjects");
|
|
20004
20004
|
|
|
20005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
20006
20006
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20007
20007
|
async preparationKnowledge(original) {
|
|
20008
20008
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20047,7 +20047,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
20047
20047
|
}
|
|
20048
20048
|
}), "meetingPreparationKnowledgeOver");
|
|
20049
20049
|
|
|
20050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
20051
20051
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20052
20052
|
async preparationNotes(original) {
|
|
20053
20053
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20100,7 +20100,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20100
20100
|
}
|
|
20101
20101
|
}), "meetingPreparationNotesOver");
|
|
20102
20102
|
|
|
20103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20104
20104
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20105
20105
|
async relatedHistory(original) {
|
|
20106
20106
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -20171,7 +20171,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20171
20171
|
}
|
|
20172
20172
|
}), "meetingRelatedHistoryOver");
|
|
20173
20173
|
|
|
20174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
20175
20175
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
20176
20176
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
20177
20177
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -20252,7 +20252,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20252
20252
|
}
|
|
20253
20253
|
}), "meetingReviewOver");
|
|
20254
20254
|
|
|
20255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
20256
20256
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
20257
20257
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
20258
20258
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -20306,7 +20306,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20306
20306
|
}
|
|
20307
20307
|
}), "meetingSeriesHistoryOver");
|
|
20308
20308
|
|
|
20309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
20310
20310
|
var MOST_ROWS = 5e5;
|
|
20311
20311
|
var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20312
20312
|
async meetingStats(input) {
|
|
@@ -20353,7 +20353,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20353
20353
|
}
|
|
20354
20354
|
}), "meetingStatsOver");
|
|
20355
20355
|
|
|
20356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
20357
20357
|
var CURSOR_KEY = "meetings";
|
|
20358
20358
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
20359
20359
|
id: Number(row2.id),
|
|
@@ -20905,7 +20905,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
20905
20905
|
};
|
|
20906
20906
|
}, "meetingStoreOver");
|
|
20907
20907
|
|
|
20908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
20909
20909
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
20910
20910
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
20911
20911
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -20931,7 +20931,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
20931
20931
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
20932
20932
|
}, "release");
|
|
20933
20933
|
|
|
20934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
20935
20935
|
var THREAD_COLUMNS = {
|
|
20936
20936
|
subject: {
|
|
20937
20937
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -20948,7 +20948,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
20948
20948
|
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);
|
|
20949
20949
|
}, "threadRows");
|
|
20950
20950
|
|
|
20951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
20952
20952
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
20953
20953
|
id: `email:${place.emailId}`,
|
|
20954
20954
|
chatId: place.threadExternalId,
|
|
@@ -21503,7 +21503,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
21503
21503
|
}
|
|
21504
21504
|
}), "mailStoreOver");
|
|
21505
21505
|
|
|
21506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
21507
21507
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21508
21508
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
21509
21509
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -21593,7 +21593,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
21593
21593
|
}, "knownWord");
|
|
21594
21594
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
21595
21595
|
|
|
21596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
21597
21597
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
21598
21598
|
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");
|
|
21599
21599
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -21679,7 +21679,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
21679
21679
|
return found2;
|
|
21680
21680
|
}, "spokenTranscripts");
|
|
21681
21681
|
|
|
21682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
21683
21683
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
21684
21684
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
21685
21685
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -21726,7 +21726,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
21726
21726
|
});
|
|
21727
21727
|
}, "placeHits");
|
|
21728
21728
|
|
|
21729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
21730
21730
|
var MESSAGES2 = {
|
|
21731
21731
|
rows: "messages",
|
|
21732
21732
|
threads: "chats",
|
|
@@ -22200,7 +22200,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
22200
22200
|
};
|
|
22201
22201
|
}, "runQuery");
|
|
22202
22202
|
|
|
22203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
22204
22204
|
function invalidMetadata() {
|
|
22205
22205
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
22206
22206
|
}
|
|
@@ -22302,7 +22302,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
22302
22302
|
};
|
|
22303
22303
|
}), "counterTargets");
|
|
22304
22304
|
|
|
22305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
22306
22306
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
22307
22307
|
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,
|
|
22308
22308
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -22421,7 +22421,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
22421
22421
|
}));
|
|
22422
22422
|
}, "attachmentViews");
|
|
22423
22423
|
|
|
22424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
22425
22425
|
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");
|
|
22426
22426
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
|
|
22427
22427
|
const { orm, database, now: now2 } = context;
|
|
@@ -22459,7 +22459,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
22459
22459
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
22460
22460
|
}, "intoVoiceAttachment");
|
|
22461
22461
|
|
|
22462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
22463
22463
|
var FIELDS = [
|
|
22464
22464
|
"threadExternalId",
|
|
22465
22465
|
"senderIdentityId",
|
|
@@ -22776,7 +22776,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
22776
22776
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
22777
22777
|
}, "writeDerivedReactions");
|
|
22778
22778
|
|
|
22779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
22780
22780
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
22781
22781
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
22782
22782
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -22797,7 +22797,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
22797
22797
|
};
|
|
22798
22798
|
}, "keysOver");
|
|
22799
22799
|
|
|
22800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
22801
22801
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
22802
22802
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
22803
22803
|
if (!row2)
|
|
@@ -22832,7 +22832,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
22832
22832
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
22833
22833
|
}, "saveProfile");
|
|
22834
22834
|
|
|
22835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
22836
22836
|
var BOT_KINDS = ["agent", "script", "integration"];
|
|
22837
22837
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
22838
22838
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -22868,7 +22868,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
22868
22868
|
return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
|
|
22869
22869
|
}, "originOfActor");
|
|
22870
22870
|
|
|
22871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
22872
22872
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
22873
22873
|
const owner = ownerPerson(context.database).id;
|
|
22874
22874
|
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);
|
|
@@ -22889,7 +22889,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
22889
22889
|
return personOf(context, ref3);
|
|
22890
22890
|
}, "linkToOwner");
|
|
22891
22891
|
|
|
22892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
22893
22893
|
var PROVIDERS_SETTING = "providers";
|
|
22894
22894
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
22895
22895
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -22924,7 +22924,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
22924
22924
|
});
|
|
22925
22925
|
}, "registerProvider");
|
|
22926
22926
|
|
|
22927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
22928
22928
|
var DAY3 = 864e5;
|
|
22929
22929
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
22930
22930
|
var TEXT_LIMIT = 20;
|
|
@@ -23123,7 +23123,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
23123
23123
|
};
|
|
23124
23124
|
}, "taskSimilarityOver");
|
|
23125
23125
|
|
|
23126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
23127
23127
|
var SETTING3 = "taskCategories";
|
|
23128
23128
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
23129
23129
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -23142,7 +23142,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
23142
23142
|
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);
|
|
23143
23143
|
}, "saveTaskCategories");
|
|
23144
23144
|
|
|
23145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
23146
23146
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
23147
23147
|
var ALLOWED = "taskAgentClose";
|
|
23148
23148
|
var MIN = "taskAgentCloseMin";
|
|
@@ -23198,7 +23198,7 @@ var SUGGESTION_COLUMNS = [
|
|
|
23198
23198
|
];
|
|
23199
23199
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
23200
23200
|
|
|
23201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
23202
23202
|
var EXCERPT_CHARS = 280;
|
|
23203
23203
|
var excerptOf = /* @__PURE__ */ __name((text5) => {
|
|
23204
23204
|
if (text5 == null)
|
|
@@ -23263,7 +23263,7 @@ var sourcesOfReferences = /* @__PURE__ */ __name((database, references) => [...n
|
|
|
23263
23263
|
};
|
|
23264
23264
|
}), "sourcesOfReferences");
|
|
23265
23265
|
|
|
23266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
23267
23267
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
23268
23268
|
var MAX_TEXT_CHARS = 2e6;
|
|
23269
23269
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -23289,7 +23289,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
23289
23289
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
23290
23290
|
}, "pdfPreviewLimits");
|
|
23291
23291
|
|
|
23292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
23293
23293
|
import { randomBytes } from "node:crypto";
|
|
23294
23294
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23295
23295
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -23302,7 +23302,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
23302
23302
|
return time3 + random;
|
|
23303
23303
|
}, "ulid");
|
|
23304
23304
|
|
|
23305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
23306
23306
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
23307
23307
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
23308
23308
|
if (!meta && !sections?.length)
|
|
@@ -23323,7 +23323,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
23323
23323
|
return typeof language === "string" && language !== "" ? language : null;
|
|
23324
23324
|
}, "languageOf");
|
|
23325
23325
|
|
|
23326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
23327
23327
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
23328
23328
|
var objectOf = /* @__PURE__ */ __name((value) => {
|
|
23329
23329
|
if (isObject(value))
|
|
@@ -23566,7 +23566,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
23566
23566
|
};
|
|
23567
23567
|
}, "filesStoreOver");
|
|
23568
23568
|
|
|
23569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
23570
23570
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
23571
23571
|
entity: "document",
|
|
23572
23572
|
backend: "sql",
|
|
@@ -23612,7 +23612,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
23612
23612
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
23613
23613
|
}, "importedDocumentWhere");
|
|
23614
23614
|
|
|
23615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
23616
23616
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
23617
23617
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23618
23618
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -24122,7 +24122,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
24122
24122
|
};
|
|
24123
24123
|
}, "notesStoreOver");
|
|
24124
24124
|
|
|
24125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
24126
24126
|
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";
|
|
24127
24127
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
24128
24128
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -24318,7 +24318,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
24318
24318
|
};
|
|
24319
24319
|
}, "memoriesStoreOver");
|
|
24320
24320
|
|
|
24321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
24322
24322
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
24323
24323
|
var KEY = "taskFirstPassPerChat";
|
|
24324
24324
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -24338,7 +24338,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
24338
24338
|
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);
|
|
24339
24339
|
}, "saveFirstPassPerChat");
|
|
24340
24340
|
|
|
24341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
24342
24342
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
24343
24343
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
24344
24344
|
name,
|
|
@@ -24512,7 +24512,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
24512
24512
|
return root === void 0 ? void 0 : { ...query, root };
|
|
24513
24513
|
}, "withoutField");
|
|
24514
24514
|
|
|
24515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
24516
24516
|
var TASK_RELATION_KINDS = [
|
|
24517
24517
|
"blocked-by",
|
|
24518
24518
|
"follow-up-of",
|
|
@@ -24642,7 +24642,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
24642
24642
|
};
|
|
24643
24643
|
}, "taskRelationsStoreOver");
|
|
24644
24644
|
|
|
24645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
24646
24646
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
24647
24647
|
var TASK_EVENT_KINDS = [
|
|
24648
24648
|
"created",
|
|
@@ -25103,7 +25103,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
25103
25103
|
};
|
|
25104
25104
|
}, "workTasksOver");
|
|
25105
25105
|
|
|
25106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
25107
25107
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
25108
25108
|
const { database, now: now2 } = context;
|
|
25109
25109
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -25152,7 +25152,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
25152
25152
|
};
|
|
25153
25153
|
}, "taskCloseOver");
|
|
25154
25154
|
|
|
25155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
25156
25156
|
var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
|
|
25157
25157
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
25158
25158
|
const { database, now: now2 } = context;
|
|
@@ -25371,7 +25371,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
25371
25371
|
};
|
|
25372
25372
|
}, "taskPairsOver");
|
|
25373
25373
|
|
|
25374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
25375
25375
|
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";
|
|
25376
25376
|
var taskStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25377
25377
|
const { database, now: now2 } = context;
|
|
@@ -25576,7 +25576,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
25576
25576
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
25577
25577
|
}, "oneOf");
|
|
25578
25578
|
|
|
25579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
25580
25580
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
25581
25581
|
const { database } = context;
|
|
25582
25582
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -25621,7 +25621,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
25621
25621
|
};
|
|
25622
25622
|
}, "accountsStoreOver");
|
|
25623
25623
|
|
|
25624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
25625
25625
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
25626
25626
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
25627
25627
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -25645,7 +25645,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
25645
25645
|
})), "keepDownloads");
|
|
25646
25646
|
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");
|
|
25647
25647
|
|
|
25648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
25649
25649
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
25650
25650
|
const { database } = context;
|
|
25651
25651
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25702,7 +25702,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25702
25702
|
}, "keepAttachmentText")
|
|
25703
25703
|
}), "attachmentsStoreOver");
|
|
25704
25704
|
|
|
25705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
25706
25706
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
25707
25707
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
25708
25708
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -25882,7 +25882,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
25882
25882
|
return done;
|
|
25883
25883
|
}, "rekeyChats");
|
|
25884
25884
|
|
|
25885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
25886
25886
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
25887
25887
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
25888
25888
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -25914,7 +25914,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
|
|
|
25914
25914
|
});
|
|
25915
25915
|
}, "chatCompleteness");
|
|
25916
25916
|
|
|
25917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
25918
25918
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25919
25919
|
const { database } = context;
|
|
25920
25920
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -26021,7 +26021,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
26021
26021
|
};
|
|
26022
26022
|
}, "chatsStoreOver");
|
|
26023
26023
|
|
|
26024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
26025
26025
|
import { createHash as createHash6 } from "node:crypto";
|
|
26026
26026
|
var BATCH_CONTEXT = 50;
|
|
26027
26027
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -26159,7 +26159,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
26159
26159
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
26160
26160
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
26161
26161
|
|
|
26162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
26163
26163
|
import { setTimeout } from "node:timers/promises";
|
|
26164
26164
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
26165
26165
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -26471,7 +26471,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
26471
26471
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
26472
26472
|
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");
|
|
26473
26473
|
|
|
26474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
26475
26475
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
26476
26476
|
const { database } = context;
|
|
26477
26477
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -26578,7 +26578,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
26578
26578
|
};
|
|
26579
26579
|
}, "conversationsStoreOver");
|
|
26580
26580
|
|
|
26581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
26582
26582
|
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";
|
|
26583
26583
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
26584
26584
|
const { database } = context;
|
|
@@ -26603,7 +26603,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26603
26603
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
26604
26604
|
}), "countersStoreOver");
|
|
26605
26605
|
|
|
26606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
26607
26607
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
26608
26608
|
var MENTION_QUERY = defineQuery({
|
|
26609
26609
|
entity: "mention",
|
|
@@ -26819,7 +26819,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
26819
26819
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
26820
26820
|
}, "listPlaces");
|
|
26821
26821
|
|
|
26822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
26823
26823
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
26824
26824
|
const { database } = context;
|
|
26825
26825
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -26854,7 +26854,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26854
26854
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
26855
26855
|
}), "mentionsStoreOver");
|
|
26856
26856
|
|
|
26857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
26858
26858
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
26859
26859
|
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");
|
|
26860
26860
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -26869,7 +26869,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
26869
26869
|
}));
|
|
26870
26870
|
}, "documentLinkMessages");
|
|
26871
26871
|
|
|
26872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
26873
26873
|
var stemmerFor = stemmerCache();
|
|
26874
26874
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
26875
26875
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -26913,7 +26913,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
26913
26913
|
});
|
|
26914
26914
|
}, "laterSharingRare");
|
|
26915
26915
|
|
|
26916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
26917
26917
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
26918
26918
|
const { database } = context;
|
|
26919
26919
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -27048,7 +27048,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
27048
27048
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
27049
27049
|
}), "messagesStoreOver");
|
|
27050
27050
|
|
|
27051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
27052
27052
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
27053
27053
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
27054
27054
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -27105,7 +27105,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
27105
27105
|
});
|
|
27106
27106
|
}, "personPreparation");
|
|
27107
27107
|
|
|
27108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
27109
27109
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
27110
27110
|
const id2 = Number(uid);
|
|
27111
27111
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -27113,7 +27113,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
27113
27113
|
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)));
|
|
27114
27114
|
}, "personSeenInAccounts");
|
|
27115
27115
|
|
|
27116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
27117
27117
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
27118
27118
|
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);
|
|
27119
27119
|
if (!row2)
|
|
@@ -27179,7 +27179,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
27179
27179
|
return { id: id2, personId, removed: true };
|
|
27180
27180
|
}, "removeNote");
|
|
27181
27181
|
|
|
27182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
27183
27183
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
27184
27184
|
const { database } = context;
|
|
27185
27185
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -27254,13 +27254,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
27254
27254
|
};
|
|
27255
27255
|
}, "peopleStoreOver");
|
|
27256
27256
|
|
|
27257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
27258
27258
|
import { createHash as createHash8 } from "node:crypto";
|
|
27259
27259
|
|
|
27260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
27261
27261
|
import { createHash as createHash7 } from "node:crypto";
|
|
27262
27262
|
|
|
27263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
27264
27264
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
27265
27265
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
27266
27266
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -27482,7 +27482,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
27482
27482
|
};
|
|
27483
27483
|
}, "rankReplyGraph");
|
|
27484
27484
|
|
|
27485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
27486
27486
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
27487
27487
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
27488
27488
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -27656,7 +27656,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
27656
27656
|
return { items, evidence, summary, graph: graph.quality };
|
|
27657
27657
|
}, "calculateAdminStatistics");
|
|
27658
27658
|
|
|
27659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
27660
27660
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
27661
27661
|
const dates = [];
|
|
27662
27662
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -27678,7 +27678,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
27678
27678
|
return dates[0].node.resolution.date;
|
|
27679
27679
|
}, "rankingContextRange");
|
|
27680
27680
|
|
|
27681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
27682
27682
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
27683
27683
|
let counts;
|
|
27684
27684
|
try {
|
|
@@ -27973,7 +27973,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
27973
27973
|
});
|
|
27974
27974
|
}, "rankQuery");
|
|
27975
27975
|
|
|
27976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
27977
27977
|
function fail4(message2, reason = "query.too-large") {
|
|
27978
27978
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
27979
27979
|
}
|
|
@@ -28150,7 +28150,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
28150
28150
|
return result;
|
|
28151
28151
|
}), "adminStatisticsQuery");
|
|
28152
28152
|
|
|
28153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
28154
28154
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
28155
28155
|
if (!execution.accounts.length)
|
|
28156
28156
|
return { conversations: [], chats: [] };
|
|
@@ -28168,7 +28168,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
28168
28168
|
return { conversations: conversations2, chats: chats2 };
|
|
28169
28169
|
}, "conversationEligibility");
|
|
28170
28170
|
|
|
28171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
28172
28172
|
import { createHash as createHash9 } from "node:crypto";
|
|
28173
28173
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
28174
28174
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -28318,7 +28318,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
28318
28318
|
return result;
|
|
28319
28319
|
}, "rankingEvidence");
|
|
28320
28320
|
|
|
28321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
28322
28322
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
28323
28323
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
28324
28324
|
if (execution.corpus === "mail")
|
|
@@ -28337,7 +28337,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
28337
28337
|
};
|
|
28338
28338
|
}, "queriesStoreOver");
|
|
28339
28339
|
|
|
28340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
28341
28341
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
28342
28342
|
const { database, now: now2 } = context;
|
|
28343
28343
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -28376,10 +28376,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
28376
28376
|
}));
|
|
28377
28377
|
}, "chatEventsOf");
|
|
28378
28378
|
|
|
28379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
28380
28380
|
import { createHash as createHash10 } from "node:crypto";
|
|
28381
28381
|
|
|
28382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
28383
28383
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
28384
28384
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
28385
28385
|
timeZone: zone,
|
|
@@ -28394,7 +28394,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
|
28394
28394
|
};
|
|
28395
28395
|
}, "calendarKey");
|
|
28396
28396
|
|
|
28397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
28398
28398
|
var RETENTION_TOLERANCE = 864e5;
|
|
28399
28399
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
28400
28400
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -28448,7 +28448,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
28448
28448
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
28449
28449
|
}, "retentionCohorts");
|
|
28450
28450
|
|
|
28451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
28452
28452
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
28453
28453
|
var week = /* @__PURE__ */ __name((day) => {
|
|
28454
28454
|
const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
@@ -28584,7 +28584,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
28584
28584
|
};
|
|
28585
28585
|
}, "retentionQuery");
|
|
28586
28586
|
|
|
28587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
28588
28588
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
28589
28589
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
28590
28590
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -28715,7 +28715,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
28715
28715
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
28716
28716
|
})), "trackedChats");
|
|
28717
28717
|
|
|
28718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
28719
28719
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28720
28720
|
const { database } = context;
|
|
28721
28721
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -28771,7 +28771,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28771
28771
|
};
|
|
28772
28772
|
}, "rosterStoreOver");
|
|
28773
28773
|
|
|
28774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
28775
28775
|
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");
|
|
28776
28776
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
28777
28777
|
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 ?`);
|
|
@@ -28795,7 +28795,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
28795
28795
|
}
|
|
28796
28796
|
}, "backfillNormalized");
|
|
28797
28797
|
|
|
28798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
28799
28799
|
var INDEX2 = "message_words";
|
|
28800
28800
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
28801
28801
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -28922,7 +28922,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
28922
28922
|
});
|
|
28923
28923
|
}, "resetSearchIndex");
|
|
28924
28924
|
|
|
28925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
28926
28926
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
28927
28927
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
28928
28928
|
const before2 = stemsState(database);
|
|
@@ -29017,7 +29017,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
29017
29017
|
return resetStems(database, { now: now2 });
|
|
29018
29018
|
}, "followDefaultStemmers");
|
|
29019
29019
|
|
|
29020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
29021
29021
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
29022
29022
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
29023
29023
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -29039,7 +29039,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
29039
29039
|
});
|
|
29040
29040
|
}, "termCandidates");
|
|
29041
29041
|
|
|
29042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
29043
29043
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
29044
29044
|
const { database } = context;
|
|
29045
29045
|
const stemmerFor2 = stemmerCache();
|
|
@@ -29061,7 +29061,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29061
29061
|
};
|
|
29062
29062
|
}, "searchIndexStoreOver");
|
|
29063
29063
|
|
|
29064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
29065
29065
|
var HISTORY_KEPT = 1e3;
|
|
29066
29066
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
29067
29067
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -29130,7 +29130,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
29130
29130
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
29131
29131
|
}, "clearHistory");
|
|
29132
29132
|
|
|
29133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
29134
29134
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
29135
29135
|
const { database } = context;
|
|
29136
29136
|
return {
|
|
@@ -29154,7 +29154,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29154
29154
|
};
|
|
29155
29155
|
}, "searchesStoreOver");
|
|
29156
29156
|
|
|
29157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
29158
29158
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
29159
29159
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
29160
29160
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -29197,7 +29197,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
29197
29197
|
};
|
|
29198
29198
|
}, "agentActionsStoreOver");
|
|
29199
29199
|
|
|
29200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
29201
29201
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
29202
29202
|
}) => {
|
|
29203
29203
|
const { database, now: now2 } = context;
|
|
@@ -29256,7 +29256,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
29256
29256
|
};
|
|
29257
29257
|
}, "botUpdateStoreOver");
|
|
29258
29258
|
|
|
29259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
29260
29260
|
var DAY4 = 864e5;
|
|
29261
29261
|
var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
29262
29262
|
const clauses = ["e.deleted_at IS NULL"];
|
|
@@ -29341,7 +29341,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
29341
29341
|
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);
|
|
29342
29342
|
}, "listEvents");
|
|
29343
29343
|
|
|
29344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
29345
29345
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
29346
29346
|
id: Number(row2.id),
|
|
29347
29347
|
accountId: Number(row2.account_id),
|
|
@@ -29921,7 +29921,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29921
29921
|
};
|
|
29922
29922
|
}, "eventStoreOver");
|
|
29923
29923
|
|
|
29924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
29925
29925
|
var CATALOG_QUERY = defineQuery({
|
|
29926
29926
|
entity: "document",
|
|
29927
29927
|
backend: "sql",
|
|
@@ -30163,7 +30163,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
30163
30163
|
};
|
|
30164
30164
|
}, "catalogStoreOver");
|
|
30165
30165
|
|
|
30166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
30167
30167
|
import { createHash as createHash11 } from "node:crypto";
|
|
30168
30168
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
30169
30169
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -30261,7 +30261,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
30261
30261
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
30262
30262
|
}, "contextEvidenceRequest");
|
|
30263
30263
|
|
|
30264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
30265
30265
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
30266
30266
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
30267
30267
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -30274,7 +30274,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
30274
30274
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
30275
30275
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
30276
30276
|
|
|
30277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
30278
30278
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
30279
30279
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
30280
30280
|
signal?.throwIfAborted();
|
|
@@ -30373,7 +30373,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
30373
30373
|
});
|
|
30374
30374
|
}, "readMeetingContextEvidence");
|
|
30375
30375
|
|
|
30376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
30377
30377
|
var corpora = {
|
|
30378
30378
|
message: {
|
|
30379
30379
|
table: "messages",
|
|
@@ -30602,7 +30602,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30602
30602
|
}
|
|
30603
30603
|
}), "contextRecordsOver");
|
|
30604
30604
|
|
|
30605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
30606
30606
|
var NOTE_FIELDS = [
|
|
30607
30607
|
"text",
|
|
30608
30608
|
"exact",
|
|
@@ -31032,7 +31032,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
31032
31032
|
};
|
|
31033
31033
|
}, "noteSearchOver");
|
|
31034
31034
|
|
|
31035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
31036
31036
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
31037
31037
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
31038
31038
|
var EVENT_CORPUS = {
|
|
@@ -31164,7 +31164,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
31164
31164
|
};
|
|
31165
31165
|
}, "eventSearchOver");
|
|
31166
31166
|
|
|
31167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
31168
31168
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
31169
31169
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
31170
31170
|
if (/^document:[1-9]\d*$/.test(raw))
|
|
@@ -31177,7 +31177,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
|
|
|
31177
31177
|
}, "reference");
|
|
31178
31178
|
var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
|
|
31179
31179
|
|
|
31180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
31181
31181
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
31182
31182
|
try {
|
|
31183
31183
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -31189,7 +31189,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
31189
31189
|
}
|
|
31190
31190
|
}, "calendarMoment");
|
|
31191
31191
|
|
|
31192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
31193
31193
|
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";
|
|
31194
31194
|
var iso8 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
31195
31195
|
var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -31338,7 +31338,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31338
31338
|
};
|
|
31339
31339
|
}, "factsStoreOver");
|
|
31340
31340
|
|
|
31341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
31342
31342
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
31343
31343
|
throw new CliError("validation_error", message2);
|
|
31344
31344
|
}, "invalid");
|
|
@@ -31428,7 +31428,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
31428
31428
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes };
|
|
31429
31429
|
}, "findingsCoreOver");
|
|
31430
31430
|
|
|
31431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
31432
31432
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
31433
31433
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
31434
31434
|
var iso9 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -31575,7 +31575,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31575
31575
|
};
|
|
31576
31576
|
}, "proposedActionsStoreOver");
|
|
31577
31577
|
|
|
31578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
31579
31579
|
var stale = /* @__PURE__ */ __name(() => {
|
|
31580
31580
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
31581
31581
|
reason: "evidence-findings.stale"
|
|
@@ -31742,7 +31742,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31742
31742
|
};
|
|
31743
31743
|
}, "evidenceFindingsStoreOver");
|
|
31744
31744
|
|
|
31745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
31746
31746
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
31747
31747
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
31748
31748
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -31795,7 +31795,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
31795
31795
|
}, "forPerson")
|
|
31796
31796
|
}), "involvementStoreOver");
|
|
31797
31797
|
|
|
31798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
31799
31799
|
import { createHash as createHash12 } from "node:crypto";
|
|
31800
31800
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
31801
31801
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -31881,16 +31881,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
31881
31881
|
};
|
|
31882
31882
|
}, "meetingProjectsStoreOver");
|
|
31883
31883
|
|
|
31884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31885
31885
|
import { createHash as createHash15 } from "node:crypto";
|
|
31886
31886
|
|
|
31887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31888
31888
|
import { createHash as createHash14 } from "node:crypto";
|
|
31889
31889
|
|
|
31890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31891
31891
|
import { createHash as createHash13 } from "node:crypto";
|
|
31892
31892
|
|
|
31893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
31894
31894
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
31895
31895
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
31896
31896
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -31941,7 +31941,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
31941
31941
|
return input;
|
|
31942
31942
|
}, "consolidationApplyInput");
|
|
31943
31943
|
|
|
31944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31945
31945
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
31946
31946
|
id: String(row2.id),
|
|
31947
31947
|
sourceId: String(row2.source_id),
|
|
@@ -32016,7 +32016,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
32016
32016
|
}, { beforeCommit: check3 });
|
|
32017
32017
|
}, "applyTagConsolidation");
|
|
32018
32018
|
|
|
32019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
32020
32020
|
var selections = [
|
|
32021
32021
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
32022
32022
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -32160,7 +32160,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
32160
32160
|
};
|
|
32161
32161
|
}, "previewRows");
|
|
32162
32162
|
|
|
32163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
32164
32164
|
var kinds = ["project", "tag", "topic"];
|
|
32165
32165
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
32166
32166
|
if (signal?.aborted)
|
|
@@ -32424,7 +32424,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32424
32424
|
};
|
|
32425
32425
|
}, "vocabularyStoreOver");
|
|
32426
32426
|
|
|
32427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
32428
32428
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
32429
32429
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
32430
32430
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -32946,7 +32946,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
32946
32946
|
return key2.padEnd(3, "X");
|
|
32947
32947
|
}, "projectKey");
|
|
32948
32948
|
|
|
32949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
32950
32950
|
var DAY5 = 864e5;
|
|
32951
32951
|
var SETTING4 = "logs_pruned_at";
|
|
32952
32952
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -32973,7 +32973,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
32973
32973
|
};
|
|
32974
32974
|
}, "logPruner");
|
|
32975
32975
|
|
|
32976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
32977
32977
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
32978
32978
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
32979
32979
|
reason: "meeting-findings.stale"
|
|
@@ -33142,7 +33142,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33142
33142
|
};
|
|
33143
33143
|
}, "meetingFindingsStoreOver");
|
|
33144
33144
|
|
|
33145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
33146
33146
|
var RANK_BATCH = 512;
|
|
33147
33147
|
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";
|
|
33148
33148
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -33413,7 +33413,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
33413
33413
|
}
|
|
33414
33414
|
}), "meetingVectorsOver");
|
|
33415
33415
|
|
|
33416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
33417
33417
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
33418
33418
|
var TEXTS = {
|
|
33419
33419
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -33514,11 +33514,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33514
33514
|
};
|
|
33515
33515
|
}, "sourceMentionStoreOver");
|
|
33516
33516
|
|
|
33517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
33518
33518
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
33519
33519
|
import { dirname } from "node:path";
|
|
33520
33520
|
|
|
33521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
33522
33522
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
33523
33523
|
var CLIENTS_SETTING = "clients";
|
|
33524
33524
|
var coreVersion = (() => {
|
|
@@ -33576,7 +33576,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
33576
33576
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
33577
33577
|
}, "refusalAdvice");
|
|
33578
33578
|
|
|
33579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
33580
33580
|
var GENERATED = [
|
|
33581
33581
|
{
|
|
33582
33582
|
"name": "20261010184427_initial",
|
|
@@ -34472,7 +34472,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
34472
34472
|
}
|
|
34473
34473
|
];
|
|
34474
34474
|
|
|
34475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
34476
34476
|
var MANIFEST = [
|
|
34477
34477
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
34478
34478
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -34553,7 +34553,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
34553
34553
|
return migrations;
|
|
34554
34554
|
}, "generatedMigrations");
|
|
34555
34555
|
|
|
34556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
34557
34557
|
var MIGRATIONS = generatedMigrations();
|
|
34558
34558
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
34559
34559
|
version INTEGER PRIMARY KEY,
|
|
@@ -34606,7 +34606,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
34606
34606
|
}
|
|
34607
34607
|
}, "migrate");
|
|
34608
34608
|
|
|
34609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
34610
34610
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
34611
34611
|
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 ?");
|
|
34612
34612
|
if (pending.get(0, 1) === void 0)
|
|
@@ -34628,7 +34628,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
34628
34628
|
}
|
|
34629
34629
|
}, "fillJoinKeys");
|
|
34630
34630
|
|
|
34631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
34632
34632
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
34633
34633
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
34634
34634
|
try {
|
|
@@ -34641,8 +34641,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
34641
34641
|
}, "openSqlite");
|
|
34642
34642
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
34643
34643
|
quietSqliteWarning();
|
|
34644
|
-
const { drizzle } = await import("./node-
|
|
34645
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
34644
|
+
const { drizzle } = await import("./node-OXT7WE2T.js");
|
|
34645
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-X2PSEHA4.js");
|
|
34646
34646
|
const client = await nodeClient(path, { readOnly });
|
|
34647
34647
|
try {
|
|
34648
34648
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -34652,8 +34652,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
34652
34652
|
}
|
|
34653
34653
|
}, "openUnderNode");
|
|
34654
34654
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
34655
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
34656
|
-
const { drizzle } = await import("./bun-
|
|
34655
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-5S7TQ4SG.js");
|
|
34656
|
+
const { drizzle } = await import("./bun-WAX4QHW5.js");
|
|
34657
34657
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
34658
34658
|
try {
|
|
34659
34659
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -34663,7 +34663,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
34663
34663
|
}
|
|
34664
34664
|
}, "openUnderBun");
|
|
34665
34665
|
|
|
34666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
34667
34667
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
34668
34668
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
34669
34669
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -34678,7 +34678,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
34678
34678
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
34679
34679
|
}, "assertReadCompatible");
|
|
34680
34680
|
|
|
34681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
34682
34682
|
var BACKFILL_ON_OPEN = 5e3;
|
|
34683
34683
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
34684
34684
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -34734,13 +34734,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
34734
34734
|
}
|
|
34735
34735
|
}, "openStoreContext");
|
|
34736
34736
|
|
|
34737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
34738
34738
|
import { createHash as createHash17 } from "node:crypto";
|
|
34739
34739
|
|
|
34740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
34741
34741
|
import { createHash as createHash16 } from "node:crypto";
|
|
34742
34742
|
|
|
34743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
34744
34744
|
var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
34745
34745
|
var ref = text3(2048);
|
|
34746
34746
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -34806,7 +34806,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
34806
34806
|
}))
|
|
34807
34807
|
});
|
|
34808
34808
|
|
|
34809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
34810
34810
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
34811
34811
|
var invalid5 = /* @__PURE__ */ __name((field4) => {
|
|
34812
34812
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -34939,7 +34939,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
34939
34939
|
return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
|
|
34940
34940
|
}, "projectAnnotationsFingerprint");
|
|
34941
34941
|
|
|
34942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
34943
34943
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
34944
34944
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
34945
34945
|
var targetSchema = strictObject({
|
|
@@ -35046,7 +35046,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
35046
35046
|
}, "planBoundProjectAnnotations");
|
|
35047
35047
|
var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
|
|
35048
35048
|
|
|
35049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
35050
35050
|
import { createHash as createHash18 } from "node:crypto";
|
|
35051
35051
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
35052
35052
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -35140,7 +35140,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
35140
35140
|
})).digest("hex");
|
|
35141
35141
|
}, "projectAnnotationSnapshotFingerprint");
|
|
35142
35142
|
|
|
35143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
35144
35144
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
35145
35145
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
35146
35146
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -35157,7 +35157,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
35157
35157
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
35158
35158
|
}, "projectAnnotationRequest");
|
|
35159
35159
|
|
|
35160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
35161
35161
|
var SnapshotBudget = class {
|
|
35162
35162
|
static {
|
|
35163
35163
|
__name(this, "SnapshotBudget");
|
|
@@ -35183,13 +35183,13 @@ var SnapshotBudget = class {
|
|
|
35183
35183
|
}
|
|
35184
35184
|
};
|
|
35185
35185
|
|
|
35186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
35187
35187
|
import { createHash as createHash20 } from "node:crypto";
|
|
35188
35188
|
|
|
35189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
35190
35190
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
35191
35191
|
|
|
35192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
35193
35193
|
import { createHash as createHash19 } from "node:crypto";
|
|
35194
35194
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
35195
35195
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -35332,7 +35332,7 @@ var ProjectSnapshotSources = class {
|
|
|
35332
35332
|
}
|
|
35333
35333
|
};
|
|
35334
35334
|
|
|
35335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
35336
35336
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
35337
35337
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
35338
35338
|
}, "unsupported");
|
|
@@ -35503,7 +35503,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
35503
35503
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
35504
35504
|
}), "projectAnnotationSnapshot");
|
|
35505
35505
|
|
|
35506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
35507
35507
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
35508
35508
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
35509
35509
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -35565,7 +35565,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
35565
35565
|
};
|
|
35566
35566
|
}), "previewAnnotationSnapshot");
|
|
35567
35567
|
|
|
35568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
35569
35569
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
35570
35570
|
const mappings = { ...bindings };
|
|
35571
35571
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -35607,7 +35607,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
35607
35607
|
return mappings;
|
|
35608
35608
|
}, "restoreAnnotationRecords");
|
|
35609
35609
|
|
|
35610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
35611
35611
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
35612
35612
|
async preview(request) {
|
|
35613
35613
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -35637,7 +35637,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
35637
35637
|
}
|
|
35638
35638
|
}), "projectAnnotationStoreOver");
|
|
35639
35639
|
|
|
35640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
35641
35641
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
35642
35642
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
35643
35643
|
let merged = { from: from2, to };
|
|
@@ -35650,7 +35650,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
35650
35650
|
}, "markRange");
|
|
35651
35651
|
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");
|
|
35652
35652
|
|
|
35653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
35654
35654
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
35655
35655
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
35656
35656
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -35660,7 +35660,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
35660
35660
|
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);
|
|
35661
35661
|
}, "setTaskRulesStop");
|
|
35662
35662
|
|
|
35663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
35664
35664
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
35665
35665
|
const { database } = context;
|
|
35666
35666
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -35716,7 +35716,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35716
35716
|
};
|
|
35717
35717
|
}, "syncStoreOver");
|
|
35718
35718
|
|
|
35719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
35720
35720
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
35721
35721
|
const { database } = context;
|
|
35722
35722
|
return {
|
|
@@ -35738,7 +35738,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35738
35738
|
};
|
|
35739
35739
|
}, "tagsStoreOver");
|
|
35740
35740
|
|
|
35741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
35742
35742
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
35743
35743
|
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
|
|
35744
35744
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -35865,7 +35865,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
35865
35865
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
35866
35866
|
}, "savePictureChunks");
|
|
35867
35867
|
|
|
35868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
35869
35869
|
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,
|
|
35870
35870
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
35871
35871
|
FROM messages m
|
|
@@ -35954,7 +35954,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
35954
35954
|
return plain2(best(found2));
|
|
35955
35955
|
}, "nearestMessages");
|
|
35956
35956
|
|
|
35957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
35958
35958
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
35959
35959
|
const { database } = context;
|
|
35960
35960
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -36212,7 +36212,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
36212
36212
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
36213
36213
|
}), "vectorsStoreOver");
|
|
36214
36214
|
|
|
36215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
36216
36216
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
36217
36217
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
36218
36218
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -36300,10 +36300,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
36300
36300
|
}
|
|
36301
36301
|
}, "lastBackup");
|
|
36302
36302
|
|
|
36303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
36304
36304
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
36305
36305
|
|
|
36306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
36307
36307
|
var COUNTED_TABLES = [
|
|
36308
36308
|
"accounts",
|
|
36309
36309
|
"chats",
|
|
@@ -36388,7 +36388,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
36388
36388
|
};
|
|
36389
36389
|
}, "storeContents");
|
|
36390
36390
|
|
|
36391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
36392
36392
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
36393
36393
|
const context = await openStoreContext(options);
|
|
36394
36394
|
try {
|