@wirecat/tg-cli 0.102.0 → 0.103.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 +31 -19
- package/dist/bundle/{adapter-M2HRSFFL.js → adapter-QG3YFFOY.js} +49 -48
- package/dist/bundle/{all-profiles-GOD2QNTK.js → all-profiles-ECXH3TBF.js} +13 -13
- package/dist/bundle/{anthropic-LKU7RWMA.js → anthropic-5MKO3QX7.js} +10 -10
- package/dist/bundle/{bot-api-X3MPFVPL.js → bot-api-4DQPIOMK.js} +50 -49
- package/dist/bundle/{bot-history-OUMVVG22.js → bot-history-UN74XXLU.js} +19 -19
- package/dist/bundle/{bun-LIZ6MKFS.js → bun-PS73VF2C.js} +5 -5
- package/dist/bundle/{bun-sqlite-2IFQYQ44.js → bun-sqlite-RAWGPH23.js} +8 -8
- package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
- package/dist/bundle/{chunk-5D6OJREA.js → chunk-3CP7RK5R.js} +4 -4
- package/dist/bundle/{chunk-QL7CQ6VZ.js → chunk-3IXKDIPH.js} +48 -48
- package/dist/bundle/{chunk-F2TG3BA2.js → chunk-3QX6SOEO.js} +9 -9
- package/dist/bundle/{chunk-MGG7JSNO.js → chunk-537O7OVE.js} +6 -6
- package/dist/bundle/{chunk-M5UH5CF3.js → chunk-57XGUIXA.js} +8 -8
- package/dist/bundle/{chunk-WMOEOVWZ.js → chunk-5D4AEUVA.js} +3 -3
- package/dist/bundle/{chunk-ENE5CSVY.js → chunk-5HPAPVCB.js} +276 -260
- package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
- package/dist/bundle/{chunk-CLWYQNSC.js → chunk-6N25NZOE.js} +9 -9
- package/dist/bundle/{chunk-4QB4WDLT.js → chunk-AAMJZJYC.js} +15 -15
- package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
- package/dist/bundle/{chunk-2SUTCDGO.js → chunk-AUKAZRF6.js} +5 -5
- package/dist/bundle/{chunk-OHBHHBYL.js → chunk-BV4N333Y.js} +6 -6
- package/dist/bundle/{chunk-UR6ASUSG.js → chunk-BYYSVINK.js} +6 -6
- package/dist/bundle/{chunk-Y4XSWI22.js → chunk-CMQ34EZL.js} +6 -6
- package/dist/bundle/{chunk-ERQDBK5I.js → chunk-COZ74WW4.js} +4 -4
- package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
- package/dist/bundle/{chunk-264DAFJV.js → chunk-DLF3H6NP.js} +7 -7
- package/dist/bundle/{chunk-BQYTIYGB.js → chunk-DWQ4QT6X.js} +96 -96
- package/dist/bundle/{chunk-DE7LFMY2.js → chunk-EMC57SOZ.js} +11 -11
- package/dist/bundle/{chunk-GSKFAE3I.js → chunk-EQHQ2AX3.js} +148 -55
- package/dist/bundle/{chunk-XXTJUZMB.js → chunk-F27OI4J2.js} +4 -4
- package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
- package/dist/bundle/{chunk-334UBWOB.js → chunk-FSPDODVT.js} +14 -14
- package/dist/bundle/{chunk-YHB57PFN.js → chunk-G5IMOOPB.js} +4 -4
- package/dist/bundle/{chunk-AUOXTGTU.js → chunk-GO354DJ5.js} +4 -4
- package/dist/bundle/{chunk-FOUE7XLK.js → chunk-H2UTBYFC.js} +4 -4
- package/dist/bundle/{chunk-V52SBQYF.js → chunk-HCDZWFXO.js} +17 -17
- package/dist/bundle/{chunk-5VSR5ENL.js → chunk-KCVDWZWS.js} +11 -11
- package/dist/bundle/{chunk-TV5DGHBT.js → chunk-KQ5BUI5T.js} +248 -248
- package/dist/bundle/{chunk-U4RRZUNP.js → chunk-LAYPLF7G.js} +35 -282
- package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
- package/dist/bundle/{chunk-FBWOQMPE.js → chunk-MHHDVR4G.js} +227 -283
- package/dist/bundle/{chunk-VUJ34PEQ.js → chunk-NIVZHTN4.js} +15 -15
- package/dist/bundle/{chunk-JFSVXMN6.js → chunk-NKN54EDN.js} +6 -6
- package/dist/bundle/chunk-O5EHUB2V.js +2 -0
- package/dist/bundle/{chunk-PSH7K6TL.js → chunk-OGVBRRWY.js} +25 -25
- package/dist/bundle/{chunk-Q2NYEX4A.js → chunk-Q2LBOPKO.js} +57 -27
- package/dist/bundle/{chunk-UK3GAN7Q.js → chunk-QF7VVIF4.js} +11 -11
- package/dist/bundle/{chunk-WVEHUKCZ.js → chunk-RD7SSY7H.js} +4 -4
- package/dist/bundle/{chunk-TXBUDJ3P.js → chunk-RKQIEJFR.js} +5 -5
- package/dist/bundle/chunk-RMC2S3F4.js +264 -0
- package/dist/bundle/{chunk-4PDEQL6T.js → chunk-S5M4HFOZ.js} +6 -6
- package/dist/bundle/{chunk-BBC546ZA.js → chunk-SSALGKMJ.js} +6 -6
- package/dist/bundle/{chunk-QEPZUFPL.js → chunk-SSV37M5T.js} +59 -59
- package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
- package/dist/bundle/{chunk-HLAZ65AW.js → chunk-TEO2KP52.js} +5 -5
- package/dist/bundle/{chunk-ZRNRQFTF.js → chunk-TPFLD4OM.js} +5 -5
- package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
- package/dist/bundle/{chunk-W5EB4JLV.js → chunk-VZN5LD26.js} +6 -6
- package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
- package/dist/bundle/{chunk-CRZPQQHE.js → chunk-WULARSC4.js} +26 -26
- package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
- package/dist/bundle/{chunk-OCWARAFE.js → chunk-YI72UVTJ.js} +5 -5
- package/dist/bundle/{chunk-SRU3OF4R.js → chunk-Z2DPNTSU.js} +5 -5
- package/dist/bundle/{chunk-5DFGJPT6.js → chunk-ZHXSRYJ5.js} +6 -6
- package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
- package/dist/bundle/command-contract-ZGFJTLB2.js +32 -0
- package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
- package/dist/bundle/{echarts-27W2CIBD.js → echarts-UEQDIHVQ.js} +5 -5
- package/dist/bundle/{embed-FGJ273X2.js → embed-5DPZKRW5.js} +9 -8
- package/dist/bundle/{embedder-7ELL3CQ3.js → embedder-NBQXDXAO.js} +12 -11
- package/dist/bundle/entry-EE6YRAP4.js +14 -0
- package/dist/bundle/first-run-OSEVVWNT.js +24 -0
- package/dist/bundle/first-screen-753THOU6.js +30 -0
- package/dist/bundle/identity-LNH33PN3.js +11 -0
- package/dist/bundle/instructions-PYGVIT7I.js +9 -0
- package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
- package/dist/bundle/{node-RSL3HANO.js → node-3OBKCX6M.js} +5 -5
- package/dist/bundle/{node-IUL5HSYI.js → node-P4E63KXA.js} +5 -5
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/{node-sqlite-7R3PYQGJ.js → node-sqlite-DMMTDRFB.js} +8 -8
- package/dist/bundle/oauth-FX5DDCRS.js +18 -0
- package/dist/bundle/open-G6QRQAAL.js +20 -0
- package/dist/bundle/{process-RMV3AKLB.js → process-47MMIFIJ.js} +5 -5
- package/dist/bundle/{program-PIUYQHBF.js → program-LBHBWRK5.js} +52 -51
- package/dist/bundle/prompt-CJ6Y4JYC.js +13 -0
- package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
- package/dist/bundle/{recognize-3GMOLZF4.js → recognize-7BLTOI45.js} +9 -9
- package/dist/bundle/remote-Q4A4JY6U.js +27 -0
- package/dist/bundle/{rerank-W3OSXXBN.js → rerank-CQAR46L3.js} +10 -9
- package/dist/bundle/{serve-ZCPO44NO.js → serve-2UO2YMMG.js} +13 -13
- package/dist/bundle/{server-YWL4HDOP.js → server-6XYURULQ.js} +53 -50
- package/dist/bundle/{server-FXU4QFRB.js → server-FMKC4RLL.js} +37 -35
- package/dist/bundle/{state-MJPTDIB5.js → state-RNWN2RDY.js} +9 -9
- package/dist/bundle/{store-6VNQG56O.js → store-BBHTR477.js} +14 -14
- package/dist/bundle/store-maintenance-command-GD6OLRXH.js +44 -0
- package/dist/bundle/tg.js +8 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-2SJOUK6J.js +0 -2
- package/dist/bundle/command-contract-A6VZN3ZR.js +0 -31
- package/dist/bundle/entry-SEE5YWIX.js +0 -14
- package/dist/bundle/first-run-BD7FEC3W.js +0 -24
- package/dist/bundle/first-screen-ASZV6LSA.js +0 -29
- package/dist/bundle/identity-QR4F42T6.js +0 -11
- package/dist/bundle/instructions-L74K64PV.js +0 -9
- package/dist/bundle/node-UPPL626U.js +0 -21
- package/dist/bundle/oauth-4ESGXF6U.js +0 -18
- package/dist/bundle/open-DFYEUGTA.js +0 -20
- package/dist/bundle/prompt-H7GYQQLL.js +0 -13
- package/dist/bundle/proxy-transport-G4MA6BGU.js +0 -17
- package/dist/bundle/remote-IRWTCI2B.js +0 -26
- package/dist/bundle/store-maintenance-command-62TQTMER.js +0 -43
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CHAT_MESSAGES_READ,
|
|
5
5
|
FACT_STATUSES,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
validateQuery,
|
|
52
52
|
walkQuery,
|
|
53
53
|
zonedMoment
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-SSV37M5T.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-KCVDWZWS.js";
|
|
68
68
|
import {
|
|
69
69
|
DEFAULT_TASK_CATEGORIES,
|
|
70
70
|
sharedConfigPath,
|
|
71
71
|
storedTaskCategories,
|
|
72
72
|
taskCategoriesReader
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-3QX6SOEO.js";
|
|
74
74
|
import {
|
|
75
75
|
storePath
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-TPFLD4OM.js";
|
|
77
77
|
import {
|
|
78
78
|
PRAGMAS,
|
|
79
79
|
quietSqliteWarning,
|
|
80
80
|
storeCapable
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-6N25NZOE.js";
|
|
82
82
|
import {
|
|
83
83
|
SQLiteTable,
|
|
84
84
|
TableAliasProxyHandler,
|
|
@@ -103,10 +103,10 @@ import {
|
|
|
103
103
|
sql,
|
|
104
104
|
sqliteTable,
|
|
105
105
|
text
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-G5IMOOPB.js";
|
|
107
107
|
import {
|
|
108
108
|
singleLine
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-T4SDOYPY.js";
|
|
110
110
|
import {
|
|
111
111
|
CliError,
|
|
112
112
|
array,
|
|
@@ -124,15 +124,15 @@ import {
|
|
|
124
124
|
safeParse,
|
|
125
125
|
strictObject,
|
|
126
126
|
string
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-67SRVSPU.js";
|
|
128
128
|
import {
|
|
129
129
|
resolveFrom
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-Y5E2WNWB.js";
|
|
131
131
|
import {
|
|
132
132
|
__name
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
134
134
|
|
|
135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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",
|
|
@@ -14859,7 +14859,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14859
14859
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
14860
14860
|
}, "taskAccountOf");
|
|
14861
14861
|
|
|
14862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
14863
14863
|
var SIMPLE_REFERENCES = [
|
|
14864
14864
|
"note",
|
|
14865
14865
|
"document",
|
|
@@ -14931,7 +14931,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
|
|
|
14931
14931
|
}, "folderPath");
|
|
14932
14932
|
var canonicalReference = /* @__PURE__ */ __name((text5) => formatReference(parseReference(text5)), "canonicalReference");
|
|
14933
14933
|
|
|
14934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
14935
14935
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
14936
14936
|
var REFERABLE = {
|
|
14937
14937
|
note: { tombstone: true },
|
|
@@ -15089,7 +15089,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15089
15089
|
}, "taskIdOf");
|
|
15090
15090
|
var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
|
|
15091
15091
|
|
|
15092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15093
15093
|
var toMs = /* @__PURE__ */ __name((iso10) => {
|
|
15094
15094
|
if (iso10 === null || iso10 === void 0)
|
|
15095
15095
|
return null;
|
|
@@ -15103,7 +15103,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15103
15103
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15104
15104
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15105
15105
|
|
|
15106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15107
15107
|
var TAG_KINDS = ["tag", "topic"];
|
|
15108
15108
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15109
15109
|
var TAG_TYPE = {
|
|
@@ -15294,7 +15294,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15294
15294
|
return result;
|
|
15295
15295
|
}, "tagsOf");
|
|
15296
15296
|
|
|
15297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15298
15298
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15299
15299
|
var SPEECH = speech("att");
|
|
15300
15300
|
var quoted = /* @__PURE__ */ __name((value) => `"${value.replaceAll('"', '""')}"`, "quoted");
|
|
@@ -15647,7 +15647,7 @@ var FIELD_COMPILERS = {
|
|
|
15647
15647
|
subject
|
|
15648
15648
|
};
|
|
15649
15649
|
|
|
15650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15651
15651
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15652
15652
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15653
15653
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -15663,7 +15663,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
15663
15663
|
};
|
|
15664
15664
|
}, "placeOf");
|
|
15665
15665
|
|
|
15666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
15667
15667
|
var DRAIN_ON_WRITE = 500;
|
|
15668
15668
|
var METHOD = "rules";
|
|
15669
15669
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -15826,7 +15826,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
15826
15826
|
return queued.length;
|
|
15827
15827
|
}, "drainMentions");
|
|
15828
15828
|
|
|
15829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
15830
15830
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
15831
15831
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
15832
15832
|
if (!exists2)
|
|
@@ -15834,7 +15834,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
15834
15834
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
15835
15835
|
}, "indexRow");
|
|
15836
15836
|
|
|
15837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
15838
15838
|
var INDEX = "message_stems";
|
|
15839
15839
|
var SETTING2 = "searchStemmers";
|
|
15840
15840
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -15956,7 +15956,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
15956
15956
|
};
|
|
15957
15957
|
}, "stemmerCache");
|
|
15958
15958
|
|
|
15959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
15960
15960
|
var connections = /* @__PURE__ */ new WeakMap();
|
|
15961
15961
|
var connectionOf = /* @__PURE__ */ __name((database) => {
|
|
15962
15962
|
let connection = connections.get(database);
|
|
@@ -16015,7 +16015,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
16015
16015
|
}
|
|
16016
16016
|
}, "read");
|
|
16017
16017
|
|
|
16018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
16019
16019
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
16020
16020
|
coalesce(CASE k.chunkable_type
|
|
16021
16021
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16157,7 +16157,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16157
16157
|
}, "dropUnusedVectors");
|
|
16158
16158
|
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");
|
|
16159
16159
|
|
|
16160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16161
16161
|
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({
|
|
16162
16162
|
target: [accounts.provider, accounts.externalId],
|
|
16163
16163
|
set: {
|
|
@@ -16262,7 +16262,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16262
16262
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16263
16263
|
}, "dropOrphanPeople");
|
|
16264
16264
|
|
|
16265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
16266
16266
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
16267
16267
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
16268
16268
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -16281,7 +16281,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
16281
16281
|
}
|
|
16282
16282
|
}, "resolvePersonLinks");
|
|
16283
16283
|
|
|
16284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
16285
16285
|
var flag = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
16286
16286
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
16287
16287
|
find: orm.select({
|
|
@@ -16500,7 +16500,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
16500
16500
|
return saved.pk;
|
|
16501
16501
|
}, "meetingIdentityPk");
|
|
16502
16502
|
|
|
16503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
16504
16504
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
16505
16505
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
16506
16506
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -16565,7 +16565,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
16565
16565
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
16566
16566
|
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");
|
|
16567
16567
|
|
|
16568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
16569
16569
|
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");
|
|
16570
16570
|
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");
|
|
16571
16571
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -16837,7 +16837,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
16837
16837
|
}
|
|
16838
16838
|
}, "replaceAutoTags");
|
|
16839
16839
|
|
|
16840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
16841
16841
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
16842
16842
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
16843
16843
|
var counterValue = /* @__PURE__ */ __name((message2, field3) => {
|
|
@@ -16874,7 +16874,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
16874
16874
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
16875
16875
|
}, "counterFreshness");
|
|
16876
16876
|
|
|
16877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16878
16878
|
import { createHash as createHash3 } from "node:crypto";
|
|
16879
16879
|
var CHUNK_CHARS = 1200;
|
|
16880
16880
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16979,7 +16979,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16979
16979
|
return chunks2;
|
|
16980
16980
|
}, "cutChunks");
|
|
16981
16981
|
|
|
16982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
16983
16983
|
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");
|
|
16984
16984
|
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;
|
|
16985
16985
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -17060,7 +17060,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
|
|
|
17060
17060
|
return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
|
|
17061
17061
|
}, "mailCore");
|
|
17062
17062
|
|
|
17063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17064
17064
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17065
17065
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17066
17066
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17150,7 +17150,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17150
17150
|
});
|
|
17151
17151
|
}, "linkMeeting");
|
|
17152
17152
|
|
|
17153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
17154
17154
|
var DAY = 864e5;
|
|
17155
17155
|
var CURRENCY = [
|
|
17156
17156
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -17267,7 +17267,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
|
|
|
17267
17267
|
return best?.day ?? null;
|
|
17268
17268
|
}, "dueDayOf");
|
|
17269
17269
|
|
|
17270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
17271
17271
|
var DAY2 = 864e5;
|
|
17272
17272
|
var STOP_WORDS = new Set([
|
|
17273
17273
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -17422,7 +17422,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
17422
17422
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
17423
17423
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
17424
17424
|
|
|
17425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
17426
17426
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
17427
17427
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
17428
17428
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17693,7 +17693,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17693
17693
|
};
|
|
17694
17694
|
}, "readiness");
|
|
17695
17695
|
|
|
17696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17697
17697
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17698
17698
|
var SCAN_PAGE2 = 5e3;
|
|
17699
17699
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17756,7 +17756,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17756
17756
|
}, "nearestPictures")
|
|
17757
17757
|
}), "documentPicturesOver");
|
|
17758
17758
|
|
|
17759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17760
17760
|
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), ''))";
|
|
17761
17761
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17762
17762
|
"working-location",
|
|
@@ -17938,7 +17938,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17938
17938
|
return true;
|
|
17939
17939
|
}, "resetNoteIndex");
|
|
17940
17940
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
17942
17942
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
17943
17943
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
17944
17944
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18048,7 +18048,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor) => {
|
|
|
18048
18048
|
return emails3 + threads;
|
|
18049
18049
|
}, "drainEmailIndex");
|
|
18050
18050
|
|
|
18051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18052
18052
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18053
18053
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18054
18054
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -18072,7 +18072,7 @@ var setEmailFlags = /* @__PURE__ */ __name((database, accountId, flags, now2) =>
|
|
|
18072
18072
|
return changed;
|
|
18073
18073
|
}, "setEmailFlags");
|
|
18074
18074
|
|
|
18075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
18076
18076
|
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");
|
|
18077
18077
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
18078
18078
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18139,7 +18139,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
18139
18139
|
}
|
|
18140
18140
|
}), "mailRulesOver");
|
|
18141
18141
|
|
|
18142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
18143
18143
|
var FOLDED = [
|
|
18144
18144
|
{ table: "tasks", column: "title" },
|
|
18145
18145
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -18171,7 +18171,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
18171
18171
|
return filled2;
|
|
18172
18172
|
}, "fillFolded");
|
|
18173
18173
|
|
|
18174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
18175
18175
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
18176
18176
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
18177
18177
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -18179,7 +18179,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
18179
18179
|
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);
|
|
18180
18180
|
}, "reviewLink");
|
|
18181
18181
|
|
|
18182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
18183
18183
|
function checkMeetingCancelled(signal) {
|
|
18184
18184
|
if (!signal?.aborted)
|
|
18185
18185
|
return;
|
|
@@ -18190,7 +18190,7 @@ function checkMeetingCancelled(signal) {
|
|
|
18190
18190
|
}
|
|
18191
18191
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
18192
18192
|
|
|
18193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
18194
18194
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
18195
18195
|
id: Number(row2.id),
|
|
18196
18196
|
accountId: Number(row2.account_id),
|
|
@@ -18240,7 +18240,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
18240
18240
|
createdAt: Number(row2.created_at)
|
|
18241
18241
|
}), "transcriptRowOf");
|
|
18242
18242
|
|
|
18243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
18244
18244
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
18245
18245
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
18246
18246
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -18407,7 +18407,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18407
18407
|
}
|
|
18408
18408
|
}), "meetingReadsOver");
|
|
18409
18409
|
|
|
18410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
18411
18411
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
18412
18412
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
18413
18413
|
const params = [input.accountId];
|
|
@@ -18450,7 +18450,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
18450
18450
|
return { clauses, params };
|
|
18451
18451
|
}, "meetingSelectionSql");
|
|
18452
18452
|
|
|
18453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
18454
18454
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
18455
18455
|
async meetingChatLines(input) {
|
|
18456
18456
|
checkMeetingCancelled(input.signal);
|
|
@@ -18478,7 +18478,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18478
18478
|
}
|
|
18479
18479
|
}), "meetingChatLinesOver");
|
|
18480
18480
|
|
|
18481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
18482
18482
|
var MESSAGE_FIELDS = {
|
|
18483
18483
|
pk: messages.id,
|
|
18484
18484
|
nativeId: messages.externalId,
|
|
@@ -18644,7 +18644,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
18644
18644
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
18645
18645
|
}), "chatActivity");
|
|
18646
18646
|
|
|
18647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
18648
18648
|
var HIT_FIELDS = {
|
|
18649
18649
|
...MESSAGE_FIELDS,
|
|
18650
18650
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -18743,7 +18743,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
18743
18743
|
};
|
|
18744
18744
|
}, "directReplies");
|
|
18745
18745
|
|
|
18746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
18747
18747
|
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");
|
|
18748
18748
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
18749
18749
|
const found2 = identityRow(context, ref3);
|
|
@@ -18874,7 +18874,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
18874
18874
|
}, "mentioning");
|
|
18875
18875
|
var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
18876
18876
|
|
|
18877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
18878
18878
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
18879
18879
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
18880
18880
|
}, "missing");
|
|
@@ -18996,7 +18996,7 @@ function meetingContextLinksOver(context) {
|
|
|
18996
18996
|
}
|
|
18997
18997
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
18998
18998
|
|
|
18999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19000
19000
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19001
19001
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19002
19002
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19025,7 +19025,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19025
19025
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19026
19026
|
}, "indexedText");
|
|
19027
19027
|
|
|
19028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19029
19029
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19030
19030
|
var meetingCurrentIndexRows = `
|
|
19031
19031
|
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
|
|
@@ -19056,7 +19056,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19056
19056
|
}, "invalidateMeetingStems");
|
|
19057
19057
|
var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19058
19058
|
|
|
19059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19060
19060
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19061
19061
|
return {
|
|
19062
19062
|
async indexSearch(original) {
|
|
@@ -19124,10 +19124,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
19124
19124
|
}
|
|
19125
19125
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
19126
19126
|
|
|
19127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19128
19128
|
import { createHash as createHash4 } from "node:crypto";
|
|
19129
19129
|
|
|
19130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
19131
19131
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
19132
19132
|
const padded = ` ${term} `;
|
|
19133
19133
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -19136,7 +19136,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
19136
19136
|
return [...pieces];
|
|
19137
19137
|
}, "trigrams");
|
|
19138
19138
|
|
|
19139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
19140
19140
|
var SHORTEST_CORRECTION = 3;
|
|
19141
19141
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
19142
19142
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -19183,7 +19183,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
19183
19183
|
return corrections;
|
|
19184
19184
|
}, "correctWords");
|
|
19185
19185
|
|
|
19186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
19187
19187
|
var SHORTEST_GARBLED = 4;
|
|
19188
19188
|
var MOST_WIDENED = 64;
|
|
19189
19189
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -19275,7 +19275,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
19275
19275
|
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));
|
|
19276
19276
|
}, "widenWords");
|
|
19277
19277
|
|
|
19278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
19279
19279
|
import { readFileSync } from "node:fs";
|
|
19280
19280
|
var loaded;
|
|
19281
19281
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -19334,7 +19334,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
19334
19334
|
return false;
|
|
19335
19335
|
}, "knownRussianWord");
|
|
19336
19336
|
|
|
19337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
19338
19338
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
19339
19339
|
var MOST_WORDS = 128;
|
|
19340
19340
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -19561,7 +19561,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
|
|
|
19561
19561
|
return check3(tree);
|
|
19562
19562
|
}, "matchMeetingText");
|
|
19563
19563
|
|
|
19564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19565
19565
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
19566
19566
|
throw new CliError("validation_error", message2);
|
|
19567
19567
|
}, "fail");
|
|
@@ -19738,7 +19738,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
19738
19738
|
}
|
|
19739
19739
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
19740
19740
|
|
|
19741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
19742
19742
|
import { createHash as createHash5 } from "node:crypto";
|
|
19743
19743
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
19744
19744
|
if (value === void 0)
|
|
@@ -19828,7 +19828,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
19828
19828
|
}
|
|
19829
19829
|
}), "meetingParticipantSearchOver");
|
|
19830
19830
|
|
|
19831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
19832
19832
|
var preparationQueries = {
|
|
19833
19833
|
participants: {
|
|
19834
19834
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -19878,7 +19878,7 @@ var preparationQueries = {
|
|
|
19878
19878
|
}
|
|
19879
19879
|
};
|
|
19880
19880
|
|
|
19881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
19882
19882
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19883
19883
|
async preparationContext(original) {
|
|
19884
19884
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -19919,7 +19919,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19919
19919
|
}
|
|
19920
19920
|
}), "meetingPreparationContextOver");
|
|
19921
19921
|
|
|
19922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
19923
19923
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
19924
19924
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
19925
19925
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -19933,7 +19933,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
19933
19933
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
19934
19934
|
)`, "preparationSubjects");
|
|
19935
19935
|
|
|
19936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
19937
19937
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19938
19938
|
async preparationKnowledge(original) {
|
|
19939
19939
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -19978,7 +19978,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
19978
19978
|
}
|
|
19979
19979
|
}), "meetingPreparationKnowledgeOver");
|
|
19980
19980
|
|
|
19981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
19982
19982
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19983
19983
|
async preparationNotes(original) {
|
|
19984
19984
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20031,7 +20031,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20031
20031
|
}
|
|
20032
20032
|
}), "meetingPreparationNotesOver");
|
|
20033
20033
|
|
|
20034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20035
20035
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20036
20036
|
async relatedHistory(original) {
|
|
20037
20037
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -20102,7 +20102,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20102
20102
|
}
|
|
20103
20103
|
}), "meetingRelatedHistoryOver");
|
|
20104
20104
|
|
|
20105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
20106
20106
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
20107
20107
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
20108
20108
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -20183,7 +20183,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20183
20183
|
}
|
|
20184
20184
|
}), "meetingReviewOver");
|
|
20185
20185
|
|
|
20186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
20187
20187
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
20188
20188
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
20189
20189
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -20237,7 +20237,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20237
20237
|
}
|
|
20238
20238
|
}), "meetingSeriesHistoryOver");
|
|
20239
20239
|
|
|
20240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
20241
20241
|
var MOST_ROWS = 5e5;
|
|
20242
20242
|
var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20243
20243
|
async meetingStats(input) {
|
|
@@ -20284,7 +20284,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20284
20284
|
}
|
|
20285
20285
|
}), "meetingStatsOver");
|
|
20286
20286
|
|
|
20287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
20288
20288
|
var CURSOR_KEY = "meetings";
|
|
20289
20289
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
20290
20290
|
id: Number(row2.id),
|
|
@@ -20836,7 +20836,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
20836
20836
|
};
|
|
20837
20837
|
}, "meetingStoreOver");
|
|
20838
20838
|
|
|
20839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
20840
20840
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
20841
20841
|
id: `email:${place.emailId}`,
|
|
20842
20842
|
chatId: place.threadExternalId,
|
|
@@ -21404,7 +21404,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor = stem
|
|
|
21404
21404
|
}
|
|
21405
21405
|
}), "mailStoreOver");
|
|
21406
21406
|
|
|
21407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
21408
21408
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21409
21409
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
21410
21410
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -21494,7 +21494,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
21494
21494
|
}, "knownWord");
|
|
21495
21495
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
21496
21496
|
|
|
21497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
21498
21498
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
21499
21499
|
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");
|
|
21500
21500
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -21580,7 +21580,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
21580
21580
|
return found2;
|
|
21581
21581
|
}, "spokenTranscripts");
|
|
21582
21582
|
|
|
21583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
21584
21584
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
21585
21585
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
21586
21586
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -21627,7 +21627,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
21627
21627
|
});
|
|
21628
21628
|
}, "placeHits");
|
|
21629
21629
|
|
|
21630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
21631
21631
|
var MESSAGES2 = {
|
|
21632
21632
|
rows: "messages",
|
|
21633
21633
|
threads: "chats",
|
|
@@ -22089,7 +22089,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
22089
22089
|
};
|
|
22090
22090
|
}, "runQuery");
|
|
22091
22091
|
|
|
22092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
22093
22093
|
function invalidMetadata() {
|
|
22094
22094
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
22095
22095
|
}
|
|
@@ -22191,7 +22191,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
22191
22191
|
};
|
|
22192
22192
|
}), "counterTargets");
|
|
22193
22193
|
|
|
22194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
22195
22195
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
22196
22196
|
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,
|
|
22197
22197
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -22310,7 +22310,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
22310
22310
|
}));
|
|
22311
22311
|
}, "attachmentViews");
|
|
22312
22312
|
|
|
22313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
22314
22314
|
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");
|
|
22315
22315
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
|
|
22316
22316
|
const { orm, database, now: now2 } = context;
|
|
@@ -22348,7 +22348,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
22348
22348
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
22349
22349
|
}, "intoVoiceAttachment");
|
|
22350
22350
|
|
|
22351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
22352
22352
|
var FIELDS = [
|
|
22353
22353
|
"threadExternalId",
|
|
22354
22354
|
"senderIdentityId",
|
|
@@ -22655,7 +22655,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
22655
22655
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
22656
22656
|
}, "writeDerivedReactions");
|
|
22657
22657
|
|
|
22658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
22659
22659
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
22660
22660
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
22661
22661
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -22681,7 +22681,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
22681
22681
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
22682
22682
|
}, "release");
|
|
22683
22683
|
|
|
22684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
22685
22685
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
22686
22686
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
22687
22687
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -22702,7 +22702,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
22702
22702
|
};
|
|
22703
22703
|
}, "keysOver");
|
|
22704
22704
|
|
|
22705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
22706
22706
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
22707
22707
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
22708
22708
|
if (!row2)
|
|
@@ -22737,7 +22737,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
22737
22737
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
22738
22738
|
}, "saveProfile");
|
|
22739
22739
|
|
|
22740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
22741
22741
|
var BOT_KINDS = ["agent", "script", "integration"];
|
|
22742
22742
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
22743
22743
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -22773,7 +22773,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
22773
22773
|
return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
|
|
22774
22774
|
}, "originOfActor");
|
|
22775
22775
|
|
|
22776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
22777
22777
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
22778
22778
|
const owner = ownerPerson(context.database).id;
|
|
22779
22779
|
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);
|
|
@@ -22794,7 +22794,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
22794
22794
|
return personOf(context, ref3);
|
|
22795
22795
|
}, "linkToOwner");
|
|
22796
22796
|
|
|
22797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
22798
22798
|
var PROVIDERS_SETTING = "providers";
|
|
22799
22799
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
22800
22800
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -22829,7 +22829,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
22829
22829
|
});
|
|
22830
22830
|
}, "registerProvider");
|
|
22831
22831
|
|
|
22832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
22833
22833
|
var DAY3 = 864e5;
|
|
22834
22834
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
22835
22835
|
var TEXT_LIMIT = 20;
|
|
@@ -23028,7 +23028,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
23028
23028
|
};
|
|
23029
23029
|
}, "taskSimilarityOver");
|
|
23030
23030
|
|
|
23031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
23032
23032
|
var SETTING3 = "taskCategories";
|
|
23033
23033
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
23034
23034
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -23047,7 +23047,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
23047
23047
|
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);
|
|
23048
23048
|
}, "saveTaskCategories");
|
|
23049
23049
|
|
|
23050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
23051
23051
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
23052
23052
|
var ALLOWED = "taskAgentClose";
|
|
23053
23053
|
var MIN = "taskAgentCloseMin";
|
|
@@ -23103,7 +23103,7 @@ var SUGGESTION_COLUMNS = [
|
|
|
23103
23103
|
];
|
|
23104
23104
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
23105
23105
|
|
|
23106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
23107
23107
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
23108
23108
|
var MAX_TEXT_CHARS = 2e6;
|
|
23109
23109
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -23129,7 +23129,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
23129
23129
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
23130
23130
|
}, "pdfPreviewLimits");
|
|
23131
23131
|
|
|
23132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
23133
23133
|
import { randomBytes } from "node:crypto";
|
|
23134
23134
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23135
23135
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -23142,7 +23142,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
23142
23142
|
return time3 + random;
|
|
23143
23143
|
}, "ulid");
|
|
23144
23144
|
|
|
23145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
23146
23146
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
23147
23147
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
23148
23148
|
if (!meta && !sections?.length)
|
|
@@ -23163,7 +23163,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
23163
23163
|
return typeof language === "string" && language !== "" ? language : null;
|
|
23164
23164
|
}, "languageOf");
|
|
23165
23165
|
|
|
23166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
23167
23167
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
23168
23168
|
var objectOf = /* @__PURE__ */ __name((value) => {
|
|
23169
23169
|
if (isObject(value))
|
|
@@ -23406,7 +23406,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
23406
23406
|
};
|
|
23407
23407
|
}, "filesStoreOver");
|
|
23408
23408
|
|
|
23409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
23410
23410
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
23411
23411
|
entity: "document",
|
|
23412
23412
|
backend: "sql",
|
|
@@ -23452,7 +23452,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
23452
23452
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
23453
23453
|
}, "importedDocumentWhere");
|
|
23454
23454
|
|
|
23455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
23456
23456
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
23457
23457
|
var iso = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23458
23458
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso(value), "optionalIso");
|
|
@@ -23961,7 +23961,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
23961
23961
|
};
|
|
23962
23962
|
}, "notesStoreOver");
|
|
23963
23963
|
|
|
23964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
23965
23965
|
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";
|
|
23966
23966
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23967
23967
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -24077,7 +24077,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
24077
24077
|
};
|
|
24078
24078
|
}, "memoriesStoreOver");
|
|
24079
24079
|
|
|
24080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
24081
24081
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
24082
24082
|
var KEY = "taskFirstPassPerChat";
|
|
24083
24083
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -24097,7 +24097,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
24097
24097
|
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);
|
|
24098
24098
|
}, "saveFirstPassPerChat");
|
|
24099
24099
|
|
|
24100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
24101
24101
|
var TASK_RELATION_KINDS = [
|
|
24102
24102
|
"blocked-by",
|
|
24103
24103
|
"follow-up-of",
|
|
@@ -24227,7 +24227,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
24227
24227
|
};
|
|
24228
24228
|
}, "taskRelationsStoreOver");
|
|
24229
24229
|
|
|
24230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
24231
24231
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
24232
24232
|
var iso3 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
24233
24233
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind3, changes, at) => {
|
|
@@ -24499,7 +24499,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
24499
24499
|
};
|
|
24500
24500
|
}, "workTasksOver");
|
|
24501
24501
|
|
|
24502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
24503
24503
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
24504
24504
|
const { database, now: now2 } = context;
|
|
24505
24505
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -24545,7 +24545,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
24545
24545
|
};
|
|
24546
24546
|
}, "taskCloseOver");
|
|
24547
24547
|
|
|
24548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
24549
24549
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
24550
24550
|
const { database, now: now2 } = context;
|
|
24551
24551
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -24763,7 +24763,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
24763
24763
|
};
|
|
24764
24764
|
}, "taskPairsOver");
|
|
24765
24765
|
|
|
24766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
24767
24767
|
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";
|
|
24768
24768
|
var taskStoreOver = /* @__PURE__ */ __name((context) => {
|
|
24769
24769
|
const { database, now: now2 } = context;
|
|
@@ -24958,7 +24958,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
24958
24958
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
24959
24959
|
}, "oneOf");
|
|
24960
24960
|
|
|
24961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
24962
24962
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
24963
24963
|
const { database } = context;
|
|
24964
24964
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -25000,7 +25000,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
25000
25000
|
};
|
|
25001
25001
|
}, "accountsStoreOver");
|
|
25002
25002
|
|
|
25003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
25004
25004
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
25005
25005
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
25006
25006
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -25024,7 +25024,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
25024
25024
|
})), "keepDownloads");
|
|
25025
25025
|
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");
|
|
25026
25026
|
|
|
25027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
25028
25028
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
25029
25029
|
const { database } = context;
|
|
25030
25030
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25081,7 +25081,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25081
25081
|
}, "keepAttachmentText")
|
|
25082
25082
|
}), "attachmentsStoreOver");
|
|
25083
25083
|
|
|
25084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
25085
25085
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
25086
25086
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
25087
25087
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -25261,7 +25261,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
25261
25261
|
return done;
|
|
25262
25262
|
}, "rekeyChats");
|
|
25263
25263
|
|
|
25264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
25265
25265
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
25266
25266
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
25267
25267
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -25293,7 +25293,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
|
|
|
25293
25293
|
});
|
|
25294
25294
|
}, "chatCompleteness");
|
|
25295
25295
|
|
|
25296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
25297
25297
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25298
25298
|
const { database } = context;
|
|
25299
25299
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -25393,7 +25393,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25393
25393
|
};
|
|
25394
25394
|
}, "chatsStoreOver");
|
|
25395
25395
|
|
|
25396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
25397
25397
|
import { createHash as createHash6 } from "node:crypto";
|
|
25398
25398
|
var BATCH_CONTEXT = 50;
|
|
25399
25399
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -25531,7 +25531,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
25531
25531
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
25532
25532
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
25533
25533
|
|
|
25534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
25535
25535
|
import { setTimeout } from "node:timers/promises";
|
|
25536
25536
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
25537
25537
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -25843,7 +25843,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
25843
25843
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
25844
25844
|
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");
|
|
25845
25845
|
|
|
25846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
25847
25847
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25848
25848
|
const { database } = context;
|
|
25849
25849
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25950,7 +25950,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25950
25950
|
};
|
|
25951
25951
|
}, "conversationsStoreOver");
|
|
25952
25952
|
|
|
25953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
25954
25954
|
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";
|
|
25955
25955
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
25956
25956
|
const { database } = context;
|
|
@@ -25975,7 +25975,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25975
25975
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
25976
25976
|
}), "countersStoreOver");
|
|
25977
25977
|
|
|
25978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
25979
25979
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
25980
25980
|
var MENTION_QUERY = defineQuery({
|
|
25981
25981
|
entity: "mention",
|
|
@@ -26191,7 +26191,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
26191
26191
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
26192
26192
|
}, "listPlaces");
|
|
26193
26193
|
|
|
26194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
26195
26195
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
26196
26196
|
const { database } = context;
|
|
26197
26197
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -26226,7 +26226,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26226
26226
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
26227
26227
|
}), "mentionsStoreOver");
|
|
26228
26228
|
|
|
26229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
26230
26230
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
26231
26231
|
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");
|
|
26232
26232
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -26241,7 +26241,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
26241
26241
|
}));
|
|
26242
26242
|
}, "documentLinkMessages");
|
|
26243
26243
|
|
|
26244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
26245
26245
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
26246
26246
|
const { database } = context;
|
|
26247
26247
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -26371,7 +26371,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26371
26371
|
directReplies: /* @__PURE__ */ __name(async (parents, limit) => directReplies(context, parents, limit), "directReplies")
|
|
26372
26372
|
}), "messagesStoreOver");
|
|
26373
26373
|
|
|
26374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
26375
26375
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
26376
26376
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
26377
26377
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -26428,7 +26428,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
26428
26428
|
});
|
|
26429
26429
|
}, "personPreparation");
|
|
26430
26430
|
|
|
26431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
26432
26432
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
26433
26433
|
const id2 = Number(uid);
|
|
26434
26434
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -26436,7 +26436,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
26436
26436
|
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)));
|
|
26437
26437
|
}, "personSeenInAccounts");
|
|
26438
26438
|
|
|
26439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
26440
26440
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
26441
26441
|
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);
|
|
26442
26442
|
if (!row2)
|
|
@@ -26502,7 +26502,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
26502
26502
|
return { id: id2, personId, removed: true };
|
|
26503
26503
|
}, "removeNote");
|
|
26504
26504
|
|
|
26505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
26506
26506
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
26507
26507
|
const { database } = context;
|
|
26508
26508
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -26567,13 +26567,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
26567
26567
|
};
|
|
26568
26568
|
}, "peopleStoreOver");
|
|
26569
26569
|
|
|
26570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
26571
26571
|
import { createHash as createHash8 } from "node:crypto";
|
|
26572
26572
|
|
|
26573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26574
26574
|
import { createHash as createHash7 } from "node:crypto";
|
|
26575
26575
|
|
|
26576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
26577
26577
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
26578
26578
|
var AUTHOR_MEASURES = [
|
|
26579
26579
|
"messages",
|
|
@@ -26713,7 +26713,7 @@ var withoutUrls = /* @__PURE__ */ __name((text5) => text5.replace(/\S+/gu, (toke
|
|
|
26713
26713
|
var rankingWords = /* @__PURE__ */ __name((text5) => withoutUrls(text5).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
26714
26714
|
var rankingQuestion = /* @__PURE__ */ __name((text5) => withoutUrls(text5).includes("?"), "rankingQuestion");
|
|
26715
26715
|
|
|
26716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
26717
26717
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
26718
26718
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
26719
26719
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -26935,7 +26935,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
26935
26935
|
};
|
|
26936
26936
|
}, "rankReplyGraph");
|
|
26937
26937
|
|
|
26938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26939
26939
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
26940
26940
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
26941
26941
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -27109,7 +27109,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
27109
27109
|
return { items, evidence, summary, graph: graph.quality };
|
|
27110
27110
|
}, "calculateAdminStatistics");
|
|
27111
27111
|
|
|
27112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
27113
27113
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
27114
27114
|
const dates = [];
|
|
27115
27115
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -27131,7 +27131,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
27131
27131
|
return dates[0].node.resolution.date;
|
|
27132
27132
|
}, "rankingContextRange");
|
|
27133
27133
|
|
|
27134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
27135
27135
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
27136
27136
|
let counts;
|
|
27137
27137
|
try {
|
|
@@ -27426,7 +27426,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
27426
27426
|
});
|
|
27427
27427
|
}, "rankQuery");
|
|
27428
27428
|
|
|
27429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
27430
27430
|
function fail4(message2, reason = "query.too-large") {
|
|
27431
27431
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
27432
27432
|
}
|
|
@@ -27603,7 +27603,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
27603
27603
|
return result;
|
|
27604
27604
|
}), "adminStatisticsQuery");
|
|
27605
27605
|
|
|
27606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
27607
27607
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
27608
27608
|
if (!execution.accounts.length)
|
|
27609
27609
|
return { conversations: [], chats: [] };
|
|
@@ -27621,7 +27621,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
27621
27621
|
return { conversations: conversations2, chats: chats2 };
|
|
27622
27622
|
}, "conversationEligibility");
|
|
27623
27623
|
|
|
27624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
27625
27625
|
import { createHash as createHash9 } from "node:crypto";
|
|
27626
27626
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
27627
27627
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -27771,7 +27771,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
27771
27771
|
return result;
|
|
27772
27772
|
}, "rankingEvidence");
|
|
27773
27773
|
|
|
27774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
27775
27775
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
27776
27776
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
27777
27777
|
if (execution.corpus === "mail")
|
|
@@ -27788,7 +27788,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
|
27788
27788
|
};
|
|
27789
27789
|
}, "queriesStoreOver");
|
|
27790
27790
|
|
|
27791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
27792
27792
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
27793
27793
|
const { database, now: now2 } = context;
|
|
27794
27794
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -27827,10 +27827,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
27827
27827
|
}));
|
|
27828
27828
|
}, "chatEventsOf");
|
|
27829
27829
|
|
|
27830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27831
27831
|
import { createHash as createHash10 } from "node:crypto";
|
|
27832
27832
|
|
|
27833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
27834
27834
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
27835
27835
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
27836
27836
|
timeZone: zone,
|
|
@@ -27845,7 +27845,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
|
27845
27845
|
};
|
|
27846
27846
|
}, "calendarKey");
|
|
27847
27847
|
|
|
27848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
27849
27849
|
var RETENTION_TOLERANCE = 864e5;
|
|
27850
27850
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
27851
27851
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -27899,7 +27899,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
27899
27899
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
27900
27900
|
}, "retentionCohorts");
|
|
27901
27901
|
|
|
27902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27903
27903
|
var iso5 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
27904
27904
|
var week = /* @__PURE__ */ __name((day) => {
|
|
27905
27905
|
const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
@@ -28035,7 +28035,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
28035
28035
|
};
|
|
28036
28036
|
}, "retentionQuery");
|
|
28037
28037
|
|
|
28038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
28039
28039
|
var iso6 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
28040
28040
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
28041
28041
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -28166,7 +28166,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
28166
28166
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
28167
28167
|
})), "trackedChats");
|
|
28168
28168
|
|
|
28169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
28170
28170
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28171
28171
|
const { database } = context;
|
|
28172
28172
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -28222,7 +28222,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28222
28222
|
};
|
|
28223
28223
|
}, "rosterStoreOver");
|
|
28224
28224
|
|
|
28225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
28226
28226
|
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");
|
|
28227
28227
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
28228
28228
|
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 ?`);
|
|
@@ -28246,7 +28246,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
28246
28246
|
}
|
|
28247
28247
|
}, "backfillNormalized");
|
|
28248
28248
|
|
|
28249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
28250
28250
|
var INDEX2 = "message_words";
|
|
28251
28251
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
28252
28252
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -28373,7 +28373,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
28373
28373
|
});
|
|
28374
28374
|
}, "resetSearchIndex");
|
|
28375
28375
|
|
|
28376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
28377
28377
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
28378
28378
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
28379
28379
|
const before2 = stemsState(database);
|
|
@@ -28468,7 +28468,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
28468
28468
|
return resetStems(database, { now: now2 });
|
|
28469
28469
|
}, "followDefaultStemmers");
|
|
28470
28470
|
|
|
28471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
28472
28472
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
28473
28473
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
28474
28474
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -28490,7 +28490,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
28490
28490
|
});
|
|
28491
28491
|
}, "termCandidates");
|
|
28492
28492
|
|
|
28493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
28494
28494
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28495
28495
|
const { database } = context;
|
|
28496
28496
|
const stemmerFor = stemmerCache();
|
|
@@ -28512,7 +28512,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28512
28512
|
};
|
|
28513
28513
|
}, "searchIndexStoreOver");
|
|
28514
28514
|
|
|
28515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
28516
28516
|
var HISTORY_KEPT = 1e3;
|
|
28517
28517
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
28518
28518
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -28581,7 +28581,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
28581
28581
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
28582
28582
|
}, "clearHistory");
|
|
28583
28583
|
|
|
28584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
28585
28585
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28586
28586
|
const { database } = context;
|
|
28587
28587
|
return {
|
|
@@ -28605,7 +28605,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28605
28605
|
};
|
|
28606
28606
|
}, "searchesStoreOver");
|
|
28607
28607
|
|
|
28608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
28609
28609
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
28610
28610
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
28611
28611
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -28648,7 +28648,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
28648
28648
|
};
|
|
28649
28649
|
}, "agentActionsStoreOver");
|
|
28650
28650
|
|
|
28651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
28652
28652
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
28653
28653
|
}) => {
|
|
28654
28654
|
const { database, now: now2 } = context;
|
|
@@ -28707,7 +28707,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
28707
28707
|
};
|
|
28708
28708
|
}, "botUpdateStoreOver");
|
|
28709
28709
|
|
|
28710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
28711
28711
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
28712
28712
|
id: Number(row2.id),
|
|
28713
28713
|
accountId: Number(row2.account_id),
|
|
@@ -29266,7 +29266,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29266
29266
|
};
|
|
29267
29267
|
}, "eventStoreOver");
|
|
29268
29268
|
|
|
29269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
29270
29270
|
var CATALOG_QUERY = defineQuery({
|
|
29271
29271
|
entity: "document",
|
|
29272
29272
|
backend: "sql",
|
|
@@ -29508,7 +29508,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
29508
29508
|
};
|
|
29509
29509
|
}, "catalogStoreOver");
|
|
29510
29510
|
|
|
29511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
29512
29512
|
import { createHash as createHash11 } from "node:crypto";
|
|
29513
29513
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
29514
29514
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -29606,7 +29606,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
29606
29606
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
29607
29607
|
}, "contextEvidenceRequest");
|
|
29608
29608
|
|
|
29609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
29610
29610
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
29611
29611
|
var field2 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
29612
29612
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -29619,7 +29619,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
29619
29619
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
29620
29620
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field2("sourceUrl")})`;
|
|
29621
29621
|
|
|
29622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
29623
29623
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
29624
29624
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
29625
29625
|
signal?.throwIfAborted();
|
|
@@ -29718,7 +29718,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
29718
29718
|
});
|
|
29719
29719
|
}, "readMeetingContextEvidence");
|
|
29720
29720
|
|
|
29721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
29722
29722
|
var corpora = {
|
|
29723
29723
|
message: {
|
|
29724
29724
|
table: "messages",
|
|
@@ -29947,7 +29947,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29947
29947
|
}
|
|
29948
29948
|
}), "contextRecordsOver");
|
|
29949
29949
|
|
|
29950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
29951
29951
|
var NOTE_FIELDS = [
|
|
29952
29952
|
"text",
|
|
29953
29953
|
"exact",
|
|
@@ -30336,7 +30336,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30336
30336
|
};
|
|
30337
30337
|
}, "noteSearchOver");
|
|
30338
30338
|
|
|
30339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
30340
30340
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
30341
30341
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
30342
30342
|
var EVENT_CORPUS = {
|
|
@@ -30468,7 +30468,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30468
30468
|
};
|
|
30469
30469
|
}, "eventSearchOver");
|
|
30470
30470
|
|
|
30471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
30472
30472
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
30473
30473
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
30474
30474
|
if (/^document:[1-9]\d*$/.test(raw))
|
|
@@ -30481,7 +30481,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
|
|
|
30481
30481
|
}, "reference");
|
|
30482
30482
|
var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
|
|
30483
30483
|
|
|
30484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
30485
30485
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
30486
30486
|
try {
|
|
30487
30487
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -30493,7 +30493,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
30493
30493
|
}
|
|
30494
30494
|
}, "calendarMoment");
|
|
30495
30495
|
|
|
30496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
30497
30497
|
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";
|
|
30498
30498
|
var iso7 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
30499
30499
|
var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -30606,7 +30606,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30606
30606
|
};
|
|
30607
30607
|
}, "factsStoreOver");
|
|
30608
30608
|
|
|
30609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
30610
30610
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
30611
30611
|
throw new CliError("validation_error", message2);
|
|
30612
30612
|
}, "invalid");
|
|
@@ -30696,7 +30696,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
30696
30696
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes };
|
|
30697
30697
|
}, "findingsCoreOver");
|
|
30698
30698
|
|
|
30699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
30700
30700
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
30701
30701
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
30702
30702
|
var iso8 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -30842,7 +30842,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30842
30842
|
};
|
|
30843
30843
|
}, "proposedActionsStoreOver");
|
|
30844
30844
|
|
|
30845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
30846
30846
|
var stale = /* @__PURE__ */ __name(() => {
|
|
30847
30847
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
30848
30848
|
reason: "evidence-findings.stale"
|
|
@@ -31008,7 +31008,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31008
31008
|
};
|
|
31009
31009
|
}, "evidenceFindingsStoreOver");
|
|
31010
31010
|
|
|
31011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
31012
31012
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
31013
31013
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
31014
31014
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -31061,7 +31061,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
31061
31061
|
}, "forPerson")
|
|
31062
31062
|
}), "involvementStoreOver");
|
|
31063
31063
|
|
|
31064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
31065
31065
|
import { createHash as createHash12 } from "node:crypto";
|
|
31066
31066
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
31067
31067
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -31147,16 +31147,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
31147
31147
|
};
|
|
31148
31148
|
}, "meetingProjectsStoreOver");
|
|
31149
31149
|
|
|
31150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31151
31151
|
import { createHash as createHash15 } from "node:crypto";
|
|
31152
31152
|
|
|
31153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31154
31154
|
import { createHash as createHash14 } from "node:crypto";
|
|
31155
31155
|
|
|
31156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31157
31157
|
import { createHash as createHash13 } from "node:crypto";
|
|
31158
31158
|
|
|
31159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
31160
31160
|
var consolidationId = /* @__PURE__ */ __name((value, field3) => {
|
|
31161
31161
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
31162
31162
|
throw new CliError("validation_error", `${field3} must be a positive canonical tag id`);
|
|
@@ -31207,7 +31207,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
31207
31207
|
return input;
|
|
31208
31208
|
}, "consolidationApplyInput");
|
|
31209
31209
|
|
|
31210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31211
31211
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
31212
31212
|
id: String(row2.id),
|
|
31213
31213
|
sourceId: String(row2.source_id),
|
|
@@ -31282,7 +31282,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
31282
31282
|
}, { beforeCommit: check3 });
|
|
31283
31283
|
}, "applyTagConsolidation");
|
|
31284
31284
|
|
|
31285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31286
31286
|
var selections = [
|
|
31287
31287
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
31288
31288
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -31426,7 +31426,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
31426
31426
|
};
|
|
31427
31427
|
}, "previewRows");
|
|
31428
31428
|
|
|
31429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31430
31430
|
var kinds = ["project", "tag", "topic"];
|
|
31431
31431
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
31432
31432
|
if (signal?.aborted)
|
|
@@ -31690,7 +31690,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31690
31690
|
};
|
|
31691
31691
|
}, "vocabularyStoreOver");
|
|
31692
31692
|
|
|
31693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
31694
31694
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
31695
31695
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
31696
31696
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -32207,7 +32207,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
32207
32207
|
return key2.padEnd(3, "X");
|
|
32208
32208
|
}, "projectKey");
|
|
32209
32209
|
|
|
32210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
32211
32211
|
var DAY4 = 864e5;
|
|
32212
32212
|
var SETTING4 = "logs_pruned_at";
|
|
32213
32213
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY4, botUpdatePayloadsMs: 30 * DAY4 };
|
|
@@ -32234,7 +32234,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
32234
32234
|
};
|
|
32235
32235
|
}, "logPruner");
|
|
32236
32236
|
|
|
32237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
32238
32238
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
32239
32239
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
32240
32240
|
reason: "meeting-findings.stale"
|
|
@@ -32403,7 +32403,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32403
32403
|
};
|
|
32404
32404
|
}, "meetingFindingsStoreOver");
|
|
32405
32405
|
|
|
32406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
32407
32407
|
var RANK_BATCH = 512;
|
|
32408
32408
|
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";
|
|
32409
32409
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -32674,7 +32674,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
32674
32674
|
}
|
|
32675
32675
|
}), "meetingVectorsOver");
|
|
32676
32676
|
|
|
32677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
32678
32678
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
32679
32679
|
var TEXTS = {
|
|
32680
32680
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -32775,11 +32775,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32775
32775
|
};
|
|
32776
32776
|
}, "sourceMentionStoreOver");
|
|
32777
32777
|
|
|
32778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
32779
32779
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
32780
32780
|
import { dirname } from "node:path";
|
|
32781
32781
|
|
|
32782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
32783
32783
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
32784
32784
|
var CLIENTS_SETTING = "clients";
|
|
32785
32785
|
var coreVersion = (() => {
|
|
@@ -32837,7 +32837,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
32837
32837
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
32838
32838
|
}, "refusalAdvice");
|
|
32839
32839
|
|
|
32840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
32841
32841
|
var GENERATED = [
|
|
32842
32842
|
{
|
|
32843
32843
|
"name": "20261010184427_initial",
|
|
@@ -33634,7 +33634,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
33634
33634
|
}
|
|
33635
33635
|
];
|
|
33636
33636
|
|
|
33637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
33638
33638
|
var MANIFEST = [
|
|
33639
33639
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
33640
33640
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -33705,7 +33705,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
33705
33705
|
return migrations;
|
|
33706
33706
|
}, "generatedMigrations");
|
|
33707
33707
|
|
|
33708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
33709
33709
|
var MIGRATIONS = generatedMigrations();
|
|
33710
33710
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
33711
33711
|
version INTEGER PRIMARY KEY,
|
|
@@ -33758,7 +33758,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
33758
33758
|
}
|
|
33759
33759
|
}, "migrate");
|
|
33760
33760
|
|
|
33761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
33762
33762
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
33763
33763
|
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 ?");
|
|
33764
33764
|
if (pending.get(0, 1) === void 0)
|
|
@@ -33780,7 +33780,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
33780
33780
|
}
|
|
33781
33781
|
}, "fillJoinKeys");
|
|
33782
33782
|
|
|
33783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
33784
33784
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
33785
33785
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
33786
33786
|
try {
|
|
@@ -33793,8 +33793,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
33793
33793
|
}, "openSqlite");
|
|
33794
33794
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33795
33795
|
quietSqliteWarning();
|
|
33796
|
-
const { drizzle } = await import("./node-
|
|
33797
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
33796
|
+
const { drizzle } = await import("./node-3OBKCX6M.js");
|
|
33797
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-DMMTDRFB.js");
|
|
33798
33798
|
const client = await nodeClient(path, { readOnly });
|
|
33799
33799
|
try {
|
|
33800
33800
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33804,8 +33804,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33804
33804
|
}
|
|
33805
33805
|
}, "openUnderNode");
|
|
33806
33806
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33807
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
33808
|
-
const { drizzle } = await import("./bun-
|
|
33807
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-RAWGPH23.js");
|
|
33808
|
+
const { drizzle } = await import("./bun-PS73VF2C.js");
|
|
33809
33809
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
33810
33810
|
try {
|
|
33811
33811
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33815,7 +33815,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33815
33815
|
}
|
|
33816
33816
|
}, "openUnderBun");
|
|
33817
33817
|
|
|
33818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
33819
33819
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
33820
33820
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
33821
33821
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -33830,7 +33830,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
33830
33830
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
33831
33831
|
}, "assertReadCompatible");
|
|
33832
33832
|
|
|
33833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
33834
33834
|
var BACKFILL_ON_OPEN = 5e3;
|
|
33835
33835
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
33836
33836
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -33886,10 +33886,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
33886
33886
|
}
|
|
33887
33887
|
}, "openStoreContext");
|
|
33888
33888
|
|
|
33889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
33890
33890
|
import { createHash as createHash16 } from "node:crypto";
|
|
33891
33891
|
|
|
33892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
33893
33893
|
var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
33894
33894
|
var ref = text3(2048);
|
|
33895
33895
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -33955,7 +33955,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
33955
33955
|
}))
|
|
33956
33956
|
});
|
|
33957
33957
|
|
|
33958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
33959
33959
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
33960
33960
|
var invalid7 = /* @__PURE__ */ __name((field3) => {
|
|
33961
33961
|
throw new CliError("validation_error", `invalid project annotations.${field3}`);
|
|
@@ -34059,7 +34059,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
34059
34059
|
invalid7("external.unused");
|
|
34060
34060
|
}, "validateProjectAnnotationsGraph");
|
|
34061
34061
|
|
|
34062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
34063
34063
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
34064
34064
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
34065
34065
|
var targetSchema = strictObject({
|
|
@@ -34165,7 +34165,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
34165
34165
|
};
|
|
34166
34166
|
}, "planBoundProjectAnnotations");
|
|
34167
34167
|
|
|
34168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
34169
34169
|
import { createHash as createHash17 } from "node:crypto";
|
|
34170
34170
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
34171
34171
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -34259,7 +34259,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
34259
34259
|
})).digest("hex");
|
|
34260
34260
|
}, "projectAnnotationSnapshotFingerprint");
|
|
34261
34261
|
|
|
34262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
34263
34263
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
34264
34264
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
34265
34265
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -34276,7 +34276,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
34276
34276
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
34277
34277
|
}, "projectAnnotationRequest");
|
|
34278
34278
|
|
|
34279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
34280
34280
|
var SnapshotBudget = class {
|
|
34281
34281
|
static {
|
|
34282
34282
|
__name(this, "SnapshotBudget");
|
|
@@ -34302,13 +34302,13 @@ var SnapshotBudget = class {
|
|
|
34302
34302
|
}
|
|
34303
34303
|
};
|
|
34304
34304
|
|
|
34305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34306
34306
|
import { createHash as createHash19 } from "node:crypto";
|
|
34307
34307
|
|
|
34308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
34309
34309
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
34310
34310
|
|
|
34311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
34312
34312
|
import { createHash as createHash18 } from "node:crypto";
|
|
34313
34313
|
var invalid9 = /* @__PURE__ */ __name(() => {
|
|
34314
34314
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -34451,7 +34451,7 @@ var ProjectSnapshotSources = class {
|
|
|
34451
34451
|
}
|
|
34452
34452
|
};
|
|
34453
34453
|
|
|
34454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
34455
34455
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
34456
34456
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
34457
34457
|
}, "unsupported");
|
|
@@ -34622,7 +34622,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, bud
|
|
|
34622
34622
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
34623
34623
|
}), "projectAnnotationSnapshot");
|
|
34624
34624
|
|
|
34625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34626
34626
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, manifest, bindings, budget) => read(database, () => {
|
|
34627
34627
|
const current = projectAnnotationSnapshot(database, projectId, budget).snapshot;
|
|
34628
34628
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -34684,7 +34684,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, man
|
|
|
34684
34684
|
};
|
|
34685
34685
|
}), "previewAnnotationSnapshot");
|
|
34686
34686
|
|
|
34687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
34688
34688
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snapshot2, bindings) => {
|
|
34689
34689
|
const mappings = { ...bindings };
|
|
34690
34690
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -34726,7 +34726,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snap
|
|
|
34726
34726
|
return mappings;
|
|
34727
34727
|
}, "restoreAnnotationRecords");
|
|
34728
34728
|
|
|
34729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
34730
34730
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
34731
34731
|
async preview(request) {
|
|
34732
34732
|
const { snapshot: snapshot2, projectId } = projectAnnotationRequest(request);
|
|
@@ -34756,7 +34756,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
34756
34756
|
}
|
|
34757
34757
|
}), "projectAnnotationStoreOver");
|
|
34758
34758
|
|
|
34759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
34760
34760
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
34761
34761
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
34762
34762
|
let merged = { from: from2, to };
|
|
@@ -34769,7 +34769,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
34769
34769
|
}, "markRange");
|
|
34770
34770
|
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");
|
|
34771
34771
|
|
|
34772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
34773
34773
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
34774
34774
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
34775
34775
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -34779,7 +34779,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
34779
34779
|
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);
|
|
34780
34780
|
}, "setTaskRulesStop");
|
|
34781
34781
|
|
|
34782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
34783
34783
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34784
34784
|
const { database } = context;
|
|
34785
34785
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -34835,7 +34835,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34835
34835
|
};
|
|
34836
34836
|
}, "syncStoreOver");
|
|
34837
34837
|
|
|
34838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
34839
34839
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34840
34840
|
const { database } = context;
|
|
34841
34841
|
return {
|
|
@@ -34857,7 +34857,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34857
34857
|
};
|
|
34858
34858
|
}, "tagsStoreOver");
|
|
34859
34859
|
|
|
34860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
34861
34861
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
34862
34862
|
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
|
|
34863
34863
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -34984,7 +34984,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
34984
34984
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
34985
34985
|
}, "savePictureChunks");
|
|
34986
34986
|
|
|
34987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
34988
34988
|
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,
|
|
34989
34989
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
34990
34990
|
FROM messages m
|
|
@@ -35067,7 +35067,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
35067
35067
|
return plain2(best(found2));
|
|
35068
35068
|
}, "nearestMessages");
|
|
35069
35069
|
|
|
35070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
35071
35071
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
35072
35072
|
const { database } = context;
|
|
35073
35073
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -35321,7 +35321,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
35321
35321
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
35322
35322
|
}), "vectorsStoreOver");
|
|
35323
35323
|
|
|
35324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
35325
35325
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
35326
35326
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
35327
35327
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -35409,10 +35409,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
35409
35409
|
}
|
|
35410
35410
|
}, "lastBackup");
|
|
35411
35411
|
|
|
35412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
35413
35413
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
35414
35414
|
|
|
35415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
35416
35416
|
var COUNTED_TABLES = [
|
|
35417
35417
|
"accounts",
|
|
35418
35418
|
"chats",
|
|
@@ -35497,7 +35497,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
35497
35497
|
};
|
|
35498
35498
|
}, "storeContents");
|
|
35499
35499
|
|
|
35500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
35501
35501
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
35502
35502
|
const context = await openStoreContext(options);
|
|
35503
35503
|
try {
|