@wirecat/tg-cli 0.104.0 → 0.105.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-QTAHA2JC.js → adapter-WWYRCTPE.js} +37 -37
- package/dist/bundle/{all-profiles-7CXBVRFU.js → all-profiles-IJYM6NIJ.js} +5 -5
- package/dist/bundle/{anthropic-FWBQ7JHT.js → anthropic-EDRWOXB5.js} +3 -3
- package/dist/bundle/{app-server-XF4GY2Y6.js → app-server-2NF7ZH3C.js} +34 -34
- package/dist/bundle/{bot-api-XDMMWRYI.js → bot-api-XCDLL6M2.js} +38 -38
- package/dist/bundle/{bot-history-TU2X7RNN.js → bot-history-37WSQX3U.js} +10 -10
- package/dist/bundle/{bun-6GSDPKNZ.js → bun-ZX34DXTI.js} +2 -2
- package/dist/bundle/{bun-sqlite-AO27E35V.js → bun-sqlite-7TZ73UKO.js} +2 -2
- package/dist/bundle/{chunk-6YUFPSSE.js → chunk-2A2KXY5G.js} +4 -4
- package/dist/bundle/{chunk-C5N7G6UH.js → chunk-2J2G3ELT.js} +1 -1
- package/dist/bundle/{chunk-UVYY5EIS.js → chunk-443D2OY7.js} +1 -1
- package/dist/bundle/{chunk-YD6ZQ6LM.js → chunk-4N53GVUI.js} +42 -42
- package/dist/bundle/{chunk-KRLCUBII.js → chunk-4UZE26T6.js} +5 -5
- package/dist/bundle/{chunk-YBQ753RP.js → chunk-4VFRP2T2.js} +20 -20
- package/dist/bundle/{chunk-MB3PCNRL.js → chunk-56JDML7T.js} +2 -2
- package/dist/bundle/{chunk-B7TTM75D.js → chunk-5PDGRPTS.js} +1 -1
- package/dist/bundle/{chunk-6K4QGBXU.js → chunk-6MQ3DEXF.js} +1 -1
- package/dist/bundle/{chunk-HOR7DS3P.js → chunk-73OWDRGK.js} +20 -20
- package/dist/bundle/{chunk-Y3VNNLUT.js → chunk-AQGW6OHU.js} +1 -1
- package/dist/bundle/{chunk-RRWMYR2H.js → chunk-ETVQH5AL.js} +9 -9
- package/dist/bundle/{chunk-BKVJNPA6.js → chunk-FNASJIAI.js} +11 -11
- package/dist/bundle/{chunk-UDXRDFHN.js → chunk-GGIDY5KC.js} +91 -91
- package/dist/bundle/{chunk-U2AK4QXY.js → chunk-HJSWUHHP.js} +1 -1
- package/dist/bundle/{chunk-ZBH7Z6WX.js → chunk-J5OIB3OW.js} +2 -2
- package/dist/bundle/{chunk-GE22MYA6.js → chunk-J6B5DQ3I.js} +47 -47
- package/dist/bundle/{chunk-MCD2GANK.js → chunk-L23IJ3IZ.js} +5 -5
- package/dist/bundle/{chunk-FUWSIEYY.js → chunk-LOIFBJBA.js} +9 -9
- package/dist/bundle/{chunk-PWIE7VBL.js → chunk-MAV5ODPN.js} +1 -1
- package/dist/bundle/{chunk-DANCAYRP.js → chunk-MHS2LEZA.js} +8 -6
- package/dist/bundle/{chunk-SZE6425L.js → chunk-N5BGV5YZ.js} +26 -26
- package/dist/bundle/{chunk-N6VHHMSZ.js → chunk-NBXUNS6Q.js} +1 -1
- package/dist/bundle/{chunk-Y5PJQPMQ.js → chunk-NEPB2EI6.js} +1 -1
- package/dist/bundle/{chunk-PHQTSF44.js → chunk-OOBCCVYM.js} +4 -4
- package/dist/bundle/{chunk-LOFG3Q35.js → chunk-PFL3CCP2.js} +1 -1
- package/dist/bundle/{chunk-BI2AXVHY.js → chunk-Q6NALH2X.js} +2 -2
- package/dist/bundle/{chunk-RTAV5XNT.js → chunk-QAW5QNOY.js} +8 -8
- package/dist/bundle/{chunk-FRZHF2X6.js → chunk-QPE72FCE.js} +7 -7
- package/dist/bundle/{chunk-LJCGQMGN.js → chunk-QVXMOHHN.js} +4 -4
- package/dist/bundle/{chunk-5K7E36ND.js → chunk-QWPVSWQE.js} +2 -2
- package/dist/bundle/{chunk-54RJDS3X.js → chunk-RDO66SBI.js} +2 -2
- package/dist/bundle/{chunk-GZ5CR5QB.js → chunk-RI7H2VVU.js} +7 -7
- package/dist/bundle/{chunk-3GGU65YR.js → chunk-S3C2L3IE.js} +4 -4
- package/dist/bundle/{chunk-MR4LW4EC.js → chunk-S7FO7OU2.js} +248 -246
- package/dist/bundle/{chunk-7WHM3KNI.js → chunk-SJIHZA4K.js} +1 -1
- package/dist/bundle/{chunk-ADMV4WGV.js → chunk-SLFDNASB.js} +4 -4
- package/dist/bundle/{chunk-QY7MW7HK.js → chunk-VIGQIMGM.js} +2 -2
- package/dist/bundle/{chunk-P3WU6UYJ.js → chunk-WD7Q2H4J.js} +193 -193
- package/dist/bundle/{chunk-UTVANQN5.js → chunk-XP4JEE47.js} +1 -1
- package/dist/bundle/{chunk-LSQUNABH.js → chunk-YGYQY5AG.js} +1 -1
- package/dist/bundle/{chunk-TJR37WKA.js → chunk-YSIC5B32.js} +10 -10
- package/dist/bundle/{chunk-UT6G2X7T.js → chunk-Z6SXT5DV.js} +3 -3
- package/dist/bundle/{chunk-3XZQQGCB.js → chunk-ZI7THBWF.js} +51 -47
- package/dist/bundle/{chunk-BIWJK5YU.js → chunk-ZIG4WIVN.js} +1 -1
- package/dist/bundle/{chunk-QVTCOBN5.js → chunk-ZM2AI3E5.js} +255 -250
- package/dist/bundle/{command-contract-RICU4OWW.js → command-contract-OF6TUQ5B.js} +12 -12
- package/dist/bundle/{echarts-2YP32GX5.js → echarts-WFLEME5I.js} +2 -2
- package/dist/bundle/{embed-QNWVBCL5.js → embed-ESTG27RK.js} +3 -3
- package/dist/bundle/{embedder-ENS7ARPP.js → embedder-P3W76VOZ.js} +6 -6
- package/dist/bundle/{entry-MPYSQPZO.js → entry-SNRZGNRA.js} +3 -3
- package/dist/bundle/{first-run-YLB7RNGP.js → first-run-JS24HORG.js} +5 -5
- package/dist/bundle/{first-screen-AYOE4JFC.js → first-screen-U63BJPXI.js} +13 -13
- package/dist/bundle/{identity-XQLO7NYW.js → identity-TYE57SHY.js} +1 -1
- package/dist/bundle/{instructions-5F4XG3B6.js → instructions-ERMZPVS4.js} +1 -1
- package/dist/bundle/{node-JOUDFPFN.js → node-KDZSMKIC.js} +2 -2
- package/dist/bundle/{node-sqlite-ZY6ZFFXS.js → node-sqlite-FR64YDYV.js} +2 -2
- package/dist/bundle/{oauth-KOR3ZNTA.js → oauth-SPE76ZIY.js} +4 -4
- package/dist/bundle/{open-JACXAGY5.js → open-UEFCMPLC.js} +1 -1
- package/dist/bundle/{process-7W3X5VME.js → process-7MD6MEGB.js} +1 -1
- package/dist/bundle/{program-NSZWGHNJ.js → program-NFFSOGUY.js} +40 -40
- package/dist/bundle/{prompt-CRRG5UB6.js → prompt-3PI4H66U.js} +2 -2
- package/dist/bundle/{recognize-ASXEB45M.js → recognize-54LQOU24.js} +3 -3
- package/dist/bundle/{remote-CB3GAXGJ.js → remote-JQ74NVUK.js} +4 -4
- package/dist/bundle/{rerank-PDD5BPID.js → rerank-66YCEORD.js} +4 -4
- package/dist/bundle/{serve-M4XFAYUM.js → serve-5SP2TCGV.js} +6 -6
- package/dist/bundle/{server-IN673OYO.js → server-GFICDJ6J.js} +26 -26
- package/dist/bundle/server-KMKRKOZP.js +55 -0
- package/dist/bundle/{state-626GOOVZ.js → state-U7HXQB6I.js} +3 -3
- package/dist/bundle/{store-6JM4HJU5.js → store-O4QVYHFL.js} +7 -7
- package/dist/bundle/store-maintenance-command-BNRZ5IJD.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-ISWPSKQ6.js +0 -55
- package/dist/bundle/store-maintenance-command-DI2UX4V3.js +0 -44
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
validateQuery,
|
|
52
52
|
walkQuery,
|
|
53
53
|
zonedMoment
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ZI7THBWF.js";
|
|
55
55
|
import {
|
|
56
56
|
DEFAULT_STEMMERS,
|
|
57
57
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -64,21 +64,21 @@ import {
|
|
|
64
64
|
fold,
|
|
65
65
|
normalize,
|
|
66
66
|
parseStemmers
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-RI7H2VVU.js";
|
|
68
68
|
import {
|
|
69
69
|
DEFAULT_TASK_CATEGORIES,
|
|
70
70
|
sharedConfigPath,
|
|
71
71
|
storedTaskCategories,
|
|
72
72
|
taskCategoriesReader
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-OOBCCVYM.js";
|
|
74
74
|
import {
|
|
75
75
|
storePath
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-NEPB2EI6.js";
|
|
77
77
|
import {
|
|
78
78
|
PRAGMAS,
|
|
79
79
|
quietSqliteWarning,
|
|
80
80
|
storeCapable
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-4UZE26T6.js";
|
|
82
82
|
import {
|
|
83
83
|
SQLiteTable,
|
|
84
84
|
TableAliasProxyHandler,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
sql,
|
|
104
104
|
sqliteTable,
|
|
105
105
|
text
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-AQGW6OHU.js";
|
|
107
107
|
import {
|
|
108
108
|
singleLine
|
|
109
109
|
} from "./chunk-T4SDOYPY.js";
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
__name
|
|
133
133
|
} from "./chunk-ZVVMGPBJ.js";
|
|
134
134
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
136
136
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
137
137
|
const methods = whole;
|
|
138
138
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -260,7 +260,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
260
260
|
};
|
|
261
261
|
}, "bindAccount");
|
|
262
262
|
|
|
263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
264
264
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
265
265
|
var PROVIDERS = [
|
|
266
266
|
{ name: "telegram", kind: "messages", aliases: ["tg"] },
|
|
@@ -351,7 +351,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
351
351
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
352
352
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
353
353
|
|
|
354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
355
355
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
356
356
|
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");
|
|
357
357
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -374,7 +374,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
374
374
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
375
375
|
}, "sourceOf");
|
|
376
376
|
|
|
377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
378
378
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
379
379
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
380
380
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -561,7 +561,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf = (kind3)
|
|
|
561
561
|
return { accounts: [...chosen.values()], skipped };
|
|
562
562
|
}, "fitting");
|
|
563
563
|
|
|
564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
565
565
|
var IndexBuilderOn = class {
|
|
566
566
|
static {
|
|
567
567
|
__name(this, "IndexBuilderOn");
|
|
@@ -756,7 +756,7 @@ function alias(table, alias2) {
|
|
|
756
756
|
}
|
|
757
757
|
__name(alias, "alias");
|
|
758
758
|
|
|
759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
760
760
|
var ENTITY_TABLES = {
|
|
761
761
|
account: "accounts",
|
|
762
762
|
attachment: "attachments",
|
|
@@ -796,7 +796,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
796
796
|
return { table, pointer, type, count, known: known2 };
|
|
797
797
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
798
798
|
|
|
799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
800
800
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
801
801
|
id: integer("id").primaryKey(),
|
|
802
802
|
name: text("name").notNull().unique(),
|
|
@@ -805,7 +805,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
805
805
|
updatedAt: integer("updated_at").notNull()
|
|
806
806
|
});
|
|
807
807
|
|
|
808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
809
809
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
810
810
|
sourceKey: text("source_key").notNull(),
|
|
811
811
|
collection: text("collection").notNull(),
|
|
@@ -815,13 +815,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
815
815
|
createdAt: integer("created_at").notNull()
|
|
816
816
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
817
817
|
|
|
818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
819
819
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
820
820
|
id: integer("id").notNull(),
|
|
821
821
|
indexableType: text("indexable_type").notNull()
|
|
822
822
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
823
823
|
|
|
824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
825
825
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
826
826
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
827
827
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -847,7 +847,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
847
847
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
848
848
|
]);
|
|
849
849
|
|
|
850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
851
851
|
var accounts = sqliteTable("accounts", {
|
|
852
852
|
id: integer("id").primaryKey(),
|
|
853
853
|
provider: text("provider").notNull(),
|
|
@@ -2316,7 +2316,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2316
2316
|
at: integer("at").notNull()
|
|
2317
2317
|
});
|
|
2318
2318
|
|
|
2319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2320
2320
|
var ARMS = [
|
|
2321
2321
|
[
|
|
2322
2322
|
"message",
|
|
@@ -2443,7 +2443,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2443
2443
|
return recomputed;
|
|
2444
2444
|
}, "drainInvolvementQueue");
|
|
2445
2445
|
|
|
2446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2447
2447
|
import { domainToUnicode } from "node:url";
|
|
2448
2448
|
|
|
2449
2449
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12465,7 +12465,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12465
12465
|
}, "oa");
|
|
12466
12466
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12467
12467
|
|
|
12468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12469
12469
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12470
12470
|
var ID = /^[\w-]{10,}$/;
|
|
12471
12471
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12506,7 +12506,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text5) => [...text5.matchAll(L
|
|
|
12506
12506
|
return { url, documentId: googleDocumentId(url) };
|
|
12507
12507
|
}), "googleDocumentLinks");
|
|
12508
12508
|
|
|
12509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12510
12510
|
var PHONE_PLANS = [
|
|
12511
12511
|
{
|
|
12512
12512
|
country: "us",
|
|
@@ -12886,7 +12886,7 @@ var PHONE_PLANS = [
|
|
|
12886
12886
|
}
|
|
12887
12887
|
];
|
|
12888
12888
|
|
|
12889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
12890
12890
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
12891
12891
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
12892
12892
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -12927,7 +12927,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
12927
12927
|
return void 0;
|
|
12928
12928
|
}, "nationalPhone");
|
|
12929
12929
|
|
|
12930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
12931
12931
|
var BEFORE = [
|
|
12932
12932
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
12933
12933
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13187,7 +13187,7 @@ var findPlaces = /* @__PURE__ */ __name((text5) => {
|
|
|
13187
13187
|
return found2.sort((a, b) => a.start - b.start);
|
|
13188
13188
|
}, "findPlaces");
|
|
13189
13189
|
|
|
13190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13191
13191
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13192
13192
|
var MENTION_VERSIONS = {
|
|
13193
13193
|
phone: 1,
|
|
@@ -13377,7 +13377,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13377
13377
|
};
|
|
13378
13378
|
}, "typedPhone");
|
|
13379
13379
|
|
|
13380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13381
13381
|
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";
|
|
13382
13382
|
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";
|
|
13383
13383
|
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";
|
|
@@ -13385,7 +13385,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13385
13385
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13386
13386
|
var NAME_WORDS = WORDS.split(" ");
|
|
13387
13387
|
|
|
13388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13389
13389
|
var LATIN_TO_CYRILLIC = {
|
|
13390
13390
|
shch: "\u0449",
|
|
13391
13391
|
sch: "\u0449",
|
|
@@ -13593,7 +13593,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text5, stem, taken) => {
|
|
|
13593
13593
|
return found2;
|
|
13594
13594
|
}, "findUnknownNames");
|
|
13595
13595
|
|
|
13596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13597
13597
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13598
13598
|
"webpage",
|
|
13599
13599
|
"share",
|
|
@@ -13625,7 +13625,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
13625
13625
|
});
|
|
13626
13626
|
}, "matchDownloads");
|
|
13627
13627
|
|
|
13628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
13629
13629
|
var QUERY_VERSION = 1;
|
|
13630
13630
|
var QUERY_LIMITS2 = {
|
|
13631
13631
|
...QUERY_LIMITS,
|
|
@@ -13656,7 +13656,7 @@ function exhausted(budget) {
|
|
|
13656
13656
|
}
|
|
13657
13657
|
__name(exhausted, "exhausted");
|
|
13658
13658
|
|
|
13659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
13660
13660
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
13661
13661
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
13662
13662
|
kind: "char",
|
|
@@ -14056,7 +14056,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14056
14056
|
return out;
|
|
14057
14057
|
}, "foldRegex");
|
|
14058
14058
|
|
|
14059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14060
14060
|
var PRESET_VERSION = 1;
|
|
14061
14061
|
var PRESETS = {
|
|
14062
14062
|
password: {
|
|
@@ -14110,7 +14110,7 @@ var PRESETS = {
|
|
|
14110
14110
|
}
|
|
14111
14111
|
};
|
|
14112
14112
|
|
|
14113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14114
14114
|
var FIELD_VERSION = 2;
|
|
14115
14115
|
var UNITS = {
|
|
14116
14116
|
"": 1,
|
|
@@ -14559,12 +14559,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
14559
14559
|
return validateFields(parsed2.output);
|
|
14560
14560
|
}, "validateAst");
|
|
14561
14561
|
|
|
14562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
14563
14563
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
14564
14564
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
14565
14565
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
14566
14566
|
|
|
14567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
14568
14568
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
14569
14569
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
14570
14570
|
var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
|
|
@@ -14588,7 +14588,7 @@ var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
|
|
|
14588
14588
|
};
|
|
14589
14589
|
}, "linkMatch");
|
|
14590
14590
|
|
|
14591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
14592
14592
|
var SETTING = "phoneCountries";
|
|
14593
14593
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
14594
14594
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -14619,7 +14619,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
14619
14619
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
14620
14620
|
}, "valueMatch");
|
|
14621
14621
|
|
|
14622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
14623
14623
|
var SCHEME = "msg:";
|
|
14624
14624
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
14625
14625
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -14633,7 +14633,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
14633
14633
|
return { provider, account, chat: chat2, message: message2 };
|
|
14634
14634
|
}, "parseLocator");
|
|
14635
14635
|
|
|
14636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
14637
14637
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
14638
14638
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
14639
14639
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -14661,7 +14661,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
14661
14661
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
14662
14662
|
}, "vocabularySimilarity");
|
|
14663
14663
|
|
|
14664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
14665
14665
|
import { createHash } from "node:crypto";
|
|
14666
14666
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
14667
14667
|
try {
|
|
@@ -14727,7 +14727,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
|
|
|
14727
14727
|
});
|
|
14728
14728
|
}, "guardTagCreation");
|
|
14729
14729
|
|
|
14730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
14731
14731
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
14732
14732
|
throw new CliError("validation_error", message2);
|
|
14733
14733
|
}, "invalid");
|
|
@@ -14804,7 +14804,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
14804
14804
|
};
|
|
14805
14805
|
}, "createTagRedirectIndex");
|
|
14806
14806
|
|
|
14807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
14808
14808
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
14809
14809
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
14810
14810
|
if (!row2)
|
|
@@ -14832,7 +14832,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
14832
14832
|
return snapshot2;
|
|
14833
14833
|
}, "tagRedirectSnapshot");
|
|
14834
14834
|
|
|
14835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
14836
14836
|
import { createHash as createHash2 } from "node:crypto";
|
|
14837
14837
|
var TASK_KEY_PREFIXES = {
|
|
14838
14838
|
question: "Q",
|
|
@@ -14860,7 +14860,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14860
14860
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
14861
14861
|
}, "taskAccountOf");
|
|
14862
14862
|
|
|
14863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
14864
14864
|
var SIMPLE_REFERENCES = [
|
|
14865
14865
|
"note",
|
|
14866
14866
|
"document",
|
|
@@ -14932,7 +14932,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
|
|
|
14932
14932
|
}, "folderPath");
|
|
14933
14933
|
var canonicalReference = /* @__PURE__ */ __name((text5) => formatReference(parseReference(text5)), "canonicalReference");
|
|
14934
14934
|
|
|
14935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
14936
14936
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
14937
14937
|
var REFERABLE = {
|
|
14938
14938
|
note: { tombstone: true },
|
|
@@ -15090,7 +15090,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15090
15090
|
}, "taskIdOf");
|
|
15091
15091
|
var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
|
|
15092
15092
|
|
|
15093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15094
15094
|
var toMs = /* @__PURE__ */ __name((iso10) => {
|
|
15095
15095
|
if (iso10 === null || iso10 === void 0)
|
|
15096
15096
|
return null;
|
|
@@ -15104,7 +15104,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15104
15104
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15105
15105
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15106
15106
|
|
|
15107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15108
15108
|
var TAG_KINDS = ["tag", "topic"];
|
|
15109
15109
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15110
15110
|
var TAG_TYPE = {
|
|
@@ -15295,7 +15295,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15295
15295
|
return result;
|
|
15296
15296
|
}, "tagsOf");
|
|
15297
15297
|
|
|
15298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15299
15299
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15300
15300
|
var SPEECH = speech("att");
|
|
15301
15301
|
var quoted = /* @__PURE__ */ __name((value) => `"${value.replaceAll('"', '""')}"`, "quoted");
|
|
@@ -15648,7 +15648,7 @@ var FIELD_COMPILERS = {
|
|
|
15648
15648
|
subject
|
|
15649
15649
|
};
|
|
15650
15650
|
|
|
15651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15652
15652
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15653
15653
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15654
15654
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -15664,7 +15664,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
15664
15664
|
};
|
|
15665
15665
|
}, "placeOf");
|
|
15666
15666
|
|
|
15667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
15668
15668
|
var DRAIN_ON_WRITE = 500;
|
|
15669
15669
|
var METHOD = "rules";
|
|
15670
15670
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -15827,7 +15827,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
15827
15827
|
return queued.length;
|
|
15828
15828
|
}, "drainMentions");
|
|
15829
15829
|
|
|
15830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
15831
15831
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
15832
15832
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
15833
15833
|
if (!exists2)
|
|
@@ -15835,7 +15835,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
15835
15835
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
15836
15836
|
}, "indexRow");
|
|
15837
15837
|
|
|
15838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
15839
15839
|
var INDEX = "message_stems";
|
|
15840
15840
|
var SETTING2 = "searchStemmers";
|
|
15841
15841
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -15957,7 +15957,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
15957
15957
|
};
|
|
15958
15958
|
}, "stemmerCache");
|
|
15959
15959
|
|
|
15960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
15961
15961
|
var connections = /* @__PURE__ */ new WeakMap();
|
|
15962
15962
|
var connectionOf = /* @__PURE__ */ __name((database) => {
|
|
15963
15963
|
let connection = connections.get(database);
|
|
@@ -16016,7 +16016,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
16016
16016
|
}
|
|
16017
16017
|
}, "read");
|
|
16018
16018
|
|
|
16019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
16020
16020
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
16021
16021
|
coalesce(CASE k.chunkable_type
|
|
16022
16022
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16158,7 +16158,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16158
16158
|
}, "dropUnusedVectors");
|
|
16159
16159
|
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");
|
|
16160
16160
|
|
|
16161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16162
16162
|
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({
|
|
16163
16163
|
target: [accounts.provider, accounts.externalId],
|
|
16164
16164
|
set: {
|
|
@@ -16263,7 +16263,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16263
16263
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16264
16264
|
}, "dropOrphanPeople");
|
|
16265
16265
|
|
|
16266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
16267
16267
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
16268
16268
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
16269
16269
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -16282,7 +16282,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
16282
16282
|
}
|
|
16283
16283
|
}, "resolvePersonLinks");
|
|
16284
16284
|
|
|
16285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
16286
16286
|
var flag = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
16287
16287
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
16288
16288
|
find: orm.select({
|
|
@@ -16501,7 +16501,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
16501
16501
|
return saved.pk;
|
|
16502
16502
|
}, "meetingIdentityPk");
|
|
16503
16503
|
|
|
16504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
16505
16505
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
16506
16506
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
16507
16507
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -16566,7 +16566,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
16566
16566
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
16567
16567
|
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");
|
|
16568
16568
|
|
|
16569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
16570
16570
|
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");
|
|
16571
16571
|
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");
|
|
16572
16572
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -16838,7 +16838,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
16838
16838
|
}
|
|
16839
16839
|
}, "replaceAutoTags");
|
|
16840
16840
|
|
|
16841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
16842
16842
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
16843
16843
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
16844
16844
|
var counterValue = /* @__PURE__ */ __name((message2, field3) => {
|
|
@@ -16875,7 +16875,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
16875
16875
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
16876
16876
|
}, "counterFreshness");
|
|
16877
16877
|
|
|
16878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16879
16879
|
import { createHash as createHash3 } from "node:crypto";
|
|
16880
16880
|
var CHUNK_CHARS = 1200;
|
|
16881
16881
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16980,7 +16980,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16980
16980
|
return chunks2;
|
|
16981
16981
|
}, "cutChunks");
|
|
16982
16982
|
|
|
16983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
16984
16984
|
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");
|
|
16985
16985
|
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;
|
|
16986
16986
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -17061,7 +17061,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
|
|
|
17061
17061
|
return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
|
|
17062
17062
|
}, "mailCore");
|
|
17063
17063
|
|
|
17064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17065
17065
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17066
17066
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17067
17067
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17151,7 +17151,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17151
17151
|
});
|
|
17152
17152
|
}, "linkMeeting");
|
|
17153
17153
|
|
|
17154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
17155
17155
|
var DAY = 864e5;
|
|
17156
17156
|
var CURRENCY = [
|
|
17157
17157
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -17268,7 +17268,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
|
|
|
17268
17268
|
return best?.day ?? null;
|
|
17269
17269
|
}, "dueDayOf");
|
|
17270
17270
|
|
|
17271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
17272
17272
|
var DAY2 = 864e5;
|
|
17273
17273
|
var STOP_WORDS = new Set([
|
|
17274
17274
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -17423,7 +17423,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
17423
17423
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
17424
17424
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
17425
17425
|
|
|
17426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
17427
17427
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
17428
17428
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
17429
17429
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17694,7 +17694,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17694
17694
|
};
|
|
17695
17695
|
}, "readiness");
|
|
17696
17696
|
|
|
17697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17698
17698
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17699
17699
|
var SCAN_PAGE2 = 5e3;
|
|
17700
17700
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17757,7 +17757,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17757
17757
|
}, "nearestPictures")
|
|
17758
17758
|
}), "documentPicturesOver");
|
|
17759
17759
|
|
|
17760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17761
17761
|
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), ''))";
|
|
17762
17762
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17763
17763
|
"working-location",
|
|
@@ -17939,7 +17939,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17939
17939
|
return true;
|
|
17940
17940
|
}, "resetNoteIndex");
|
|
17941
17941
|
|
|
17942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
17943
17943
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
17944
17944
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
17945
17945
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18049,7 +18049,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor) => {
|
|
|
18049
18049
|
return emails3 + threads;
|
|
18050
18050
|
}, "drainEmailIndex");
|
|
18051
18051
|
|
|
18052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18053
18053
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18054
18054
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18055
18055
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -18073,7 +18073,7 @@ var setEmailFlags = /* @__PURE__ */ __name((database, accountId, flags, now2) =>
|
|
|
18073
18073
|
return changed;
|
|
18074
18074
|
}, "setEmailFlags");
|
|
18075
18075
|
|
|
18076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
18077
18077
|
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");
|
|
18078
18078
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
18079
18079
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18140,7 +18140,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
18140
18140
|
}
|
|
18141
18141
|
}), "mailRulesOver");
|
|
18142
18142
|
|
|
18143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
18144
18144
|
var FOLDED = [
|
|
18145
18145
|
{ table: "tasks", column: "title" },
|
|
18146
18146
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -18172,7 +18172,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
18172
18172
|
return filled2;
|
|
18173
18173
|
}, "fillFolded");
|
|
18174
18174
|
|
|
18175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
18176
18176
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
18177
18177
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
18178
18178
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -18180,7 +18180,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
18180
18180
|
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);
|
|
18181
18181
|
}, "reviewLink");
|
|
18182
18182
|
|
|
18183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
18184
18184
|
function checkMeetingCancelled(signal) {
|
|
18185
18185
|
if (!signal?.aborted)
|
|
18186
18186
|
return;
|
|
@@ -18191,7 +18191,7 @@ function checkMeetingCancelled(signal) {
|
|
|
18191
18191
|
}
|
|
18192
18192
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
18193
18193
|
|
|
18194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
18195
18195
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
18196
18196
|
id: Number(row2.id),
|
|
18197
18197
|
accountId: Number(row2.account_id),
|
|
@@ -18241,7 +18241,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
18241
18241
|
createdAt: Number(row2.created_at)
|
|
18242
18242
|
}), "transcriptRowOf");
|
|
18243
18243
|
|
|
18244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
18245
18245
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
18246
18246
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
18247
18247
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -18408,7 +18408,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18408
18408
|
}
|
|
18409
18409
|
}), "meetingReadsOver");
|
|
18410
18410
|
|
|
18411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
18412
18412
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
18413
18413
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
18414
18414
|
const params = [input.accountId];
|
|
@@ -18451,7 +18451,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
18451
18451
|
return { clauses, params };
|
|
18452
18452
|
}, "meetingSelectionSql");
|
|
18453
18453
|
|
|
18454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
18455
18455
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
18456
18456
|
async meetingChatLines(input) {
|
|
18457
18457
|
checkMeetingCancelled(input.signal);
|
|
@@ -18479,7 +18479,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18479
18479
|
}
|
|
18480
18480
|
}), "meetingChatLinesOver");
|
|
18481
18481
|
|
|
18482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
18483
18483
|
var MESSAGE_FIELDS = {
|
|
18484
18484
|
pk: messages.id,
|
|
18485
18485
|
nativeId: messages.externalId,
|
|
@@ -18645,7 +18645,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
18645
18645
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
18646
18646
|
}), "chatActivity");
|
|
18647
18647
|
|
|
18648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
18649
18649
|
var HIT_FIELDS = {
|
|
18650
18650
|
...MESSAGE_FIELDS,
|
|
18651
18651
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -18744,7 +18744,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
18744
18744
|
};
|
|
18745
18745
|
}, "directReplies");
|
|
18746
18746
|
|
|
18747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
18748
18748
|
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");
|
|
18749
18749
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
18750
18750
|
const found2 = identityRow(context, ref3);
|
|
@@ -18875,7 +18875,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
18875
18875
|
}, "mentioning");
|
|
18876
18876
|
var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
18877
18877
|
|
|
18878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
18879
18879
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
18880
18880
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
18881
18881
|
}, "missing");
|
|
@@ -18997,7 +18997,7 @@ function meetingContextLinksOver(context) {
|
|
|
18997
18997
|
}
|
|
18998
18998
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
18999
18999
|
|
|
19000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19001
19001
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19002
19002
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19003
19003
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19026,7 +19026,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19026
19026
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19027
19027
|
}, "indexedText");
|
|
19028
19028
|
|
|
19029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19030
19030
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19031
19031
|
var meetingCurrentIndexRows = `
|
|
19032
19032
|
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
|
|
@@ -19057,7 +19057,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19057
19057
|
}, "invalidateMeetingStems");
|
|
19058
19058
|
var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19059
19059
|
|
|
19060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19061
19061
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19062
19062
|
return {
|
|
19063
19063
|
async indexSearch(original) {
|
|
@@ -19125,10 +19125,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
19125
19125
|
}
|
|
19126
19126
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
19127
19127
|
|
|
19128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19129
19129
|
import { createHash as createHash4 } from "node:crypto";
|
|
19130
19130
|
|
|
19131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
19132
19132
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
19133
19133
|
const padded = ` ${term} `;
|
|
19134
19134
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -19137,7 +19137,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
19137
19137
|
return [...pieces];
|
|
19138
19138
|
}, "trigrams");
|
|
19139
19139
|
|
|
19140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
19141
19141
|
var SHORTEST_CORRECTION = 3;
|
|
19142
19142
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
19143
19143
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -19184,7 +19184,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
19184
19184
|
return corrections;
|
|
19185
19185
|
}, "correctWords");
|
|
19186
19186
|
|
|
19187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
19188
19188
|
var SHORTEST_GARBLED = 4;
|
|
19189
19189
|
var MOST_WIDENED = 64;
|
|
19190
19190
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -19276,7 +19276,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
19276
19276
|
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));
|
|
19277
19277
|
}, "widenWords");
|
|
19278
19278
|
|
|
19279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
19280
19280
|
import { readFileSync } from "node:fs";
|
|
19281
19281
|
var loaded;
|
|
19282
19282
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -19335,7 +19335,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
19335
19335
|
return false;
|
|
19336
19336
|
}, "knownRussianWord");
|
|
19337
19337
|
|
|
19338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
19339
19339
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
19340
19340
|
var MOST_WORDS = 128;
|
|
19341
19341
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -19562,7 +19562,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
|
|
|
19562
19562
|
return check3(tree);
|
|
19563
19563
|
}, "matchMeetingText");
|
|
19564
19564
|
|
|
19565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19566
19566
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
19567
19567
|
throw new CliError("validation_error", message2);
|
|
19568
19568
|
}, "fail");
|
|
@@ -19739,7 +19739,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
19739
19739
|
}
|
|
19740
19740
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
19741
19741
|
|
|
19742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
19743
19743
|
import { createHash as createHash5 } from "node:crypto";
|
|
19744
19744
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
19745
19745
|
if (value === void 0)
|
|
@@ -19829,7 +19829,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
19829
19829
|
}
|
|
19830
19830
|
}), "meetingParticipantSearchOver");
|
|
19831
19831
|
|
|
19832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
19833
19833
|
var preparationQueries = {
|
|
19834
19834
|
participants: {
|
|
19835
19835
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -19879,7 +19879,7 @@ var preparationQueries = {
|
|
|
19879
19879
|
}
|
|
19880
19880
|
};
|
|
19881
19881
|
|
|
19882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
19883
19883
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19884
19884
|
async preparationContext(original) {
|
|
19885
19885
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -19920,7 +19920,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19920
19920
|
}
|
|
19921
19921
|
}), "meetingPreparationContextOver");
|
|
19922
19922
|
|
|
19923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
19924
19924
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
19925
19925
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
19926
19926
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -19934,7 +19934,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
19934
19934
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
19935
19935
|
)`, "preparationSubjects");
|
|
19936
19936
|
|
|
19937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
19938
19938
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19939
19939
|
async preparationKnowledge(original) {
|
|
19940
19940
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -19979,7 +19979,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
19979
19979
|
}
|
|
19980
19980
|
}), "meetingPreparationKnowledgeOver");
|
|
19981
19981
|
|
|
19982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
19983
19983
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19984
19984
|
async preparationNotes(original) {
|
|
19985
19985
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20032,7 +20032,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20032
20032
|
}
|
|
20033
20033
|
}), "meetingPreparationNotesOver");
|
|
20034
20034
|
|
|
20035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20036
20036
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20037
20037
|
async relatedHistory(original) {
|
|
20038
20038
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -20103,7 +20103,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20103
20103
|
}
|
|
20104
20104
|
}), "meetingRelatedHistoryOver");
|
|
20105
20105
|
|
|
20106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
20107
20107
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
20108
20108
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
20109
20109
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -20184,7 +20184,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20184
20184
|
}
|
|
20185
20185
|
}), "meetingReviewOver");
|
|
20186
20186
|
|
|
20187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
20188
20188
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
20189
20189
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
20190
20190
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -20238,7 +20238,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20238
20238
|
}
|
|
20239
20239
|
}), "meetingSeriesHistoryOver");
|
|
20240
20240
|
|
|
20241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
20242
20242
|
var MOST_ROWS = 5e5;
|
|
20243
20243
|
var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20244
20244
|
async meetingStats(input) {
|
|
@@ -20285,7 +20285,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20285
20285
|
}
|
|
20286
20286
|
}), "meetingStatsOver");
|
|
20287
20287
|
|
|
20288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
20289
20289
|
var CURSOR_KEY = "meetings";
|
|
20290
20290
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
20291
20291
|
id: Number(row2.id),
|
|
@@ -20837,7 +20837,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
20837
20837
|
};
|
|
20838
20838
|
}, "meetingStoreOver");
|
|
20839
20839
|
|
|
20840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
20841
20841
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
20842
20842
|
id: `email:${place.emailId}`,
|
|
20843
20843
|
chatId: place.threadExternalId,
|
|
@@ -21405,7 +21405,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor = stem
|
|
|
21405
21405
|
}
|
|
21406
21406
|
}), "mailStoreOver");
|
|
21407
21407
|
|
|
21408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
21409
21409
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21410
21410
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
21411
21411
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -21495,7 +21495,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
21495
21495
|
}, "knownWord");
|
|
21496
21496
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
21497
21497
|
|
|
21498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
21499
21499
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
21500
21500
|
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");
|
|
21501
21501
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -21581,7 +21581,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
21581
21581
|
return found2;
|
|
21582
21582
|
}, "spokenTranscripts");
|
|
21583
21583
|
|
|
21584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
21585
21585
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
21586
21586
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
21587
21587
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -21628,7 +21628,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
21628
21628
|
});
|
|
21629
21629
|
}, "placeHits");
|
|
21630
21630
|
|
|
21631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
21632
21632
|
var MESSAGES2 = {
|
|
21633
21633
|
rows: "messages",
|
|
21634
21634
|
threads: "chats",
|
|
@@ -22090,7 +22090,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
22090
22090
|
};
|
|
22091
22091
|
}, "runQuery");
|
|
22092
22092
|
|
|
22093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
22094
22094
|
function invalidMetadata() {
|
|
22095
22095
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
22096
22096
|
}
|
|
@@ -22192,7 +22192,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
22192
22192
|
};
|
|
22193
22193
|
}), "counterTargets");
|
|
22194
22194
|
|
|
22195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
22196
22196
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
22197
22197
|
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,
|
|
22198
22198
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -22311,7 +22311,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
22311
22311
|
}));
|
|
22312
22312
|
}, "attachmentViews");
|
|
22313
22313
|
|
|
22314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
22315
22315
|
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");
|
|
22316
22316
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
|
|
22317
22317
|
const { orm, database, now: now2 } = context;
|
|
@@ -22349,7 +22349,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
22349
22349
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
22350
22350
|
}, "intoVoiceAttachment");
|
|
22351
22351
|
|
|
22352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
22353
22353
|
var FIELDS = [
|
|
22354
22354
|
"threadExternalId",
|
|
22355
22355
|
"senderIdentityId",
|
|
@@ -22656,7 +22656,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
22656
22656
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
22657
22657
|
}, "writeDerivedReactions");
|
|
22658
22658
|
|
|
22659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
22660
22660
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
22661
22661
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
22662
22662
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -22682,7 +22682,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
22682
22682
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
22683
22683
|
}, "release");
|
|
22684
22684
|
|
|
22685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
22686
22686
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
22687
22687
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
22688
22688
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -22703,7 +22703,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
22703
22703
|
};
|
|
22704
22704
|
}, "keysOver");
|
|
22705
22705
|
|
|
22706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
22707
22707
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
22708
22708
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
22709
22709
|
if (!row2)
|
|
@@ -22738,7 +22738,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
22738
22738
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
22739
22739
|
}, "saveProfile");
|
|
22740
22740
|
|
|
22741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
22742
22742
|
var BOT_KINDS = ["agent", "script", "integration"];
|
|
22743
22743
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
22744
22744
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -22774,7 +22774,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
22774
22774
|
return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
|
|
22775
22775
|
}, "originOfActor");
|
|
22776
22776
|
|
|
22777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
22778
22778
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
22779
22779
|
const owner = ownerPerson(context.database).id;
|
|
22780
22780
|
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);
|
|
@@ -22795,7 +22795,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
22795
22795
|
return personOf(context, ref3);
|
|
22796
22796
|
}, "linkToOwner");
|
|
22797
22797
|
|
|
22798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
22799
22799
|
var PROVIDERS_SETTING = "providers";
|
|
22800
22800
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
22801
22801
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -22830,7 +22830,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
22830
22830
|
});
|
|
22831
22831
|
}, "registerProvider");
|
|
22832
22832
|
|
|
22833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
22834
22834
|
var DAY3 = 864e5;
|
|
22835
22835
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
22836
22836
|
var TEXT_LIMIT = 20;
|
|
@@ -23029,7 +23029,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
23029
23029
|
};
|
|
23030
23030
|
}, "taskSimilarityOver");
|
|
23031
23031
|
|
|
23032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
23033
23033
|
var SETTING3 = "taskCategories";
|
|
23034
23034
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
23035
23035
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -23048,7 +23048,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
23048
23048
|
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);
|
|
23049
23049
|
}, "saveTaskCategories");
|
|
23050
23050
|
|
|
23051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
23052
23052
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
23053
23053
|
var ALLOWED = "taskAgentClose";
|
|
23054
23054
|
var MIN = "taskAgentCloseMin";
|
|
@@ -23104,7 +23104,7 @@ var SUGGESTION_COLUMNS = [
|
|
|
23104
23104
|
];
|
|
23105
23105
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
23106
23106
|
|
|
23107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
23108
23108
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
23109
23109
|
var MAX_TEXT_CHARS = 2e6;
|
|
23110
23110
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -23130,7 +23130,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
23130
23130
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
23131
23131
|
}, "pdfPreviewLimits");
|
|
23132
23132
|
|
|
23133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
23134
23134
|
import { randomBytes } from "node:crypto";
|
|
23135
23135
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23136
23136
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -23143,7 +23143,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
23143
23143
|
return time3 + random;
|
|
23144
23144
|
}, "ulid");
|
|
23145
23145
|
|
|
23146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
23147
23147
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
23148
23148
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
23149
23149
|
if (!meta && !sections?.length)
|
|
@@ -23164,7 +23164,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
23164
23164
|
return typeof language === "string" && language !== "" ? language : null;
|
|
23165
23165
|
}, "languageOf");
|
|
23166
23166
|
|
|
23167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
23168
23168
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
23169
23169
|
var objectOf = /* @__PURE__ */ __name((value) => {
|
|
23170
23170
|
if (isObject(value))
|
|
@@ -23407,7 +23407,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
23407
23407
|
};
|
|
23408
23408
|
}, "filesStoreOver");
|
|
23409
23409
|
|
|
23410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
23411
23411
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
23412
23412
|
entity: "document",
|
|
23413
23413
|
backend: "sql",
|
|
@@ -23453,7 +23453,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
23453
23453
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
23454
23454
|
}, "importedDocumentWhere");
|
|
23455
23455
|
|
|
23456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
23457
23457
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
23458
23458
|
var iso = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23459
23459
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso(value), "optionalIso");
|
|
@@ -23962,7 +23962,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
23962
23962
|
};
|
|
23963
23963
|
}, "notesStoreOver");
|
|
23964
23964
|
|
|
23965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
23966
23966
|
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";
|
|
23967
23967
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23968
23968
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -24078,7 +24078,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
24078
24078
|
};
|
|
24079
24079
|
}, "memoriesStoreOver");
|
|
24080
24080
|
|
|
24081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
24082
24082
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
24083
24083
|
var KEY = "taskFirstPassPerChat";
|
|
24084
24084
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -24098,7 +24098,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
24098
24098
|
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);
|
|
24099
24099
|
}, "saveFirstPassPerChat");
|
|
24100
24100
|
|
|
24101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
24102
24102
|
var TASK_RELATION_KINDS = [
|
|
24103
24103
|
"blocked-by",
|
|
24104
24104
|
"follow-up-of",
|
|
@@ -24228,7 +24228,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
24228
24228
|
};
|
|
24229
24229
|
}, "taskRelationsStoreOver");
|
|
24230
24230
|
|
|
24231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
24232
24232
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
24233
24233
|
var iso3 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
24234
24234
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind3, changes, at) => {
|
|
@@ -24500,7 +24500,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
24500
24500
|
};
|
|
24501
24501
|
}, "workTasksOver");
|
|
24502
24502
|
|
|
24503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
24504
24504
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
24505
24505
|
const { database, now: now2 } = context;
|
|
24506
24506
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -24546,7 +24546,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
24546
24546
|
};
|
|
24547
24547
|
}, "taskCloseOver");
|
|
24548
24548
|
|
|
24549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
24550
24550
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
24551
24551
|
const { database, now: now2 } = context;
|
|
24552
24552
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -24764,7 +24764,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
24764
24764
|
};
|
|
24765
24765
|
}, "taskPairsOver");
|
|
24766
24766
|
|
|
24767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
24768
24768
|
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";
|
|
24769
24769
|
var taskStoreOver = /* @__PURE__ */ __name((context) => {
|
|
24770
24770
|
const { database, now: now2 } = context;
|
|
@@ -24959,7 +24959,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
24959
24959
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
24960
24960
|
}, "oneOf");
|
|
24961
24961
|
|
|
24962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
24963
24963
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
24964
24964
|
const { database } = context;
|
|
24965
24965
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -25001,7 +25001,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
25001
25001
|
};
|
|
25002
25002
|
}, "accountsStoreOver");
|
|
25003
25003
|
|
|
25004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
25005
25005
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
25006
25006
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
25007
25007
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -25025,7 +25025,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
25025
25025
|
})), "keepDownloads");
|
|
25026
25026
|
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");
|
|
25027
25027
|
|
|
25028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
25029
25029
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
25030
25030
|
const { database } = context;
|
|
25031
25031
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25082,7 +25082,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25082
25082
|
}, "keepAttachmentText")
|
|
25083
25083
|
}), "attachmentsStoreOver");
|
|
25084
25084
|
|
|
25085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
25086
25086
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
25087
25087
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
25088
25088
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -25262,7 +25262,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
25262
25262
|
return done;
|
|
25263
25263
|
}, "rekeyChats");
|
|
25264
25264
|
|
|
25265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
25266
25266
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
25267
25267
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
25268
25268
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -25294,7 +25294,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
|
|
|
25294
25294
|
});
|
|
25295
25295
|
}, "chatCompleteness");
|
|
25296
25296
|
|
|
25297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
25298
25298
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25299
25299
|
const { database } = context;
|
|
25300
25300
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -25394,7 +25394,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25394
25394
|
};
|
|
25395
25395
|
}, "chatsStoreOver");
|
|
25396
25396
|
|
|
25397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
25398
25398
|
import { createHash as createHash6 } from "node:crypto";
|
|
25399
25399
|
var BATCH_CONTEXT = 50;
|
|
25400
25400
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -25532,7 +25532,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
25532
25532
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
25533
25533
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
25534
25534
|
|
|
25535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
25536
25536
|
import { setTimeout } from "node:timers/promises";
|
|
25537
25537
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
25538
25538
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -25844,7 +25844,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
25844
25844
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
25845
25845
|
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");
|
|
25846
25846
|
|
|
25847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
25848
25848
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25849
25849
|
const { database } = context;
|
|
25850
25850
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25951,7 +25951,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25951
25951
|
};
|
|
25952
25952
|
}, "conversationsStoreOver");
|
|
25953
25953
|
|
|
25954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
25955
25955
|
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";
|
|
25956
25956
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
25957
25957
|
const { database } = context;
|
|
@@ -25976,7 +25976,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25976
25976
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
25977
25977
|
}), "countersStoreOver");
|
|
25978
25978
|
|
|
25979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
25980
25980
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
25981
25981
|
var MENTION_QUERY = defineQuery({
|
|
25982
25982
|
entity: "mention",
|
|
@@ -26192,7 +26192,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
26192
26192
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
26193
26193
|
}, "listPlaces");
|
|
26194
26194
|
|
|
26195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
26196
26196
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
26197
26197
|
const { database } = context;
|
|
26198
26198
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -26227,7 +26227,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26227
26227
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
26228
26228
|
}), "mentionsStoreOver");
|
|
26229
26229
|
|
|
26230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
26231
26231
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
26232
26232
|
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");
|
|
26233
26233
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -26242,7 +26242,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
26242
26242
|
}));
|
|
26243
26243
|
}, "documentLinkMessages");
|
|
26244
26244
|
|
|
26245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
26246
26246
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
26247
26247
|
const { database } = context;
|
|
26248
26248
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -26372,7 +26372,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26372
26372
|
directReplies: /* @__PURE__ */ __name(async (parents, limit) => directReplies(context, parents, limit), "directReplies")
|
|
26373
26373
|
}), "messagesStoreOver");
|
|
26374
26374
|
|
|
26375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
26376
26376
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
26377
26377
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
26378
26378
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -26429,7 +26429,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
26429
26429
|
});
|
|
26430
26430
|
}, "personPreparation");
|
|
26431
26431
|
|
|
26432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
26433
26433
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
26434
26434
|
const id2 = Number(uid);
|
|
26435
26435
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -26437,7 +26437,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
26437
26437
|
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)));
|
|
26438
26438
|
}, "personSeenInAccounts");
|
|
26439
26439
|
|
|
26440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
26441
26441
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
26442
26442
|
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);
|
|
26443
26443
|
if (!row2)
|
|
@@ -26503,7 +26503,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
26503
26503
|
return { id: id2, personId, removed: true };
|
|
26504
26504
|
}, "removeNote");
|
|
26505
26505
|
|
|
26506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
26507
26507
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
26508
26508
|
const { database } = context;
|
|
26509
26509
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -26577,13 +26577,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
26577
26577
|
};
|
|
26578
26578
|
}, "peopleStoreOver");
|
|
26579
26579
|
|
|
26580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
26581
26581
|
import { createHash as createHash8 } from "node:crypto";
|
|
26582
26582
|
|
|
26583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26584
26584
|
import { createHash as createHash7 } from "node:crypto";
|
|
26585
26585
|
|
|
26586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
26587
26587
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
26588
26588
|
var AUTHOR_MEASURES = [
|
|
26589
26589
|
"messages",
|
|
@@ -26723,7 +26723,7 @@ var withoutUrls = /* @__PURE__ */ __name((text5) => text5.replace(/\S+/gu, (toke
|
|
|
26723
26723
|
var rankingWords = /* @__PURE__ */ __name((text5) => withoutUrls(text5).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
26724
26724
|
var rankingQuestion = /* @__PURE__ */ __name((text5) => withoutUrls(text5).includes("?"), "rankingQuestion");
|
|
26725
26725
|
|
|
26726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
26727
26727
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
26728
26728
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
26729
26729
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -26945,7 +26945,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
26945
26945
|
};
|
|
26946
26946
|
}, "rankReplyGraph");
|
|
26947
26947
|
|
|
26948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26949
26949
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
26950
26950
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
26951
26951
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -27119,7 +27119,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
27119
27119
|
return { items, evidence, summary, graph: graph.quality };
|
|
27120
27120
|
}, "calculateAdminStatistics");
|
|
27121
27121
|
|
|
27122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
27123
27123
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
27124
27124
|
const dates = [];
|
|
27125
27125
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -27141,7 +27141,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
27141
27141
|
return dates[0].node.resolution.date;
|
|
27142
27142
|
}, "rankingContextRange");
|
|
27143
27143
|
|
|
27144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
27145
27145
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
27146
27146
|
let counts;
|
|
27147
27147
|
try {
|
|
@@ -27436,7 +27436,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
27436
27436
|
});
|
|
27437
27437
|
}, "rankQuery");
|
|
27438
27438
|
|
|
27439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
27440
27440
|
function fail4(message2, reason = "query.too-large") {
|
|
27441
27441
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
27442
27442
|
}
|
|
@@ -27613,7 +27613,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
27613
27613
|
return result;
|
|
27614
27614
|
}), "adminStatisticsQuery");
|
|
27615
27615
|
|
|
27616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
27617
27617
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
27618
27618
|
if (!execution.accounts.length)
|
|
27619
27619
|
return { conversations: [], chats: [] };
|
|
@@ -27631,7 +27631,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
27631
27631
|
return { conversations: conversations2, chats: chats2 };
|
|
27632
27632
|
}, "conversationEligibility");
|
|
27633
27633
|
|
|
27634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
27635
27635
|
import { createHash as createHash9 } from "node:crypto";
|
|
27636
27636
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
27637
27637
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -27781,7 +27781,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
27781
27781
|
return result;
|
|
27782
27782
|
}, "rankingEvidence");
|
|
27783
27783
|
|
|
27784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
27785
27785
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
27786
27786
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
27787
27787
|
if (execution.corpus === "mail")
|
|
@@ -27798,7 +27798,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
|
27798
27798
|
};
|
|
27799
27799
|
}, "queriesStoreOver");
|
|
27800
27800
|
|
|
27801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
27802
27802
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
27803
27803
|
const { database, now: now2 } = context;
|
|
27804
27804
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -27837,10 +27837,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
27837
27837
|
}));
|
|
27838
27838
|
}, "chatEventsOf");
|
|
27839
27839
|
|
|
27840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27841
27841
|
import { createHash as createHash10 } from "node:crypto";
|
|
27842
27842
|
|
|
27843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
27844
27844
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
27845
27845
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
27846
27846
|
timeZone: zone,
|
|
@@ -27855,7 +27855,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
|
27855
27855
|
};
|
|
27856
27856
|
}, "calendarKey");
|
|
27857
27857
|
|
|
27858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
27859
27859
|
var RETENTION_TOLERANCE = 864e5;
|
|
27860
27860
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
27861
27861
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -27909,7 +27909,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
27909
27909
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
27910
27910
|
}, "retentionCohorts");
|
|
27911
27911
|
|
|
27912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27913
27913
|
var iso5 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
27914
27914
|
var week = /* @__PURE__ */ __name((day) => {
|
|
27915
27915
|
const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
@@ -28045,7 +28045,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
28045
28045
|
};
|
|
28046
28046
|
}, "retentionQuery");
|
|
28047
28047
|
|
|
28048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
28049
28049
|
var iso6 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
28050
28050
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
28051
28051
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -28176,7 +28176,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
28176
28176
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
28177
28177
|
})), "trackedChats");
|
|
28178
28178
|
|
|
28179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
28180
28180
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28181
28181
|
const { database } = context;
|
|
28182
28182
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -28232,7 +28232,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28232
28232
|
};
|
|
28233
28233
|
}, "rosterStoreOver");
|
|
28234
28234
|
|
|
28235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
28236
28236
|
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");
|
|
28237
28237
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
28238
28238
|
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 ?`);
|
|
@@ -28256,7 +28256,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
28256
28256
|
}
|
|
28257
28257
|
}, "backfillNormalized");
|
|
28258
28258
|
|
|
28259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
28260
28260
|
var INDEX2 = "message_words";
|
|
28261
28261
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
28262
28262
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -28383,7 +28383,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
28383
28383
|
});
|
|
28384
28384
|
}, "resetSearchIndex");
|
|
28385
28385
|
|
|
28386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
28387
28387
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
28388
28388
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
28389
28389
|
const before2 = stemsState(database);
|
|
@@ -28478,7 +28478,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
28478
28478
|
return resetStems(database, { now: now2 });
|
|
28479
28479
|
}, "followDefaultStemmers");
|
|
28480
28480
|
|
|
28481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
28482
28482
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
28483
28483
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
28484
28484
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -28500,7 +28500,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
28500
28500
|
});
|
|
28501
28501
|
}, "termCandidates");
|
|
28502
28502
|
|
|
28503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
28504
28504
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28505
28505
|
const { database } = context;
|
|
28506
28506
|
const stemmerFor = stemmerCache();
|
|
@@ -28522,7 +28522,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28522
28522
|
};
|
|
28523
28523
|
}, "searchIndexStoreOver");
|
|
28524
28524
|
|
|
28525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
28526
28526
|
var HISTORY_KEPT = 1e3;
|
|
28527
28527
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
28528
28528
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -28591,7 +28591,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
28591
28591
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
28592
28592
|
}, "clearHistory");
|
|
28593
28593
|
|
|
28594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
28595
28595
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28596
28596
|
const { database } = context;
|
|
28597
28597
|
return {
|
|
@@ -28615,7 +28615,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28615
28615
|
};
|
|
28616
28616
|
}, "searchesStoreOver");
|
|
28617
28617
|
|
|
28618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
28619
28619
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
28620
28620
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
28621
28621
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -28658,7 +28658,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
28658
28658
|
};
|
|
28659
28659
|
}, "agentActionsStoreOver");
|
|
28660
28660
|
|
|
28661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
28662
28662
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
28663
28663
|
}) => {
|
|
28664
28664
|
const { database, now: now2 } = context;
|
|
@@ -28717,7 +28717,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
28717
28717
|
};
|
|
28718
28718
|
}, "botUpdateStoreOver");
|
|
28719
28719
|
|
|
28720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
28721
28721
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
28722
28722
|
id: Number(row2.id),
|
|
28723
28723
|
accountId: Number(row2.account_id),
|
|
@@ -29143,14 +29143,19 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29143
29143
|
const clauses = ["e.deleted_at IS NULL"];
|
|
29144
29144
|
const params = [];
|
|
29145
29145
|
const entries = /* @__PURE__ */ __name((extra) => `EXISTS (SELECT 1 FROM calendar_entries ce JOIN calendars c ON c.id = ce.calendar_id WHERE ce.event_id = e.id AND ${extra})`, "entries");
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
29149
|
-
|
|
29150
|
-
|
|
29151
|
-
|
|
29152
|
-
|
|
29153
|
-
|
|
29146
|
+
const dated = /* @__PURE__ */ __name((column2, date3, instant, at) => {
|
|
29147
|
+
if (at === void 0)
|
|
29148
|
+
return;
|
|
29149
|
+
if (date3 === void 0) {
|
|
29150
|
+
clauses.push(instant);
|
|
29151
|
+
params.push(at);
|
|
29152
|
+
return;
|
|
29153
|
+
}
|
|
29154
|
+
clauses.push(`(CASE WHEN e.all_day = 1 THEN EXISTS (SELECT 1 FROM calendar_entries ce WHERE ce.event_id = e.id AND ce.${column2}) ELSE ${instant} END)`);
|
|
29155
|
+
params.push(date3, at);
|
|
29156
|
+
}, "dated");
|
|
29157
|
+
dated("end_date > ?", filter.fromDate, "coalesce(e.ends_at, e.starts_at + 1) > ?", filter.from);
|
|
29158
|
+
dated("start_date < ?", filter.toDate, "e.starts_at < ?", filter.to);
|
|
29154
29159
|
if (filter.calendarId !== void 0) {
|
|
29155
29160
|
clauses.push(entries("ce.calendar_id = ?"));
|
|
29156
29161
|
params.push(filter.calendarId);
|
|
@@ -29276,7 +29281,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29276
29281
|
};
|
|
29277
29282
|
}, "eventStoreOver");
|
|
29278
29283
|
|
|
29279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
29280
29285
|
var CATALOG_QUERY = defineQuery({
|
|
29281
29286
|
entity: "document",
|
|
29282
29287
|
backend: "sql",
|
|
@@ -29518,7 +29523,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
29518
29523
|
};
|
|
29519
29524
|
}, "catalogStoreOver");
|
|
29520
29525
|
|
|
29521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
29522
29527
|
import { createHash as createHash11 } from "node:crypto";
|
|
29523
29528
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
29524
29529
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -29616,7 +29621,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
29616
29621
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
29617
29622
|
}, "contextEvidenceRequest");
|
|
29618
29623
|
|
|
29619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
29620
29625
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
29621
29626
|
var field2 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
29622
29627
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -29629,7 +29634,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
29629
29634
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
29630
29635
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field2("sourceUrl")})`;
|
|
29631
29636
|
|
|
29632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
29633
29638
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
29634
29639
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
29635
29640
|
signal?.throwIfAborted();
|
|
@@ -29728,7 +29733,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
29728
29733
|
});
|
|
29729
29734
|
}, "readMeetingContextEvidence");
|
|
29730
29735
|
|
|
29731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
29732
29737
|
var corpora = {
|
|
29733
29738
|
message: {
|
|
29734
29739
|
table: "messages",
|
|
@@ -29957,7 +29962,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29957
29962
|
}
|
|
29958
29963
|
}), "contextRecordsOver");
|
|
29959
29964
|
|
|
29960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
29961
29966
|
var NOTE_FIELDS = [
|
|
29962
29967
|
"text",
|
|
29963
29968
|
"exact",
|
|
@@ -30346,7 +30351,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30346
30351
|
};
|
|
30347
30352
|
}, "noteSearchOver");
|
|
30348
30353
|
|
|
30349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
30350
30355
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
30351
30356
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
30352
30357
|
var EVENT_CORPUS = {
|
|
@@ -30478,7 +30483,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30478
30483
|
};
|
|
30479
30484
|
}, "eventSearchOver");
|
|
30480
30485
|
|
|
30481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
30482
30487
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
30483
30488
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
30484
30489
|
if (/^document:[1-9]\d*$/.test(raw))
|
|
@@ -30491,7 +30496,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
|
|
|
30491
30496
|
}, "reference");
|
|
30492
30497
|
var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
|
|
30493
30498
|
|
|
30494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
30495
30500
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
30496
30501
|
try {
|
|
30497
30502
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -30503,7 +30508,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
30503
30508
|
}
|
|
30504
30509
|
}, "calendarMoment");
|
|
30505
30510
|
|
|
30506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
30507
30512
|
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";
|
|
30508
30513
|
var iso7 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
30509
30514
|
var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -30616,7 +30621,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30616
30621
|
};
|
|
30617
30622
|
}, "factsStoreOver");
|
|
30618
30623
|
|
|
30619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
30620
30625
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
30621
30626
|
throw new CliError("validation_error", message2);
|
|
30622
30627
|
}, "invalid");
|
|
@@ -30706,7 +30711,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
30706
30711
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes };
|
|
30707
30712
|
}, "findingsCoreOver");
|
|
30708
30713
|
|
|
30709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
30710
30715
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
30711
30716
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
30712
30717
|
var iso8 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -30852,7 +30857,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30852
30857
|
};
|
|
30853
30858
|
}, "proposedActionsStoreOver");
|
|
30854
30859
|
|
|
30855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
30856
30861
|
var stale = /* @__PURE__ */ __name(() => {
|
|
30857
30862
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
30858
30863
|
reason: "evidence-findings.stale"
|
|
@@ -31018,7 +31023,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31018
31023
|
};
|
|
31019
31024
|
}, "evidenceFindingsStoreOver");
|
|
31020
31025
|
|
|
31021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
31022
31027
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
31023
31028
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
31024
31029
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -31071,7 +31076,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
31071
31076
|
}, "forPerson")
|
|
31072
31077
|
}), "involvementStoreOver");
|
|
31073
31078
|
|
|
31074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
31075
31080
|
import { createHash as createHash12 } from "node:crypto";
|
|
31076
31081
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
31077
31082
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -31157,16 +31162,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
31157
31162
|
};
|
|
31158
31163
|
}, "meetingProjectsStoreOver");
|
|
31159
31164
|
|
|
31160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31161
31166
|
import { createHash as createHash15 } from "node:crypto";
|
|
31162
31167
|
|
|
31163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31164
31169
|
import { createHash as createHash14 } from "node:crypto";
|
|
31165
31170
|
|
|
31166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31167
31172
|
import { createHash as createHash13 } from "node:crypto";
|
|
31168
31173
|
|
|
31169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
31170
31175
|
var consolidationId = /* @__PURE__ */ __name((value, field3) => {
|
|
31171
31176
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
31172
31177
|
throw new CliError("validation_error", `${field3} must be a positive canonical tag id`);
|
|
@@ -31217,7 +31222,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
31217
31222
|
return input;
|
|
31218
31223
|
}, "consolidationApplyInput");
|
|
31219
31224
|
|
|
31220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31221
31226
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
31222
31227
|
id: String(row2.id),
|
|
31223
31228
|
sourceId: String(row2.source_id),
|
|
@@ -31292,7 +31297,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
31292
31297
|
}, { beforeCommit: check3 });
|
|
31293
31298
|
}, "applyTagConsolidation");
|
|
31294
31299
|
|
|
31295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31296
31301
|
var selections = [
|
|
31297
31302
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
31298
31303
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -31436,7 +31441,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
31436
31441
|
};
|
|
31437
31442
|
}, "previewRows");
|
|
31438
31443
|
|
|
31439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31440
31445
|
var kinds = ["project", "tag", "topic"];
|
|
31441
31446
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
31442
31447
|
if (signal?.aborted)
|
|
@@ -31700,7 +31705,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31700
31705
|
};
|
|
31701
31706
|
}, "vocabularyStoreOver");
|
|
31702
31707
|
|
|
31703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
31704
31709
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
31705
31710
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
31706
31711
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -32221,7 +32226,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
32221
32226
|
return key2.padEnd(3, "X");
|
|
32222
32227
|
}, "projectKey");
|
|
32223
32228
|
|
|
32224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
32225
32230
|
var DAY4 = 864e5;
|
|
32226
32231
|
var SETTING4 = "logs_pruned_at";
|
|
32227
32232
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY4, botUpdatePayloadsMs: 30 * DAY4 };
|
|
@@ -32248,7 +32253,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
32248
32253
|
};
|
|
32249
32254
|
}, "logPruner");
|
|
32250
32255
|
|
|
32251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
32252
32257
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
32253
32258
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
32254
32259
|
reason: "meeting-findings.stale"
|
|
@@ -32417,7 +32422,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32417
32422
|
};
|
|
32418
32423
|
}, "meetingFindingsStoreOver");
|
|
32419
32424
|
|
|
32420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
32421
32426
|
var RANK_BATCH = 512;
|
|
32422
32427
|
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";
|
|
32423
32428
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -32688,7 +32693,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
32688
32693
|
}
|
|
32689
32694
|
}), "meetingVectorsOver");
|
|
32690
32695
|
|
|
32691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
32692
32697
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
32693
32698
|
var TEXTS = {
|
|
32694
32699
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -32789,11 +32794,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32789
32794
|
};
|
|
32790
32795
|
}, "sourceMentionStoreOver");
|
|
32791
32796
|
|
|
32792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
32793
32798
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
32794
32799
|
import { dirname } from "node:path";
|
|
32795
32800
|
|
|
32796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
32797
32802
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
32798
32803
|
var CLIENTS_SETTING = "clients";
|
|
32799
32804
|
var coreVersion = (() => {
|
|
@@ -32851,7 +32856,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
32851
32856
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
32852
32857
|
}, "refusalAdvice");
|
|
32853
32858
|
|
|
32854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
32855
32860
|
var GENERATED = [
|
|
32856
32861
|
{
|
|
32857
32862
|
"name": "20261010184427_initial",
|
|
@@ -33648,7 +33653,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
33648
33653
|
}
|
|
33649
33654
|
];
|
|
33650
33655
|
|
|
33651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
33652
33657
|
var MANIFEST = [
|
|
33653
33658
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
33654
33659
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -33719,7 +33724,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
33719
33724
|
return migrations;
|
|
33720
33725
|
}, "generatedMigrations");
|
|
33721
33726
|
|
|
33722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
33723
33728
|
var MIGRATIONS = generatedMigrations();
|
|
33724
33729
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
33725
33730
|
version INTEGER PRIMARY KEY,
|
|
@@ -33772,7 +33777,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
33772
33777
|
}
|
|
33773
33778
|
}, "migrate");
|
|
33774
33779
|
|
|
33775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
33776
33781
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
33777
33782
|
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 ?");
|
|
33778
33783
|
if (pending.get(0, 1) === void 0)
|
|
@@ -33794,7 +33799,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
33794
33799
|
}
|
|
33795
33800
|
}, "fillJoinKeys");
|
|
33796
33801
|
|
|
33797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
33798
33803
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
33799
33804
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
33800
33805
|
try {
|
|
@@ -33807,8 +33812,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
33807
33812
|
}, "openSqlite");
|
|
33808
33813
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33809
33814
|
quietSqliteWarning();
|
|
33810
|
-
const { drizzle } = await import("./node-
|
|
33811
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
33815
|
+
const { drizzle } = await import("./node-KDZSMKIC.js");
|
|
33816
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-FR64YDYV.js");
|
|
33812
33817
|
const client = await nodeClient(path, { readOnly });
|
|
33813
33818
|
try {
|
|
33814
33819
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33818,8 +33823,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33818
33823
|
}
|
|
33819
33824
|
}, "openUnderNode");
|
|
33820
33825
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33821
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
33822
|
-
const { drizzle } = await import("./bun-
|
|
33826
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-7TZ73UKO.js");
|
|
33827
|
+
const { drizzle } = await import("./bun-ZX34DXTI.js");
|
|
33823
33828
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
33824
33829
|
try {
|
|
33825
33830
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33829,7 +33834,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33829
33834
|
}
|
|
33830
33835
|
}, "openUnderBun");
|
|
33831
33836
|
|
|
33832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
33833
33838
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
33834
33839
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
33835
33840
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -33844,7 +33849,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
33844
33849
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
33845
33850
|
}, "assertReadCompatible");
|
|
33846
33851
|
|
|
33847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
33848
33853
|
var BACKFILL_ON_OPEN = 5e3;
|
|
33849
33854
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
33850
33855
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -33900,10 +33905,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
33900
33905
|
}
|
|
33901
33906
|
}, "openStoreContext");
|
|
33902
33907
|
|
|
33903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
33904
33909
|
import { createHash as createHash16 } from "node:crypto";
|
|
33905
33910
|
|
|
33906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
33907
33912
|
var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
33908
33913
|
var ref = text3(2048);
|
|
33909
33914
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -33969,7 +33974,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
33969
33974
|
}))
|
|
33970
33975
|
});
|
|
33971
33976
|
|
|
33972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
33973
33978
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
33974
33979
|
var invalid7 = /* @__PURE__ */ __name((field3) => {
|
|
33975
33980
|
throw new CliError("validation_error", `invalid project annotations.${field3}`);
|
|
@@ -34073,7 +34078,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
34073
34078
|
invalid7("external.unused");
|
|
34074
34079
|
}, "validateProjectAnnotationsGraph");
|
|
34075
34080
|
|
|
34076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
34077
34082
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
34078
34083
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
34079
34084
|
var targetSchema = strictObject({
|
|
@@ -34179,7 +34184,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
34179
34184
|
};
|
|
34180
34185
|
}, "planBoundProjectAnnotations");
|
|
34181
34186
|
|
|
34182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
34183
34188
|
import { createHash as createHash17 } from "node:crypto";
|
|
34184
34189
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
34185
34190
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -34273,7 +34278,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
34273
34278
|
})).digest("hex");
|
|
34274
34279
|
}, "projectAnnotationSnapshotFingerprint");
|
|
34275
34280
|
|
|
34276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
34277
34282
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
34278
34283
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
34279
34284
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -34290,7 +34295,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
34290
34295
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
34291
34296
|
}, "projectAnnotationRequest");
|
|
34292
34297
|
|
|
34293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
34294
34299
|
var SnapshotBudget = class {
|
|
34295
34300
|
static {
|
|
34296
34301
|
__name(this, "SnapshotBudget");
|
|
@@ -34316,13 +34321,13 @@ var SnapshotBudget = class {
|
|
|
34316
34321
|
}
|
|
34317
34322
|
};
|
|
34318
34323
|
|
|
34319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34320
34325
|
import { createHash as createHash19 } from "node:crypto";
|
|
34321
34326
|
|
|
34322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
34323
34328
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
34324
34329
|
|
|
34325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
34326
34331
|
import { createHash as createHash18 } from "node:crypto";
|
|
34327
34332
|
var invalid9 = /* @__PURE__ */ __name(() => {
|
|
34328
34333
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -34465,7 +34470,7 @@ var ProjectSnapshotSources = class {
|
|
|
34465
34470
|
}
|
|
34466
34471
|
};
|
|
34467
34472
|
|
|
34468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
34469
34474
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
34470
34475
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
34471
34476
|
}, "unsupported");
|
|
@@ -34636,7 +34641,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, bud
|
|
|
34636
34641
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
34637
34642
|
}), "projectAnnotationSnapshot");
|
|
34638
34643
|
|
|
34639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34640
34645
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, manifest, bindings, budget) => read(database, () => {
|
|
34641
34646
|
const current = projectAnnotationSnapshot(database, projectId, budget).snapshot;
|
|
34642
34647
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -34698,7 +34703,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, man
|
|
|
34698
34703
|
};
|
|
34699
34704
|
}), "previewAnnotationSnapshot");
|
|
34700
34705
|
|
|
34701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
34702
34707
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snapshot2, bindings) => {
|
|
34703
34708
|
const mappings = { ...bindings };
|
|
34704
34709
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -34740,7 +34745,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snap
|
|
|
34740
34745
|
return mappings;
|
|
34741
34746
|
}, "restoreAnnotationRecords");
|
|
34742
34747
|
|
|
34743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
34744
34749
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
34745
34750
|
async preview(request) {
|
|
34746
34751
|
const { snapshot: snapshot2, projectId } = projectAnnotationRequest(request);
|
|
@@ -34770,7 +34775,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
34770
34775
|
}
|
|
34771
34776
|
}), "projectAnnotationStoreOver");
|
|
34772
34777
|
|
|
34773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
34774
34779
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
34775
34780
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
34776
34781
|
let merged = { from: from2, to };
|
|
@@ -34783,7 +34788,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
34783
34788
|
}, "markRange");
|
|
34784
34789
|
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");
|
|
34785
34790
|
|
|
34786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
34787
34792
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
34788
34793
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
34789
34794
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -34793,7 +34798,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
34793
34798
|
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);
|
|
34794
34799
|
}, "setTaskRulesStop");
|
|
34795
34800
|
|
|
34796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
34797
34802
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34798
34803
|
const { database } = context;
|
|
34799
34804
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -34849,7 +34854,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34849
34854
|
};
|
|
34850
34855
|
}, "syncStoreOver");
|
|
34851
34856
|
|
|
34852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
34853
34858
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34854
34859
|
const { database } = context;
|
|
34855
34860
|
return {
|
|
@@ -34871,7 +34876,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34871
34876
|
};
|
|
34872
34877
|
}, "tagsStoreOver");
|
|
34873
34878
|
|
|
34874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
34875
34880
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
34876
34881
|
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
|
|
34877
34882
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -34998,7 +35003,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
34998
35003
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
34999
35004
|
}, "savePictureChunks");
|
|
35000
35005
|
|
|
35001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
35002
35007
|
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,
|
|
35003
35008
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
35004
35009
|
FROM messages m
|
|
@@ -35081,7 +35086,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
35081
35086
|
return plain2(best(found2));
|
|
35082
35087
|
}, "nearestMessages");
|
|
35083
35088
|
|
|
35084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
35085
35090
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
35086
35091
|
const { database } = context;
|
|
35087
35092
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -35335,7 +35340,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
35335
35340
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
35336
35341
|
}), "vectorsStoreOver");
|
|
35337
35342
|
|
|
35338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
35339
35344
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
35340
35345
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
35341
35346
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -35423,10 +35428,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
35423
35428
|
}
|
|
35424
35429
|
}, "lastBackup");
|
|
35425
35430
|
|
|
35426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
35427
35432
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
35428
35433
|
|
|
35429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
35430
35435
|
var COUNTED_TABLES = [
|
|
35431
35436
|
"accounts",
|
|
35432
35437
|
"chats",
|
|
@@ -35511,7 +35516,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
35511
35516
|
};
|
|
35512
35517
|
}, "storeContents");
|
|
35513
35518
|
|
|
35514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
35515
35520
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
35516
35521
|
const context = await openStoreContext(options);
|
|
35517
35522
|
try {
|