@wirecat/mail-cli 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +14 -14
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-PKXL5TKP.js → all-profiles-TUDREUUW.js} +6 -6
- package/dist/bundle/{anthropic-DFDNZU7C.js → anthropic-KQOVSP6C.js} +3 -3
- package/dist/bundle/{app-server-WOZAOCKX.js → app-server-QK7PKVT7.js} +40 -40
- package/dist/bundle/{bun-DKZAL6ML.js → bun-2NMWL5YB.js} +2 -2
- package/dist/bundle/{bun-sqlite-2A7FS5GD.js → bun-sqlite-Y4FP6SDX.js} +2 -2
- package/dist/bundle/{chunk-WIU733D2.js → chunk-3CVDHJER.js} +1 -1
- package/dist/bundle/{chunk-QJQV6KG2.js → chunk-3ZJE5TIG.js} +1 -1
- package/dist/bundle/{chunk-FEWWBU2I.js → chunk-4IEDXIUN.js} +208 -210
- package/dist/bundle/{chunk-WTDYN3TQ.js → chunk-4IIH5PXR.js} +26 -26
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-5FPQGUJA.js} +1 -1
- package/dist/bundle/{chunk-U3VX3UUC.js → chunk-6DVPPLAN.js} +3 -3
- package/dist/bundle/{chunk-IA6U76ZY.js → chunk-7LMTWOTP.js} +1 -1
- package/dist/bundle/{chunk-YRHXVXLQ.js → chunk-ANFIIXBL.js} +1 -1
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-ARDUJR5Z.js} +1 -1
- package/dist/bundle/{chunk-BKF7XIJ5.js → chunk-B2NDDA2W.js} +8 -8
- package/dist/bundle/{chunk-BIKMEGC7.js → chunk-CGH6UH3T.js} +7 -7
- package/dist/bundle/{chunk-4HVY3QPF.js → chunk-CRYWPLJP.js} +1 -1
- package/dist/bundle/{chunk-LRBAQSU3.js → chunk-CT2MIWXY.js} +2 -2
- package/dist/bundle/{chunk-JQTIB4WJ.js → chunk-DDQXDX4U.js} +4 -4
- package/dist/bundle/{chunk-NNLYS4IR.js → chunk-DKIAHQRN.js} +7 -7
- package/dist/bundle/{chunk-XKUAEYJV.js → chunk-EBEYU7RW.js} +9 -9
- package/dist/bundle/{chunk-6AYJDBHT.js → chunk-EZIJPXDZ.js} +5 -5
- package/dist/bundle/{chunk-NDZK466U.js → chunk-FHY664YS.js} +3 -3
- package/dist/bundle/{chunk-4YECCESG.js → chunk-FROWEHK7.js} +2 -2
- package/dist/bundle/{chunk-73SQQXSU.js → chunk-GAYW2JRW.js} +7 -7
- package/dist/bundle/{chunk-KJYCA6IC.js → chunk-GIKNAOER.js} +3 -3
- package/dist/bundle/{chunk-M5DF6QNT.js → chunk-HN3EDDVX.js} +12 -12
- package/dist/bundle/{chunk-RFDP45QO.js → chunk-HVAXTTOT.js} +2 -2
- package/dist/bundle/{chunk-M5VHTDJZ.js → chunk-I3K6JG4I.js} +16 -16
- package/dist/bundle/{chunk-SPQY3PJX.js → chunk-IJYYD2JU.js} +296 -169
- package/dist/bundle/{chunk-K4N5UG64.js → chunk-K2OQCQ2N.js} +4 -4
- package/dist/bundle/{chunk-3MKCLPQV.js → chunk-KJV3BI7S.js} +9 -9
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-KMZRXGTF.js} +1 -1
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-LMN7SYX4.js} +1 -1
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-M6O4DH5F.js} +1 -1
- package/dist/bundle/{chunk-R6UG66IM.js → chunk-MLWN27HF.js} +214 -214
- package/dist/bundle/{chunk-P4SV3VKP.js → chunk-N7DLDEFU.js} +2 -2
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-OYB3FUYQ.js} +1 -1
- package/dist/bundle/{chunk-RBNL3DBQ.js → chunk-POS35G6D.js} +1 -1
- package/dist/bundle/{chunk-PI5P457W.js → chunk-PWTEWT4M.js} +4 -4
- package/dist/bundle/{chunk-BY5S3JEZ.js → chunk-PYX6K527.js} +44 -44
- package/dist/bundle/{chunk-2BHY4GFP.js → chunk-Q4T2HBZP.js} +2 -2
- package/dist/bundle/{chunk-QTD3BVS5.js → chunk-R6SBRHVG.js} +5 -5
- package/dist/bundle/{chunk-OJEIUOMW.js → chunk-RPEW7E3S.js} +10 -10
- package/dist/bundle/{chunk-OZVGHHFZ.js → chunk-TTOKDZQX.js} +1 -1
- package/dist/bundle/{chunk-4TPNRJER.js → chunk-UBLFUQ7O.js} +6 -6
- package/dist/bundle/{chunk-6Z7VBDFR.js → chunk-UYOGVVQS.js} +12 -2
- package/dist/bundle/{chunk-4XRIALMN.js → chunk-VD6GZ3W2.js} +1 -1
- package/dist/bundle/{chunk-VQQFOA4O.js → chunk-VP5FL5JQ.js} +6 -6
- package/dist/bundle/{chunk-PXLVTHMH.js → chunk-VTJ5TMGN.js} +2 -2
- package/dist/bundle/{chunk-5C3L2QER.js → chunk-WKHHCCJE.js} +21 -21
- package/dist/bundle/{chunk-2A4Z3WOC.js → chunk-X7EBOXBY.js} +278 -274
- package/dist/bundle/{chunk-SRHKHE4C.js → chunk-XAANQN4R.js} +13 -13
- package/dist/bundle/{chunk-ENZTLYTS.js → chunk-XEIGKPYU.js} +6 -3
- package/dist/bundle/{chunk-4DGOI6JB.js → chunk-YGJO5VNR.js} +22 -22
- package/dist/bundle/{chunk-A6O3WHBD.js → chunk-ZNW4E3SG.js} +2 -2
- package/dist/bundle/{chunk-WOV3ABQR.js → chunk-ZS6YKNYS.js} +3 -3
- package/dist/bundle/{command-contract-4E4NYRR7.js → command-contract-GVNLRXWS.js} +13 -13
- package/dist/bundle/{decode-LX4FPSI7.js → decode-WCS4KOHV.js} +2 -2
- package/dist/bundle/{dist-HQIZDYNQ.js → dist-FL422DTA.js} +10 -10
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-45D6USAX.js} +2 -2
- package/dist/bundle/{embed-ASAE3H5I.js → embed-4B4ATLCN.js} +3 -3
- package/dist/bundle/{embedder-QYDZRKBX.js → embedder-ASWGJXNV.js} +6 -6
- package/dist/bundle/{first-run-EFNNGFCB.js → first-run-5K3UD4BU.js} +5 -5
- package/dist/bundle/{first-screen-XHM3TT6G.js → first-screen-NNX54MYC.js} +14 -14
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-6EFSPC7C.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-OXC26QXO.js} +2 -2
- package/dist/bundle/{node-sqlite-UROXM4VR.js → node-sqlite-PXHZAG7Y.js} +3 -3
- package/dist/bundle/{oauth-VSCKHS4T.js → oauth-YK2QLC7U.js} +4 -4
- package/dist/bundle/{open-R4LVB63T.js → open-SABDXZ4B.js} +2 -2
- package/dist/bundle/{openai-MKCEOFKL.js → openai-DPURPXEU.js} +10 -10
- package/dist/bundle/{process-SWPJGPQC.js → process-YWPAOI6G.js} +1 -1
- package/dist/bundle/{program-CJ2YDRUY.js → program-ERLBUNWI.js} +1488 -1321
- package/dist/bundle/{prompt-TWWJ5VAM.js → prompt-GKVNFGFE.js} +2 -2
- package/dist/bundle/{recognize-XMO5ETQU.js → recognize-344YDSLX.js} +1 -1
- package/dist/bundle/{remote-N6VAWJWE.js → remote-53UZUJJU.js} +4 -4
- package/dist/bundle/{rerank-XNAMC6FH.js → rerank-PAIRND6R.js} +4 -4
- package/dist/bundle/{serve-IJ32WEBH.js → serve-DZSO7LJK.js} +6 -6
- package/dist/bundle/{server-KEYSE5OL.js → server-EGG3V67I.js} +32 -32
- package/dist/bundle/server-SGGMRV2K.js +64 -0
- package/dist/bundle/{sqlite-runtime-NFBRN7OF.js → sqlite-runtime-ZQ6F3VYZ.js} +3 -3
- package/dist/bundle/{state-7WPJEW2Z.js → state-LXPOWLZ5.js} +3 -3
- package/dist/bundle/{store-PKQCNACC.js → store-4ZMSK5R5.js} +11 -11
- package/dist/bundle/{store-KHVHOGQR.js → store-PHT75I6S.js} +13 -13
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
- package/dist/commands/account.js +1 -1
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/attachments.js +3 -3
- package/dist/commands/attachments.js.map +1 -1
- package/dist/commands/context.d.ts +4 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/drafts-send.js +1 -1
- package/dist/commands/drafts-send.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +9 -6
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/export.js +3 -3
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +7 -4
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/messages.js +11 -11
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +55 -33
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +7 -6
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/stats.js +4 -4
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.js +3 -3
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js +3 -2
- package/dist/commands/tags.js.map +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -1
- package/dist/config.js.map +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +3 -6
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/save.d.ts.map +1 -1
- package/dist/mail/save.js +3 -2
- package/dist/mail/save.js.map +1 -1
- package/dist/mail/send.d.ts +6 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +11 -4
- package/dist/mail/send.js.map +1 -1
- package/dist/mail/smtp.d.ts.map +1 -1
- package/dist/mail/smtp.js +7 -5
- package/dist/mail/smtp.js.map +1 -1
- package/dist/oauth.js +1 -1
- package/dist/oauth.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +10 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-cli/SKILL.md +16 -16
- package/dist/bundle/server-CRVR4L2E.js +0 -64
- package/dist/bundle/store-maintenance-command-5MODJN6R.js +0 -54
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
settledStatus,
|
|
53
53
|
useStoredProviders,
|
|
54
54
|
validCounter
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-EBEYU7RW.js";
|
|
56
56
|
import {
|
|
57
57
|
FACT_STATUSES,
|
|
58
58
|
LINK_KINDS,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
matches,
|
|
75
75
|
priorityBand,
|
|
76
76
|
priorityLabel
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-UBLFUQ7O.js";
|
|
78
78
|
import {
|
|
79
79
|
CHAT_MESSAGES_READ,
|
|
80
80
|
FACT_TYPES,
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
validateQuery,
|
|
127
127
|
walkQuery,
|
|
128
128
|
zonedMoment
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-4IEDXIUN.js";
|
|
130
130
|
import {
|
|
131
131
|
DEFAULT_STEMMERS,
|
|
132
132
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -139,26 +139,26 @@ import {
|
|
|
139
139
|
fold,
|
|
140
140
|
normalize,
|
|
141
141
|
parseStemmers
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-CGH6UH3T.js";
|
|
143
143
|
import {
|
|
144
144
|
DEFAULT_TASK_CATEGORIES,
|
|
145
145
|
sharedConfigPath,
|
|
146
146
|
storedTaskCategories,
|
|
147
147
|
taskCategoriesReader
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-K2OQCQ2N.js";
|
|
149
149
|
import {
|
|
150
150
|
refuseOwnerStoreInTests,
|
|
151
151
|
storePath
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-TTOKDZQX.js";
|
|
153
153
|
import {
|
|
154
154
|
quietSqliteWarning,
|
|
155
155
|
storeCapable
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-EZIJPXDZ.js";
|
|
157
157
|
import {
|
|
158
158
|
PRAGMAS,
|
|
159
159
|
TIME_LIMIT_FUNCTION,
|
|
160
160
|
TimeLimitReached
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-KMZRXGTF.js";
|
|
162
162
|
import {
|
|
163
163
|
array,
|
|
164
164
|
boolean,
|
|
@@ -208,12 +208,12 @@ import {
|
|
|
208
208
|
sql,
|
|
209
209
|
sqliteTable,
|
|
210
210
|
text
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-LMN7SYX4.js";
|
|
212
212
|
import {
|
|
213
213
|
__name
|
|
214
214
|
} from "./chunk-ZVVMGPBJ.js";
|
|
215
215
|
|
|
216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
217
217
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
218
218
|
const methods = whole;
|
|
219
219
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -341,7 +341,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
341
341
|
};
|
|
342
342
|
}, "bindAccount");
|
|
343
343
|
|
|
344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
345
345
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
346
346
|
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");
|
|
347
347
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -364,7 +364,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
364
364
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
365
365
|
}, "sourceOf");
|
|
366
366
|
|
|
367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
368
368
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
369
369
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
370
370
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -551,7 +551,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind3)
|
|
|
551
551
|
return { accounts: [...chosen.values()], skipped };
|
|
552
552
|
}, "fitting");
|
|
553
553
|
|
|
554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
555
555
|
var IndexBuilderOn = class {
|
|
556
556
|
static {
|
|
557
557
|
__name(this, "IndexBuilderOn");
|
|
@@ -746,7 +746,7 @@ function alias(table, alias2) {
|
|
|
746
746
|
}
|
|
747
747
|
__name(alias, "alias");
|
|
748
748
|
|
|
749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
750
750
|
var ENTITY_TABLES = {
|
|
751
751
|
account: "accounts",
|
|
752
752
|
attachment: "attachments",
|
|
@@ -788,7 +788,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
788
788
|
return { table, pointer, type, count, known: known2 };
|
|
789
789
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
790
790
|
|
|
791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
792
792
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
793
793
|
id: integer("id").primaryKey(),
|
|
794
794
|
name: text("name").notNull().unique(),
|
|
@@ -797,7 +797,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
797
797
|
updatedAt: integer("updated_at").notNull()
|
|
798
798
|
});
|
|
799
799
|
|
|
800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
801
801
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
802
802
|
sourceKey: text("source_key").notNull(),
|
|
803
803
|
collection: text("collection").notNull(),
|
|
@@ -807,13 +807,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
807
807
|
createdAt: integer("created_at").notNull()
|
|
808
808
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
809
809
|
|
|
810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
811
811
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
812
812
|
id: integer("id").notNull(),
|
|
813
813
|
indexableType: text("indexable_type").notNull()
|
|
814
814
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
815
815
|
|
|
816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
817
817
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
818
818
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
819
819
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -839,7 +839,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
839
839
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
840
840
|
]);
|
|
841
841
|
|
|
842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
843
843
|
var accounts = sqliteTable("accounts", {
|
|
844
844
|
id: integer("id").primaryKey(),
|
|
845
845
|
provider: text("provider").notNull(),
|
|
@@ -2462,7 +2462,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2462
2462
|
at: integer("at").notNull()
|
|
2463
2463
|
});
|
|
2464
2464
|
|
|
2465
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2466
2466
|
var ARMS = [
|
|
2467
2467
|
[
|
|
2468
2468
|
"message",
|
|
@@ -2589,7 +2589,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2589
2589
|
return recomputed;
|
|
2590
2590
|
}, "drainInvolvementQueue");
|
|
2591
2591
|
|
|
2592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2593
2593
|
import { domainToUnicode } from "node:url";
|
|
2594
2594
|
|
|
2595
2595
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12611,7 +12611,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12611
12611
|
}, "oa");
|
|
12612
12612
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12613
12613
|
|
|
12614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12615
12615
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12616
12616
|
var ID = /^[\w-]{10,}$/;
|
|
12617
12617
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12652,7 +12652,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
12652
12652
|
return { url, documentId: googleDocumentId(url) };
|
|
12653
12653
|
}), "googleDocumentLinks");
|
|
12654
12654
|
|
|
12655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12656
12656
|
var PHONE_PLANS = [
|
|
12657
12657
|
{
|
|
12658
12658
|
country: "us",
|
|
@@ -13032,7 +13032,7 @@ var PHONE_PLANS = [
|
|
|
13032
13032
|
}
|
|
13033
13033
|
];
|
|
13034
13034
|
|
|
13035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
13036
13036
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
13037
13037
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
13038
13038
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -13073,7 +13073,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
13073
13073
|
return void 0;
|
|
13074
13074
|
}, "nationalPhone");
|
|
13075
13075
|
|
|
13076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
13077
13077
|
var BEFORE = [
|
|
13078
13078
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
13079
13079
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13333,7 +13333,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
13333
13333
|
return found2.sort((a, b) => a.start - b.start);
|
|
13334
13334
|
}, "findPlaces");
|
|
13335
13335
|
|
|
13336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13337
13337
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13338
13338
|
var MENTION_VERSIONS = {
|
|
13339
13339
|
phone: 1,
|
|
@@ -13523,7 +13523,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13523
13523
|
};
|
|
13524
13524
|
}, "typedPhone");
|
|
13525
13525
|
|
|
13526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13527
13527
|
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";
|
|
13528
13528
|
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";
|
|
13529
13529
|
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";
|
|
@@ -13531,7 +13531,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13531
13531
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13532
13532
|
var NAME_WORDS = WORDS.split(" ");
|
|
13533
13533
|
|
|
13534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13535
13535
|
var LATIN_TO_CYRILLIC = {
|
|
13536
13536
|
shch: "\u0449",
|
|
13537
13537
|
sch: "\u0449",
|
|
@@ -13739,7 +13739,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
13739
13739
|
return found2;
|
|
13740
13740
|
}, "findUnknownNames");
|
|
13741
13741
|
|
|
13742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13743
13743
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13744
13744
|
"webpage",
|
|
13745
13745
|
"share",
|
|
@@ -13779,7 +13779,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
13779
13779
|
});
|
|
13780
13780
|
}, "matchDownloads");
|
|
13781
13781
|
|
|
13782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
13783
13783
|
var QUERY_VERSION = 1;
|
|
13784
13784
|
var QUERY_LIMITS2 = {
|
|
13785
13785
|
...QUERY_LIMITS,
|
|
@@ -13815,7 +13815,7 @@ function exhausted(budget) {
|
|
|
13815
13815
|
}
|
|
13816
13816
|
__name(exhausted, "exhausted");
|
|
13817
13817
|
|
|
13818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
13819
13819
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
13820
13820
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
13821
13821
|
kind: "char",
|
|
@@ -14215,7 +14215,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14215
14215
|
return out;
|
|
14216
14216
|
}, "foldRegex");
|
|
14217
14217
|
|
|
14218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14219
14219
|
var PRESET_VERSION = 1;
|
|
14220
14220
|
var PRESETS = {
|
|
14221
14221
|
password: {
|
|
@@ -14269,7 +14269,7 @@ var PRESETS = {
|
|
|
14269
14269
|
}
|
|
14270
14270
|
};
|
|
14271
14271
|
|
|
14272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14273
14273
|
var FIELD_VERSION = 2;
|
|
14274
14274
|
var UNITS = {
|
|
14275
14275
|
"": 1,
|
|
@@ -14730,12 +14730,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
14730
14730
|
return validateFields(parsed3.output);
|
|
14731
14731
|
}, "validateAst");
|
|
14732
14732
|
|
|
14733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
14734
14734
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
14735
14735
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
14736
14736
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
14737
14737
|
|
|
14738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
14739
14739
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
14740
14740
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
14741
14741
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -14759,7 +14759,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
14759
14759
|
};
|
|
14760
14760
|
}, "linkMatch");
|
|
14761
14761
|
|
|
14762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
14763
14763
|
var SETTING = "phoneCountries";
|
|
14764
14764
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
14765
14765
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -14790,7 +14790,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
14790
14790
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
14791
14791
|
}, "valueMatch");
|
|
14792
14792
|
|
|
14793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
14794
14794
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
14795
14795
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
14796
14796
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -14818,7 +14818,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
14818
14818
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
14819
14819
|
}, "vocabularySimilarity");
|
|
14820
14820
|
|
|
14821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
14822
14822
|
import { createHash } from "node:crypto";
|
|
14823
14823
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
14824
14824
|
try {
|
|
@@ -14884,7 +14884,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
|
|
|
14884
14884
|
});
|
|
14885
14885
|
}, "guardTagCreation");
|
|
14886
14886
|
|
|
14887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
14888
14888
|
var invalid = /* @__PURE__ */ __name((message2) => {
|
|
14889
14889
|
throw new CliError("validation_error", message2);
|
|
14890
14890
|
}, "invalid");
|
|
@@ -14961,7 +14961,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
14961
14961
|
};
|
|
14962
14962
|
}, "createTagRedirectIndex");
|
|
14963
14963
|
|
|
14964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
14965
14965
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
14966
14966
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
14967
14967
|
if (!row2)
|
|
@@ -14989,7 +14989,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
14989
14989
|
return snapshot2;
|
|
14990
14990
|
}, "tagRedirectSnapshot");
|
|
14991
14991
|
|
|
14992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
14993
14993
|
import { createHash as createHash2 } from "node:crypto";
|
|
14994
14994
|
var TASK_KEY_PREFIXES = {
|
|
14995
14995
|
question: "Q",
|
|
@@ -15017,7 +15017,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15017
15017
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
15018
15018
|
}, "taskAccountOf");
|
|
15019
15019
|
|
|
15020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
15021
15021
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
15022
15022
|
var REFERABLE = {
|
|
15023
15023
|
note: { tombstone: true },
|
|
@@ -15181,7 +15181,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15181
15181
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
15182
15182
|
}, "taskIdOf");
|
|
15183
15183
|
|
|
15184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15185
15185
|
var toMs = /* @__PURE__ */ __name((iso13) => {
|
|
15186
15186
|
if (iso13 === null || iso13 === void 0)
|
|
15187
15187
|
return null;
|
|
@@ -15195,7 +15195,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15195
15195
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15196
15196
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15197
15197
|
|
|
15198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15199
15199
|
var TAG_KINDS = ["tag", "topic"];
|
|
15200
15200
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15201
15201
|
var TAG_TYPE = {
|
|
@@ -15398,7 +15398,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15398
15398
|
return result;
|
|
15399
15399
|
}, "tagsOf");
|
|
15400
15400
|
|
|
15401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15402
15402
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15403
15403
|
var SPEECH = speech("att");
|
|
15404
15404
|
var mentionText = /* @__PURE__ */ __name((alias2) => `CASE WHEN coalesce(json_extract(${alias2}.contact, '$.phone'), '') <> '' THEN 'phone: ' || json_extract(${alias2}.contact, '$.phone') ELSE ${alias2}.text END`, "mentionText");
|
|
@@ -15762,7 +15762,7 @@ var FIELD_COMPILERS = {
|
|
|
15762
15762
|
subject
|
|
15763
15763
|
};
|
|
15764
15764
|
|
|
15765
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15766
15766
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15767
15767
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15768
15768
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -15778,7 +15778,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
15778
15778
|
};
|
|
15779
15779
|
}, "placeOf");
|
|
15780
15780
|
|
|
15781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
15782
15782
|
var DRAIN_ON_WRITE = 500;
|
|
15783
15783
|
var METHOD = "rules";
|
|
15784
15784
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -15941,7 +15941,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
15941
15941
|
return queued.length;
|
|
15942
15942
|
}, "drainMentions");
|
|
15943
15943
|
|
|
15944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
15945
15945
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
15946
15946
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
15947
15947
|
if (!exists2)
|
|
@@ -15949,7 +15949,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
15949
15949
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
15950
15950
|
}, "indexRow");
|
|
15951
15951
|
|
|
15952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
15953
15953
|
var INDEX = "message_stems";
|
|
15954
15954
|
var SETTING2 = "searchStemmers";
|
|
15955
15955
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -16071,7 +16071,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
16071
16071
|
};
|
|
16072
16072
|
}, "stemmerCache");
|
|
16073
16073
|
|
|
16074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
16075
16075
|
var SQLITE_BUSY = 5;
|
|
16076
16076
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
16077
16077
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -16166,7 +16166,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
16166
16166
|
}
|
|
16167
16167
|
}, "read");
|
|
16168
16168
|
|
|
16169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
16170
16170
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
16171
16171
|
coalesce(CASE k.chunkable_type
|
|
16172
16172
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16308,7 +16308,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16308
16308
|
}, "dropUnusedVectors");
|
|
16309
16309
|
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");
|
|
16310
16310
|
|
|
16311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16312
16312
|
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({
|
|
16313
16313
|
target: [accounts.provider, accounts.externalId],
|
|
16314
16314
|
set: {
|
|
@@ -16417,7 +16417,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16417
16417
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16418
16418
|
}, "dropOrphanPeople");
|
|
16419
16419
|
|
|
16420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
16421
16421
|
var FOLDED = [
|
|
16422
16422
|
{ table: "tasks", column: "title" },
|
|
16423
16423
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -16454,7 +16454,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
16454
16454
|
return filled2;
|
|
16455
16455
|
}, "fillFolded");
|
|
16456
16456
|
|
|
16457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
16458
16458
|
var HISTORY_KEY = "$history";
|
|
16459
16459
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
16460
16460
|
if (typeof text6 !== "string")
|
|
@@ -16530,7 +16530,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
16530
16530
|
return rest;
|
|
16531
16531
|
}, "withoutHistory");
|
|
16532
16532
|
|
|
16533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16534
16534
|
import { createHash as createHash3 } from "node:crypto";
|
|
16535
16535
|
var CHUNK_CHARS = 1200;
|
|
16536
16536
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16635,7 +16635,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16635
16635
|
return chunks2;
|
|
16636
16636
|
}, "cutChunks");
|
|
16637
16637
|
|
|
16638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
16639
16639
|
var DAY = 864e5;
|
|
16640
16640
|
var CURRENCY = [
|
|
16641
16641
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -16761,7 +16761,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
16761
16761
|
return best?.day ?? null;
|
|
16762
16762
|
}, "dueDayOf");
|
|
16763
16763
|
|
|
16764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
16765
16765
|
var DAY2 = 864e5;
|
|
16766
16766
|
var STOP_WORDS = new Set([
|
|
16767
16767
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -16916,7 +16916,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
16916
16916
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
16917
16917
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
16918
16918
|
|
|
16919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
16920
16920
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
16921
16921
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
16922
16922
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17187,7 +17187,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17187
17187
|
};
|
|
17188
17188
|
}, "readiness");
|
|
17189
17189
|
|
|
17190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17191
17191
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17192
17192
|
var SCAN_PAGE2 = 5e3;
|
|
17193
17193
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17250,7 +17250,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17250
17250
|
}, "nearestPictures")
|
|
17251
17251
|
}), "documentPicturesOver");
|
|
17252
17252
|
|
|
17253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
17254
17254
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
17255
17255
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
17256
17256
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -17315,7 +17315,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
17315
17315
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
17316
17316
|
var bound2 = /* @__PURE__ */ __name(({ sql: text6, params }) => sql.join(text6.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
|
|
17317
17317
|
|
|
17318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17319
17319
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17320
17320
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17321
17321
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17405,7 +17405,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17405
17405
|
});
|
|
17406
17406
|
}, "linkMeeting");
|
|
17407
17407
|
|
|
17408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17409
17409
|
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), ''))";
|
|
17410
17410
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17411
17411
|
"working-location",
|
|
@@ -17635,7 +17635,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17635
17635
|
return true;
|
|
17636
17636
|
}, "resetNoteIndex");
|
|
17637
17637
|
|
|
17638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
17639
17639
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
17640
17640
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
17641
17641
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -17654,7 +17654,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
17654
17654
|
}
|
|
17655
17655
|
}, "resolvePersonLinks");
|
|
17656
17656
|
|
|
17657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
17658
17658
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
17659
17659
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
17660
17660
|
find: orm.select({
|
|
@@ -17879,7 +17879,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
17879
17879
|
}, "meetingIdentityPk");
|
|
17880
17880
|
var phoneOf = /* @__PURE__ */ __name(({ orm }, provider, nativeId) => orm.select({ phone: identities.phone }).from(identities).where(and(eq(identities.provider, provider), eq(identities.externalId, nativeId))).get()?.phone ?? null, "phoneOf");
|
|
17881
17881
|
|
|
17882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
17883
17883
|
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");
|
|
17884
17884
|
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");
|
|
17885
17885
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -18159,7 +18159,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
18159
18159
|
}
|
|
18160
18160
|
}, "replaceAutoTags");
|
|
18161
18161
|
|
|
18162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
18163
18163
|
import { createHash as createHash4 } from "node:crypto";
|
|
18164
18164
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
18165
18165
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -18257,7 +18257,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
18257
18257
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
18258
18258
|
}, "contextEvidenceRequest");
|
|
18259
18259
|
|
|
18260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
18261
18261
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
18262
18262
|
var ACTIVITY = `
|
|
18263
18263
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -18373,7 +18373,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
18373
18373
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
18374
18374
|
}), "mailActivity");
|
|
18375
18375
|
|
|
18376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
18377
18377
|
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");
|
|
18378
18378
|
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;
|
|
18379
18379
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -18514,7 +18514,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
18514
18514
|
return text6 || body2.trim();
|
|
18515
18515
|
}, "mailOwnText");
|
|
18516
18516
|
|
|
18517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
18518
18518
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
18519
18519
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
18520
18520
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18624,7 +18624,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
18624
18624
|
return emails3 + threads;
|
|
18625
18625
|
}, "drainEmailIndex");
|
|
18626
18626
|
|
|
18627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
18628
18628
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
18629
18629
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
18630
18630
|
var folderEmails = /* @__PURE__ */ __name((database, accountId, folder, uidvalidity) => database.prepare(`SELECT l.uid, e.external_id, coalesce(e.received_at, e.sent_at) AS at, e.read, e.flagged,
|
|
@@ -18722,7 +18722,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
18722
18722
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
18723
18723
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
18724
18724
|
|
|
18725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18726
18726
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18727
18727
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18728
18728
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -18772,7 +18772,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
18772
18772
|
return threads.length;
|
|
18773
18773
|
}, "markEmailsRestored");
|
|
18774
18774
|
|
|
18775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
18776
18776
|
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");
|
|
18777
18777
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
18778
18778
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -18839,7 +18839,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
18839
18839
|
}
|
|
18840
18840
|
}), "mailRulesOver");
|
|
18841
18841
|
|
|
18842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
18843
18843
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
18844
18844
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
18845
18845
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -18847,7 +18847,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
18847
18847
|
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);
|
|
18848
18848
|
}, "reviewLink");
|
|
18849
18849
|
|
|
18850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
18851
18851
|
function checkMeetingCancelled(signal) {
|
|
18852
18852
|
if (!signal?.aborted)
|
|
18853
18853
|
return;
|
|
@@ -18858,7 +18858,7 @@ function checkMeetingCancelled(signal) {
|
|
|
18858
18858
|
}
|
|
18859
18859
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
18860
18860
|
|
|
18861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
18862
18862
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
18863
18863
|
id: Number(row2.id),
|
|
18864
18864
|
accountId: Number(row2.account_id),
|
|
@@ -18908,7 +18908,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
18908
18908
|
createdAt: Number(row2.created_at)
|
|
18909
18909
|
}), "transcriptRowOf");
|
|
18910
18910
|
|
|
18911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
18912
18912
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
18913
18913
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
18914
18914
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -19075,7 +19075,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19075
19075
|
}
|
|
19076
19076
|
}), "meetingReadsOver");
|
|
19077
19077
|
|
|
19078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
19079
19079
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
19080
19080
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
19081
19081
|
const params = [input.accountId];
|
|
@@ -19118,7 +19118,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
19118
19118
|
return { clauses, params };
|
|
19119
19119
|
}, "meetingSelectionSql");
|
|
19120
19120
|
|
|
19121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
19122
19122
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19123
19123
|
async meetingChatLines(input) {
|
|
19124
19124
|
checkMeetingCancelled(input.signal);
|
|
@@ -19146,7 +19146,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19146
19146
|
}
|
|
19147
19147
|
}), "meetingChatLinesOver");
|
|
19148
19148
|
|
|
19149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
19150
19150
|
var MESSAGE_FIELDS = {
|
|
19151
19151
|
pk: messages.id,
|
|
19152
19152
|
nativeId: messages.externalId,
|
|
@@ -19317,7 +19317,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
19317
19317
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
19318
19318
|
}), "chatActivity");
|
|
19319
19319
|
|
|
19320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
19321
19321
|
var HIT_FIELDS = {
|
|
19322
19322
|
...MESSAGE_FIELDS,
|
|
19323
19323
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -19416,7 +19416,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
19416
19416
|
};
|
|
19417
19417
|
}, "directReplies");
|
|
19418
19418
|
|
|
19419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
19420
19420
|
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");
|
|
19421
19421
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
19422
19422
|
const found2 = identityRow(context, ref3);
|
|
@@ -19547,7 +19547,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
19547
19547
|
}, "mentioning");
|
|
19548
19548
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
19549
19549
|
|
|
19550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
19551
19551
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
19552
19552
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
19553
19553
|
}, "missing");
|
|
@@ -19669,7 +19669,7 @@ function meetingContextLinksOver(context) {
|
|
|
19669
19669
|
}
|
|
19670
19670
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
19671
19671
|
|
|
19672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19673
19673
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19674
19674
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19675
19675
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19698,7 +19698,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19698
19698
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19699
19699
|
}, "indexedText");
|
|
19700
19700
|
|
|
19701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19702
19702
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19703
19703
|
var meetingCurrentIndexRows = `
|
|
19704
19704
|
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
|
|
@@ -19729,7 +19729,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19729
19729
|
}, "invalidateMeetingStems");
|
|
19730
19730
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19731
19731
|
|
|
19732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19733
19733
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19734
19734
|
return {
|
|
19735
19735
|
async indexSearch(original) {
|
|
@@ -19797,10 +19797,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
19797
19797
|
}
|
|
19798
19798
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
19799
19799
|
|
|
19800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
19801
19801
|
import { createHash as createHash5 } from "node:crypto";
|
|
19802
19802
|
|
|
19803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
19804
19804
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
19805
19805
|
const padded = ` ${term} `;
|
|
19806
19806
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -19809,7 +19809,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
19809
19809
|
return [...pieces];
|
|
19810
19810
|
}, "trigrams");
|
|
19811
19811
|
|
|
19812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
19813
19813
|
var SHORTEST_CORRECTION = 3;
|
|
19814
19814
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
19815
19815
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -19856,7 +19856,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
19856
19856
|
return corrections;
|
|
19857
19857
|
}, "correctWords");
|
|
19858
19858
|
|
|
19859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
19860
19860
|
var SHORTEST_GARBLED = 4;
|
|
19861
19861
|
var MOST_WIDENED = 64;
|
|
19862
19862
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -19948,7 +19948,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
19948
19948
|
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));
|
|
19949
19949
|
}, "widenWords");
|
|
19950
19950
|
|
|
19951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
19952
19952
|
import { readFileSync } from "node:fs";
|
|
19953
19953
|
var loaded;
|
|
19954
19954
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -20007,7 +20007,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
20007
20007
|
return false;
|
|
20008
20008
|
}, "knownRussianWord");
|
|
20009
20009
|
|
|
20010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
20011
20011
|
var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
20012
20012
|
var MOST_WORDS = 128;
|
|
20013
20013
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -20234,7 +20234,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
20234
20234
|
return check3(tree);
|
|
20235
20235
|
}, "matchMeetingText");
|
|
20236
20236
|
|
|
20237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
20238
20238
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
20239
20239
|
throw new CliError("validation_error", message2);
|
|
20240
20240
|
}, "fail");
|
|
@@ -20416,7 +20416,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
20416
20416
|
}
|
|
20417
20417
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
20418
20418
|
|
|
20419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
20420
20420
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20421
20421
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
20422
20422
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -20448,7 +20448,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20448
20448
|
}
|
|
20449
20449
|
}), "meetingLanguagesOver");
|
|
20450
20450
|
|
|
20451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
20452
20452
|
import { createHash as createHash6 } from "node:crypto";
|
|
20453
20453
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
20454
20454
|
if (value === void 0)
|
|
@@ -20538,7 +20538,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
20538
20538
|
}
|
|
20539
20539
|
}), "meetingParticipantSearchOver");
|
|
20540
20540
|
|
|
20541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
20542
20542
|
var preparationQueries = {
|
|
20543
20543
|
participants: {
|
|
20544
20544
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -20588,7 +20588,7 @@ var preparationQueries = {
|
|
|
20588
20588
|
}
|
|
20589
20589
|
};
|
|
20590
20590
|
|
|
20591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
20592
20592
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20593
20593
|
async preparationContext(original) {
|
|
20594
20594
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -20629,7 +20629,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20629
20629
|
}
|
|
20630
20630
|
}), "meetingPreparationContextOver");
|
|
20631
20631
|
|
|
20632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
20633
20633
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
20634
20634
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
20635
20635
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -20643,7 +20643,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
20643
20643
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
20644
20644
|
)`, "preparationSubjects");
|
|
20645
20645
|
|
|
20646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
20647
20647
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20648
20648
|
async preparationKnowledge(original) {
|
|
20649
20649
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20688,7 +20688,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
20688
20688
|
}
|
|
20689
20689
|
}), "meetingPreparationKnowledgeOver");
|
|
20690
20690
|
|
|
20691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
20692
20692
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20693
20693
|
async preparationNotes(original) {
|
|
20694
20694
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20741,7 +20741,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20741
20741
|
}
|
|
20742
20742
|
}), "meetingPreparationNotesOver");
|
|
20743
20743
|
|
|
20744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20745
20745
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20746
20746
|
async relatedHistory(original) {
|
|
20747
20747
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -20812,7 +20812,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20812
20812
|
}
|
|
20813
20813
|
}), "meetingRelatedHistoryOver");
|
|
20814
20814
|
|
|
20815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
20816
20816
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
20817
20817
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
20818
20818
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -20893,7 +20893,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20893
20893
|
}
|
|
20894
20894
|
}), "meetingReviewOver");
|
|
20895
20895
|
|
|
20896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
20897
20897
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
20898
20898
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
20899
20899
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -20947,7 +20947,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20947
20947
|
}
|
|
20948
20948
|
}), "meetingSeriesHistoryOver");
|
|
20949
20949
|
|
|
20950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
20951
20951
|
var MOST_ROWS = 5e5;
|
|
20952
20952
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
20953
20953
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -21016,7 +21016,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21016
21016
|
}
|
|
21017
21017
|
}), "meetingStatsOver");
|
|
21018
21018
|
|
|
21019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
21020
21020
|
var CURSOR_KEY = "meetings";
|
|
21021
21021
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
21022
21022
|
id: Number(row2.id),
|
|
@@ -21585,7 +21585,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
21585
21585
|
};
|
|
21586
21586
|
}, "meetingStoreOver");
|
|
21587
21587
|
|
|
21588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
21589
21589
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
21590
21590
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
21591
21591
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -21611,7 +21611,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
21611
21611
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
21612
21612
|
}, "release");
|
|
21613
21613
|
|
|
21614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
21615
21615
|
var THREAD_COLUMNS = {
|
|
21616
21616
|
subject: {
|
|
21617
21617
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -21628,7 +21628,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
21628
21628
|
AND (${filter.where?.sql ?? "1"}) ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, ...filter.where?.params ?? [], limit, offset);
|
|
21629
21629
|
}, "threadRows");
|
|
21630
21630
|
|
|
21631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
21632
21632
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
21633
21633
|
id: `email:${place.emailId}`,
|
|
21634
21634
|
chatId: place.threadExternalId,
|
|
@@ -22184,7 +22184,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
22184
22184
|
}
|
|
22185
22185
|
}), "mailStoreOver");
|
|
22186
22186
|
|
|
22187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
22188
22188
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
22189
22189
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
22190
22190
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -22274,7 +22274,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
22274
22274
|
}, "knownWord");
|
|
22275
22275
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
22276
22276
|
|
|
22277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
22278
22278
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
22279
22279
|
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");
|
|
22280
22280
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -22360,7 +22360,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
22360
22360
|
return found2;
|
|
22361
22361
|
}, "spokenTranscripts");
|
|
22362
22362
|
|
|
22363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
22364
22364
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
22365
22365
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
22366
22366
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -22407,7 +22407,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
22407
22407
|
});
|
|
22408
22408
|
}, "placeHits");
|
|
22409
22409
|
|
|
22410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
22411
22411
|
var GROUPS = {
|
|
22412
22412
|
chat: {
|
|
22413
22413
|
key: "m.chat_id",
|
|
@@ -22429,7 +22429,7 @@ var GROUPS = {
|
|
|
22429
22429
|
}
|
|
22430
22430
|
};
|
|
22431
22431
|
|
|
22432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
22433
22433
|
var MESSAGES2 = {
|
|
22434
22434
|
rows: "messages",
|
|
22435
22435
|
threads: "chats",
|
|
@@ -22912,7 +22912,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
22912
22912
|
};
|
|
22913
22913
|
}, "runCompiled");
|
|
22914
22914
|
|
|
22915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
22916
22916
|
function invalidMetadata() {
|
|
22917
22917
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
22918
22918
|
}
|
|
@@ -23014,7 +23014,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
23014
23014
|
};
|
|
23015
23015
|
}), "counterTargets");
|
|
23016
23016
|
|
|
23017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
23018
23018
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
|
|
23019
23019
|
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,
|
|
23020
23020
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -23133,7 +23133,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
23133
23133
|
}));
|
|
23134
23134
|
}, "attachmentViews");
|
|
23135
23135
|
|
|
23136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
23137
23137
|
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");
|
|
23138
23138
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
23139
23139
|
const { orm, database, now: now2 } = context;
|
|
@@ -23171,7 +23171,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
23171
23171
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
23172
23172
|
}, "intoVoiceAttachment");
|
|
23173
23173
|
|
|
23174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
23175
23175
|
var FIELDS = [
|
|
23176
23176
|
"threadExternalId",
|
|
23177
23177
|
"senderIdentityId",
|
|
@@ -23488,7 +23488,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
23488
23488
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
23489
23489
|
}, "writeDerivedReactions");
|
|
23490
23490
|
|
|
23491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
23492
23492
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
23493
23493
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
23494
23494
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -23509,7 +23509,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
23509
23509
|
};
|
|
23510
23510
|
}, "keysOver");
|
|
23511
23511
|
|
|
23512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
23513
23513
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
23514
23514
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
23515
23515
|
if (!row2)
|
|
@@ -23544,7 +23544,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
23544
23544
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
23545
23545
|
}, "saveProfile");
|
|
23546
23546
|
|
|
23547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
23548
23548
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
23549
23549
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
23550
23550
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -23601,7 +23601,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
23601
23601
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
23602
23602
|
}, "proposedBySql");
|
|
23603
23603
|
|
|
23604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
23605
23605
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
23606
23606
|
const owner = ownerPerson(context.database).id;
|
|
23607
23607
|
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);
|
|
@@ -23622,7 +23622,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
23622
23622
|
return personOf(context, ref3);
|
|
23623
23623
|
}, "linkToOwner");
|
|
23624
23624
|
|
|
23625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
23626
23626
|
var PROVIDERS_SETTING = "providers";
|
|
23627
23627
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
23628
23628
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -23657,7 +23657,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
23657
23657
|
});
|
|
23658
23658
|
}, "registerProvider");
|
|
23659
23659
|
|
|
23660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
23661
23661
|
var DAY3 = 864e5;
|
|
23662
23662
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
23663
23663
|
var TEXT_LIMIT = 20;
|
|
@@ -23856,7 +23856,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
23856
23856
|
};
|
|
23857
23857
|
}, "taskSimilarityOver");
|
|
23858
23858
|
|
|
23859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
23860
23860
|
var SETTING3 = "taskCategories";
|
|
23861
23861
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
23862
23862
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -23875,7 +23875,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
23875
23875
|
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);
|
|
23876
23876
|
}, "saveTaskCategories");
|
|
23877
23877
|
|
|
23878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
23879
23879
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
23880
23880
|
var ALLOWED = "taskAgentClose";
|
|
23881
23881
|
var MIN = "taskAgentCloseMin";
|
|
@@ -23931,10 +23931,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
23931
23931
|
];
|
|
23932
23932
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
23933
23933
|
|
|
23934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
23935
23935
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
23936
23936
|
|
|
23937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
23938
23938
|
var TASK_CLOSE_KIND = "task_close";
|
|
23939
23939
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
23940
23940
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind3) => kind3 === MAIL_FINDINGS_KIND || kind3 === MEETING_FINDINGS_KIND || kind3 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -23982,10 +23982,10 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
23982
23982
|
}, "assertMayDecide");
|
|
23983
23983
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
23984
23984
|
|
|
23985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
23986
23986
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
23987
23987
|
|
|
23988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
23989
23989
|
var EXCERPT_CHARS = 280;
|
|
23990
23990
|
var TITLE_CHARS = 120;
|
|
23991
23991
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -24338,7 +24338,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
24338
24338
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
24339
24339
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
|
|
24340
24340
|
|
|
24341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
24342
24342
|
var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
|
|
24343
24343
|
ref: ref3,
|
|
24344
24344
|
kind: read2.kind,
|
|
@@ -24374,7 +24374,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
24374
24374
|
});
|
|
24375
24375
|
}, "evidenceSourcesOf");
|
|
24376
24376
|
|
|
24377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
24378
24378
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
24379
24379
|
var MAX_TEXT_CHARS = 2e6;
|
|
24380
24380
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -24400,7 +24400,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
24400
24400
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
24401
24401
|
}, "pdfPreviewLimits");
|
|
24402
24402
|
|
|
24403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
24404
24404
|
import { randomBytes } from "node:crypto";
|
|
24405
24405
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
24406
24406
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -24413,7 +24413,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
24413
24413
|
return time3 + random;
|
|
24414
24414
|
}, "ulid");
|
|
24415
24415
|
|
|
24416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
24417
24417
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
24418
24418
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
24419
24419
|
if (!meta && !sections?.length)
|
|
@@ -24434,7 +24434,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
24434
24434
|
return typeof language === "string" && language !== "" ? language : null;
|
|
24435
24435
|
}, "languageOf");
|
|
24436
24436
|
|
|
24437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
24438
24438
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
24439
24439
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
24440
24440
|
if (isObject(value))
|
|
@@ -24677,7 +24677,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
24677
24677
|
};
|
|
24678
24678
|
}, "filesStoreOver");
|
|
24679
24679
|
|
|
24680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
24681
24681
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
24682
24682
|
entity: "document",
|
|
24683
24683
|
backend: "sql",
|
|
@@ -24723,7 +24723,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
24723
24723
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
24724
24724
|
}, "importedDocumentWhere");
|
|
24725
24725
|
|
|
24726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
24727
24727
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
24728
24728
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
24729
24729
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -25249,7 +25249,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25249
25249
|
};
|
|
25250
25250
|
}, "notesStoreOver");
|
|
25251
25251
|
|
|
25252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
25253
25253
|
var NAMED = "SELECT m.*, b.name AS author_name, b.kind AS author_kind FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
|
|
25254
25254
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
25255
25255
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -25471,7 +25471,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25471
25471
|
};
|
|
25472
25472
|
}, "memoriesStoreOver");
|
|
25473
25473
|
|
|
25474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
25475
25475
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
25476
25476
|
var KEY = "taskFirstPassPerChat";
|
|
25477
25477
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -25491,7 +25491,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
25491
25491
|
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);
|
|
25492
25492
|
}, "saveFirstPassPerChat");
|
|
25493
25493
|
|
|
25494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
25495
25495
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
25496
25496
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
25497
25497
|
name,
|
|
@@ -25714,7 +25714,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
25714
25714
|
return root === void 0 ? void 0 : { ...query, root };
|
|
25715
25715
|
}, "withoutField");
|
|
25716
25716
|
|
|
25717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
25718
25718
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
25719
25719
|
if (row2.author_type == null)
|
|
25720
25720
|
return null;
|
|
@@ -25742,7 +25742,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
25742
25742
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
25743
25743
|
}, "addComment");
|
|
25744
25744
|
|
|
25745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
25746
25746
|
var TASK_RELATION_KINDS = [
|
|
25747
25747
|
"blocked-by",
|
|
25748
25748
|
"follow-up-of",
|
|
@@ -25872,7 +25872,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
25872
25872
|
};
|
|
25873
25873
|
}, "taskRelationsStoreOver");
|
|
25874
25874
|
|
|
25875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
25876
25876
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
25877
25877
|
var TASK_EVENT_KINDS = [
|
|
25878
25878
|
"created",
|
|
@@ -25917,7 +25917,7 @@ var timesAsIso = /* @__PURE__ */ __name((changes) => Object.fromEntries(Object.e
|
|
|
25917
25917
|
var checkRevision = /* @__PURE__ */ __name((row2, expected) => {
|
|
25918
25918
|
if (expected === void 0 || Number(row2.revision) === expected)
|
|
25919
25919
|
return;
|
|
25920
|
-
throw new CliError("
|
|
25920
|
+
throw new CliError("conflict", `task ${String(row2.key)} changed since revision ${expected}; it is at ${String(row2.revision)}: read it again`, { reason: "task.stale", revision: Number(row2.revision) });
|
|
25921
25921
|
}, "checkRevision");
|
|
25922
25922
|
var workTaskOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
25923
25923
|
const { database, now: now2 } = context;
|
|
@@ -26417,7 +26417,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
26417
26417
|
};
|
|
26418
26418
|
}, "workTasksOver");
|
|
26419
26419
|
|
|
26420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
26421
26421
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
26422
26422
|
const { database, now: now2 } = context;
|
|
26423
26423
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -26466,7 +26466,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
26466
26466
|
};
|
|
26467
26467
|
}, "taskCloseOver");
|
|
26468
26468
|
|
|
26469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
26470
26470
|
var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
|
|
26471
26471
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
26472
26472
|
const { database, now: now2 } = context;
|
|
@@ -26685,7 +26685,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
26685
26685
|
};
|
|
26686
26686
|
}, "taskPairsOver");
|
|
26687
26687
|
|
|
26688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
26689
26689
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
26690
26690
|
var TASK_STATS_SQL = {
|
|
26691
26691
|
rows: /* @__PURE__ */ __name((board, filter) => `SELECT t.source_group, t.source_kind, t.project_id, t.status, t.created_at, t.closed_at FROM tasks t WHERE ${board ? BOARD_SCOPE : ACCOUNT_SCOPE}${filter} ORDER BY t.created_at, t.id`, "rows"),
|
|
@@ -26724,7 +26724,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
26724
26724
|
}, "statNames")
|
|
26725
26725
|
}), "taskStatsOver");
|
|
26726
26726
|
|
|
26727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
26728
26728
|
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";
|
|
26729
26729
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
26730
26730
|
const key2 = inboxKey(account);
|
|
@@ -26931,7 +26931,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
26931
26931
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
26932
26932
|
}, "oneOf");
|
|
26933
26933
|
|
|
26934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
26935
26935
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
26936
26936
|
const { database } = context;
|
|
26937
26937
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -26976,7 +26976,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
26976
26976
|
};
|
|
26977
26977
|
}, "accountsStoreOver");
|
|
26978
26978
|
|
|
26979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
26980
26980
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
26981
26981
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
26982
26982
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -27000,7 +27000,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
27000
27000
|
})), "keepDownloads");
|
|
27001
27001
|
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");
|
|
27002
27002
|
|
|
27003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
27004
27004
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
27005
27005
|
const { database } = context;
|
|
27006
27006
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -27057,7 +27057,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
27057
27057
|
}, "keepAttachmentText")
|
|
27058
27058
|
}), "attachmentsStoreOver");
|
|
27059
27059
|
|
|
27060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
27061
27061
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
27062
27062
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
27063
27063
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -27237,7 +27237,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
27237
27237
|
return done;
|
|
27238
27238
|
}, "rekeyChats");
|
|
27239
27239
|
|
|
27240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
27241
27241
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
27242
27242
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
27243
27243
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -27295,7 +27295,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
27295
27295
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
27296
27296
|
}, "chatCoverage");
|
|
27297
27297
|
|
|
27298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
27299
27299
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
27300
27300
|
const { database } = context;
|
|
27301
27301
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -27430,7 +27430,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
27430
27430
|
};
|
|
27431
27431
|
}, "chatsStoreOver");
|
|
27432
27432
|
|
|
27433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
27434
27434
|
import { createHash as createHash7 } from "node:crypto";
|
|
27435
27435
|
var BATCH_CONTEXT = 50;
|
|
27436
27436
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -27568,7 +27568,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
27568
27568
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
27569
27569
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
27570
27570
|
|
|
27571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
27572
27572
|
import { setTimeout } from "node:timers/promises";
|
|
27573
27573
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
27574
27574
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -27880,7 +27880,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
27880
27880
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
27881
27881
|
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");
|
|
27882
27882
|
|
|
27883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
27884
27884
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
27885
27885
|
const { database } = context;
|
|
27886
27886
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -27987,7 +27987,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
27987
27987
|
};
|
|
27988
27988
|
}, "conversationsStoreOver");
|
|
27989
27989
|
|
|
27990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
27991
27991
|
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";
|
|
27992
27992
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
27993
27993
|
const { database } = context;
|
|
@@ -28012,7 +28012,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28012
28012
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
28013
28013
|
}), "countersStoreOver");
|
|
28014
28014
|
|
|
28015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
28016
28016
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
28017
28017
|
var MENTION_QUERY = defineQuery({
|
|
28018
28018
|
entity: "mention",
|
|
@@ -28228,7 +28228,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
28228
28228
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
28229
28229
|
}, "listPlaces");
|
|
28230
28230
|
|
|
28231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
28232
28232
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
28233
28233
|
const { database } = context;
|
|
28234
28234
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -28263,7 +28263,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28263
28263
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
28264
28264
|
}), "mentionsStoreOver");
|
|
28265
28265
|
|
|
28266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
28267
28267
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
28268
28268
|
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");
|
|
28269
28269
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -28278,7 +28278,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
28278
28278
|
}));
|
|
28279
28279
|
}, "documentLinkMessages");
|
|
28280
28280
|
|
|
28281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
28282
28282
|
var stemmerFor = stemmerCache();
|
|
28283
28283
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
28284
28284
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -28322,7 +28322,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
28322
28322
|
});
|
|
28323
28323
|
}, "laterSharingRare");
|
|
28324
28324
|
|
|
28325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
28326
28326
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
28327
28327
|
const { database } = context;
|
|
28328
28328
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -28457,7 +28457,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28457
28457
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
28458
28458
|
}), "messagesStoreOver");
|
|
28459
28459
|
|
|
28460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
28461
28461
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
28462
28462
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
28463
28463
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -28514,7 +28514,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
28514
28514
|
});
|
|
28515
28515
|
}, "personPreparation");
|
|
28516
28516
|
|
|
28517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
28518
28518
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
28519
28519
|
const id2 = Number(uid);
|
|
28520
28520
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -28522,7 +28522,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
28522
28522
|
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)));
|
|
28523
28523
|
}, "personSeenInAccounts");
|
|
28524
28524
|
|
|
28525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
28526
28526
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
28527
28527
|
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);
|
|
28528
28528
|
if (!row2)
|
|
@@ -28588,7 +28588,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
28588
28588
|
return { id: id2, personId, removed: true };
|
|
28589
28589
|
}, "removeNote");
|
|
28590
28590
|
|
|
28591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
28592
28592
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
28593
28593
|
const { database } = context;
|
|
28594
28594
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -28673,13 +28673,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
28673
28673
|
};
|
|
28674
28674
|
}, "peopleStoreOver");
|
|
28675
28675
|
|
|
28676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
28677
28677
|
import { createHash as createHash9 } from "node:crypto";
|
|
28678
28678
|
|
|
28679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
28680
28680
|
import { createHash as createHash8 } from "node:crypto";
|
|
28681
28681
|
|
|
28682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
28683
28683
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
28684
28684
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
28685
28685
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -28901,7 +28901,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
28901
28901
|
};
|
|
28902
28902
|
}, "rankReplyGraph");
|
|
28903
28903
|
|
|
28904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
28905
28905
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
28906
28906
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
28907
28907
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -29075,7 +29075,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
29075
29075
|
return { items, evidence, summary, graph: graph.quality };
|
|
29076
29076
|
}, "calculateAdminStatistics");
|
|
29077
29077
|
|
|
29078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
29079
29079
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
29080
29080
|
const dates = [];
|
|
29081
29081
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -29097,7 +29097,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
29097
29097
|
return dates[0].node.resolution.date;
|
|
29098
29098
|
}, "rankingContextRange");
|
|
29099
29099
|
|
|
29100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
29101
29101
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
29102
29102
|
let counts;
|
|
29103
29103
|
try {
|
|
@@ -29392,7 +29392,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
29392
29392
|
});
|
|
29393
29393
|
}, "rankQuery");
|
|
29394
29394
|
|
|
29395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
29396
29396
|
function fail4(message2, reason = "query.too-large") {
|
|
29397
29397
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
29398
29398
|
}
|
|
@@ -29569,7 +29569,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
29569
29569
|
return result;
|
|
29570
29570
|
}), "adminStatisticsQuery");
|
|
29571
29571
|
|
|
29572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
29573
29573
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
29574
29574
|
if (!execution.accounts.length)
|
|
29575
29575
|
return { conversations: [], chats: [] };
|
|
@@ -29587,7 +29587,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
29587
29587
|
return { conversations: conversations2, chats: chats2 };
|
|
29588
29588
|
}, "conversationEligibility");
|
|
29589
29589
|
|
|
29590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
29591
29591
|
import { createHash as createHash10 } from "node:crypto";
|
|
29592
29592
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
29593
29593
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -29737,7 +29737,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
29737
29737
|
return result;
|
|
29738
29738
|
}, "rankingEvidence");
|
|
29739
29739
|
|
|
29740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
29741
29741
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
29742
29742
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
29743
29743
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -29831,7 +29831,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
29831
29831
|
});
|
|
29832
29832
|
}, "waitingChats");
|
|
29833
29833
|
|
|
29834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
29835
29835
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
29836
29836
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
29837
29837
|
if (execution.corpus === "mail")
|
|
@@ -29852,7 +29852,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
29852
29852
|
};
|
|
29853
29853
|
}, "queriesStoreOver");
|
|
29854
29854
|
|
|
29855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
29856
29856
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
29857
29857
|
const { database, now: now2 } = context;
|
|
29858
29858
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -29891,10 +29891,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
29891
29891
|
}));
|
|
29892
29892
|
}, "chatEventsOf");
|
|
29893
29893
|
|
|
29894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
29895
29895
|
import { createHash as createHash11 } from "node:crypto";
|
|
29896
29896
|
|
|
29897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
29898
29898
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
29899
29899
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
29900
29900
|
timeZone: zone,
|
|
@@ -29914,7 +29914,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
|
|
|
29914
29914
|
return date3.toISOString().slice(0, 10);
|
|
29915
29915
|
}, "weekKey");
|
|
29916
29916
|
|
|
29917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
29918
29918
|
var RETENTION_TOLERANCE = 864e5;
|
|
29919
29919
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
29920
29920
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -29968,7 +29968,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
29968
29968
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
29969
29969
|
}, "retentionCohorts");
|
|
29970
29970
|
|
|
29971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
29972
29972
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
29973
29973
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
29974
29974
|
validateRetentionOptions(options);
|
|
@@ -30099,7 +30099,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
30099
30099
|
};
|
|
30100
30100
|
}, "retentionQuery");
|
|
30101
30101
|
|
|
30102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
30103
30103
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
30104
30104
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
30105
30105
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -30230,7 +30230,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
30230
30230
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
30231
30231
|
})), "trackedChats");
|
|
30232
30232
|
|
|
30233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
30234
30234
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
30235
30235
|
const { database } = context;
|
|
30236
30236
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -30286,7 +30286,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30286
30286
|
};
|
|
30287
30287
|
}, "rosterStoreOver");
|
|
30288
30288
|
|
|
30289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
30290
30290
|
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");
|
|
30291
30291
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
30292
30292
|
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 ?`);
|
|
@@ -30310,7 +30310,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
30310
30310
|
}
|
|
30311
30311
|
}, "backfillNormalized");
|
|
30312
30312
|
|
|
30313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
30314
30314
|
var INDEX2 = "message_words";
|
|
30315
30315
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
30316
30316
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -30437,7 +30437,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
30437
30437
|
});
|
|
30438
30438
|
}, "resetSearchIndex");
|
|
30439
30439
|
|
|
30440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
30441
30441
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
30442
30442
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
30443
30443
|
const before2 = stemsState(database);
|
|
@@ -30532,7 +30532,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
30532
30532
|
return resetStems(database, { now: now2 });
|
|
30533
30533
|
}, "followDefaultStemmers");
|
|
30534
30534
|
|
|
30535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
30536
30536
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
30537
30537
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
30538
30538
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -30554,7 +30554,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
30554
30554
|
});
|
|
30555
30555
|
}, "termCandidates");
|
|
30556
30556
|
|
|
30557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
30558
30558
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
30559
30559
|
const { database } = context;
|
|
30560
30560
|
const stemmerFor2 = stemmerCache();
|
|
@@ -30576,7 +30576,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30576
30576
|
};
|
|
30577
30577
|
}, "searchIndexStoreOver");
|
|
30578
30578
|
|
|
30579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
30580
30580
|
var HISTORY_KEPT = 1e3;
|
|
30581
30581
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
30582
30582
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -30645,7 +30645,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
30645
30645
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
30646
30646
|
}, "clearHistory");
|
|
30647
30647
|
|
|
30648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
30649
30649
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
30650
30650
|
const { database } = context;
|
|
30651
30651
|
return {
|
|
@@ -30669,7 +30669,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30669
30669
|
};
|
|
30670
30670
|
}, "searchesStoreOver");
|
|
30671
30671
|
|
|
30672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
30673
30673
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
30674
30674
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
30675
30675
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -30712,7 +30712,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
30712
30712
|
};
|
|
30713
30713
|
}, "agentActionsStoreOver");
|
|
30714
30714
|
|
|
30715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
30716
30716
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
30717
30717
|
}) => {
|
|
30718
30718
|
const { database, now: now2 } = context;
|
|
@@ -30771,7 +30771,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
30771
30771
|
};
|
|
30772
30772
|
}, "botUpdateStoreOver");
|
|
30773
30773
|
|
|
30774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
30775
30775
|
var DAY4 = 864e5;
|
|
30776
30776
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
30777
30777
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -30880,7 +30880,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
30880
30880
|
return database.prepare(`SELECT e.* FROM events e WHERE ${clauses.join(" AND ")} ORDER BY ${filter.newest ? "e.starts_at DESC, e.id DESC" : "e.starts_at, e.id"} LIMIT ? OFFSET ?`).all(...params, limit, offset).map(eventOf);
|
|
30881
30881
|
}, "listEvents");
|
|
30882
30882
|
|
|
30883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
30884
30884
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
30885
30885
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
30886
30886
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -30935,7 +30935,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
30935
30935
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
30936
30936
|
}, "forgetCalendarRows");
|
|
30937
30937
|
|
|
30938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
30939
30939
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
30940
30940
|
id: Number(row2.id),
|
|
30941
30941
|
accountId: Number(row2.account_id),
|
|
@@ -31522,7 +31522,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31522
31522
|
};
|
|
31523
31523
|
}, "eventStoreOver");
|
|
31524
31524
|
|
|
31525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
31526
31526
|
var CATALOG_QUERY = defineQuery({
|
|
31527
31527
|
entity: "document",
|
|
31528
31528
|
backend: "sql",
|
|
@@ -31764,7 +31764,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
31764
31764
|
};
|
|
31765
31765
|
}, "catalogStoreOver");
|
|
31766
31766
|
|
|
31767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
31768
31768
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
31769
31769
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
31770
31770
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -31777,7 +31777,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
31777
31777
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
31778
31778
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
31779
31779
|
|
|
31780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
31781
31781
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
31782
31782
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
31783
31783
|
signal?.throwIfAborted();
|
|
@@ -31876,7 +31876,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
31876
31876
|
});
|
|
31877
31877
|
}, "readMeetingContextEvidence");
|
|
31878
31878
|
|
|
31879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
31880
31880
|
var corpora = {
|
|
31881
31881
|
message: {
|
|
31882
31882
|
table: "messages",
|
|
@@ -32115,7 +32115,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
32115
32115
|
}
|
|
32116
32116
|
}), "contextRecordsOver");
|
|
32117
32117
|
|
|
32118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
32119
32119
|
var NOTE_FIELDS = [
|
|
32120
32120
|
"text",
|
|
32121
32121
|
"exact",
|
|
@@ -32545,7 +32545,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
32545
32545
|
};
|
|
32546
32546
|
}, "noteSearchOver");
|
|
32547
32547
|
|
|
32548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
32549
32549
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
32550
32550
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
32551
32551
|
var EVENT_CORPUS = {
|
|
@@ -32677,7 +32677,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
32677
32677
|
};
|
|
32678
32678
|
}, "eventSearchOver");
|
|
32679
32679
|
|
|
32680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
32681
32681
|
var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
32682
32682
|
throw new CliError(code, message2, { reason });
|
|
32683
32683
|
}, "refuse");
|
|
@@ -33112,7 +33112,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33112
33112
|
};
|
|
33113
33113
|
}, "financeStoreOver");
|
|
33114
33114
|
|
|
33115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
33116
33116
|
var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
|
|
33117
33117
|
throw new CliError("validation_error", message2, { reason });
|
|
33118
33118
|
}, "refuse");
|
|
@@ -33190,7 +33190,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
33190
33190
|
};
|
|
33191
33191
|
}, "paymentEntriesOver");
|
|
33192
33192
|
|
|
33193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
33194
33194
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
33195
33195
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
33196
33196
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -33216,7 +33216,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
33216
33216
|
return valid;
|
|
33217
33217
|
}, "validateEvidenceFindings");
|
|
33218
33218
|
|
|
33219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
33220
33220
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
33221
33221
|
try {
|
|
33222
33222
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -33228,7 +33228,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
33228
33228
|
}
|
|
33229
33229
|
}, "calendarMoment");
|
|
33230
33230
|
|
|
33231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
33232
33232
|
var NAMED3 = "SELECT f.*, b.name AS author_name, b.kind AS author_kind FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
|
|
33233
33233
|
var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
33234
33234
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -33410,7 +33410,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33410
33410
|
};
|
|
33411
33411
|
}, "factsStoreOver");
|
|
33412
33412
|
|
|
33413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
33414
33414
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
33415
33415
|
throw new CliError("validation_error", message2);
|
|
33416
33416
|
}, "invalid");
|
|
@@ -33512,7 +33512,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
|
|
|
33512
33512
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
33513
33513
|
}, "findingsCoreOver");
|
|
33514
33514
|
|
|
33515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
33516
33516
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
33517
33517
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
33518
33518
|
var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -33677,7 +33677,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33677
33677
|
};
|
|
33678
33678
|
}, "proposedActionsStoreOver");
|
|
33679
33679
|
|
|
33680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
33681
33681
|
var stale = /* @__PURE__ */ __name(() => {
|
|
33682
33682
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
33683
33683
|
reason: "evidence-findings.stale"
|
|
@@ -33858,7 +33858,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33858
33858
|
};
|
|
33859
33859
|
}, "evidenceFindingsStoreOver");
|
|
33860
33860
|
|
|
33861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
33862
33862
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
33863
33863
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
33864
33864
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -33911,7 +33911,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
33911
33911
|
}, "forPerson")
|
|
33912
33912
|
}), "involvementStoreOver");
|
|
33913
33913
|
|
|
33914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
33915
33915
|
import { createHash as createHash12 } from "node:crypto";
|
|
33916
33916
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
33917
33917
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -33997,7 +33997,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
33997
33997
|
};
|
|
33998
33998
|
}, "meetingProjectsStoreOver");
|
|
33999
33999
|
|
|
34000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
34001
34001
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
34002
34002
|
id: link3.id,
|
|
34003
34003
|
from: link3.from,
|
|
@@ -34223,16 +34223,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
34223
34223
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
34224
34224
|
}, "decidedOrigin");
|
|
34225
34225
|
|
|
34226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
34227
34227
|
import { createHash as createHash15 } from "node:crypto";
|
|
34228
34228
|
|
|
34229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34230
34230
|
import { createHash as createHash14 } from "node:crypto";
|
|
34231
34231
|
|
|
34232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34233
34233
|
import { createHash as createHash13 } from "node:crypto";
|
|
34234
34234
|
|
|
34235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
34236
34236
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
34237
34237
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
34238
34238
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -34283,7 +34283,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
34283
34283
|
return input;
|
|
34284
34284
|
}, "consolidationApplyInput");
|
|
34285
34285
|
|
|
34286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34287
34287
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
34288
34288
|
id: String(row2.id),
|
|
34289
34289
|
sourceId: String(row2.source_id),
|
|
@@ -34358,7 +34358,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
34358
34358
|
}, { beforeCommit: check3 });
|
|
34359
34359
|
}, "applyTagConsolidation");
|
|
34360
34360
|
|
|
34361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34362
34362
|
var selections = [
|
|
34363
34363
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
34364
34364
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -34502,7 +34502,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
34502
34502
|
};
|
|
34503
34503
|
}, "previewRows");
|
|
34504
34504
|
|
|
34505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
34506
34506
|
var kinds = ["project", "tag", "topic"];
|
|
34507
34507
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
34508
34508
|
if (signal?.aborted)
|
|
@@ -34766,7 +34766,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34766
34766
|
};
|
|
34767
34767
|
}, "vocabularyStoreOver");
|
|
34768
34768
|
|
|
34769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
34770
34770
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
34771
34771
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
34772
34772
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -35323,7 +35323,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
35323
35323
|
return key2.padEnd(3, "X");
|
|
35324
35324
|
}, "projectKey");
|
|
35325
35325
|
|
|
35326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
35327
35327
|
var DAY5 = 864e5;
|
|
35328
35328
|
var SETTING4 = "logs_pruned_at";
|
|
35329
35329
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -35350,7 +35350,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
35350
35350
|
};
|
|
35351
35351
|
}, "logPruner");
|
|
35352
35352
|
|
|
35353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
35354
35354
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
35355
35355
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
35356
35356
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -35476,7 +35476,7 @@ var validateMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
35476
35476
|
}, "validateMailFindings");
|
|
35477
35477
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
35478
35478
|
|
|
35479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
35480
35480
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
35481
35481
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
35482
35482
|
reason: "mail-findings.stale"
|
|
@@ -35536,7 +35536,7 @@ var mailFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35536
35536
|
receipt: proposal.result
|
|
35537
35537
|
};
|
|
35538
35538
|
}, "view");
|
|
35539
|
-
const cite = /* @__PURE__ */ __name((findings, account) => {
|
|
35539
|
+
const cite = /* @__PURE__ */ __name((findings, account, deciding = false) => {
|
|
35540
35540
|
const read2 = /* @__PURE__ */ new Map();
|
|
35541
35541
|
const perSender = /* @__PURE__ */ new Map();
|
|
35542
35542
|
let bytes3 = 0;
|
|
@@ -35548,8 +35548,12 @@ var mailFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35548
35548
|
if (!row2) {
|
|
35549
35549
|
const at = parseLocator(reference2);
|
|
35550
35550
|
row2 = database.prepare(EMAIL2).get(at.account, at.chat, at.message);
|
|
35551
|
-
if (!row2)
|
|
35551
|
+
if (!row2 && deciding)
|
|
35552
35552
|
return stale2();
|
|
35553
|
+
if (!row2)
|
|
35554
|
+
throw new CliError("not_found", `no stored email ${reference2}; cite only mail a review gave`, {
|
|
35555
|
+
reason: "mail-findings.not-stored"
|
|
35556
|
+
});
|
|
35553
35557
|
bytes3 += Buffer.byteLength(String(row2.body)) + Buffer.byteLength(String(row2.subject ?? ""));
|
|
35554
35558
|
if (bytes3 > TEXT_BUDGET2)
|
|
35555
35559
|
return invalid5(`finding evidence exceeds the ${TEXT_BUDGET2}-byte stored text budget`);
|
|
@@ -35673,7 +35677,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
35673
35677
|
}
|
|
35674
35678
|
case "new_contact": {
|
|
35675
35679
|
const person2 = Number(identityOfAddress(finding.address)?.person_id);
|
|
35676
|
-
database.prepare("UPDATE persons SET name = ?, updated_at = ? WHERE id = ?
|
|
35680
|
+
database.prepare("UPDATE persons SET name = ?, updated_at = ? WHERE id = ?").run(finding.name, now2(), person2);
|
|
35677
35681
|
return `person:${person2}`;
|
|
35678
35682
|
}
|
|
35679
35683
|
}
|
|
@@ -35737,7 +35741,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
35737
35741
|
const account = accountOf3(proposal);
|
|
35738
35742
|
const chosen = batch.input.findings.filter((finding) => accepted.includes(finding.id));
|
|
35739
35743
|
if (chosen.length)
|
|
35740
|
-
cite(chosen, account);
|
|
35744
|
+
cite(chosen, account, true);
|
|
35741
35745
|
if (proposal.proposedBy.type !== "bot" || !proposal.proposedBy.name)
|
|
35742
35746
|
return invalid5("a findings author must be an agent");
|
|
35743
35747
|
const agent = {
|
|
@@ -35766,7 +35770,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
35766
35770
|
};
|
|
35767
35771
|
}, "mailFindingsStoreOver");
|
|
35768
35772
|
|
|
35769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
35770
35774
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
35771
35775
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
35772
35776
|
reason: "meeting-findings.stale"
|
|
@@ -35934,7 +35938,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35934
35938
|
};
|
|
35935
35939
|
}, "meetingFindingsStoreOver");
|
|
35936
35940
|
|
|
35937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
35938
35942
|
var RANK_BATCH = 512;
|
|
35939
35943
|
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";
|
|
35940
35944
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -36205,7 +36209,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
36205
36209
|
}
|
|
36206
36210
|
}), "meetingVectorsOver");
|
|
36207
36211
|
|
|
36208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
36209
36213
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
36210
36214
|
var TEXTS = {
|
|
36211
36215
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -36306,11 +36310,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36306
36310
|
};
|
|
36307
36311
|
}, "sourceMentionStoreOver");
|
|
36308
36312
|
|
|
36309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
36310
36314
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
36311
36315
|
import { dirname } from "node:path";
|
|
36312
36316
|
|
|
36313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
36314
36318
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
36315
36319
|
var CLIENTS_SETTING = "clients";
|
|
36316
36320
|
var coreVersion = (() => {
|
|
@@ -36368,7 +36372,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
36368
36372
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
36369
36373
|
}, "refusalAdvice");
|
|
36370
36374
|
|
|
36371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
36372
36376
|
var GENERATED = [
|
|
36373
36377
|
{
|
|
36374
36378
|
"name": "20261010184427_initial",
|
|
@@ -37335,7 +37339,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
37335
37339
|
}
|
|
37336
37340
|
];
|
|
37337
37341
|
|
|
37338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
37339
37343
|
var MANIFEST = [
|
|
37340
37344
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
37341
37345
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -37423,7 +37427,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
37423
37427
|
return migrations;
|
|
37424
37428
|
}, "generatedMigrations");
|
|
37425
37429
|
|
|
37426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
37427
37431
|
var MIGRATIONS = generatedMigrations();
|
|
37428
37432
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
37429
37433
|
version INTEGER PRIMARY KEY,
|
|
@@ -37476,7 +37480,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
37476
37480
|
}
|
|
37477
37481
|
}, "migrate");
|
|
37478
37482
|
|
|
37479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
37480
37484
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
37481
37485
|
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 ?");
|
|
37482
37486
|
if (pending.get(0, 1) === void 0)
|
|
@@ -37498,7 +37502,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
37498
37502
|
}
|
|
37499
37503
|
}, "fillJoinKeys");
|
|
37500
37504
|
|
|
37501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
37502
37506
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
37503
37507
|
refuseOwnerStoreInTests(path);
|
|
37504
37508
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -37512,8 +37516,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
37512
37516
|
}, "openSqlite");
|
|
37513
37517
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
37514
37518
|
quietSqliteWarning();
|
|
37515
|
-
const { drizzle } = await import("./node-
|
|
37516
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
37519
|
+
const { drizzle } = await import("./node-OXC26QXO.js");
|
|
37520
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-PXHZAG7Y.js");
|
|
37517
37521
|
const client = await nodeClient(path, { readOnly });
|
|
37518
37522
|
try {
|
|
37519
37523
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -37523,8 +37527,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
37523
37527
|
}
|
|
37524
37528
|
}, "openUnderNode");
|
|
37525
37529
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
37526
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
37527
|
-
const { drizzle } = await import("./bun-
|
|
37530
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-Y4FP6SDX.js");
|
|
37531
|
+
const { drizzle } = await import("./bun-2NMWL5YB.js");
|
|
37528
37532
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
37529
37533
|
try {
|
|
37530
37534
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -37534,7 +37538,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
37534
37538
|
}
|
|
37535
37539
|
}, "openUnderBun");
|
|
37536
37540
|
|
|
37537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
37538
37542
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
37539
37543
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
37540
37544
|
try {
|
|
@@ -37602,7 +37606,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
37602
37606
|
});
|
|
37603
37607
|
}, "movePaymentFacts");
|
|
37604
37608
|
|
|
37605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
37606
37610
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
37607
37611
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
37608
37612
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -37617,7 +37621,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
37617
37621
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
37618
37622
|
}, "assertReadCompatible");
|
|
37619
37623
|
|
|
37620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
37621
37625
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
37622
37626
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
37623
37627
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -37663,7 +37667,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
37663
37667
|
});
|
|
37664
37668
|
}, "moveSuggestedLinks");
|
|
37665
37669
|
|
|
37666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
37667
37671
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
37668
37672
|
var TEST_PROVIDER = "chat";
|
|
37669
37673
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -37684,7 +37688,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
37684
37688
|
}
|
|
37685
37689
|
}, "purgeTestAccounts");
|
|
37686
37690
|
|
|
37687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
37688
37692
|
var BACKFILL_ON_OPEN = 5e3;
|
|
37689
37693
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
37690
37694
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -37749,13 +37753,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
37749
37753
|
}
|
|
37750
37754
|
}, "openStoreContext");
|
|
37751
37755
|
|
|
37752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
37753
37757
|
import { createHash as createHash17 } from "node:crypto";
|
|
37754
37758
|
|
|
37755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
37756
37760
|
import { createHash as createHash16 } from "node:crypto";
|
|
37757
37761
|
|
|
37758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
37759
37763
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
37760
37764
|
var ref = text4(2048);
|
|
37761
37765
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -37821,7 +37825,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
37821
37825
|
}))
|
|
37822
37826
|
});
|
|
37823
37827
|
|
|
37824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
37825
37829
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
37826
37830
|
var invalid7 = /* @__PURE__ */ __name((field4) => {
|
|
37827
37831
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -37954,7 +37958,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
37954
37958
|
return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
|
|
37955
37959
|
}, "projectAnnotationsFingerprint");
|
|
37956
37960
|
|
|
37957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
37958
37962
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
37959
37963
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
37960
37964
|
var targetSchema = strictObject({
|
|
@@ -38061,7 +38065,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
38061
38065
|
}, "planBoundProjectAnnotations");
|
|
38062
38066
|
var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
|
|
38063
38067
|
|
|
38064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
38065
38069
|
import { createHash as createHash18 } from "node:crypto";
|
|
38066
38070
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
38067
38071
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -38155,7 +38159,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
38155
38159
|
})).digest("hex");
|
|
38156
38160
|
}, "projectAnnotationSnapshotFingerprint");
|
|
38157
38161
|
|
|
38158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
38159
38163
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
38160
38164
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
38161
38165
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -38172,7 +38176,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
38172
38176
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
38173
38177
|
}, "projectAnnotationRequest");
|
|
38174
38178
|
|
|
38175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
38176
38180
|
var SnapshotBudget = class {
|
|
38177
38181
|
static {
|
|
38178
38182
|
__name(this, "SnapshotBudget");
|
|
@@ -38198,13 +38202,13 @@ var SnapshotBudget = class {
|
|
|
38198
38202
|
}
|
|
38199
38203
|
};
|
|
38200
38204
|
|
|
38201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
38202
38206
|
import { createHash as createHash20 } from "node:crypto";
|
|
38203
38207
|
|
|
38204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
38205
38209
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
38206
38210
|
|
|
38207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
38208
38212
|
import { createHash as createHash19 } from "node:crypto";
|
|
38209
38213
|
var invalid9 = /* @__PURE__ */ __name(() => {
|
|
38210
38214
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -38347,7 +38351,7 @@ var ProjectSnapshotSources = class {
|
|
|
38347
38351
|
}
|
|
38348
38352
|
};
|
|
38349
38353
|
|
|
38350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
38351
38355
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
38352
38356
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
38353
38357
|
}, "unsupported");
|
|
@@ -38518,7 +38522,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
38518
38522
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
38519
38523
|
}), "projectAnnotationSnapshot");
|
|
38520
38524
|
|
|
38521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
38522
38526
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
38523
38527
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
38524
38528
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -38580,7 +38584,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
38580
38584
|
};
|
|
38581
38585
|
}), "previewAnnotationSnapshot");
|
|
38582
38586
|
|
|
38583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
38584
38588
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
38585
38589
|
const mappings = { ...bindings };
|
|
38586
38590
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -38622,7 +38626,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
38622
38626
|
return mappings;
|
|
38623
38627
|
}, "restoreAnnotationRecords");
|
|
38624
38628
|
|
|
38625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
38626
38630
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
38627
38631
|
async preview(request) {
|
|
38628
38632
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -38652,7 +38656,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
38652
38656
|
}
|
|
38653
38657
|
}), "projectAnnotationStoreOver");
|
|
38654
38658
|
|
|
38655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
38656
38660
|
var PROJECTED = {
|
|
38657
38661
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
38658
38662
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -38992,7 +38996,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
38992
38996
|
};
|
|
38993
38997
|
}, "recordStoreOver");
|
|
38994
38998
|
|
|
38995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
38996
39000
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
38997
39001
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
38998
39002
|
let merged = { from: from2, to };
|
|
@@ -39005,7 +39009,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
39005
39009
|
}, "markRange");
|
|
39006
39010
|
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");
|
|
39007
39011
|
|
|
39008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
39009
39013
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
39010
39014
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
39011
39015
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -39026,7 +39030,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
39026
39030
|
database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(prefixOf2(account) + chatId, JSON.stringify({ ...saved, checkedAt: checkedAt ?? new Date(now2).toISOString() }), now2);
|
|
39027
39031
|
}, "setTaskAnalysisMark");
|
|
39028
39032
|
|
|
39029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
39030
39034
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
39031
39035
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
39032
39036
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -39036,7 +39040,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
39036
39040
|
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);
|
|
39037
39041
|
}, "setTaskRulesStop");
|
|
39038
39042
|
|
|
39039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
39040
39044
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39041
39045
|
const { database } = context;
|
|
39042
39046
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -39095,7 +39099,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39095
39099
|
};
|
|
39096
39100
|
}, "syncStoreOver");
|
|
39097
39101
|
|
|
39098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
39099
39103
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39100
39104
|
const { database } = context;
|
|
39101
39105
|
return {
|
|
@@ -39117,7 +39121,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39117
39121
|
};
|
|
39118
39122
|
}, "tagsStoreOver");
|
|
39119
39123
|
|
|
39120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
39121
39125
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
39122
39126
|
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
|
|
39123
39127
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -39244,7 +39248,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
39244
39248
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
39245
39249
|
}, "savePictureChunks");
|
|
39246
39250
|
|
|
39247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
39248
39252
|
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,
|
|
39249
39253
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
39250
39254
|
FROM messages m
|
|
@@ -39333,7 +39337,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
39333
39337
|
return plain2(best(found2));
|
|
39334
39338
|
}, "nearestMessages");
|
|
39335
39339
|
|
|
39336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
39337
39341
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
39338
39342
|
const { database } = context;
|
|
39339
39343
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -39591,7 +39595,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
39591
39595
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
39592
39596
|
}), "vectorsStoreOver");
|
|
39593
39597
|
|
|
39594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
39595
39599
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
39596
39600
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
39597
39601
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -39679,10 +39683,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
39679
39683
|
}
|
|
39680
39684
|
}, "lastBackup");
|
|
39681
39685
|
|
|
39682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
39683
39687
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
39684
39688
|
|
|
39685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
39686
39690
|
var COUNTED_TABLES = [
|
|
39687
39691
|
"accounts",
|
|
39688
39692
|
"chats",
|
|
@@ -39767,7 +39771,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
39767
39771
|
};
|
|
39768
39772
|
}, "storeContents");
|
|
39769
39773
|
|
|
39770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
39771
39775
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
39772
39776
|
const context = await openStoreContext(options);
|
|
39773
39777
|
try {
|