@wirecat/tg-cli 0.102.0 → 0.104.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/README.md +1 -0
- package/dist/bin/tg.js +31 -19
- package/dist/bundle/{adapter-M2HRSFFL.js → adapter-QTAHA2JC.js} +49 -48
- package/dist/bundle/{all-profiles-GOD2QNTK.js → all-profiles-7CXBVRFU.js} +13 -13
- package/dist/bundle/{anthropic-LKU7RWMA.js → anthropic-FWBQ7JHT.js} +10 -10
- package/dist/bundle/app-server-XF4GY2Y6.js +222 -0
- package/dist/bundle/{bot-api-X3MPFVPL.js → bot-api-XDMMWRYI.js} +50 -49
- package/dist/bundle/{bot-history-OUMVVG22.js → bot-history-TU2X7RNN.js} +19 -19
- package/dist/bundle/{bun-LIZ6MKFS.js → bun-6GSDPKNZ.js} +5 -5
- package/dist/bundle/{bun-sqlite-2IFQYQ44.js → bun-sqlite-AO27E35V.js} +8 -8
- package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
- package/dist/bundle/{chunk-5DFGJPT6.js → chunk-3GGU65YR.js} +9 -7
- package/dist/bundle/{chunk-QEPZUFPL.js → chunk-3XZQQGCB.js} +59 -59
- package/dist/bundle/{chunk-W5EB4JLV.js → chunk-54RJDS3X.js} +6 -6
- package/dist/bundle/{chunk-WMOEOVWZ.js → chunk-5D4AEUVA.js} +3 -3
- package/dist/bundle/{chunk-BBC546ZA.js → chunk-5K7E36ND.js} +6 -6
- package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
- package/dist/bundle/{chunk-TXBUDJ3P.js → chunk-6K4QGBXU.js} +5 -5
- package/dist/bundle/{chunk-264DAFJV.js → chunk-6YUFPSSE.js} +7 -7
- package/dist/bundle/{chunk-HLAZ65AW.js → chunk-7WHM3KNI.js} +5 -5
- package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
- package/dist/bundle/{chunk-M5UH5CF3.js → chunk-ADMV4WGV.js} +8 -8
- package/dist/bundle/{chunk-WVEHUKCZ.js → chunk-B7TTM75D.js} +4 -4
- package/dist/bundle/{chunk-OHBHHBYL.js → chunk-BI2AXVHY.js} +6 -6
- package/dist/bundle/{chunk-XXTJUZMB.js → chunk-BIWJK5YU.js} +4 -4
- package/dist/bundle/{chunk-Q2NYEX4A.js → chunk-BKVJNPA6.js} +71 -30
- package/dist/bundle/{chunk-5D6OJREA.js → chunk-C5N7G6UH.js} +4 -4
- package/dist/bundle/{chunk-UK3GAN7Q.js → chunk-DANCAYRP.js} +16 -11
- package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
- package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
- package/dist/bundle/{chunk-DE7LFMY2.js → chunk-FRZHF2X6.js} +13 -11
- package/dist/bundle/{chunk-VUJ34PEQ.js → chunk-FUWSIEYY.js} +15 -15
- package/dist/bundle/{chunk-GSKFAE3I.js → chunk-GE22MYA6.js} +158 -56
- package/dist/bundle/{chunk-5VSR5ENL.js → chunk-GZ5CR5QB.js} +11 -11
- package/dist/bundle/{chunk-PSH7K6TL.js → chunk-HOR7DS3P.js} +25 -25
- package/dist/bundle/{chunk-CLWYQNSC.js → chunk-KRLCUBII.js} +9 -9
- package/dist/bundle/chunk-LJCGQMGN.js +264 -0
- package/dist/bundle/{chunk-OCWARAFE.js → chunk-LOFG3Q35.js} +5 -5
- package/dist/bundle/{chunk-SRU3OF4R.js → chunk-LSQUNABH.js} +5 -5
- package/dist/bundle/{chunk-MGG7JSNO.js → chunk-MB3PCNRL.js} +6 -6
- package/dist/bundle/{chunk-U4RRZUNP.js → chunk-MCD2GANK.js} +35 -282
- package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
- package/dist/bundle/{chunk-ENE5CSVY.js → chunk-MR4LW4EC.js} +2176 -1927
- package/dist/bundle/{chunk-2SUTCDGO.js → chunk-N6VHHMSZ.js} +5 -5
- package/dist/bundle/chunk-O5EHUB2V.js +2 -0
- package/dist/bundle/{chunk-FBWOQMPE.js → chunk-P3WU6UYJ.js} +227 -283
- package/dist/bundle/{chunk-F2TG3BA2.js → chunk-PHQTSF44.js} +9 -9
- package/dist/bundle/{chunk-AUOXTGTU.js → chunk-PWIE7VBL.js} +4 -4
- package/dist/bundle/{chunk-TV5DGHBT.js → chunk-QVTCOBN5.js} +263 -249
- package/dist/bundle/{chunk-JFSVXMN6.js → chunk-QY7MW7HK.js} +6 -6
- package/dist/bundle/{chunk-V52SBQYF.js → chunk-RRWMYR2H.js} +18 -17
- package/dist/bundle/{chunk-4QB4WDLT.js → chunk-RTAV5XNT.js} +15 -15
- package/dist/bundle/{server-YWL4HDOP.js → chunk-SZE6425L.js} +54 -67
- package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
- package/dist/bundle/{chunk-334UBWOB.js → chunk-TJR37WKA.js} +14 -14
- package/dist/bundle/{chunk-ERQDBK5I.js → chunk-U2AK4QXY.js} +23 -5
- package/dist/bundle/{chunk-BQYTIYGB.js → chunk-UDXRDFHN.js} +97 -96
- package/dist/bundle/{chunk-Y4XSWI22.js → chunk-UT6G2X7T.js} +7 -6
- package/dist/bundle/{chunk-4PDEQL6T.js → chunk-UTVANQN5.js} +6 -6
- package/dist/bundle/{chunk-FOUE7XLK.js → chunk-UVYY5EIS.js} +4 -4
- package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
- package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
- package/dist/bundle/{chunk-YHB57PFN.js → chunk-Y3VNNLUT.js} +4 -4
- package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
- package/dist/bundle/{chunk-ZRNRQFTF.js → chunk-Y5PJQPMQ.js} +5 -5
- package/dist/bundle/{chunk-CRZPQQHE.js → chunk-YBQ753RP.js} +26 -26
- package/dist/bundle/{chunk-QL7CQ6VZ.js → chunk-YD6ZQ6LM.js} +50 -48
- package/dist/bundle/{chunk-UR6ASUSG.js → chunk-ZBH7Z6WX.js} +6 -6
- package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
- package/dist/bundle/command-contract-RICU4OWW.js +32 -0
- package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
- package/dist/bundle/{echarts-27W2CIBD.js → echarts-2YP32GX5.js} +5 -5
- package/dist/bundle/{embed-FGJ273X2.js → embed-QNWVBCL5.js} +9 -8
- package/dist/bundle/{embedder-7ELL3CQ3.js → embedder-ENS7ARPP.js} +12 -11
- package/dist/bundle/entry-MPYSQPZO.js +14 -0
- package/dist/bundle/first-run-YLB7RNGP.js +24 -0
- package/dist/bundle/first-screen-AYOE4JFC.js +30 -0
- package/dist/bundle/identity-XQLO7NYW.js +11 -0
- package/dist/bundle/instructions-5F4XG3B6.js +11 -0
- package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
- package/dist/bundle/{node-RSL3HANO.js → node-JOUDFPFN.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-ZY6ZFFXS.js} +8 -8
- package/dist/bundle/oauth-KOR3ZNTA.js +18 -0
- package/dist/bundle/open-JACXAGY5.js +20 -0
- package/dist/bundle/{process-RMV3AKLB.js → process-7W3X5VME.js} +5 -5
- package/dist/bundle/{program-PIUYQHBF.js → program-NSZWGHNJ.js} +52 -51
- package/dist/bundle/prompt-CRRG5UB6.js +13 -0
- package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
- package/dist/bundle/{recognize-3GMOLZF4.js → recognize-ASXEB45M.js} +9 -9
- package/dist/bundle/remote-CB3GAXGJ.js +27 -0
- package/dist/bundle/{rerank-W3OSXXBN.js → rerank-PDD5BPID.js} +10 -9
- package/dist/bundle/{serve-ZCPO44NO.js → serve-M4XFAYUM.js} +13 -13
- package/dist/bundle/{server-FXU4QFRB.js → server-IN673OYO.js} +37 -35
- package/dist/bundle/server-ISWPSKQ6.js +55 -0
- package/dist/bundle/{state-MJPTDIB5.js → state-626GOOVZ.js} +9 -9
- package/dist/bundle/{store-6VNQG56O.js → store-6JM4HJU5.js} +14 -14
- package/dist/bundle/store-maintenance-command-DI2UX4V3.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/skills/tg-cli/SKILL.md +1 -0
- 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-3XZQQGCB.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-GZ5CR5QB.js";
|
|
68
68
|
import {
|
|
69
69
|
DEFAULT_TASK_CATEGORIES,
|
|
70
70
|
sharedConfigPath,
|
|
71
71
|
storedTaskCategories,
|
|
72
72
|
taskCategoriesReader
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PHQTSF44.js";
|
|
74
74
|
import {
|
|
75
75
|
storePath
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-Y5PJQPMQ.js";
|
|
77
77
|
import {
|
|
78
78
|
PRAGMAS,
|
|
79
79
|
quietSqliteWarning,
|
|
80
80
|
storeCapable
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-KRLCUBII.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-Y3VNNLUT.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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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",
|
|
@@ -14850,6 +14850,7 @@ var typedKey = /* @__PURE__ */ __name((database, kind3) => {
|
|
|
14850
14850
|
return key2;
|
|
14851
14851
|
}
|
|
14852
14852
|
}, "typedKey");
|
|
14853
|
+
var INBOX_KEY_LENGTH = 10;
|
|
14853
14854
|
var inboxKey = /* @__PURE__ */ __name((account) => `IN${createHash2("sha256").update(account).digest("hex").slice(0, 8).toUpperCase()}`, "inboxKey");
|
|
14854
14855
|
var linkInbox = /* @__PURE__ */ __name((database, account, accountId) => {
|
|
14855
14856
|
database.prepare("UPDATE projects SET account_id = ? WHERE key = ? AND account_id IS NULL").run(accountId, inboxKey(account));
|
|
@@ -14859,7 +14860,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
14859
14860
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
14860
14861
|
}, "taskAccountOf");
|
|
14861
14862
|
|
|
14862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
14863
14864
|
var SIMPLE_REFERENCES = [
|
|
14864
14865
|
"note",
|
|
14865
14866
|
"document",
|
|
@@ -14931,7 +14932,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
|
|
|
14931
14932
|
}, "folderPath");
|
|
14932
14933
|
var canonicalReference = /* @__PURE__ */ __name((text5) => formatReference(parseReference(text5)), "canonicalReference");
|
|
14933
14934
|
|
|
14934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
14935
14936
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
14936
14937
|
var REFERABLE = {
|
|
14937
14938
|
note: { tombstone: true },
|
|
@@ -15089,7 +15090,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15089
15090
|
}, "taskIdOf");
|
|
15090
15091
|
var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
|
|
15091
15092
|
|
|
15092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15093
15094
|
var toMs = /* @__PURE__ */ __name((iso10) => {
|
|
15094
15095
|
if (iso10 === null || iso10 === void 0)
|
|
15095
15096
|
return null;
|
|
@@ -15103,7 +15104,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15103
15104
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15104
15105
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15105
15106
|
|
|
15106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15107
15108
|
var TAG_KINDS = ["tag", "topic"];
|
|
15108
15109
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15109
15110
|
var TAG_TYPE = {
|
|
@@ -15294,7 +15295,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15294
15295
|
return result;
|
|
15295
15296
|
}, "tagsOf");
|
|
15296
15297
|
|
|
15297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15298
15299
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15299
15300
|
var SPEECH = speech("att");
|
|
15300
15301
|
var quoted = /* @__PURE__ */ __name((value) => `"${value.replaceAll('"', '""')}"`, "quoted");
|
|
@@ -15647,7 +15648,7 @@ var FIELD_COMPILERS = {
|
|
|
15647
15648
|
subject
|
|
15648
15649
|
};
|
|
15649
15650
|
|
|
15650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15651
15652
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15652
15653
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15653
15654
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -15663,7 +15664,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
15663
15664
|
};
|
|
15664
15665
|
}, "placeOf");
|
|
15665
15666
|
|
|
15666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
15667
15668
|
var DRAIN_ON_WRITE = 500;
|
|
15668
15669
|
var METHOD = "rules";
|
|
15669
15670
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -15826,7 +15827,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
15826
15827
|
return queued.length;
|
|
15827
15828
|
}, "drainMentions");
|
|
15828
15829
|
|
|
15829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
15830
15831
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
15831
15832
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
15832
15833
|
if (!exists2)
|
|
@@ -15834,7 +15835,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
15834
15835
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
15835
15836
|
}, "indexRow");
|
|
15836
15837
|
|
|
15837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
15838
15839
|
var INDEX = "message_stems";
|
|
15839
15840
|
var SETTING2 = "searchStemmers";
|
|
15840
15841
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -15956,7 +15957,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
15956
15957
|
};
|
|
15957
15958
|
}, "stemmerCache");
|
|
15958
15959
|
|
|
15959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
15960
15961
|
var connections = /* @__PURE__ */ new WeakMap();
|
|
15961
15962
|
var connectionOf = /* @__PURE__ */ __name((database) => {
|
|
15962
15963
|
let connection = connections.get(database);
|
|
@@ -16015,7 +16016,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
16015
16016
|
}
|
|
16016
16017
|
}, "read");
|
|
16017
16018
|
|
|
16018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
16019
16020
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
16020
16021
|
coalesce(CASE k.chunkable_type
|
|
16021
16022
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16157,7 +16158,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16157
16158
|
}, "dropUnusedVectors");
|
|
16158
16159
|
var dropAllUnusedVectors = /* @__PURE__ */ __name((database) => database.prepare("DELETE FROM embeddings WHERE NOT EXISTS (SELECT 1 FROM chunks k WHERE k.content_hash = embeddings.content_hash) RETURNING 1").all().length, "dropAllUnusedVectors");
|
|
16159
16160
|
|
|
16160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16161
16162
|
var accountPk = /* @__PURE__ */ __name(({ orm, now: now2 }, { provider, account, scope: scope3 }, name = null) => Number(orm.insert(accounts).values({ provider, externalId: account, name, scope: scope3 ?? "personal", createdAt: now2(), updatedAt: now2() }).onConflictDoUpdate({
|
|
16162
16163
|
target: [accounts.provider, accounts.externalId],
|
|
16163
16164
|
set: {
|
|
@@ -16262,7 +16263,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16262
16263
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16263
16264
|
}, "dropOrphanPeople");
|
|
16264
16265
|
|
|
16265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
16266
16267
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
16267
16268
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
16268
16269
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -16281,7 +16282,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
16281
16282
|
}
|
|
16282
16283
|
}, "resolvePersonLinks");
|
|
16283
16284
|
|
|
16284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
16285
16286
|
var flag = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
16286
16287
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
16287
16288
|
find: orm.select({
|
|
@@ -16500,7 +16501,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
16500
16501
|
return saved.pk;
|
|
16501
16502
|
}, "meetingIdentityPk");
|
|
16502
16503
|
|
|
16503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
16504
16505
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
16505
16506
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
16506
16507
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -16565,7 +16566,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
16565
16566
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
16566
16567
|
var bound2 = /* @__PURE__ */ __name(({ sql: text5, params }) => sql.join(text5.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
|
|
16567
16568
|
|
|
16568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
16569
16570
|
var chatOf = /* @__PURE__ */ __name(({ orm }, accountKey, chatKey) => orm.select({ id: chats.externalId }).from(chats).where(and(eq(chats.id, chatKey), eq(chats.accountId, accountKey))).get()?.id, "chatOf");
|
|
16570
16571
|
var findChatPk = /* @__PURE__ */ __name(({ orm }, accountKey, chatId) => orm.select({ pk: chats.id }).from(chats).where(and(eq(chats.accountId, accountKey), eq(chats.externalId, chatId))).get()?.pk, "findChatPk");
|
|
16571
16572
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -16837,7 +16838,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
16837
16838
|
}
|
|
16838
16839
|
}, "replaceAutoTags");
|
|
16839
16840
|
|
|
16840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
16841
16842
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
16842
16843
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
16843
16844
|
var counterValue = /* @__PURE__ */ __name((message2, field3) => {
|
|
@@ -16874,7 +16875,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
16874
16875
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
16875
16876
|
}, "counterFreshness");
|
|
16876
16877
|
|
|
16877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16878
16879
|
import { createHash as createHash3 } from "node:crypto";
|
|
16879
16880
|
var CHUNK_CHARS = 1200;
|
|
16880
16881
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16979,7 +16980,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16979
16980
|
return chunks2;
|
|
16980
16981
|
}, "cutChunks");
|
|
16981
16982
|
|
|
16982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
16983
16984
|
var GREETING = new RegExp("^(hi|hello|hey|dear|greetings|good (morning|afternoon|evening)|\u043F\u0440\u0438\u0432\u0435\u0442|\u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439(\u0442\u0435)?|\u0434\u043E\u0431\u0440(\u044B\u0439|\u043E\u0435|\u043E\u0433\u043E) (\u0434\u0435\u043D\u044C|\u0432\u0435\u0447\u0435\u0440|\u0443\u0442\u0440\u043E|\u0443\u0442\u0440\u0430|\u0434\u043D\u044F)|hola|buen(os|as) (d\xEDas|dias|tardes|noches)|estimad[oa]s?|querid[oa]s?)(?![\\p{L}\\p{N}])([\\s,]+\\p{L}[\\p{L}.'\u2019-]*){0,3}\\s*[,!.:]?$", "iu");
|
|
16984
16985
|
var SIGN_OFF = /^(best|best regards|best wishes|kind regards|warm regards|regards|thanks|thanks again|thanks a lot|thank you|many thanks|cheers|sincerely|yours|yours truly|yours sincerely|br|с уважением|спасибо|заранее спасибо|всего доброго|всего хорошего|un saludo|saludos|saludos cordiales|atentamente|gracias|muchas gracias)[\s,.!]*$/iu;
|
|
16985
16986
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -17060,7 +17061,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
|
|
|
17060
17061
|
return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
|
|
17061
17062
|
}, "mailCore");
|
|
17062
17063
|
|
|
17063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17064
17065
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17065
17066
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17066
17067
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17150,7 +17151,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17150
17151
|
});
|
|
17151
17152
|
}, "linkMeeting");
|
|
17152
17153
|
|
|
17153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
17154
17155
|
var DAY = 864e5;
|
|
17155
17156
|
var CURRENCY = [
|
|
17156
17157
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -17267,7 +17268,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
|
|
|
17267
17268
|
return best?.day ?? null;
|
|
17268
17269
|
}, "dueDayOf");
|
|
17269
17270
|
|
|
17270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
17271
17272
|
var DAY2 = 864e5;
|
|
17272
17273
|
var STOP_WORDS = new Set([
|
|
17273
17274
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -17422,7 +17423,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
17422
17423
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
17423
17424
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
17424
17425
|
|
|
17425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
17426
17427
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
17427
17428
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
17428
17429
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17693,7 +17694,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17693
17694
|
};
|
|
17694
17695
|
}, "readiness");
|
|
17695
17696
|
|
|
17696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17697
17698
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17698
17699
|
var SCAN_PAGE2 = 5e3;
|
|
17699
17700
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17756,7 +17757,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17756
17757
|
}, "nearestPictures")
|
|
17757
17758
|
}), "documentPicturesOver");
|
|
17758
17759
|
|
|
17759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17760
17761
|
var EVENT_TEXT = "trim(coalesce(e.description, '') || ' ' || coalesce(e.location, '') || ' ' || coalesce((SELECT group_concat(p.name, ' ') FROM calendar_entries ce JOIN calendar_entry_participants p ON p.entry_id = ce.id WHERE ce.event_id = e.id AND ce.deleted_at IS NULL AND p.resource = 0 AND p.name IS NOT NULL), ''))";
|
|
17761
17762
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17762
17763
|
"working-location",
|
|
@@ -17938,7 +17939,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17938
17939
|
return true;
|
|
17939
17940
|
}, "resetNoteIndex");
|
|
17940
17941
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
17942
17943
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
17943
17944
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
17944
17945
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18048,7 +18049,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor) => {
|
|
|
18048
18049
|
return emails3 + threads;
|
|
18049
18050
|
}, "drainEmailIndex");
|
|
18050
18051
|
|
|
18051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18052
18053
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18053
18054
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18054
18055
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -18072,7 +18073,7 @@ var setEmailFlags = /* @__PURE__ */ __name((database, accountId, flags, now2) =>
|
|
|
18072
18073
|
return changed;
|
|
18073
18074
|
}, "setEmailFlags");
|
|
18074
18075
|
|
|
18075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
18076
18077
|
var sorted = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.map(sorted) : value !== null && typeof value === "object" ? Object.fromEntries(Object.keys(value).sort().map((key2) => [key2, sorted(value[key2])])) : value, "sorted");
|
|
18077
18078
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
18078
18079
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18139,7 +18140,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
18139
18140
|
}
|
|
18140
18141
|
}), "mailRulesOver");
|
|
18141
18142
|
|
|
18142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
18143
18144
|
var FOLDED = [
|
|
18144
18145
|
{ table: "tasks", column: "title" },
|
|
18145
18146
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -18171,7 +18172,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
18171
18172
|
return filled2;
|
|
18172
18173
|
}, "fillFolded");
|
|
18173
18174
|
|
|
18174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
18175
18176
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
18176
18177
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
18177
18178
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -18179,7 +18180,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
18179
18180
|
reason = excluded.reason, updated_at = excluded.updated_at WHERE link_reviews.status = 'open'`).run(linkable.type, linkable.id, entity, JSON.stringify([...candidates].sort((a, b) => a - b)), reason, now2, now2);
|
|
18180
18181
|
}, "reviewLink");
|
|
18181
18182
|
|
|
18182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
18183
18184
|
function checkMeetingCancelled(signal) {
|
|
18184
18185
|
if (!signal?.aborted)
|
|
18185
18186
|
return;
|
|
@@ -18190,7 +18191,7 @@ function checkMeetingCancelled(signal) {
|
|
|
18190
18191
|
}
|
|
18191
18192
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
18192
18193
|
|
|
18193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
18194
18195
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
18195
18196
|
id: Number(row2.id),
|
|
18196
18197
|
accountId: Number(row2.account_id),
|
|
@@ -18240,7 +18241,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
18240
18241
|
createdAt: Number(row2.created_at)
|
|
18241
18242
|
}), "transcriptRowOf");
|
|
18242
18243
|
|
|
18243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
18244
18245
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
18245
18246
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
18246
18247
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -18407,7 +18408,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18407
18408
|
}
|
|
18408
18409
|
}), "meetingReadsOver");
|
|
18409
18410
|
|
|
18410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
18411
18412
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
18412
18413
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
18413
18414
|
const params = [input.accountId];
|
|
@@ -18450,7 +18451,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
18450
18451
|
return { clauses, params };
|
|
18451
18452
|
}, "meetingSelectionSql");
|
|
18452
18453
|
|
|
18453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
18454
18455
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
18455
18456
|
async meetingChatLines(input) {
|
|
18456
18457
|
checkMeetingCancelled(input.signal);
|
|
@@ -18478,7 +18479,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
18478
18479
|
}
|
|
18479
18480
|
}), "meetingChatLinesOver");
|
|
18480
18481
|
|
|
18481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
18482
18483
|
var MESSAGE_FIELDS = {
|
|
18483
18484
|
pk: messages.id,
|
|
18484
18485
|
nativeId: messages.externalId,
|
|
@@ -18644,7 +18645,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
18644
18645
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
18645
18646
|
}), "chatActivity");
|
|
18646
18647
|
|
|
18647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
18648
18649
|
var HIT_FIELDS = {
|
|
18649
18650
|
...MESSAGE_FIELDS,
|
|
18650
18651
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -18743,7 +18744,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
18743
18744
|
};
|
|
18744
18745
|
}, "directReplies");
|
|
18745
18746
|
|
|
18746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
18747
18748
|
var identityRow = /* @__PURE__ */ __name(({ orm }, { provider, id: id2 }) => orm.select({ pk: identities.id, personPk: identityLinks.personId }).from(identities).innerJoin(identityLinks, eq(identityLinks.identityId, identities.id)).where(and(eq(identities.provider, provider), eq(identities.externalId, id2))).get(), "identityRow");
|
|
18748
18749
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
18749
18750
|
const found2 = identityRow(context, ref3);
|
|
@@ -18874,7 +18875,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
18874
18875
|
}, "mentioning");
|
|
18875
18876
|
var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
18876
18877
|
|
|
18877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
18878
18879
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
18879
18880
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
18880
18881
|
}, "missing");
|
|
@@ -18996,7 +18997,7 @@ function meetingContextLinksOver(context) {
|
|
|
18996
18997
|
}
|
|
18997
18998
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
18998
18999
|
|
|
18999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19000
19001
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19001
19002
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19002
19003
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19025,7 +19026,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19025
19026
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19026
19027
|
}, "indexedText");
|
|
19027
19028
|
|
|
19028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19029
19030
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19030
19031
|
var meetingCurrentIndexRows = `
|
|
19031
19032
|
SELECT 'meeting_transcript_row' AS indexable_type,r.id,r.id*4+1 AS rid,1 AS live,coalesce(length(CAST(r.text AS BLOB)),0) AS bytes FROM meeting_transcript_rows r JOIN meeting_transcripts t ON t.id=r.meeting_transcript_id JOIN meetings m ON m.id=t.meeting_id WHERE m.account_id=? AND m.deleted_at IS NULL AND t.deleted_at IS NULL AND t.superseded_at IS NULL
|
|
@@ -19056,7 +19057,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19056
19057
|
}, "invalidateMeetingStems");
|
|
19057
19058
|
var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19058
19059
|
|
|
19059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19060
19061
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19061
19062
|
return {
|
|
19062
19063
|
async indexSearch(original) {
|
|
@@ -19124,10 +19125,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
19124
19125
|
}
|
|
19125
19126
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
19126
19127
|
|
|
19127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19128
19129
|
import { createHash as createHash4 } from "node:crypto";
|
|
19129
19130
|
|
|
19130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
19131
19132
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
19132
19133
|
const padded = ` ${term} `;
|
|
19133
19134
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -19136,7 +19137,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
19136
19137
|
return [...pieces];
|
|
19137
19138
|
}, "trigrams");
|
|
19138
19139
|
|
|
19139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
19140
19141
|
var SHORTEST_CORRECTION = 3;
|
|
19141
19142
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
19142
19143
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -19183,7 +19184,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
19183
19184
|
return corrections;
|
|
19184
19185
|
}, "correctWords");
|
|
19185
19186
|
|
|
19186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
19187
19188
|
var SHORTEST_GARBLED = 4;
|
|
19188
19189
|
var MOST_WIDENED = 64;
|
|
19189
19190
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -19275,7 +19276,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
19275
19276
|
return found2.map((words3) => words3.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word) => word.term));
|
|
19276
19277
|
}, "widenWords");
|
|
19277
19278
|
|
|
19278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
19279
19280
|
import { readFileSync } from "node:fs";
|
|
19280
19281
|
var loaded;
|
|
19281
19282
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -19334,7 +19335,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
19334
19335
|
return false;
|
|
19335
19336
|
}, "knownRussianWord");
|
|
19336
19337
|
|
|
19337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
19338
19339
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
19339
19340
|
var MOST_WORDS = 128;
|
|
19340
19341
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -19561,7 +19562,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
|
|
|
19561
19562
|
return check3(tree);
|
|
19562
19563
|
}, "matchMeetingText");
|
|
19563
19564
|
|
|
19564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19565
19566
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
19566
19567
|
throw new CliError("validation_error", message2);
|
|
19567
19568
|
}, "fail");
|
|
@@ -19738,7 +19739,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
19738
19739
|
}
|
|
19739
19740
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
19740
19741
|
|
|
19741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
19742
19743
|
import { createHash as createHash5 } from "node:crypto";
|
|
19743
19744
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
19744
19745
|
if (value === void 0)
|
|
@@ -19828,7 +19829,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
19828
19829
|
}
|
|
19829
19830
|
}), "meetingParticipantSearchOver");
|
|
19830
19831
|
|
|
19831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
19832
19833
|
var preparationQueries = {
|
|
19833
19834
|
participants: {
|
|
19834
19835
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -19878,7 +19879,7 @@ var preparationQueries = {
|
|
|
19878
19879
|
}
|
|
19879
19880
|
};
|
|
19880
19881
|
|
|
19881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
19882
19883
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19883
19884
|
async preparationContext(original) {
|
|
19884
19885
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -19919,7 +19920,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19919
19920
|
}
|
|
19920
19921
|
}), "meetingPreparationContextOver");
|
|
19921
19922
|
|
|
19922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
19923
19924
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
19924
19925
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
19925
19926
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -19933,7 +19934,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
19933
19934
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
19934
19935
|
)`, "preparationSubjects");
|
|
19935
19936
|
|
|
19936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
19937
19938
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19938
19939
|
async preparationKnowledge(original) {
|
|
19939
19940
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -19978,7 +19979,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
19978
19979
|
}
|
|
19979
19980
|
}), "meetingPreparationKnowledgeOver");
|
|
19980
19981
|
|
|
19981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
19982
19983
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19983
19984
|
async preparationNotes(original) {
|
|
19984
19985
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20031,7 +20032,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20031
20032
|
}
|
|
20032
20033
|
}), "meetingPreparationNotesOver");
|
|
20033
20034
|
|
|
20034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20035
20036
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20036
20037
|
async relatedHistory(original) {
|
|
20037
20038
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -20102,7 +20103,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20102
20103
|
}
|
|
20103
20104
|
}), "meetingRelatedHistoryOver");
|
|
20104
20105
|
|
|
20105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
20106
20107
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
20107
20108
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
20108
20109
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -20183,7 +20184,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20183
20184
|
}
|
|
20184
20185
|
}), "meetingReviewOver");
|
|
20185
20186
|
|
|
20186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
20187
20188
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
20188
20189
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
20189
20190
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -20237,7 +20238,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20237
20238
|
}
|
|
20238
20239
|
}), "meetingSeriesHistoryOver");
|
|
20239
20240
|
|
|
20240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
20241
20242
|
var MOST_ROWS = 5e5;
|
|
20242
20243
|
var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20243
20244
|
async meetingStats(input) {
|
|
@@ -20284,7 +20285,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20284
20285
|
}
|
|
20285
20286
|
}), "meetingStatsOver");
|
|
20286
20287
|
|
|
20287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
20288
20289
|
var CURSOR_KEY = "meetings";
|
|
20289
20290
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
20290
20291
|
id: Number(row2.id),
|
|
@@ -20836,7 +20837,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
20836
20837
|
};
|
|
20837
20838
|
}, "meetingStoreOver");
|
|
20838
20839
|
|
|
20839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
20840
20841
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
20841
20842
|
id: `email:${place.emailId}`,
|
|
20842
20843
|
chatId: place.threadExternalId,
|
|
@@ -21404,7 +21405,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor = stem
|
|
|
21404
21405
|
}
|
|
21405
21406
|
}), "mailStoreOver");
|
|
21406
21407
|
|
|
21407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
21408
21409
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21409
21410
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
21410
21411
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -21494,7 +21495,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
21494
21495
|
}, "knownWord");
|
|
21495
21496
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
21496
21497
|
|
|
21497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
21498
21499
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
21499
21500
|
var readsTranscripts = /* @__PURE__ */ __name((node) => (node.operator === "term" || node.operator === "phrase") && /[\p{L}\p{N}]/u.test(normalize(node.value)) && (node.field === "transcript" || node.implicit === true && (node.field === "text" || node.field === "exact")), "readsTranscripts");
|
|
21500
21501
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -21580,7 +21581,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
21580
21581
|
return found2;
|
|
21581
21582
|
}, "spokenTranscripts");
|
|
21582
21583
|
|
|
21583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
21584
21585
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
21585
21586
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
21586
21587
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -21627,7 +21628,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
21627
21628
|
});
|
|
21628
21629
|
}, "placeHits");
|
|
21629
21630
|
|
|
21630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
21631
21632
|
var MESSAGES2 = {
|
|
21632
21633
|
rows: "messages",
|
|
21633
21634
|
threads: "chats",
|
|
@@ -22089,7 +22090,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
22089
22090
|
};
|
|
22090
22091
|
}, "runQuery");
|
|
22091
22092
|
|
|
22092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
22093
22094
|
function invalidMetadata() {
|
|
22094
22095
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
22095
22096
|
}
|
|
@@ -22191,7 +22192,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
22191
22192
|
};
|
|
22192
22193
|
}), "counterTargets");
|
|
22193
22194
|
|
|
22194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
22195
22196
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
22196
22197
|
var fileAttachments = /* @__PURE__ */ __name(({ database }, accountKey, { chatKey, messageId, beforePk, limit }) => database.prepare(`SELECT att.id AS pk, c.external_id AS chat_id, m.external_id AS message_id, att.position, att.kind, att.name, att.mime,
|
|
22197
22198
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -22310,7 +22311,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
22310
22311
|
}));
|
|
22311
22312
|
}, "attachmentViews");
|
|
22312
22313
|
|
|
22313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
22314
22315
|
var transcript = /* @__PURE__ */ __name(({ orm }, chatKey, messageId) => orm.select({ text: messageTranscripts.text, source: messageTranscripts.source }).from(messageTranscripts).where(and(eq(messageTranscripts.chatId, chatKey), eq(messageTranscripts.messageExternalId, messageId))).get(), "transcript");
|
|
22315
22316
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
|
|
22316
22317
|
const { orm, database, now: now2 } = context;
|
|
@@ -22348,7 +22349,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
22348
22349
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
22349
22350
|
}, "intoVoiceAttachment");
|
|
22350
22351
|
|
|
22351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
22352
22353
|
var FIELDS = [
|
|
22353
22354
|
"threadExternalId",
|
|
22354
22355
|
"senderIdentityId",
|
|
@@ -22655,7 +22656,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
22655
22656
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
22656
22657
|
}, "writeDerivedReactions");
|
|
22657
22658
|
|
|
22658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
22659
22660
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
22660
22661
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
22661
22662
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -22681,7 +22682,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
22681
22682
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
22682
22683
|
}, "release");
|
|
22683
22684
|
|
|
22684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
22685
22686
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
22686
22687
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
22687
22688
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -22702,7 +22703,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
22702
22703
|
};
|
|
22703
22704
|
}, "keysOver");
|
|
22704
22705
|
|
|
22705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
22706
22707
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
22707
22708
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
22708
22709
|
if (!row2)
|
|
@@ -22737,7 +22738,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
22737
22738
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
22738
22739
|
}, "saveProfile");
|
|
22739
22740
|
|
|
22740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
22741
22742
|
var BOT_KINDS = ["agent", "script", "integration"];
|
|
22742
22743
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
22743
22744
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -22773,7 +22774,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
22773
22774
|
return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
|
|
22774
22775
|
}, "originOfActor");
|
|
22775
22776
|
|
|
22776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
22777
22778
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
22778
22779
|
const owner = ownerPerson(context.database).id;
|
|
22779
22780
|
const strays = context.database.prepare("SELECT DISTINCT l.person_id AS person FROM identity_links l JOIN identities i ON i.id = l.identity_id JOIN accounts a ON a.provider = i.provider AND a.external_id = i.external_id WHERE l.person_id <> ?").all(owner);
|
|
@@ -22794,7 +22795,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
22794
22795
|
return personOf(context, ref3);
|
|
22795
22796
|
}, "linkToOwner");
|
|
22796
22797
|
|
|
22797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
22798
22799
|
var PROVIDERS_SETTING = "providers";
|
|
22799
22800
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
22800
22801
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -22829,7 +22830,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
22829
22830
|
});
|
|
22830
22831
|
}, "registerProvider");
|
|
22831
22832
|
|
|
22832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
22833
22834
|
var DAY3 = 864e5;
|
|
22834
22835
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
22835
22836
|
var TEXT_LIMIT = 20;
|
|
@@ -23028,7 +23029,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
23028
23029
|
};
|
|
23029
23030
|
}, "taskSimilarityOver");
|
|
23030
23031
|
|
|
23031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
23032
23033
|
var SETTING3 = "taskCategories";
|
|
23033
23034
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
23034
23035
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -23047,7 +23048,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
23047
23048
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(SETTING3, JSON.stringify(categories), now2);
|
|
23048
23049
|
}, "saveTaskCategories");
|
|
23049
23050
|
|
|
23050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
23051
23052
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
23052
23053
|
var ALLOWED = "taskAgentClose";
|
|
23053
23054
|
var MIN = "taskAgentCloseMin";
|
|
@@ -23103,7 +23104,7 @@ var SUGGESTION_COLUMNS = [
|
|
|
23103
23104
|
];
|
|
23104
23105
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
23105
23106
|
|
|
23106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
23107
23108
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
23108
23109
|
var MAX_TEXT_CHARS = 2e6;
|
|
23109
23110
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -23129,7 +23130,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
23129
23130
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
23130
23131
|
}, "pdfPreviewLimits");
|
|
23131
23132
|
|
|
23132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
23133
23134
|
import { randomBytes } from "node:crypto";
|
|
23134
23135
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23135
23136
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -23142,7 +23143,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
23142
23143
|
return time3 + random;
|
|
23143
23144
|
}, "ulid");
|
|
23144
23145
|
|
|
23145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
23146
23147
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
23147
23148
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
23148
23149
|
if (!meta && !sections?.length)
|
|
@@ -23163,7 +23164,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
23163
23164
|
return typeof language === "string" && language !== "" ? language : null;
|
|
23164
23165
|
}, "languageOf");
|
|
23165
23166
|
|
|
23166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
23167
23168
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
23168
23169
|
var objectOf = /* @__PURE__ */ __name((value) => {
|
|
23169
23170
|
if (isObject(value))
|
|
@@ -23406,7 +23407,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
23406
23407
|
};
|
|
23407
23408
|
}, "filesStoreOver");
|
|
23408
23409
|
|
|
23409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
23410
23411
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
23411
23412
|
entity: "document",
|
|
23412
23413
|
backend: "sql",
|
|
@@ -23452,7 +23453,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
23452
23453
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
23453
23454
|
}, "importedDocumentWhere");
|
|
23454
23455
|
|
|
23455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
23456
23457
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
23457
23458
|
var iso = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23458
23459
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso(value), "optionalIso");
|
|
@@ -23961,7 +23962,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
23961
23962
|
};
|
|
23962
23963
|
}, "notesStoreOver");
|
|
23963
23964
|
|
|
23964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
23965
23966
|
var NAMED = "SELECT m.*, b.name AS author_name FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
|
|
23966
23967
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
23967
23968
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -24077,7 +24078,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
24077
24078
|
};
|
|
24078
24079
|
}, "memoriesStoreOver");
|
|
24079
24080
|
|
|
24080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
24081
24082
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
24082
24083
|
var KEY = "taskFirstPassPerChat";
|
|
24083
24084
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -24097,7 +24098,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
24097
24098
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(KEY, String(value), now2);
|
|
24098
24099
|
}, "saveFirstPassPerChat");
|
|
24099
24100
|
|
|
24100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
24101
24102
|
var TASK_RELATION_KINDS = [
|
|
24102
24103
|
"blocked-by",
|
|
24103
24104
|
"follow-up-of",
|
|
@@ -24227,7 +24228,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
24227
24228
|
};
|
|
24228
24229
|
}, "taskRelationsStoreOver");
|
|
24229
24230
|
|
|
24230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
24231
24232
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
24232
24233
|
var iso3 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
24233
24234
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind3, changes, at) => {
|
|
@@ -24499,7 +24500,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
24499
24500
|
};
|
|
24500
24501
|
}, "workTasksOver");
|
|
24501
24502
|
|
|
24502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
24503
24504
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
24504
24505
|
const { database, now: now2 } = context;
|
|
24505
24506
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -24545,7 +24546,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
24545
24546
|
};
|
|
24546
24547
|
}, "taskCloseOver");
|
|
24547
24548
|
|
|
24548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
24549
24550
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
24550
24551
|
const { database, now: now2 } = context;
|
|
24551
24552
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -24763,7 +24764,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
24763
24764
|
};
|
|
24764
24765
|
}, "taskPairsOver");
|
|
24765
24766
|
|
|
24766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
24767
24768
|
var COLUMNS3 = "t.id AS row_id, t.package_id, t.source_locator, t.source_kind, t.source_group, t.type, t.status, t.close_reason, t.source, t.created_at, t.due_at, t.closed_at, t.closed_by_type, t.closed_by_id, t.key, t.category, t.claimed_by, t.claimed_until, p.name AS account";
|
|
24768
24769
|
var taskStoreOver = /* @__PURE__ */ __name((context) => {
|
|
24769
24770
|
const { database, now: now2 } = context;
|
|
@@ -24958,7 +24959,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
24958
24959
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
24959
24960
|
}, "oneOf");
|
|
24960
24961
|
|
|
24961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
24962
24963
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
24963
24964
|
const { database } = context;
|
|
24964
24965
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -25000,7 +25001,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
25000
25001
|
};
|
|
25001
25002
|
}, "accountsStoreOver");
|
|
25002
25003
|
|
|
25003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
25004
25005
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
25005
25006
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
25006
25007
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -25024,7 +25025,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
25024
25025
|
})), "keepDownloads");
|
|
25025
25026
|
var keepProviderRefs = /* @__PURE__ */ __name((context, chatKey, messageId, files2) => updatePlaced(context, chatKey, messageId, files2.filter((file) => Object.keys(file.providerRef).length > 0), (file) => refColumn(file.providerRef)), "keepProviderRefs");
|
|
25026
25027
|
|
|
25027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
25028
25029
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
25029
25030
|
const { database } = context;
|
|
25030
25031
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25081,7 +25082,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25081
25082
|
}, "keepAttachmentText")
|
|
25082
25083
|
}), "attachmentsStoreOver");
|
|
25083
25084
|
|
|
25084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
25085
25086
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
25086
25087
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
25087
25088
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -25261,7 +25262,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
25261
25262
|
return done;
|
|
25262
25263
|
}, "rekeyChats");
|
|
25263
25264
|
|
|
25264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
25265
25266
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
25266
25267
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
25267
25268
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -25293,7 +25294,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
|
|
|
25293
25294
|
});
|
|
25294
25295
|
}, "chatCompleteness");
|
|
25295
25296
|
|
|
25296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
25297
25298
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25298
25299
|
const { database } = context;
|
|
25299
25300
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -25393,7 +25394,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25393
25394
|
};
|
|
25394
25395
|
}, "chatsStoreOver");
|
|
25395
25396
|
|
|
25396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
25397
25398
|
import { createHash as createHash6 } from "node:crypto";
|
|
25398
25399
|
var BATCH_CONTEXT = 50;
|
|
25399
25400
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -25531,7 +25532,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
25531
25532
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
25532
25533
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
25533
25534
|
|
|
25534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
25535
25536
|
import { setTimeout } from "node:timers/promises";
|
|
25536
25537
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
25537
25538
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -25843,7 +25844,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
25843
25844
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
25844
25845
|
WHERE d.id IN (l.message_id, l.parent_id) AND d.deleted_at > l.created_at)`).map(({ id: id2, parent: parent2 }) => [id2, parent2])), "agentAnswers");
|
|
25845
25846
|
|
|
25846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
25847
25848
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
25848
25849
|
const { database } = context;
|
|
25849
25850
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -25950,7 +25951,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25950
25951
|
};
|
|
25951
25952
|
}, "conversationsStoreOver");
|
|
25952
25953
|
|
|
25953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
25954
25955
|
var LIVE_MESSAGE = "SELECT m.id AS pk FROM messages m JOIN chats c ON c.id=m.chat_id JOIN accounts ac ON ac.id=m.account_id WHERE ac.provider=? AND ac.external_id=? AND c.external_id=? AND m.external_id=? AND m.deleted_at IS NULL";
|
|
25955
25956
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
25956
25957
|
const { database } = context;
|
|
@@ -25975,7 +25976,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
25975
25976
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
25976
25977
|
}), "countersStoreOver");
|
|
25977
25978
|
|
|
25978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
25979
25980
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
25980
25981
|
var MENTION_QUERY = defineQuery({
|
|
25981
25982
|
entity: "mention",
|
|
@@ -26191,7 +26192,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
26191
26192
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
26192
26193
|
}, "listPlaces");
|
|
26193
26194
|
|
|
26194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
26195
26196
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
26196
26197
|
const { database } = context;
|
|
26197
26198
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -26226,7 +26227,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26226
26227
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
26227
26228
|
}), "mentionsStoreOver");
|
|
26228
26229
|
|
|
26229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
26230
26231
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
26231
26232
|
const read2 = database.prepare("SELECT m.id, m.external_id, m.text, m.sent_at, m.sender_name, coalesce(m.sender_chat_external_id, i.external_id) AS sender_id FROM messages m LEFT JOIN identities i ON i.id = m.sender_identity_id WHERE m.chat_id = ? AND m.deleted_at IS NULL AND (m.text LIKE '%google.com%' OR m.text LIKE '%forms.gle%') " + (messageId === void 0 ? "" : "AND m.external_id = ? ") + "ORDER BY m.sent_at DESC, m.id DESC");
|
|
26232
26233
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -26241,7 +26242,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
26241
26242
|
}));
|
|
26242
26243
|
}, "documentLinkMessages");
|
|
26243
26244
|
|
|
26244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
26245
26246
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
26246
26247
|
const { database } = context;
|
|
26247
26248
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -26371,7 +26372,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
26371
26372
|
directReplies: /* @__PURE__ */ __name(async (parents, limit) => directReplies(context, parents, limit), "directReplies")
|
|
26372
26373
|
}), "messagesStoreOver");
|
|
26373
26374
|
|
|
26374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
26375
26376
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
26376
26377
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
26377
26378
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -26428,7 +26429,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
26428
26429
|
});
|
|
26429
26430
|
}, "personPreparation");
|
|
26430
26431
|
|
|
26431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
26432
26433
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
26433
26434
|
const id2 = Number(uid);
|
|
26434
26435
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -26436,7 +26437,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
26436
26437
|
return Boolean(database.prepare("SELECT 1 FROM persons p JOIN identity_links l ON l.person_id=p.id JOIN account_identities a ON a.identity_id=l.identity_id WHERE p.id=? AND a.account_id IN (SELECT value FROM json_each(?)) LIMIT 1").get(id2, JSON.stringify(accountIds)));
|
|
26437
26438
|
}, "personSeenInAccounts");
|
|
26438
26439
|
|
|
26439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
26440
26441
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
26441
26442
|
const row2 = database.prepare("SELECT a.id AS account_id, i.id AS identity_id FROM accounts a JOIN account_identities ai ON ai.account_id=a.id JOIN identities i ON i.id=ai.identity_id WHERE a.provider=? AND a.external_id=? AND i.provider=? AND i.external_id=?").get(key2.provider, key2.account, key2.provider, personId);
|
|
26442
26443
|
if (!row2)
|
|
@@ -26502,7 +26503,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
26502
26503
|
return { id: id2, personId, removed: true };
|
|
26503
26504
|
}, "removeNote");
|
|
26504
26505
|
|
|
26505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
26506
26507
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
26507
26508
|
const { database } = context;
|
|
26508
26509
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -26556,6 +26557,15 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
26556
26557
|
personOf: /* @__PURE__ */ __name(async (identity) => personOf(context, identity), "personOf"),
|
|
26557
26558
|
personSeenInAccounts: /* @__PURE__ */ __name(async (uid, accountIds) => personSeenInAccounts(context, uid, accountIds), "personSeenInAccounts"),
|
|
26558
26559
|
personByUid: /* @__PURE__ */ __name(async (uid) => personByUid(context, uid), "personByUid"),
|
|
26560
|
+
owner: /* @__PURE__ */ __name(async () => {
|
|
26561
|
+
try {
|
|
26562
|
+
return personByUid(context, String(ownerPerson(database).id));
|
|
26563
|
+
} catch (error) {
|
|
26564
|
+
if (error instanceof CliError && error.code === "configuration_error")
|
|
26565
|
+
return void 0;
|
|
26566
|
+
throw error;
|
|
26567
|
+
}
|
|
26568
|
+
}, "owner"),
|
|
26559
26569
|
preparation: /* @__PURE__ */ __name(async (uid, options) => personPreparation(context, uid, options), "preparation"),
|
|
26560
26570
|
linkIdentities: /* @__PURE__ */ __name(async (person2, other, options) => {
|
|
26561
26571
|
return write(database, () => linkIdentities(context, person2, other, options));
|
|
@@ -26567,13 +26577,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
26567
26577
|
};
|
|
26568
26578
|
}, "peopleStoreOver");
|
|
26569
26579
|
|
|
26570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
26571
26581
|
import { createHash as createHash8 } from "node:crypto";
|
|
26572
26582
|
|
|
26573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26574
26584
|
import { createHash as createHash7 } from "node:crypto";
|
|
26575
26585
|
|
|
26576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
26577
26587
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
26578
26588
|
var AUTHOR_MEASURES = [
|
|
26579
26589
|
"messages",
|
|
@@ -26713,7 +26723,7 @@ var withoutUrls = /* @__PURE__ */ __name((text5) => text5.replace(/\S+/gu, (toke
|
|
|
26713
26723
|
var rankingWords = /* @__PURE__ */ __name((text5) => withoutUrls(text5).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
26714
26724
|
var rankingQuestion = /* @__PURE__ */ __name((text5) => withoutUrls(text5).includes("?"), "rankingQuestion");
|
|
26715
26725
|
|
|
26716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
26717
26727
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
26718
26728
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
26719
26729
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -26935,7 +26945,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
26935
26945
|
};
|
|
26936
26946
|
}, "rankReplyGraph");
|
|
26937
26947
|
|
|
26938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
26939
26949
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
26940
26950
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
26941
26951
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -27109,7 +27119,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
27109
27119
|
return { items, evidence, summary, graph: graph.quality };
|
|
27110
27120
|
}, "calculateAdminStatistics");
|
|
27111
27121
|
|
|
27112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
27113
27123
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
27114
27124
|
const dates = [];
|
|
27115
27125
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -27131,7 +27141,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
27131
27141
|
return dates[0].node.resolution.date;
|
|
27132
27142
|
}, "rankingContextRange");
|
|
27133
27143
|
|
|
27134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
27135
27145
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
27136
27146
|
let counts;
|
|
27137
27147
|
try {
|
|
@@ -27426,7 +27436,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
27426
27436
|
});
|
|
27427
27437
|
}, "rankQuery");
|
|
27428
27438
|
|
|
27429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
27430
27440
|
function fail4(message2, reason = "query.too-large") {
|
|
27431
27441
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
27432
27442
|
}
|
|
@@ -27603,7 +27613,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
27603
27613
|
return result;
|
|
27604
27614
|
}), "adminStatisticsQuery");
|
|
27605
27615
|
|
|
27606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
27607
27617
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
27608
27618
|
if (!execution.accounts.length)
|
|
27609
27619
|
return { conversations: [], chats: [] };
|
|
@@ -27621,7 +27631,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
27621
27631
|
return { conversations: conversations2, chats: chats2 };
|
|
27622
27632
|
}, "conversationEligibility");
|
|
27623
27633
|
|
|
27624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
27625
27635
|
import { createHash as createHash9 } from "node:crypto";
|
|
27626
27636
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
27627
27637
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -27771,7 +27781,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
27771
27781
|
return result;
|
|
27772
27782
|
}, "rankingEvidence");
|
|
27773
27783
|
|
|
27774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
27775
27785
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
27776
27786
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
27777
27787
|
if (execution.corpus === "mail")
|
|
@@ -27788,7 +27798,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
|
|
|
27788
27798
|
};
|
|
27789
27799
|
}, "queriesStoreOver");
|
|
27790
27800
|
|
|
27791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
27792
27802
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
27793
27803
|
const { database, now: now2 } = context;
|
|
27794
27804
|
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 +27837,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
27827
27837
|
}));
|
|
27828
27838
|
}, "chatEventsOf");
|
|
27829
27839
|
|
|
27830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27831
27841
|
import { createHash as createHash10 } from "node:crypto";
|
|
27832
27842
|
|
|
27833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
27834
27844
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
27835
27845
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
27836
27846
|
timeZone: zone,
|
|
@@ -27845,7 +27855,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
|
27845
27855
|
};
|
|
27846
27856
|
}, "calendarKey");
|
|
27847
27857
|
|
|
27848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
27849
27859
|
var RETENTION_TOLERANCE = 864e5;
|
|
27850
27860
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
27851
27861
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -27899,7 +27909,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
27899
27909
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
27900
27910
|
}, "retentionCohorts");
|
|
27901
27911
|
|
|
27902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
27903
27913
|
var iso5 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
27904
27914
|
var week = /* @__PURE__ */ __name((day) => {
|
|
27905
27915
|
const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
@@ -28035,7 +28045,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
28035
28045
|
};
|
|
28036
28046
|
}, "retentionQuery");
|
|
28037
28047
|
|
|
28038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
28039
28049
|
var iso6 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
28040
28050
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
28041
28051
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -28166,7 +28176,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
28166
28176
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
28167
28177
|
})), "trackedChats");
|
|
28168
28178
|
|
|
28169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
28170
28180
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28171
28181
|
const { database } = context;
|
|
28172
28182
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -28222,7 +28232,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28222
28232
|
};
|
|
28223
28233
|
}, "rosterStoreOver");
|
|
28224
28234
|
|
|
28225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
28226
28236
|
var pendingNormalization = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL").get()?.n), "pendingNormalization");
|
|
28227
28237
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
28228
28238
|
const next = database.prepare(`SELECT id AS pk, text FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL AND id > ? ORDER BY id LIMIT ?`);
|
|
@@ -28246,7 +28256,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
28246
28256
|
}
|
|
28247
28257
|
}, "backfillNormalized");
|
|
28248
28258
|
|
|
28249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
28250
28260
|
var INDEX2 = "message_words";
|
|
28251
28261
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
28252
28262
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -28373,7 +28383,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
28373
28383
|
});
|
|
28374
28384
|
}, "resetSearchIndex");
|
|
28375
28385
|
|
|
28376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
28377
28387
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
28378
28388
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
28379
28389
|
const before2 = stemsState(database);
|
|
@@ -28468,7 +28478,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
28468
28478
|
return resetStems(database, { now: now2 });
|
|
28469
28479
|
}, "followDefaultStemmers");
|
|
28470
28480
|
|
|
28471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
28472
28482
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
28473
28483
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
28474
28484
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -28490,7 +28500,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
28490
28500
|
});
|
|
28491
28501
|
}, "termCandidates");
|
|
28492
28502
|
|
|
28493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
28494
28504
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28495
28505
|
const { database } = context;
|
|
28496
28506
|
const stemmerFor = stemmerCache();
|
|
@@ -28512,7 +28522,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28512
28522
|
};
|
|
28513
28523
|
}, "searchIndexStoreOver");
|
|
28514
28524
|
|
|
28515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
28516
28526
|
var HISTORY_KEPT = 1e3;
|
|
28517
28527
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
28518
28528
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -28581,7 +28591,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
28581
28591
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
28582
28592
|
}, "clearHistory");
|
|
28583
28593
|
|
|
28584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
28585
28595
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28586
28596
|
const { database } = context;
|
|
28587
28597
|
return {
|
|
@@ -28605,7 +28615,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28605
28615
|
};
|
|
28606
28616
|
}, "searchesStoreOver");
|
|
28607
28617
|
|
|
28608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
28609
28619
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
28610
28620
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
28611
28621
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -28648,7 +28658,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
28648
28658
|
};
|
|
28649
28659
|
}, "agentActionsStoreOver");
|
|
28650
28660
|
|
|
28651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
28652
28662
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
28653
28663
|
}) => {
|
|
28654
28664
|
const { database, now: now2 } = context;
|
|
@@ -28707,7 +28717,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
28707
28717
|
};
|
|
28708
28718
|
}, "botUpdateStoreOver");
|
|
28709
28719
|
|
|
28710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
28711
28721
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
28712
28722
|
id: Number(row2.id),
|
|
28713
28723
|
accountId: Number(row2.account_id),
|
|
@@ -29266,7 +29276,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
29266
29276
|
};
|
|
29267
29277
|
}, "eventStoreOver");
|
|
29268
29278
|
|
|
29269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
29270
29280
|
var CATALOG_QUERY = defineQuery({
|
|
29271
29281
|
entity: "document",
|
|
29272
29282
|
backend: "sql",
|
|
@@ -29508,7 +29518,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
29508
29518
|
};
|
|
29509
29519
|
}, "catalogStoreOver");
|
|
29510
29520
|
|
|
29511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
29512
29522
|
import { createHash as createHash11 } from "node:crypto";
|
|
29513
29523
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
29514
29524
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -29606,7 +29616,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
29606
29616
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
29607
29617
|
}, "contextEvidenceRequest");
|
|
29608
29618
|
|
|
29609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
29610
29620
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
29611
29621
|
var field2 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
29612
29622
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -29619,7 +29629,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
29619
29629
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
29620
29630
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field2("sourceUrl")})`;
|
|
29621
29631
|
|
|
29622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
29623
29633
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
29624
29634
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
29625
29635
|
signal?.throwIfAborted();
|
|
@@ -29718,7 +29728,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
29718
29728
|
});
|
|
29719
29729
|
}, "readMeetingContextEvidence");
|
|
29720
29730
|
|
|
29721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
29722
29732
|
var corpora = {
|
|
29723
29733
|
message: {
|
|
29724
29734
|
table: "messages",
|
|
@@ -29947,7 +29957,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29947
29957
|
}
|
|
29948
29958
|
}), "contextRecordsOver");
|
|
29949
29959
|
|
|
29950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
29951
29961
|
var NOTE_FIELDS = [
|
|
29952
29962
|
"text",
|
|
29953
29963
|
"exact",
|
|
@@ -30336,7 +30346,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30336
30346
|
};
|
|
30337
30347
|
}, "noteSearchOver");
|
|
30338
30348
|
|
|
30339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
30340
30350
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
30341
30351
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
30342
30352
|
var EVENT_CORPUS = {
|
|
@@ -30468,7 +30478,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
30468
30478
|
};
|
|
30469
30479
|
}, "eventSearchOver");
|
|
30470
30480
|
|
|
30471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
30472
30482
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
30473
30483
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
30474
30484
|
if (/^document:[1-9]\d*$/.test(raw))
|
|
@@ -30481,7 +30491,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
|
|
|
30481
30491
|
}, "reference");
|
|
30482
30492
|
var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
|
|
30483
30493
|
|
|
30484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
30485
30495
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
30486
30496
|
try {
|
|
30487
30497
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -30493,7 +30503,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
30493
30503
|
}
|
|
30494
30504
|
}, "calendarMoment");
|
|
30495
30505
|
|
|
30496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
30497
30507
|
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
30508
|
var iso7 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
30499
30509
|
var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -30606,7 +30616,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30606
30616
|
};
|
|
30607
30617
|
}, "factsStoreOver");
|
|
30608
30618
|
|
|
30609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
30610
30620
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
30611
30621
|
throw new CliError("validation_error", message2);
|
|
30612
30622
|
}, "invalid");
|
|
@@ -30696,7 +30706,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
30696
30706
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes };
|
|
30697
30707
|
}, "findingsCoreOver");
|
|
30698
30708
|
|
|
30699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
30700
30710
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
30701
30711
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
30702
30712
|
var iso8 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -30842,7 +30852,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30842
30852
|
};
|
|
30843
30853
|
}, "proposedActionsStoreOver");
|
|
30844
30854
|
|
|
30845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
30846
30856
|
var stale = /* @__PURE__ */ __name(() => {
|
|
30847
30857
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
30848
30858
|
reason: "evidence-findings.stale"
|
|
@@ -31008,7 +31018,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31008
31018
|
};
|
|
31009
31019
|
}, "evidenceFindingsStoreOver");
|
|
31010
31020
|
|
|
31011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
31012
31022
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
31013
31023
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
31014
31024
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -31061,7 +31071,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
31061
31071
|
}, "forPerson")
|
|
31062
31072
|
}), "involvementStoreOver");
|
|
31063
31073
|
|
|
31064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
31065
31075
|
import { createHash as createHash12 } from "node:crypto";
|
|
31066
31076
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
31067
31077
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -31147,16 +31157,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
31147
31157
|
};
|
|
31148
31158
|
}, "meetingProjectsStoreOver");
|
|
31149
31159
|
|
|
31150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31151
31161
|
import { createHash as createHash15 } from "node:crypto";
|
|
31152
31162
|
|
|
31153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31154
31164
|
import { createHash as createHash14 } from "node:crypto";
|
|
31155
31165
|
|
|
31156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31157
31167
|
import { createHash as createHash13 } from "node:crypto";
|
|
31158
31168
|
|
|
31159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
31160
31170
|
var consolidationId = /* @__PURE__ */ __name((value, field3) => {
|
|
31161
31171
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
31162
31172
|
throw new CliError("validation_error", `${field3} must be a positive canonical tag id`);
|
|
@@ -31207,7 +31217,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
31207
31217
|
return input;
|
|
31208
31218
|
}, "consolidationApplyInput");
|
|
31209
31219
|
|
|
31210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
31211
31221
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
31212
31222
|
id: String(row2.id),
|
|
31213
31223
|
sourceId: String(row2.source_id),
|
|
@@ -31282,7 +31292,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
31282
31292
|
}, { beforeCommit: check3 });
|
|
31283
31293
|
}, "applyTagConsolidation");
|
|
31284
31294
|
|
|
31285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
31286
31296
|
var selections = [
|
|
31287
31297
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
31288
31298
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -31426,7 +31436,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
31426
31436
|
};
|
|
31427
31437
|
}, "previewRows");
|
|
31428
31438
|
|
|
31429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
31430
31440
|
var kinds = ["project", "tag", "topic"];
|
|
31431
31441
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
31432
31442
|
if (signal?.aborted)
|
|
@@ -31690,7 +31700,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31690
31700
|
};
|
|
31691
31701
|
}, "vocabularyStoreOver");
|
|
31692
31702
|
|
|
31693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
31694
31704
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
31695
31705
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
31696
31706
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -31854,6 +31864,7 @@ var knowledgeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31854
31864
|
ref: `project:${row2.id}`,
|
|
31855
31865
|
key: String(row2.key),
|
|
31856
31866
|
name: String(row2.name),
|
|
31867
|
+
kind: String(row2.key).length === INBOX_KEY_LENGTH ? "inbox" : "project",
|
|
31857
31868
|
type: row2.type,
|
|
31858
31869
|
organizationId: row2.organization_id == null ? null : String(row2.organization_id),
|
|
31859
31870
|
scope: row2.scope,
|
|
@@ -32085,15 +32096,18 @@ var knowledgeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32085
32096
|
return projectOf(row2);
|
|
32086
32097
|
}), "addProject"),
|
|
32087
32098
|
projects: /* @__PURE__ */ __name(async (query) => {
|
|
32099
|
+
const asksKind = query !== void 0 && walkQuery(query.root).some((node) => node.field === "kind");
|
|
32088
32100
|
const where = query && queryFilter(query, {
|
|
32089
32101
|
id: { type: "kw", sql: "CAST(id AS TEXT)" },
|
|
32090
32102
|
key: { type: "kw", sql: "key" },
|
|
32103
|
+
name: { type: "kw", sql: "name" },
|
|
32104
|
+
kind: { type: "enum", sql: `CASE WHEN length(key) = ${INBOX_KEY_LENGTH} THEN 'inbox' ELSE 'project' END` },
|
|
32091
32105
|
type: { type: "enum", sql: "type" },
|
|
32092
32106
|
organization_id: { type: "kw", sql: "CAST(organization_id AS TEXT)" },
|
|
32093
32107
|
scope: { type: "enum", sql: "scope" },
|
|
32094
32108
|
created_at: { type: "time", sql: "created_at" }
|
|
32095
32109
|
});
|
|
32096
|
-
return database.prepare(`SELECT * FROM projects WHERE deleted_at IS NULL${where ? ` AND (${where.sql})` : ""} ORDER BY name, id LIMIT 500`).all(...where?.params ?? []).map(projectOf);
|
|
32110
|
+
return database.prepare(`SELECT * FROM projects WHERE deleted_at IS NULL${asksKind ? "" : ` AND length(key) <> ${INBOX_KEY_LENGTH}`}${where ? ` AND (${where.sql})` : ""} ORDER BY name, id LIMIT 500`).all(...where?.params ?? []).map(projectOf);
|
|
32097
32111
|
}, "projects"),
|
|
32098
32112
|
relate: /* @__PURE__ */ __name(async (key2, input) => {
|
|
32099
32113
|
const from2 = related(key2, input.from, true);
|
|
@@ -32207,7 +32221,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
32207
32221
|
return key2.padEnd(3, "X");
|
|
32208
32222
|
}, "projectKey");
|
|
32209
32223
|
|
|
32210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
32211
32225
|
var DAY4 = 864e5;
|
|
32212
32226
|
var SETTING4 = "logs_pruned_at";
|
|
32213
32227
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY4, botUpdatePayloadsMs: 30 * DAY4 };
|
|
@@ -32234,7 +32248,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
32234
32248
|
};
|
|
32235
32249
|
}, "logPruner");
|
|
32236
32250
|
|
|
32237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
32238
32252
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
32239
32253
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
32240
32254
|
reason: "meeting-findings.stale"
|
|
@@ -32403,7 +32417,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32403
32417
|
};
|
|
32404
32418
|
}, "meetingFindingsStoreOver");
|
|
32405
32419
|
|
|
32406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
32407
32421
|
var RANK_BATCH = 512;
|
|
32408
32422
|
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
32423
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -32674,7 +32688,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
32674
32688
|
}
|
|
32675
32689
|
}), "meetingVectorsOver");
|
|
32676
32690
|
|
|
32677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
32678
32692
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
32679
32693
|
var TEXTS = {
|
|
32680
32694
|
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 +32789,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32775
32789
|
};
|
|
32776
32790
|
}, "sourceMentionStoreOver");
|
|
32777
32791
|
|
|
32778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
32779
32793
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
32780
32794
|
import { dirname } from "node:path";
|
|
32781
32795
|
|
|
32782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
32783
32797
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
32784
32798
|
var CLIENTS_SETTING = "clients";
|
|
32785
32799
|
var coreVersion = (() => {
|
|
@@ -32837,7 +32851,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
32837
32851
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
32838
32852
|
}, "refusalAdvice");
|
|
32839
32853
|
|
|
32840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
32841
32855
|
var GENERATED = [
|
|
32842
32856
|
{
|
|
32843
32857
|
"name": "20261010184427_initial",
|
|
@@ -33634,7 +33648,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
33634
33648
|
}
|
|
33635
33649
|
];
|
|
33636
33650
|
|
|
33637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
33638
33652
|
var MANIFEST = [
|
|
33639
33653
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
33640
33654
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -33705,7 +33719,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
33705
33719
|
return migrations;
|
|
33706
33720
|
}, "generatedMigrations");
|
|
33707
33721
|
|
|
33708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
33709
33723
|
var MIGRATIONS = generatedMigrations();
|
|
33710
33724
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
33711
33725
|
version INTEGER PRIMARY KEY,
|
|
@@ -33758,7 +33772,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
33758
33772
|
}
|
|
33759
33773
|
}, "migrate");
|
|
33760
33774
|
|
|
33761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
33762
33776
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
33763
33777
|
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
33778
|
if (pending.get(0, 1) === void 0)
|
|
@@ -33780,7 +33794,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
33780
33794
|
}
|
|
33781
33795
|
}, "fillJoinKeys");
|
|
33782
33796
|
|
|
33783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
33784
33798
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
33785
33799
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
33786
33800
|
try {
|
|
@@ -33793,8 +33807,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
33793
33807
|
}, "openSqlite");
|
|
33794
33808
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33795
33809
|
quietSqliteWarning();
|
|
33796
|
-
const { drizzle } = await import("./node-
|
|
33797
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
33810
|
+
const { drizzle } = await import("./node-JOUDFPFN.js");
|
|
33811
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-ZY6ZFFXS.js");
|
|
33798
33812
|
const client = await nodeClient(path, { readOnly });
|
|
33799
33813
|
try {
|
|
33800
33814
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33804,8 +33818,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33804
33818
|
}
|
|
33805
33819
|
}, "openUnderNode");
|
|
33806
33820
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33807
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
33808
|
-
const { drizzle } = await import("./bun-
|
|
33821
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-AO27E35V.js");
|
|
33822
|
+
const { drizzle } = await import("./bun-6GSDPKNZ.js");
|
|
33809
33823
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
33810
33824
|
try {
|
|
33811
33825
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33815,7 +33829,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33815
33829
|
}
|
|
33816
33830
|
}, "openUnderBun");
|
|
33817
33831
|
|
|
33818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
33819
33833
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
33820
33834
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
33821
33835
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -33830,7 +33844,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
33830
33844
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
33831
33845
|
}, "assertReadCompatible");
|
|
33832
33846
|
|
|
33833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
33834
33848
|
var BACKFILL_ON_OPEN = 5e3;
|
|
33835
33849
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
33836
33850
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -33886,10 +33900,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
33886
33900
|
}
|
|
33887
33901
|
}, "openStoreContext");
|
|
33888
33902
|
|
|
33889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
33890
33904
|
import { createHash as createHash16 } from "node:crypto";
|
|
33891
33905
|
|
|
33892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
33893
33907
|
var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
33894
33908
|
var ref = text3(2048);
|
|
33895
33909
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -33955,7 +33969,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
33955
33969
|
}))
|
|
33956
33970
|
});
|
|
33957
33971
|
|
|
33958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
33959
33973
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
33960
33974
|
var invalid7 = /* @__PURE__ */ __name((field3) => {
|
|
33961
33975
|
throw new CliError("validation_error", `invalid project annotations.${field3}`);
|
|
@@ -34059,7 +34073,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
34059
34073
|
invalid7("external.unused");
|
|
34060
34074
|
}, "validateProjectAnnotationsGraph");
|
|
34061
34075
|
|
|
34062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
34063
34077
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
34064
34078
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
34065
34079
|
var targetSchema = strictObject({
|
|
@@ -34165,7 +34179,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
34165
34179
|
};
|
|
34166
34180
|
}, "planBoundProjectAnnotations");
|
|
34167
34181
|
|
|
34168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
34169
34183
|
import { createHash as createHash17 } from "node:crypto";
|
|
34170
34184
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
34171
34185
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -34259,7 +34273,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
34259
34273
|
})).digest("hex");
|
|
34260
34274
|
}, "projectAnnotationSnapshotFingerprint");
|
|
34261
34275
|
|
|
34262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
34263
34277
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
34264
34278
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
34265
34279
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -34276,7 +34290,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
34276
34290
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
34277
34291
|
}, "projectAnnotationRequest");
|
|
34278
34292
|
|
|
34279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
34280
34294
|
var SnapshotBudget = class {
|
|
34281
34295
|
static {
|
|
34282
34296
|
__name(this, "SnapshotBudget");
|
|
@@ -34302,13 +34316,13 @@ var SnapshotBudget = class {
|
|
|
34302
34316
|
}
|
|
34303
34317
|
};
|
|
34304
34318
|
|
|
34305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34306
34320
|
import { createHash as createHash19 } from "node:crypto";
|
|
34307
34321
|
|
|
34308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
34309
34323
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
34310
34324
|
|
|
34311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
34312
34326
|
import { createHash as createHash18 } from "node:crypto";
|
|
34313
34327
|
var invalid9 = /* @__PURE__ */ __name(() => {
|
|
34314
34328
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -34451,7 +34465,7 @@ var ProjectSnapshotSources = class {
|
|
|
34451
34465
|
}
|
|
34452
34466
|
};
|
|
34453
34467
|
|
|
34454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
34455
34469
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
34456
34470
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
34457
34471
|
}, "unsupported");
|
|
@@ -34622,7 +34636,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, bud
|
|
|
34622
34636
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
34623
34637
|
}), "projectAnnotationSnapshot");
|
|
34624
34638
|
|
|
34625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
34626
34640
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, manifest, bindings, budget) => read(database, () => {
|
|
34627
34641
|
const current = projectAnnotationSnapshot(database, projectId, budget).snapshot;
|
|
34628
34642
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -34684,7 +34698,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, man
|
|
|
34684
34698
|
};
|
|
34685
34699
|
}), "previewAnnotationSnapshot");
|
|
34686
34700
|
|
|
34687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
34688
34702
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snapshot2, bindings) => {
|
|
34689
34703
|
const mappings = { ...bindings };
|
|
34690
34704
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -34726,7 +34740,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snap
|
|
|
34726
34740
|
return mappings;
|
|
34727
34741
|
}, "restoreAnnotationRecords");
|
|
34728
34742
|
|
|
34729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
34730
34744
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
34731
34745
|
async preview(request) {
|
|
34732
34746
|
const { snapshot: snapshot2, projectId } = projectAnnotationRequest(request);
|
|
@@ -34756,7 +34770,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
34756
34770
|
}
|
|
34757
34771
|
}), "projectAnnotationStoreOver");
|
|
34758
34772
|
|
|
34759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
34760
34774
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
34761
34775
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
34762
34776
|
let merged = { from: from2, to };
|
|
@@ -34769,7 +34783,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
34769
34783
|
}, "markRange");
|
|
34770
34784
|
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
34785
|
|
|
34772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
34773
34787
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
34774
34788
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
34775
34789
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -34779,7 +34793,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
34779
34793
|
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
34794
|
}, "setTaskRulesStop");
|
|
34781
34795
|
|
|
34782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
34783
34797
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34784
34798
|
const { database } = context;
|
|
34785
34799
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -34835,7 +34849,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34835
34849
|
};
|
|
34836
34850
|
}, "syncStoreOver");
|
|
34837
34851
|
|
|
34838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
34839
34853
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
34840
34854
|
const { database } = context;
|
|
34841
34855
|
return {
|
|
@@ -34857,7 +34871,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34857
34871
|
};
|
|
34858
34872
|
}, "tagsStoreOver");
|
|
34859
34873
|
|
|
34860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
34861
34875
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
34862
34876
|
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
34877
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -34984,7 +34998,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
34984
34998
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
34985
34999
|
}, "savePictureChunks");
|
|
34986
35000
|
|
|
34987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
34988
35002
|
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
35003
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
34990
35004
|
FROM messages m
|
|
@@ -35067,7 +35081,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
35067
35081
|
return plain2(best(found2));
|
|
35068
35082
|
}, "nearestMessages");
|
|
35069
35083
|
|
|
35070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
35071
35085
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
35072
35086
|
const { database } = context;
|
|
35073
35087
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -35321,7 +35335,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
35321
35335
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
35322
35336
|
}), "vectorsStoreOver");
|
|
35323
35337
|
|
|
35324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
35325
35339
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
35326
35340
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
35327
35341
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -35409,10 +35423,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
35409
35423
|
}
|
|
35410
35424
|
}, "lastBackup");
|
|
35411
35425
|
|
|
35412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
35413
35427
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
35414
35428
|
|
|
35415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
35416
35430
|
var COUNTED_TABLES = [
|
|
35417
35431
|
"accounts",
|
|
35418
35432
|
"chats",
|
|
@@ -35497,7 +35511,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
35497
35511
|
};
|
|
35498
35512
|
}, "storeContents");
|
|
35499
35513
|
|
|
35500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
35501
35515
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
35502
35516
|
const context = await openStoreContext(options);
|
|
35503
35517
|
try {
|