@wirecat/cli-memo 0.131.27 → 0.131.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-647KYOE7.js → all-profiles-HXT2KPB6.js} +5 -5
- package/dist/bundle/{anthropic-NOWJG7LX.js → anthropic-C6H35WZP.js} +3 -3
- package/dist/bundle/{app-server-4TSS6HOH.js → app-server-Y6JGICRB.js} +35 -35
- package/dist/bundle/auto-A2Y225YZ.js +86 -0
- package/dist/bundle/{bun-SWGUWWHN.js → bun-K5H33WQK.js} +2 -2
- package/dist/bundle/{bun-sqlite-KUF25XNM.js → bun-sqlite-2NGQT7HH.js} +2 -2
- package/dist/bundle/{chunk-SASHDBYJ.js → chunk-2O2RWKUT.js} +1 -1
- package/dist/bundle/{chunk-RXRKPXFI.js → chunk-2WGR73KL.js} +8 -8
- package/dist/bundle/{chunk-K2ZWI2KJ.js → chunk-46ACMQUU.js} +27 -27
- package/dist/bundle/{chunk-OGWZPUAJ.js → chunk-5FEJKSQJ.js} +3 -3
- package/dist/bundle/{chunk-3H63BAA7.js → chunk-5ZWRS2JY.js} +5 -5
- package/dist/bundle/{chunk-WYUAAPPV.js → chunk-65YDJ3Z4.js} +2 -2
- package/dist/bundle/{chunk-YEO3ZQ5M.js → chunk-6BS3FHTC.js} +5 -5
- package/dist/bundle/{chunk-QDXZCKBH.js → chunk-6IJ7XNK5.js} +245 -245
- package/dist/bundle/{chunk-GZ2HIVBB.js → chunk-6NGLATFQ.js} +4 -4
- package/dist/bundle/{chunk-KDIDLXLG.js → chunk-6YDPWVDH.js} +1 -1
- package/dist/bundle/{chunk-NBHAXVJA.js → chunk-7ACGYEGV.js} +4 -4
- package/dist/bundle/{chunk-X3JNTSNP.js → chunk-7OYQFT5N.js} +1 -1
- package/dist/bundle/{chunk-NA3MERUP.js → chunk-7PH33JE4.js} +2 -2
- package/dist/bundle/{chunk-7HXD23I5.js → chunk-BWQMZNDC.js} +4 -4
- package/dist/bundle/{chunk-NKS7MU3Z.js → chunk-DXCBZT4T.js} +12 -12
- package/dist/bundle/{chunk-ZQKHD3GK.js → chunk-ERRC42BB.js} +1 -1
- package/dist/bundle/{chunk-XPVDHJTX.js → chunk-ERZLVE54.js} +283 -283
- package/dist/bundle/{chunk-QALA4JZO.js → chunk-FBSY3DVN.js} +1 -1
- package/dist/bundle/{chunk-2HRV2SUN.js → chunk-FJXFU7NN.js} +2 -2
- package/dist/bundle/{chunk-Z3GKXASH.js → chunk-FUMGREBO.js} +3 -3
- package/dist/bundle/{chunk-D7UEU66D.js → chunk-G62DN6QY.js} +2 -2
- package/dist/bundle/{chunk-UM5T2ENH.js → chunk-GVYOICNB.js} +5 -5
- package/dist/bundle/{chunk-WQ7A4VOG.js → chunk-H3NMOWPB.js} +51 -51
- package/dist/bundle/{chunk-FVBTAXCS.js → chunk-H6JNEHUC.js} +1 -1
- package/dist/bundle/{chunk-LAWSSPON.js → chunk-HAC3CWPB.js} +7 -7
- package/dist/bundle/{chunk-4XVTVA5Z.js → chunk-HBKYPSX3.js} +11 -11
- package/dist/bundle/{chunk-RO44PMBO.js → chunk-HVD2CTPH.js} +1 -1
- package/dist/bundle/{chunk-INCTLKHJ.js → chunk-IIM3FF5L.js} +6 -6
- package/dist/bundle/{chunk-6PO6LLZN.js → chunk-IQEEOXBV.js} +43 -43
- package/dist/bundle/{chunk-JRQUM4HZ.js → chunk-KCAELZXB.js} +1 -1
- package/dist/bundle/{chunk-AVYITNNS.js → chunk-KCQPEY6C.js} +4 -4
- package/dist/bundle/{chunk-3RTD2FXB.js → chunk-KFSZAV5L.js} +4 -4
- package/dist/bundle/{chunk-T3T4LL6R.js → chunk-KIJ7UJHD.js} +150 -150
- package/dist/bundle/{chunk-IVYNJMBN.js → chunk-KJEJOWJY.js} +2 -2
- package/dist/bundle/{chunk-277JL5QO.js → chunk-M3VBB37S.js} +2 -2
- package/dist/bundle/{chunk-ALCQJ2D6.js → chunk-MJF6VGW4.js} +256 -256
- package/dist/bundle/{chunk-VUEIWP2Z.js → chunk-MPNDEGMC.js} +7 -7
- package/dist/bundle/{chunk-XA3WEWYH.js → chunk-NIEWG4OY.js} +1 -1
- package/dist/bundle/{chunk-ZAEDCOUL.js → chunk-P5FETWRW.js} +1 -1
- package/dist/bundle/{chunk-PNMBUOAD.js → chunk-PUQYCAEP.js} +9 -9
- package/dist/bundle/{chunk-4GTDOWNP.js → chunk-Q63L5WS2.js} +3 -3
- package/dist/bundle/{chunk-4PTLLGIF.js → chunk-QVFB2MVU.js} +2 -2
- package/dist/bundle/{chunk-AQXN7AWH.js → chunk-R7XIZMM5.js} +1 -1
- package/dist/bundle/{chunk-JLYGDM36.js → chunk-RGPCN63U.js} +4 -4
- package/dist/bundle/{chunk-JQTPWAJM.js → chunk-S67KFN67.js} +1 -1
- package/dist/bundle/{chunk-2KFZT2MK.js → chunk-SQ6OFUHW.js} +20 -20
- package/dist/bundle/{chunk-T5FFN7L2.js → chunk-SZUYOU6U.js} +20 -20
- package/dist/bundle/{chunk-L57US5PR.js → chunk-UZUNSDGN.js} +1 -1
- package/dist/bundle/{chunk-YMER5NPZ.js → chunk-W7T2JSKY.js} +1 -1
- package/dist/bundle/{chunk-FTT5JNPN.js → chunk-WFQPCCM2.js} +1 -1
- package/dist/bundle/{chunk-RCGI5XSZ.js → chunk-WI7KTIMF.js} +7 -7
- package/dist/bundle/{chunk-NANQLIUH.js → chunk-XHHSQ4FN.js} +13 -13
- package/dist/bundle/{chunk-OQA75YT2.js → chunk-XNV2JTJ4.js} +1 -1
- package/dist/bundle/{chunk-7PP2OPRA.js → chunk-XUHVJGIL.js} +10 -10
- package/dist/bundle/{chunk-7ABYQEQY.js → chunk-YLVSSQJP.js} +5 -5
- package/dist/bundle/{chunk-VTNQI5LA.js → chunk-YZKHWANJ.js} +4 -4
- package/dist/bundle/{chunk-QTKL3E4W.js → chunk-ZW44VJNY.js} +3 -3
- package/dist/bundle/{command-contract-YC6GN4LE.js → command-contract-AFUDV7JM.js} +11 -11
- package/dist/bundle/{decode-JK4V5ELR.js → decode-P5SEK56D.js} +2 -2
- package/dist/bundle/{echarts-6ATB3IFR.js → echarts-CLHJYMDK.js} +2 -2
- package/dist/bundle/{embed-ILN7JTHX.js → embed-X6H74LGP.js} +3 -3
- package/dist/bundle/{embedder-AJTL34NF.js → embedder-H5SWOSEL.js} +6 -6
- package/dist/bundle/{entry-L4LM4I5G.js → entry-66SEZMKI.js} +4 -4
- package/dist/bundle/failure-PNTFMNKK.js +66 -0
- package/dist/bundle/{first-run-TRHR3KN2.js → first-run-S7EW77F6.js} +5 -5
- package/dist/bundle/{first-screen-NMXBV2SG.js → first-screen-6GA36WQT.js} +12 -12
- package/dist/bundle/{instructions-UMFMBSXN.js → instructions-IUUSY6DO.js} +1 -1
- package/dist/bundle/{mcp-I6LDWXA6.js → mcp-7SDVTKCE.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-MFZOUE2C.js → node-6T5LUBAE.js} +2 -2
- package/dist/bundle/{node-sqlite-DRRK6O26.js → node-sqlite-ZTDWPRJU.js} +3 -3
- package/dist/bundle/{oauth-FZNU6S32.js → oauth-G4TCULLQ.js} +4 -4
- package/dist/bundle/{open-GZGUXW5N.js → open-DRJ24C7U.js} +2 -2
- package/dist/bundle/{openai-KGGTVDRL.js → openai-3DSR7Z4Z.js} +7 -7
- package/dist/bundle/{process-VDZ2QZQD.js → process-IPM3OJDN.js} +1 -1
- package/dist/bundle/{program-VEY6JNB2.js → program-6E2SWPCU.js} +103 -79
- package/dist/bundle/{prompt-TQ6WRJWG.js → prompt-XKR6EQAT.js} +2 -2
- package/dist/bundle/{recognize-ZVSPBMV2.js → recognize-GZXAXTEH.js} +1 -1
- package/dist/bundle/{remote-XYRV66J3.js → remote-Y5ML6KR4.js} +4 -4
- package/dist/bundle/{rerank-C3OK7FEJ.js → rerank-FNNXUTMN.js} +4 -4
- package/dist/bundle/{serve-DUV2FO4T.js → serve-BGU5ERNX.js} +6 -6
- package/dist/bundle/{server-E5YAVN5F.js → server-3L4FHYFM.js} +50 -50
- package/dist/bundle/server-5F3GJPG3.js +48 -0
- package/dist/bundle/server-JX5TWAAW.js +61 -0
- package/dist/bundle/{state-NLAZ7OYD.js → state-WAMVO34N.js} +3 -3
- package/dist/bundle/{store-Y4BME65D.js → store-PVY4UTTR.js} +9 -9
- package/dist/bundle/store-maintenance-command-RGZJWNE2.js +48 -0
- package/dist/bundle/update-VJLZT6ER.js +69 -0
- package/dist/contract-overrides/skill.d.ts.map +1 -1
- package/dist/contract-overrides/skill.js +1 -1
- package/dist/contract-overrides/skill.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +2 -0
- package/dist/examples.js.map +1 -1
- package/dist/facts/command.d.ts.map +1 -1
- package/dist/facts/command.js +1 -0
- package/dist/facts/command.js.map +1 -1
- package/dist/finance/command.d.ts.map +1 -1
- package/dist/finance/command.js +13 -0
- package/dist/finance/command.js.map +1 -1
- package/dist/program.d.ts +2 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +15 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/cli-memo/SKILL.md +28 -204
- package/skills/cli-memo/topics/mail.md +31 -0
- package/skills/cli-memo/topics/mcp.md +13 -0
- package/skills/cli-memo/topics/meetings.md +36 -0
- package/skills/cli-memo/topics/money.md +14 -0
- package/skills/cli-memo/topics/projects.md +44 -0
- package/skills/cli-memo/topics/proposals.md +19 -0
- package/skills/cli-memo/topics/search.md +60 -0
- package/skills/cli-memo/topics/vocabulary.md +8 -0
- package/dist/bundle/auto-SMKS3KCQ.js +0 -86
- package/dist/bundle/failure-D2CAKLEH.js +0 -66
- package/dist/bundle/server-5NDIMIA5.js +0 -48
- package/dist/bundle/server-VZ7LFLS6.js +0 -61
- package/dist/bundle/store-maintenance-command-BOITCFBL.js +0 -48
- package/dist/bundle/update-ZUYIFRFD.js +0 -69
- /package/dist/bundle/{chunk-DDUSDQJ6.js → chunk-XGTIABPY.js} +0 -0
|
@@ -71,11 +71,11 @@ import {
|
|
|
71
71
|
validateQuery,
|
|
72
72
|
walkQuery,
|
|
73
73
|
zonedMoment
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-H3NMOWPB.js";
|
|
75
75
|
import {
|
|
76
76
|
holdsCredential,
|
|
77
77
|
secretNamed
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-NIEWG4OY.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_STEMMERS,
|
|
81
81
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -88,26 +88,26 @@ import {
|
|
|
88
88
|
fold,
|
|
89
89
|
normalize,
|
|
90
90
|
parseStemmers
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-HAC3CWPB.js";
|
|
92
92
|
import {
|
|
93
93
|
DEFAULT_TASK_CATEGORIES,
|
|
94
94
|
sharedConfigPath,
|
|
95
95
|
storedTaskCategories,
|
|
96
96
|
taskCategoriesReader
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-7ACGYEGV.js";
|
|
98
98
|
import {
|
|
99
99
|
refuseOwnerStoreInTests,
|
|
100
100
|
storePath
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-R7XIZMM5.js";
|
|
102
102
|
import {
|
|
103
103
|
quietSqliteWarning,
|
|
104
104
|
storeCapable
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-6BS3FHTC.js";
|
|
106
106
|
import {
|
|
107
107
|
PRAGMAS,
|
|
108
108
|
TIME_LIMIT_FUNCTION,
|
|
109
109
|
TimeLimitReached
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-H6JNEHUC.js";
|
|
111
111
|
import {
|
|
112
112
|
array,
|
|
113
113
|
boolean,
|
|
@@ -157,12 +157,12 @@ import {
|
|
|
157
157
|
sql,
|
|
158
158
|
sqliteTable,
|
|
159
159
|
text
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-ERRC42BB.js";
|
|
161
161
|
import {
|
|
162
162
|
__name
|
|
163
163
|
} from "./chunk-ZVVMGPBJ.js";
|
|
164
164
|
|
|
165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
166
166
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
167
167
|
const methods = whole;
|
|
168
168
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -290,7 +290,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
290
290
|
};
|
|
291
291
|
}, "bindAccount");
|
|
292
292
|
|
|
293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
294
294
|
var SCHEME = "msg:";
|
|
295
295
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
296
296
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -304,7 +304,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
304
304
|
return { provider, account, chat: chat2, message: message2 };
|
|
305
305
|
}, "parseLocator");
|
|
306
306
|
|
|
307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
308
308
|
var SIMPLE_REFERENCES = [
|
|
309
309
|
"note",
|
|
310
310
|
"document",
|
|
@@ -451,7 +451,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
451
451
|
return match !== null && byPrefix.has(match[1]);
|
|
452
452
|
}, "looksLikeReference");
|
|
453
453
|
|
|
454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
455
455
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
456
456
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
457
457
|
var PROVIDERS = [
|
|
@@ -567,7 +567,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
567
567
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
568
568
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
569
569
|
|
|
570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
571
571
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
572
572
|
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");
|
|
573
573
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -590,7 +590,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
590
590
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
591
591
|
}, "sourceOf");
|
|
592
592
|
|
|
593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
594
594
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
595
595
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
596
596
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -777,7 +777,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
|
|
|
777
777
|
return { accounts: [...chosen.values()], skipped };
|
|
778
778
|
}, "fitting");
|
|
779
779
|
|
|
780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
781
781
|
var IndexBuilderOn = class {
|
|
782
782
|
static {
|
|
783
783
|
__name(this, "IndexBuilderOn");
|
|
@@ -972,7 +972,7 @@ function alias(table, alias2) {
|
|
|
972
972
|
}
|
|
973
973
|
__name(alias, "alias");
|
|
974
974
|
|
|
975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
976
976
|
var ENTITY_TABLES = {
|
|
977
977
|
account: "accounts",
|
|
978
978
|
attachment: "attachments",
|
|
@@ -1014,7 +1014,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
1014
1014
|
return { table, pointer, type, count, known: known2 };
|
|
1015
1015
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
1016
1016
|
|
|
1017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
1018
1018
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
1019
1019
|
id: integer("id").primaryKey(),
|
|
1020
1020
|
name: text("name").notNull().unique(),
|
|
@@ -1023,7 +1023,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
1023
1023
|
updatedAt: integer("updated_at").notNull()
|
|
1024
1024
|
});
|
|
1025
1025
|
|
|
1026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
1027
1027
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
1028
1028
|
sourceKey: text("source_key").notNull(),
|
|
1029
1029
|
collection: text("collection").notNull(),
|
|
@@ -1033,13 +1033,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
1033
1033
|
createdAt: integer("created_at").notNull()
|
|
1034
1034
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
1037
1037
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
1038
1038
|
id: integer("id").notNull(),
|
|
1039
1039
|
indexableType: text("indexable_type").notNull()
|
|
1040
1040
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
1041
1041
|
|
|
1042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
1043
1043
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
1044
1044
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
1045
1045
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -1065,7 +1065,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
1065
1065
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
1066
1066
|
]);
|
|
1067
1067
|
|
|
1068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
1069
1069
|
var accounts = sqliteTable("accounts", {
|
|
1070
1070
|
id: integer("id").primaryKey(),
|
|
1071
1071
|
provider: text("provider").notNull(),
|
|
@@ -2689,7 +2689,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
2689
2689
|
at: integer("at").notNull()
|
|
2690
2690
|
});
|
|
2691
2691
|
|
|
2692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
2693
2693
|
var ARMS = [
|
|
2694
2694
|
[
|
|
2695
2695
|
"message",
|
|
@@ -2816,7 +2816,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
2816
2816
|
return recomputed;
|
|
2817
2817
|
}, "drainInvolvementQueue");
|
|
2818
2818
|
|
|
2819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
2820
2820
|
import { domainToUnicode } from "node:url";
|
|
2821
2821
|
|
|
2822
2822
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -12838,7 +12838,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
12838
12838
|
}, "oa");
|
|
12839
12839
|
var na = { parse: O, get: aa, isValid: oa };
|
|
12840
12840
|
|
|
12841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
12842
12842
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
12843
12843
|
var ID = /^[\w-]{10,}$/;
|
|
12844
12844
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -12879,7 +12879,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
12879
12879
|
return { url, documentId: googleDocumentId(url) };
|
|
12880
12880
|
}), "googleDocumentLinks");
|
|
12881
12881
|
|
|
12882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
12883
12883
|
var PHONE_PLANS = [
|
|
12884
12884
|
{
|
|
12885
12885
|
country: "us",
|
|
@@ -13259,7 +13259,7 @@ var PHONE_PLANS = [
|
|
|
13259
13259
|
}
|
|
13260
13260
|
];
|
|
13261
13261
|
|
|
13262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
13263
13263
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
13264
13264
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
13265
13265
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -13300,7 +13300,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
13300
13300
|
return void 0;
|
|
13301
13301
|
}, "nationalPhone");
|
|
13302
13302
|
|
|
13303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
13304
13304
|
var BEFORE = [
|
|
13305
13305
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
13306
13306
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -13560,7 +13560,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
13560
13560
|
return found2.sort((a, b) => a.start - b.start);
|
|
13561
13561
|
}, "findPlaces");
|
|
13562
13562
|
|
|
13563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
13564
13564
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
13565
13565
|
var MENTION_VERSIONS = {
|
|
13566
13566
|
phone: 1,
|
|
@@ -13750,7 +13750,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
13750
13750
|
};
|
|
13751
13751
|
}, "typedPhone");
|
|
13752
13752
|
|
|
13753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
13754
13754
|
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";
|
|
13755
13755
|
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";
|
|
13756
13756
|
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";
|
|
@@ -13758,7 +13758,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
13758
13758
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
13759
13759
|
var NAME_WORDS = WORDS.split(" ");
|
|
13760
13760
|
|
|
13761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
13762
13762
|
var LATIN_TO_CYRILLIC = {
|
|
13763
13763
|
shch: "\u0449",
|
|
13764
13764
|
sch: "\u0449",
|
|
@@ -13966,7 +13966,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
13966
13966
|
return found2;
|
|
13967
13967
|
}, "findUnknownNames");
|
|
13968
13968
|
|
|
13969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
13970
13970
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
13971
13971
|
"webpage",
|
|
13972
13972
|
"share",
|
|
@@ -14006,7 +14006,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
14006
14006
|
});
|
|
14007
14007
|
}, "matchDownloads");
|
|
14008
14008
|
|
|
14009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
14010
14010
|
var QUERY_VERSION = 1;
|
|
14011
14011
|
var QUERY_LIMITS2 = {
|
|
14012
14012
|
...QUERY_LIMITS,
|
|
@@ -14042,7 +14042,7 @@ function exhausted(budget) {
|
|
|
14042
14042
|
}
|
|
14043
14043
|
__name(exhausted, "exhausted");
|
|
14044
14044
|
|
|
14045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
14046
14046
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
14047
14047
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
14048
14048
|
kind: "char",
|
|
@@ -14442,7 +14442,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
14442
14442
|
return out;
|
|
14443
14443
|
}, "foldRegex");
|
|
14444
14444
|
|
|
14445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
14446
14446
|
var PRESET_VERSION = 1;
|
|
14447
14447
|
var PRESETS = {
|
|
14448
14448
|
password: {
|
|
@@ -14496,7 +14496,7 @@ var PRESETS = {
|
|
|
14496
14496
|
}
|
|
14497
14497
|
};
|
|
14498
14498
|
|
|
14499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
14500
14500
|
var FIELD_VERSION = 2;
|
|
14501
14501
|
var UNITS = {
|
|
14502
14502
|
"": 1,
|
|
@@ -14957,12 +14957,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
14957
14957
|
return validateFields(parsed3.output);
|
|
14958
14958
|
}, "validateAst");
|
|
14959
14959
|
|
|
14960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
14961
14961
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
14962
14962
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
14963
14963
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
14964
14964
|
|
|
14965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
14966
14966
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
14967
14967
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
14968
14968
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -14986,7 +14986,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
14986
14986
|
};
|
|
14987
14987
|
}, "linkMatch");
|
|
14988
14988
|
|
|
14989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
14990
14990
|
var SETTING = "phoneCountries";
|
|
14991
14991
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
14992
14992
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -15017,7 +15017,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
15017
15017
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
15018
15018
|
}, "valueMatch");
|
|
15019
15019
|
|
|
15020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
15021
15021
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
15022
15022
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
15023
15023
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -15045,7 +15045,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
15045
15045
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
15046
15046
|
}, "vocabularySimilarity");
|
|
15047
15047
|
|
|
15048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
15049
15049
|
import { createHash } from "node:crypto";
|
|
15050
15050
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
15051
15051
|
try {
|
|
@@ -15111,7 +15111,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
|
|
|
15111
15111
|
});
|
|
15112
15112
|
}, "guardTagCreation");
|
|
15113
15113
|
|
|
15114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
15115
15115
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
15116
15116
|
throw new CliError("validation_error", message2);
|
|
15117
15117
|
}, "invalid");
|
|
@@ -15188,7 +15188,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
15188
15188
|
};
|
|
15189
15189
|
}, "createTagRedirectIndex");
|
|
15190
15190
|
|
|
15191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
15192
15192
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
15193
15193
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
15194
15194
|
if (!row2)
|
|
@@ -15216,7 +15216,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
15216
15216
|
return snapshot2;
|
|
15217
15217
|
}, "tagRedirectSnapshot");
|
|
15218
15218
|
|
|
15219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
15220
15220
|
import { createHash as createHash2 } from "node:crypto";
|
|
15221
15221
|
var TASK_KEY_PREFIXES = {
|
|
15222
15222
|
question: "Q",
|
|
@@ -15244,7 +15244,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15244
15244
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
15245
15245
|
}, "taskAccountOf");
|
|
15246
15246
|
|
|
15247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
15248
15248
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
15249
15249
|
var REFERABLE = {
|
|
15250
15250
|
note: { tombstone: true },
|
|
@@ -15408,7 +15408,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
15408
15408
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
15409
15409
|
}, "taskIdOf");
|
|
15410
15410
|
|
|
15411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
15412
15412
|
var toMs = /* @__PURE__ */ __name((iso13) => {
|
|
15413
15413
|
if (iso13 === null || iso13 === void 0)
|
|
15414
15414
|
return null;
|
|
@@ -15422,7 +15422,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
15422
15422
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
15423
15423
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
15424
15424
|
|
|
15425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
15426
15426
|
var TAG_KINDS = ["tag", "topic"];
|
|
15427
15427
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
15428
15428
|
var TAG_TYPE = {
|
|
@@ -15625,7 +15625,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
15625
15625
|
return result;
|
|
15626
15626
|
}, "tagsOf");
|
|
15627
15627
|
|
|
15628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
15629
15629
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
15630
15630
|
var SPEECH = speech("att");
|
|
15631
15631
|
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");
|
|
@@ -15989,7 +15989,7 @@ var FIELD_COMPILERS = {
|
|
|
15989
15989
|
subject
|
|
15990
15990
|
};
|
|
15991
15991
|
|
|
15992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
15993
15993
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
15994
15994
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
15995
15995
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -16005,7 +16005,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
16005
16005
|
};
|
|
16006
16006
|
}, "placeOf");
|
|
16007
16007
|
|
|
16008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
16009
16009
|
var DRAIN_ON_WRITE = 500;
|
|
16010
16010
|
var METHOD = "rules";
|
|
16011
16011
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -16168,7 +16168,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
16168
16168
|
return queued.length;
|
|
16169
16169
|
}, "drainMentions");
|
|
16170
16170
|
|
|
16171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
16172
16172
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
16173
16173
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
16174
16174
|
if (!exists2)
|
|
@@ -16176,7 +16176,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
16176
16176
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
16177
16177
|
}, "indexRow");
|
|
16178
16178
|
|
|
16179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
16180
16180
|
var INDEX = "message_stems";
|
|
16181
16181
|
var SETTING2 = "searchStemmers";
|
|
16182
16182
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -16298,7 +16298,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
16298
16298
|
};
|
|
16299
16299
|
}, "stemmerCache");
|
|
16300
16300
|
|
|
16301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
16302
16302
|
var SQLITE_BUSY = 5;
|
|
16303
16303
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
16304
16304
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -16393,7 +16393,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
16393
16393
|
}
|
|
16394
16394
|
}, "read");
|
|
16395
16395
|
|
|
16396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
16397
16397
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
16398
16398
|
coalesce(CASE k.chunkable_type
|
|
16399
16399
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -16535,7 +16535,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
16535
16535
|
}, "dropUnusedVectors");
|
|
16536
16536
|
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");
|
|
16537
16537
|
|
|
16538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
16539
16539
|
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({
|
|
16540
16540
|
target: [accounts.provider, accounts.externalId],
|
|
16541
16541
|
set: {
|
|
@@ -16644,7 +16644,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
16644
16644
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
16645
16645
|
}, "dropOrphanPeople");
|
|
16646
16646
|
|
|
16647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
16648
16648
|
var FOLDED = [
|
|
16649
16649
|
{ table: "tasks", column: "title" },
|
|
16650
16650
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -16681,7 +16681,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
16681
16681
|
return filled2;
|
|
16682
16682
|
}, "fillFolded");
|
|
16683
16683
|
|
|
16684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
16685
16685
|
var HISTORY_KEY = "$history";
|
|
16686
16686
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
16687
16687
|
if (typeof text6 !== "string")
|
|
@@ -16757,7 +16757,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
16757
16757
|
return rest;
|
|
16758
16758
|
}, "withoutHistory");
|
|
16759
16759
|
|
|
16760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
16761
16761
|
import { createHash as createHash3 } from "node:crypto";
|
|
16762
16762
|
var CHUNK_CHARS = 1200;
|
|
16763
16763
|
var CHUNK_OVERLAP = 150;
|
|
@@ -16862,7 +16862,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
16862
16862
|
return chunks2;
|
|
16863
16863
|
}, "cutChunks");
|
|
16864
16864
|
|
|
16865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
16866
16866
|
var DAY = 864e5;
|
|
16867
16867
|
var CURRENCY = [
|
|
16868
16868
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -16988,7 +16988,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
16988
16988
|
return best?.day ?? null;
|
|
16989
16989
|
}, "dueDayOf");
|
|
16990
16990
|
|
|
16991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
16992
16992
|
var DAY2 = 864e5;
|
|
16993
16993
|
var STOP_WORDS = new Set([
|
|
16994
16994
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -17143,7 +17143,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
17143
17143
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
17144
17144
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
17145
17145
|
|
|
17146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
17147
17147
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
17148
17148
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
17149
17149
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -17414,7 +17414,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
17414
17414
|
};
|
|
17415
17415
|
}, "readiness");
|
|
17416
17416
|
|
|
17417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
17418
17418
|
var DOCUMENT_PICTURE = "document_picture";
|
|
17419
17419
|
var SCAN_PAGE2 = 5e3;
|
|
17420
17420
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -17477,7 +17477,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
17477
17477
|
}, "nearestPictures")
|
|
17478
17478
|
}), "documentPicturesOver");
|
|
17479
17479
|
|
|
17480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
17481
17481
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
17482
17482
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
17483
17483
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -17542,7 +17542,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
17542
17542
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
17543
17543
|
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");
|
|
17544
17544
|
|
|
17545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
17546
17546
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
17547
17547
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
17548
17548
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -17632,7 +17632,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
17632
17632
|
});
|
|
17633
17633
|
}, "linkMeeting");
|
|
17634
17634
|
|
|
17635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
17636
17636
|
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), ''))";
|
|
17637
17637
|
var UNSEARCHED_EVENT_TYPES = [
|
|
17638
17638
|
"working-location",
|
|
@@ -17862,7 +17862,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
17862
17862
|
return true;
|
|
17863
17863
|
}, "resetNoteIndex");
|
|
17864
17864
|
|
|
17865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
17866
17866
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
17867
17867
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
17868
17868
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -17881,7 +17881,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
17881
17881
|
}
|
|
17882
17882
|
}, "resolvePersonLinks");
|
|
17883
17883
|
|
|
17884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
17885
17885
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
17886
17886
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
17887
17887
|
find: orm.select({
|
|
@@ -18106,7 +18106,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
18106
18106
|
}, "meetingIdentityPk");
|
|
18107
18107
|
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");
|
|
18108
18108
|
|
|
18109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
18110
18110
|
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");
|
|
18111
18111
|
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");
|
|
18112
18112
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -18386,7 +18386,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
18386
18386
|
}
|
|
18387
18387
|
}, "replaceAutoTags");
|
|
18388
18388
|
|
|
18389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
18390
18390
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
18391
18391
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
18392
18392
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -18405,7 +18405,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
18405
18405
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
18406
18406
|
}, "counterFreshness");
|
|
18407
18407
|
|
|
18408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
18409
18409
|
import { createHash as createHash4 } from "node:crypto";
|
|
18410
18410
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
18411
18411
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -18503,7 +18503,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
18503
18503
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
18504
18504
|
}, "contextEvidenceRequest");
|
|
18505
18505
|
|
|
18506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
18507
18507
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
18508
18508
|
var ACTIVITY = `
|
|
18509
18509
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -18619,7 +18619,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
18619
18619
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
18620
18620
|
}), "mailActivity");
|
|
18621
18621
|
|
|
18622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
18623
18623
|
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");
|
|
18624
18624
|
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;
|
|
18625
18625
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -18760,7 +18760,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
18760
18760
|
return text6 || body2.trim();
|
|
18761
18761
|
}, "mailOwnText");
|
|
18762
18762
|
|
|
18763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
18764
18764
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
18765
18765
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
18766
18766
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -18870,7 +18870,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
18870
18870
|
return emails3 + threads;
|
|
18871
18871
|
}, "drainEmailIndex");
|
|
18872
18872
|
|
|
18873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
18874
18874
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
18875
18875
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
18876
18876
|
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,
|
|
@@ -18968,7 +18968,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
18968
18968
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
18969
18969
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
18970
18970
|
|
|
18971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
18972
18972
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
18973
18973
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
18974
18974
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -19018,7 +19018,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
19018
19018
|
return threads.length;
|
|
19019
19019
|
}, "markEmailsRestored");
|
|
19020
19020
|
|
|
19021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
19022
19022
|
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");
|
|
19023
19023
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
19024
19024
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19085,7 +19085,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
19085
19085
|
}
|
|
19086
19086
|
}), "mailRulesOver");
|
|
19087
19087
|
|
|
19088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
19089
19089
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
19090
19090
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
19091
19091
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -19093,7 +19093,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
19093
19093
|
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);
|
|
19094
19094
|
}, "reviewLink");
|
|
19095
19095
|
|
|
19096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
19097
19097
|
function checkMeetingCancelled(signal) {
|
|
19098
19098
|
if (!signal?.aborted)
|
|
19099
19099
|
return;
|
|
@@ -19104,7 +19104,7 @@ function checkMeetingCancelled(signal) {
|
|
|
19104
19104
|
}
|
|
19105
19105
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
19106
19106
|
|
|
19107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
19108
19108
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
19109
19109
|
id: Number(row2.id),
|
|
19110
19110
|
accountId: Number(row2.account_id),
|
|
@@ -19154,7 +19154,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
19154
19154
|
createdAt: Number(row2.created_at)
|
|
19155
19155
|
}), "transcriptRowOf");
|
|
19156
19156
|
|
|
19157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
19158
19158
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
19159
19159
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
19160
19160
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -19321,7 +19321,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19321
19321
|
}
|
|
19322
19322
|
}), "meetingReadsOver");
|
|
19323
19323
|
|
|
19324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
19325
19325
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
19326
19326
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
19327
19327
|
const params = [input.accountId];
|
|
@@ -19364,7 +19364,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
19364
19364
|
return { clauses, params };
|
|
19365
19365
|
}, "meetingSelectionSql");
|
|
19366
19366
|
|
|
19367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
19368
19368
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
19369
19369
|
async meetingChatLines(input) {
|
|
19370
19370
|
checkMeetingCancelled(input.signal);
|
|
@@ -19392,7 +19392,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
19392
19392
|
}
|
|
19393
19393
|
}), "meetingChatLinesOver");
|
|
19394
19394
|
|
|
19395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
19396
19396
|
var MESSAGE_FIELDS = {
|
|
19397
19397
|
pk: messages.id,
|
|
19398
19398
|
nativeId: messages.externalId,
|
|
@@ -19563,7 +19563,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
19563
19563
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
19564
19564
|
}), "chatActivity");
|
|
19565
19565
|
|
|
19566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
19567
19567
|
var HIT_FIELDS = {
|
|
19568
19568
|
...MESSAGE_FIELDS,
|
|
19569
19569
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -19662,7 +19662,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
19662
19662
|
};
|
|
19663
19663
|
}, "directReplies");
|
|
19664
19664
|
|
|
19665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
19666
19666
|
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");
|
|
19667
19667
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
19668
19668
|
const found2 = identityRow(context, ref3);
|
|
@@ -19793,7 +19793,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
19793
19793
|
}, "mentioning");
|
|
19794
19794
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
19795
19795
|
|
|
19796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
19797
19797
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
19798
19798
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
19799
19799
|
}, "missing");
|
|
@@ -19915,7 +19915,7 @@ function meetingContextLinksOver(context) {
|
|
|
19915
19915
|
}
|
|
19916
19916
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
19917
19917
|
|
|
19918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
19919
19919
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
19920
19920
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
19921
19921
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -19944,7 +19944,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19944
19944
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
19945
19945
|
}, "indexedText");
|
|
19946
19946
|
|
|
19947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
19948
19948
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
19949
19949
|
var meetingCurrentIndexRows = `
|
|
19950
19950
|
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
|
|
@@ -19975,7 +19975,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
19975
19975
|
}, "invalidateMeetingStems");
|
|
19976
19976
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
19977
19977
|
|
|
19978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
19979
19979
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
19980
19980
|
return {
|
|
19981
19981
|
async indexSearch(original) {
|
|
@@ -20043,10 +20043,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
20043
20043
|
}
|
|
20044
20044
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
20045
20045
|
|
|
20046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
20047
20047
|
import { createHash as createHash5 } from "node:crypto";
|
|
20048
20048
|
|
|
20049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
20050
20050
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
20051
20051
|
const padded = ` ${term} `;
|
|
20052
20052
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -20055,7 +20055,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
20055
20055
|
return [...pieces];
|
|
20056
20056
|
}, "trigrams");
|
|
20057
20057
|
|
|
20058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
20059
20059
|
var SHORTEST_CORRECTION = 3;
|
|
20060
20060
|
var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
|
|
20061
20061
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -20102,7 +20102,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
20102
20102
|
return corrections;
|
|
20103
20103
|
}, "correctWords");
|
|
20104
20104
|
|
|
20105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
20106
20106
|
var SHORTEST_GARBLED = 4;
|
|
20107
20107
|
var MOST_WIDENED = 64;
|
|
20108
20108
|
var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -20194,7 +20194,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
20194
20194
|
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));
|
|
20195
20195
|
}, "widenWords");
|
|
20196
20196
|
|
|
20197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
20198
20198
|
import { readFileSync } from "node:fs";
|
|
20199
20199
|
var loaded;
|
|
20200
20200
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -20253,7 +20253,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
|
|
|
20253
20253
|
return false;
|
|
20254
20254
|
}, "knownRussianWord");
|
|
20255
20255
|
|
|
20256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
20257
20257
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
20258
20258
|
var MOST_WORDS = 128;
|
|
20259
20259
|
var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
|
|
@@ -20480,7 +20480,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
20480
20480
|
return check3(tree);
|
|
20481
20481
|
}, "matchMeetingText");
|
|
20482
20482
|
|
|
20483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
20484
20484
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
20485
20485
|
throw new CliError("validation_error", message2);
|
|
20486
20486
|
}, "fail");
|
|
@@ -20662,7 +20662,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
20662
20662
|
}
|
|
20663
20663
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
20664
20664
|
|
|
20665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
20666
20666
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20667
20667
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
20668
20668
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -20694,7 +20694,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20694
20694
|
}
|
|
20695
20695
|
}), "meetingLanguagesOver");
|
|
20696
20696
|
|
|
20697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
20698
20698
|
import { createHash as createHash6 } from "node:crypto";
|
|
20699
20699
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
20700
20700
|
if (value === void 0)
|
|
@@ -20784,7 +20784,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
20784
20784
|
}
|
|
20785
20785
|
}), "meetingParticipantSearchOver");
|
|
20786
20786
|
|
|
20787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
20788
20788
|
var preparationQueries = {
|
|
20789
20789
|
participants: {
|
|
20790
20790
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -20834,7 +20834,7 @@ var preparationQueries = {
|
|
|
20834
20834
|
}
|
|
20835
20835
|
};
|
|
20836
20836
|
|
|
20837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
20838
20838
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20839
20839
|
async preparationContext(original) {
|
|
20840
20840
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -20875,7 +20875,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20875
20875
|
}
|
|
20876
20876
|
}), "meetingPreparationContextOver");
|
|
20877
20877
|
|
|
20878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
20879
20879
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
20880
20880
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
20881
20881
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -20889,7 +20889,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
20889
20889
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
20890
20890
|
)`, "preparationSubjects");
|
|
20891
20891
|
|
|
20892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
20893
20893
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20894
20894
|
async preparationKnowledge(original) {
|
|
20895
20895
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20934,7 +20934,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
20934
20934
|
}
|
|
20935
20935
|
}), "meetingPreparationKnowledgeOver");
|
|
20936
20936
|
|
|
20937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
20938
20938
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20939
20939
|
async preparationNotes(original) {
|
|
20940
20940
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -20987,7 +20987,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
20987
20987
|
}
|
|
20988
20988
|
}), "meetingPreparationNotesOver");
|
|
20989
20989
|
|
|
20990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
20991
20991
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
20992
20992
|
async relatedHistory(original) {
|
|
20993
20993
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -21058,7 +21058,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21058
21058
|
}
|
|
21059
21059
|
}), "meetingRelatedHistoryOver");
|
|
21060
21060
|
|
|
21061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
21062
21062
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
21063
21063
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
21064
21064
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -21139,7 +21139,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21139
21139
|
}
|
|
21140
21140
|
}), "meetingReviewOver");
|
|
21141
21141
|
|
|
21142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
21143
21143
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
21144
21144
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
21145
21145
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -21193,7 +21193,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21193
21193
|
}
|
|
21194
21194
|
}), "meetingSeriesHistoryOver");
|
|
21195
21195
|
|
|
21196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
21197
21197
|
var MOST_ROWS = 5e5;
|
|
21198
21198
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
21199
21199
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -21262,7 +21262,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
21262
21262
|
}
|
|
21263
21263
|
}), "meetingStatsOver");
|
|
21264
21264
|
|
|
21265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
21266
21266
|
var CURSOR_KEY = "meetings";
|
|
21267
21267
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
21268
21268
|
id: Number(row2.id),
|
|
@@ -21831,7 +21831,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
21831
21831
|
};
|
|
21832
21832
|
}, "meetingStoreOver");
|
|
21833
21833
|
|
|
21834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
21835
21835
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
21836
21836
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
21837
21837
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -21857,7 +21857,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
21857
21857
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
21858
21858
|
}, "release");
|
|
21859
21859
|
|
|
21860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
21861
21861
|
var THREAD_COLUMNS = {
|
|
21862
21862
|
subject: {
|
|
21863
21863
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -21874,7 +21874,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
21874
21874
|
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);
|
|
21875
21875
|
}, "threadRows");
|
|
21876
21876
|
|
|
21877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
21878
21878
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
21879
21879
|
id: `email:${place.emailId}`,
|
|
21880
21880
|
chatId: place.threadExternalId,
|
|
@@ -22430,7 +22430,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
22430
22430
|
}
|
|
22431
22431
|
}), "mailStoreOver");
|
|
22432
22432
|
|
|
22433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
22434
22434
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
22435
22435
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
22436
22436
|
var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
|
|
@@ -22520,7 +22520,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
22520
22520
|
}, "knownWord");
|
|
22521
22521
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
22522
22522
|
|
|
22523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
22524
22524
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
22525
22525
|
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");
|
|
22526
22526
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -22606,7 +22606,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
22606
22606
|
return found2;
|
|
22607
22607
|
}, "spokenTranscripts");
|
|
22608
22608
|
|
|
22609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
22610
22610
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
22611
22611
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
22612
22612
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -22653,7 +22653,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
22653
22653
|
});
|
|
22654
22654
|
}, "placeHits");
|
|
22655
22655
|
|
|
22656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
22657
22657
|
var GROUPS = {
|
|
22658
22658
|
chat: {
|
|
22659
22659
|
key: "m.chat_id",
|
|
@@ -22675,7 +22675,7 @@ var GROUPS = {
|
|
|
22675
22675
|
}
|
|
22676
22676
|
};
|
|
22677
22677
|
|
|
22678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
22679
22679
|
var MESSAGES2 = {
|
|
22680
22680
|
rows: "messages",
|
|
22681
22681
|
threads: "chats",
|
|
@@ -23158,7 +23158,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
23158
23158
|
};
|
|
23159
23159
|
}, "runCompiled");
|
|
23160
23160
|
|
|
23161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
23162
23162
|
function invalidMetadata() {
|
|
23163
23163
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
23164
23164
|
}
|
|
@@ -23260,7 +23260,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
23260
23260
|
};
|
|
23261
23261
|
}), "counterTargets");
|
|
23262
23262
|
|
|
23263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
23264
23264
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
23265
23265
|
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,
|
|
23266
23266
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -23379,7 +23379,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
23379
23379
|
}));
|
|
23380
23380
|
}, "attachmentViews");
|
|
23381
23381
|
|
|
23382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
23383
23383
|
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");
|
|
23384
23384
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
23385
23385
|
const { orm, database, now: now2 } = context;
|
|
@@ -23417,7 +23417,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
23417
23417
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
23418
23418
|
}, "intoVoiceAttachment");
|
|
23419
23419
|
|
|
23420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
23421
23421
|
var FIELDS = [
|
|
23422
23422
|
"threadExternalId",
|
|
23423
23423
|
"senderIdentityId",
|
|
@@ -23734,7 +23734,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
23734
23734
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
23735
23735
|
}, "writeDerivedReactions");
|
|
23736
23736
|
|
|
23737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
23738
23738
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
23739
23739
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
23740
23740
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -23755,7 +23755,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
23755
23755
|
};
|
|
23756
23756
|
}, "keysOver");
|
|
23757
23757
|
|
|
23758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
23759
23759
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
23760
23760
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
23761
23761
|
if (!row2)
|
|
@@ -23790,7 +23790,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
23790
23790
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
23791
23791
|
}, "saveProfile");
|
|
23792
23792
|
|
|
23793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
23794
23794
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
23795
23795
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
23796
23796
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -23847,7 +23847,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
23847
23847
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
23848
23848
|
}, "proposedBySql");
|
|
23849
23849
|
|
|
23850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
23851
23851
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
23852
23852
|
const owner = ownerPerson(context.database).id;
|
|
23853
23853
|
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);
|
|
@@ -23868,7 +23868,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
23868
23868
|
return personOf(context, ref3);
|
|
23869
23869
|
}, "linkToOwner");
|
|
23870
23870
|
|
|
23871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
23872
23872
|
var PROVIDERS_SETTING = "providers";
|
|
23873
23873
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
23874
23874
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -23903,7 +23903,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
23903
23903
|
});
|
|
23904
23904
|
}, "registerProvider");
|
|
23905
23905
|
|
|
23906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
23907
23907
|
var DAY3 = 864e5;
|
|
23908
23908
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
23909
23909
|
var TEXT_LIMIT = 20;
|
|
@@ -24102,7 +24102,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
24102
24102
|
};
|
|
24103
24103
|
}, "taskSimilarityOver");
|
|
24104
24104
|
|
|
24105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
24106
24106
|
var SETTING3 = "taskCategories";
|
|
24107
24107
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
24108
24108
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -24121,7 +24121,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
24121
24121
|
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);
|
|
24122
24122
|
}, "saveTaskCategories");
|
|
24123
24123
|
|
|
24124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
24125
24125
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
24126
24126
|
var ALLOWED = "taskAgentClose";
|
|
24127
24127
|
var MIN = "taskAgentCloseMin";
|
|
@@ -24177,10 +24177,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
24177
24177
|
];
|
|
24178
24178
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
24179
24179
|
|
|
24180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
24181
24181
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
24182
24182
|
|
|
24183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
24184
24184
|
var TASK_CLOSE_KIND = "task_close";
|
|
24185
24185
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
24186
24186
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -24228,7 +24228,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
24228
24228
|
}, "assertMayDecide");
|
|
24229
24229
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
24230
24230
|
|
|
24231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
24232
24232
|
var CURRENCY_SCALES = {
|
|
24233
24233
|
AED: 2,
|
|
24234
24234
|
AMD: 2,
|
|
@@ -24313,7 +24313,7 @@ var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
|
24313
24313
|
}, "quantityOf");
|
|
24314
24314
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
24315
24315
|
|
|
24316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
24317
24317
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
24318
24318
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
24319
24319
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -24342,7 +24342,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
24342
24342
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
24343
24343
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
24344
24344
|
|
|
24345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
24346
24346
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
24347
24347
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
24348
24348
|
var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
|
|
@@ -24394,7 +24394,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
24394
24394
|
return `${WORDS2[summary.kind]} ${named2}${notes3 === "" ? "" : ` (${notes3})`}`;
|
|
24395
24395
|
}, "refLabel");
|
|
24396
24396
|
|
|
24397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
24398
24398
|
var EXCERPT_CHARS = 280;
|
|
24399
24399
|
var TITLE_CHARS = 120;
|
|
24400
24400
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -24747,7 +24747,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
24747
24747
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
24748
24748
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
|
|
24749
24749
|
|
|
24750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
24751
24751
|
var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
|
|
24752
24752
|
ref: ref3,
|
|
24753
24753
|
kind: read2.kind,
|
|
@@ -24783,7 +24783,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
24783
24783
|
});
|
|
24784
24784
|
}, "evidenceSourcesOf");
|
|
24785
24785
|
|
|
24786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
24787
24787
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
24788
24788
|
var MAX_TEXT_CHARS = 2e6;
|
|
24789
24789
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -24809,7 +24809,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
24809
24809
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
24810
24810
|
}, "pdfPreviewLimits");
|
|
24811
24811
|
|
|
24812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
24813
24813
|
import { randomBytes } from "node:crypto";
|
|
24814
24814
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
24815
24815
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -24822,7 +24822,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
24822
24822
|
return time3 + random;
|
|
24823
24823
|
}, "ulid");
|
|
24824
24824
|
|
|
24825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
24826
24826
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
24827
24827
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
24828
24828
|
if (!meta && !sections?.length)
|
|
@@ -24843,7 +24843,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
24843
24843
|
return typeof language === "string" && language !== "" ? language : null;
|
|
24844
24844
|
}, "languageOf");
|
|
24845
24845
|
|
|
24846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
24847
24847
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
24848
24848
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
24849
24849
|
if (isObject(value))
|
|
@@ -25086,7 +25086,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
25086
25086
|
};
|
|
25087
25087
|
}, "filesStoreOver");
|
|
25088
25088
|
|
|
25089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
25090
25090
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
25091
25091
|
entity: "document",
|
|
25092
25092
|
backend: "sql",
|
|
@@ -25132,7 +25132,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
25132
25132
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
25133
25133
|
}, "importedDocumentWhere");
|
|
25134
25134
|
|
|
25135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
25136
25136
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
25137
25137
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
25138
25138
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -25658,7 +25658,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25658
25658
|
};
|
|
25659
25659
|
}, "notesStoreOver");
|
|
25660
25660
|
|
|
25661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
25662
25662
|
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";
|
|
25663
25663
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
25664
25664
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -25880,7 +25880,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
25880
25880
|
};
|
|
25881
25881
|
}, "memoriesStoreOver");
|
|
25882
25882
|
|
|
25883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
25884
25884
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
25885
25885
|
var KEY = "taskFirstPassPerChat";
|
|
25886
25886
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -25900,7 +25900,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
25900
25900
|
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);
|
|
25901
25901
|
}, "saveFirstPassPerChat");
|
|
25902
25902
|
|
|
25903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
25904
25904
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
25905
25905
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
25906
25906
|
name,
|
|
@@ -26123,7 +26123,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
26123
26123
|
return root === void 0 ? void 0 : { ...query, root };
|
|
26124
26124
|
}, "withoutField");
|
|
26125
26125
|
|
|
26126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
26127
26127
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
26128
26128
|
if (row2.author_type == null)
|
|
26129
26129
|
return null;
|
|
@@ -26151,7 +26151,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
26151
26151
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
26152
26152
|
}, "addComment");
|
|
26153
26153
|
|
|
26154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
26155
26155
|
var TASK_RELATION_KINDS = [
|
|
26156
26156
|
"blocked-by",
|
|
26157
26157
|
"follow-up-of",
|
|
@@ -26281,7 +26281,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
26281
26281
|
};
|
|
26282
26282
|
}, "taskRelationsStoreOver");
|
|
26283
26283
|
|
|
26284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
26285
26285
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
26286
26286
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
26287
26287
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
|
|
@@ -26801,7 +26801,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
26801
26801
|
};
|
|
26802
26802
|
}, "workTasksOver");
|
|
26803
26803
|
|
|
26804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
26805
26805
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
26806
26806
|
const { database, now: now2 } = context;
|
|
26807
26807
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -26850,7 +26850,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
26850
26850
|
};
|
|
26851
26851
|
}, "taskCloseOver");
|
|
26852
26852
|
|
|
26853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
26854
26854
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
26855
26855
|
const { database, now: now2 } = context;
|
|
26856
26856
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -27068,7 +27068,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
27068
27068
|
};
|
|
27069
27069
|
}, "taskPairsOver");
|
|
27070
27070
|
|
|
27071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
27072
27072
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
27073
27073
|
var TASK_STATS_SQL = {
|
|
27074
27074
|
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"),
|
|
@@ -27107,7 +27107,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
27107
27107
|
}, "statNames")
|
|
27108
27108
|
}), "taskStatsOver");
|
|
27109
27109
|
|
|
27110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
27111
27111
|
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";
|
|
27112
27112
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
27113
27113
|
const key2 = inboxKey(account);
|
|
@@ -27314,7 +27314,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
27314
27314
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
27315
27315
|
}, "oneOf");
|
|
27316
27316
|
|
|
27317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
27318
27318
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
27319
27319
|
const { database } = context;
|
|
27320
27320
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -27359,7 +27359,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
27359
27359
|
};
|
|
27360
27360
|
}, "accountsStoreOver");
|
|
27361
27361
|
|
|
27362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
27363
27363
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
27364
27364
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
27365
27365
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -27383,7 +27383,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
27383
27383
|
})), "keepDownloads");
|
|
27384
27384
|
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");
|
|
27385
27385
|
|
|
27386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
27387
27387
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
27388
27388
|
const { database } = context;
|
|
27389
27389
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -27440,7 +27440,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
27440
27440
|
}, "keepAttachmentText")
|
|
27441
27441
|
}), "attachmentsStoreOver");
|
|
27442
27442
|
|
|
27443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
27444
27444
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
27445
27445
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
27446
27446
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -27620,7 +27620,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
27620
27620
|
return done;
|
|
27621
27621
|
}, "rekeyChats");
|
|
27622
27622
|
|
|
27623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
27624
27624
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
27625
27625
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
27626
27626
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -27678,7 +27678,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
27678
27678
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
27679
27679
|
}, "chatCoverage");
|
|
27680
27680
|
|
|
27681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
27682
27682
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
27683
27683
|
const { database } = context;
|
|
27684
27684
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -27813,7 +27813,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
27813
27813
|
};
|
|
27814
27814
|
}, "chatsStoreOver");
|
|
27815
27815
|
|
|
27816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
27817
27817
|
import { createHash as createHash7 } from "node:crypto";
|
|
27818
27818
|
var BATCH_CONTEXT = 50;
|
|
27819
27819
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -27951,7 +27951,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
27951
27951
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
27952
27952
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
27953
27953
|
|
|
27954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
27955
27955
|
import { setTimeout } from "node:timers/promises";
|
|
27956
27956
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
27957
27957
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -28263,7 +28263,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
28263
28263
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
28264
28264
|
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");
|
|
28265
28265
|
|
|
28266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
28267
28267
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
28268
28268
|
const { database } = context;
|
|
28269
28269
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -28370,7 +28370,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
28370
28370
|
};
|
|
28371
28371
|
}, "conversationsStoreOver");
|
|
28372
28372
|
|
|
28373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
28374
28374
|
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";
|
|
28375
28375
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
28376
28376
|
const { database } = context;
|
|
@@ -28395,7 +28395,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28395
28395
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
28396
28396
|
}), "countersStoreOver");
|
|
28397
28397
|
|
|
28398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
28399
28399
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
28400
28400
|
var MENTION_QUERY = defineQuery({
|
|
28401
28401
|
entity: "mention",
|
|
@@ -28611,7 +28611,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
28611
28611
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
28612
28612
|
}, "listPlaces");
|
|
28613
28613
|
|
|
28614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
28615
28615
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
28616
28616
|
const { database } = context;
|
|
28617
28617
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -28646,7 +28646,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28646
28646
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
28647
28647
|
}), "mentionsStoreOver");
|
|
28648
28648
|
|
|
28649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
28650
28650
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
28651
28651
|
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");
|
|
28652
28652
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -28661,7 +28661,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
28661
28661
|
}));
|
|
28662
28662
|
}, "documentLinkMessages");
|
|
28663
28663
|
|
|
28664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
28665
28665
|
var stemmerFor = stemmerCache();
|
|
28666
28666
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
28667
28667
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -28705,7 +28705,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
28705
28705
|
});
|
|
28706
28706
|
}, "laterSharingRare");
|
|
28707
28707
|
|
|
28708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
28709
28709
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
28710
28710
|
const { database } = context;
|
|
28711
28711
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -28840,7 +28840,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
28840
28840
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
28841
28841
|
}), "messagesStoreOver");
|
|
28842
28842
|
|
|
28843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
28844
28844
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
28845
28845
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
28846
28846
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -28897,7 +28897,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
28897
28897
|
});
|
|
28898
28898
|
}, "personPreparation");
|
|
28899
28899
|
|
|
28900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
28901
28901
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
28902
28902
|
const id2 = Number(uid);
|
|
28903
28903
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -28905,7 +28905,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
28905
28905
|
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)));
|
|
28906
28906
|
}, "personSeenInAccounts");
|
|
28907
28907
|
|
|
28908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
28909
28909
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
28910
28910
|
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);
|
|
28911
28911
|
if (!row2)
|
|
@@ -28971,7 +28971,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
28971
28971
|
return { id: id2, personId, removed: true };
|
|
28972
28972
|
}, "removeNote");
|
|
28973
28973
|
|
|
28974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
28975
28975
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
28976
28976
|
const { database } = context;
|
|
28977
28977
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -29056,13 +29056,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
29056
29056
|
};
|
|
29057
29057
|
}, "peopleStoreOver");
|
|
29058
29058
|
|
|
29059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
29060
29060
|
import { createHash as createHash9 } from "node:crypto";
|
|
29061
29061
|
|
|
29062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
29063
29063
|
import { createHash as createHash8 } from "node:crypto";
|
|
29064
29064
|
|
|
29065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
29066
29066
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
29067
29067
|
var AUTHOR_MEASURES = [
|
|
29068
29068
|
"messages",
|
|
@@ -29202,7 +29202,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
29202
29202
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
29203
29203
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
29204
29204
|
|
|
29205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
29206
29206
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
29207
29207
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
29208
29208
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -29424,7 +29424,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
29424
29424
|
};
|
|
29425
29425
|
}, "rankReplyGraph");
|
|
29426
29426
|
|
|
29427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
29428
29428
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
29429
29429
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
29430
29430
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -29598,7 +29598,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
29598
29598
|
return { items, evidence, summary, graph: graph.quality };
|
|
29599
29599
|
}, "calculateAdminStatistics");
|
|
29600
29600
|
|
|
29601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
29602
29602
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
29603
29603
|
const dates = [];
|
|
29604
29604
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -29620,7 +29620,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
29620
29620
|
return dates[0].node.resolution.date;
|
|
29621
29621
|
}, "rankingContextRange");
|
|
29622
29622
|
|
|
29623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
29624
29624
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
29625
29625
|
let counts;
|
|
29626
29626
|
try {
|
|
@@ -29915,7 +29915,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
29915
29915
|
});
|
|
29916
29916
|
}, "rankQuery");
|
|
29917
29917
|
|
|
29918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
29919
29919
|
function fail4(message2, reason = "query.too-large") {
|
|
29920
29920
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
29921
29921
|
}
|
|
@@ -30092,7 +30092,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
30092
30092
|
return result;
|
|
30093
30093
|
}), "adminStatisticsQuery");
|
|
30094
30094
|
|
|
30095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
30096
30096
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
30097
30097
|
if (!execution.accounts.length)
|
|
30098
30098
|
return { conversations: [], chats: [] };
|
|
@@ -30110,7 +30110,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
30110
30110
|
return { conversations: conversations2, chats: chats2 };
|
|
30111
30111
|
}, "conversationEligibility");
|
|
30112
30112
|
|
|
30113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
30114
30114
|
import { createHash as createHash10 } from "node:crypto";
|
|
30115
30115
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
30116
30116
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -30260,7 +30260,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
30260
30260
|
return result;
|
|
30261
30261
|
}, "rankingEvidence");
|
|
30262
30262
|
|
|
30263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
30264
30264
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
30265
30265
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
30266
30266
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -30354,7 +30354,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
30354
30354
|
});
|
|
30355
30355
|
}, "waitingChats");
|
|
30356
30356
|
|
|
30357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
30358
30358
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
30359
30359
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
30360
30360
|
if (execution.corpus === "mail")
|
|
@@ -30375,7 +30375,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
30375
30375
|
};
|
|
30376
30376
|
}, "queriesStoreOver");
|
|
30377
30377
|
|
|
30378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
30379
30379
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
30380
30380
|
const { database, now: now2 } = context;
|
|
30381
30381
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -30414,10 +30414,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
30414
30414
|
}));
|
|
30415
30415
|
}, "chatEventsOf");
|
|
30416
30416
|
|
|
30417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
30418
30418
|
import { createHash as createHash11 } from "node:crypto";
|
|
30419
30419
|
|
|
30420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
30421
30421
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
30422
30422
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
30423
30423
|
timeZone: zone,
|
|
@@ -30437,7 +30437,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
|
|
|
30437
30437
|
return date3.toISOString().slice(0, 10);
|
|
30438
30438
|
}, "weekKey");
|
|
30439
30439
|
|
|
30440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
30441
30441
|
var RETENTION_TOLERANCE = 864e5;
|
|
30442
30442
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
30443
30443
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -30491,7 +30491,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
30491
30491
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
30492
30492
|
}, "retentionCohorts");
|
|
30493
30493
|
|
|
30494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
30495
30495
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
30496
30496
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
30497
30497
|
validateRetentionOptions(options);
|
|
@@ -30622,7 +30622,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
30622
30622
|
};
|
|
30623
30623
|
}, "retentionQuery");
|
|
30624
30624
|
|
|
30625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
30626
30626
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
30627
30627
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
30628
30628
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -30753,7 +30753,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
30753
30753
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
30754
30754
|
})), "trackedChats");
|
|
30755
30755
|
|
|
30756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
30757
30757
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
30758
30758
|
const { database } = context;
|
|
30759
30759
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -30809,7 +30809,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
30809
30809
|
};
|
|
30810
30810
|
}, "rosterStoreOver");
|
|
30811
30811
|
|
|
30812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
30813
30813
|
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");
|
|
30814
30814
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
30815
30815
|
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 ?`);
|
|
@@ -30833,7 +30833,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
30833
30833
|
}
|
|
30834
30834
|
}, "backfillNormalized");
|
|
30835
30835
|
|
|
30836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
30837
30837
|
var INDEX2 = "message_words";
|
|
30838
30838
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
30839
30839
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -30960,7 +30960,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
30960
30960
|
});
|
|
30961
30961
|
}, "resetSearchIndex");
|
|
30962
30962
|
|
|
30963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
30964
30964
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
30965
30965
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
30966
30966
|
const before2 = stemsState(database);
|
|
@@ -31055,7 +31055,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
31055
31055
|
return resetStems(database, { now: now2 });
|
|
31056
31056
|
}, "followDefaultStemmers");
|
|
31057
31057
|
|
|
31058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
31059
31059
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
31060
31060
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
31061
31061
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -31077,7 +31077,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
31077
31077
|
});
|
|
31078
31078
|
}, "termCandidates");
|
|
31079
31079
|
|
|
31080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
31081
31081
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
31082
31082
|
const { database } = context;
|
|
31083
31083
|
const stemmerFor2 = stemmerCache();
|
|
@@ -31099,7 +31099,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31099
31099
|
};
|
|
31100
31100
|
}, "searchIndexStoreOver");
|
|
31101
31101
|
|
|
31102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
31103
31103
|
var HISTORY_KEPT = 1e3;
|
|
31104
31104
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
31105
31105
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -31168,7 +31168,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
31168
31168
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
31169
31169
|
}, "clearHistory");
|
|
31170
31170
|
|
|
31171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
31172
31172
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
31173
31173
|
const { database } = context;
|
|
31174
31174
|
return {
|
|
@@ -31192,7 +31192,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31192
31192
|
};
|
|
31193
31193
|
}, "searchesStoreOver");
|
|
31194
31194
|
|
|
31195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
31196
31196
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
31197
31197
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
31198
31198
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -31235,7 +31235,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
31235
31235
|
};
|
|
31236
31236
|
}, "agentActionsStoreOver");
|
|
31237
31237
|
|
|
31238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
31239
31239
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
31240
31240
|
}) => {
|
|
31241
31241
|
const { database, now: now2 } = context;
|
|
@@ -31294,7 +31294,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
31294
31294
|
};
|
|
31295
31295
|
}, "botUpdateStoreOver");
|
|
31296
31296
|
|
|
31297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
31298
31298
|
var DAY4 = 864e5;
|
|
31299
31299
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
31300
31300
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -31403,7 +31403,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
31403
31403
|
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);
|
|
31404
31404
|
}, "listEvents");
|
|
31405
31405
|
|
|
31406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
31407
31407
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
31408
31408
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
31409
31409
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -31458,7 +31458,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
31458
31458
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
31459
31459
|
}, "forgetCalendarRows");
|
|
31460
31460
|
|
|
31461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
31462
31462
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
31463
31463
|
id: Number(row2.id),
|
|
31464
31464
|
accountId: Number(row2.account_id),
|
|
@@ -32045,7 +32045,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
32045
32045
|
};
|
|
32046
32046
|
}, "eventStoreOver");
|
|
32047
32047
|
|
|
32048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
32049
32049
|
var CATALOG_QUERY = defineQuery({
|
|
32050
32050
|
entity: "document",
|
|
32051
32051
|
backend: "sql",
|
|
@@ -32287,7 +32287,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
32287
32287
|
};
|
|
32288
32288
|
}, "catalogStoreOver");
|
|
32289
32289
|
|
|
32290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
32291
32291
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
32292
32292
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
32293
32293
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -32300,7 +32300,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
32300
32300
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
32301
32301
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
32302
32302
|
|
|
32303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
32304
32304
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
32305
32305
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
32306
32306
|
signal?.throwIfAborted();
|
|
@@ -32399,7 +32399,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
32399
32399
|
});
|
|
32400
32400
|
}, "readMeetingContextEvidence");
|
|
32401
32401
|
|
|
32402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
32403
32403
|
var corpora = {
|
|
32404
32404
|
message: {
|
|
32405
32405
|
table: "messages",
|
|
@@ -32638,7 +32638,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
32638
32638
|
}
|
|
32639
32639
|
}), "contextRecordsOver");
|
|
32640
32640
|
|
|
32641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
32642
32642
|
var NOTE_FIELDS = [
|
|
32643
32643
|
"text",
|
|
32644
32644
|
"exact",
|
|
@@ -33068,7 +33068,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
33068
33068
|
};
|
|
33069
33069
|
}, "noteSearchOver");
|
|
33070
33070
|
|
|
33071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
33072
33072
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
33073
33073
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
33074
33074
|
var EVENT_CORPUS = {
|
|
@@ -33200,7 +33200,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
33200
33200
|
};
|
|
33201
33201
|
}, "eventSearchOver");
|
|
33202
33202
|
|
|
33203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
33204
33204
|
var refuse2 = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
33205
33205
|
throw new CliError(code, message2, { reason });
|
|
33206
33206
|
}, "refuse");
|
|
@@ -33614,8 +33614,8 @@ var financeOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
|
33614
33614
|
const row2 = rowOf2(payment, "payment");
|
|
33615
33615
|
const ref3 = `payment:${row2.id}`;
|
|
33616
33616
|
mayAllocate(row2, by);
|
|
33617
|
-
if (row2.review
|
|
33618
|
-
refuse2(`${ref3} is ${row2.deleted_at != null ? "deleted" :
|
|
33617
|
+
if (row2.review === "rejected" || row2.deleted_at != null)
|
|
33618
|
+
refuse2(`${ref3} is ${row2.deleted_at != null ? "deleted" : "rejected"}; only a proposed or confirmed payment's allocations are taken back`, "finance.unallocate");
|
|
33619
33619
|
const target = rowOf2(invoice, "invoice");
|
|
33620
33620
|
write(database, () => {
|
|
33621
33621
|
const gone = database.prepare("DELETE FROM payment_allocations WHERE payment_id = ? AND invoice_id = ?").run(Number(row2.id), Number(target.id));
|
|
@@ -33656,7 +33656,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33656
33656
|
};
|
|
33657
33657
|
}, "financeStoreOver");
|
|
33658
33658
|
|
|
33659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
33660
33660
|
var refuse3 = /* @__PURE__ */ __name((message2, reason) => {
|
|
33661
33661
|
throw new CliError("validation_error", message2, { reason });
|
|
33662
33662
|
}, "refuse");
|
|
@@ -33734,7 +33734,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
33734
33734
|
};
|
|
33735
33735
|
}, "paymentEntriesOver");
|
|
33736
33736
|
|
|
33737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
33738
33738
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
33739
33739
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
33740
33740
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -33760,7 +33760,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
33760
33760
|
return valid;
|
|
33761
33761
|
}, "validateEvidenceFindings");
|
|
33762
33762
|
|
|
33763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
33764
33764
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
33765
33765
|
try {
|
|
33766
33766
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -33772,7 +33772,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
33772
33772
|
}
|
|
33773
33773
|
}, "calendarMoment");
|
|
33774
33774
|
|
|
33775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
33776
33776
|
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";
|
|
33777
33777
|
var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
33778
33778
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -33898,22 +33898,22 @@ var factOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
|
33898
33898
|
database.prepare("UPDATE facts SET status = 'reversed', updated_at = ? WHERE id = ?").run(now2(), Number(row2.id));
|
|
33899
33899
|
return factOf(rowOf2(reference2));
|
|
33900
33900
|
}, "reverse"),
|
|
33901
|
-
|
|
33901
|
+
revoke: /* @__PURE__ */ __name((reference2, by, reason) => {
|
|
33902
33902
|
const row2 = rowOf2(reference2);
|
|
33903
33903
|
const ref3 = `fact:${row2.id}`;
|
|
33904
33904
|
assertMayWithdraw({ id: ref3, proposedBy: { type: "unknown" }, proposed: false }, by);
|
|
33905
33905
|
write(database, () => {
|
|
33906
33906
|
const current = database.prepare("SELECT * FROM facts WHERE id = ?").get(Number(row2.id));
|
|
33907
33907
|
if (current.status !== "accepted")
|
|
33908
|
-
throw new CliError("validation_error", `only an accepted fact can be
|
|
33908
|
+
throw new CliError("validation_error", `only an accepted fact can be revoked; ${ref3} is ${String(current.status)}`, { reason: "fact.not-accepted" });
|
|
33909
33909
|
if (current.author_type === "person")
|
|
33910
33910
|
throw new CliError("validation_error", `${ref3} is the owner's own fact, never proposed; correct it with a fact that supersedes it, or remove it`, { reason: "fact.owner-written" });
|
|
33911
33911
|
if (current.supersedes_id != null)
|
|
33912
|
-
throw new CliError("validation_error", `${ref3} corrects fact:${current.supersedes_id}, which stopped holding when ${ref3} was accepted; remove it or correct it with another fact instead`, { reason: "fact.
|
|
33912
|
+
throw new CliError("validation_error", `${ref3} corrects fact:${current.supersedes_id}, which stopped holding when ${ref3} was accepted; remove it or correct it with another fact instead`, { reason: "fact.revoke-correction" });
|
|
33913
33913
|
const at = now2();
|
|
33914
33914
|
const { decision, history, ...metadata3 } = current.metadata == null ? {} : JSON.parse(String(current.metadata));
|
|
33915
33915
|
const step = {
|
|
33916
|
-
step: "
|
|
33916
|
+
step: "revoked",
|
|
33917
33917
|
by: "owner",
|
|
33918
33918
|
at: iso9(at),
|
|
33919
33919
|
confirmedBy: { type: current.confirmed_by_type, id: String(current.confirmed_by_id) },
|
|
@@ -33923,7 +33923,7 @@ var factOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
|
33923
33923
|
database.prepare("UPDATE facts SET status = 'proposed', confirmed_by_type = NULL, confirmed_by_id = NULL, metadata = ?, updated_at = ? WHERE id = ?").run(JSON.stringify({ ...metadata3, history: [...history ?? [], step] }), at, Number(row2.id));
|
|
33924
33924
|
});
|
|
33925
33925
|
return factOf(rowOf2(reference2));
|
|
33926
|
-
}, "
|
|
33926
|
+
}, "revoke"),
|
|
33927
33927
|
reject: /* @__PURE__ */ __name((reference2, by, reason) => {
|
|
33928
33928
|
const row2 = rowOf2(reference2);
|
|
33929
33929
|
decided(row2, by);
|
|
@@ -33974,14 +33974,14 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
33974
33974
|
list: /* @__PURE__ */ __name(async (options) => operations.list(options), "list"),
|
|
33975
33975
|
accept: /* @__PURE__ */ __name(async (reference2, by, reason) => operations.accept(reference2, by, reason), "accept"),
|
|
33976
33976
|
reverse: /* @__PURE__ */ __name(async (reference2, by) => operations.reverse(reference2, by), "reverse"),
|
|
33977
|
-
|
|
33977
|
+
revoke: /* @__PURE__ */ __name(async (reference2, by, reason) => operations.revoke(reference2, by, reason), "revoke"),
|
|
33978
33978
|
reject: /* @__PURE__ */ __name(async (reference2, by, reason) => operations.reject(reference2, by, reason), "reject"),
|
|
33979
33979
|
remove: /* @__PURE__ */ __name(async (reference2, by) => operations.remove(reference2, by), "remove"),
|
|
33980
33980
|
sources: /* @__PURE__ */ __name(async (reference2) => operations.sources(reference2), "sources")
|
|
33981
33981
|
};
|
|
33982
33982
|
}, "factsStoreOver");
|
|
33983
33983
|
|
|
33984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
33985
33985
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
33986
33986
|
throw new CliError("validation_error", message2);
|
|
33987
33987
|
}, "invalid");
|
|
@@ -34083,7 +34083,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
34083
34083
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
34084
34084
|
}, "findingsCoreOver");
|
|
34085
34085
|
|
|
34086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
34087
34087
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
34088
34088
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
34089
34089
|
var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -34248,7 +34248,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34248
34248
|
};
|
|
34249
34249
|
}, "proposedActionsStoreOver");
|
|
34250
34250
|
|
|
34251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
34252
34252
|
var stale = /* @__PURE__ */ __name(() => {
|
|
34253
34253
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
34254
34254
|
reason: "evidence-findings.stale"
|
|
@@ -34429,7 +34429,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
34429
34429
|
};
|
|
34430
34430
|
}, "evidenceFindingsStoreOver");
|
|
34431
34431
|
|
|
34432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
34433
34433
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
34434
34434
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
34435
34435
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -34482,7 +34482,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
34482
34482
|
}, "forPerson")
|
|
34483
34483
|
}), "involvementStoreOver");
|
|
34484
34484
|
|
|
34485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
34486
34486
|
import { createHash as createHash12 } from "node:crypto";
|
|
34487
34487
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
34488
34488
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -34568,7 +34568,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
34568
34568
|
};
|
|
34569
34569
|
}, "meetingProjectsStoreOver");
|
|
34570
34570
|
|
|
34571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
34572
34572
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
34573
34573
|
id: link3.id,
|
|
34574
34574
|
from: link3.from,
|
|
@@ -34794,16 +34794,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
34794
34794
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
34795
34795
|
}, "decidedOrigin");
|
|
34796
34796
|
|
|
34797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
34798
34798
|
import { createHash as createHash15 } from "node:crypto";
|
|
34799
34799
|
|
|
34800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34801
34801
|
import { createHash as createHash14 } from "node:crypto";
|
|
34802
34802
|
|
|
34803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34804
34804
|
import { createHash as createHash13 } from "node:crypto";
|
|
34805
34805
|
|
|
34806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
34807
34807
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
34808
34808
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
34809
34809
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -34854,7 +34854,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
34854
34854
|
return input;
|
|
34855
34855
|
}, "consolidationApplyInput");
|
|
34856
34856
|
|
|
34857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
34858
34858
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
34859
34859
|
id: String(row2.id),
|
|
34860
34860
|
sourceId: String(row2.source_id),
|
|
@@ -34929,7 +34929,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
34929
34929
|
}, { beforeCommit: check3 });
|
|
34930
34930
|
}, "applyTagConsolidation");
|
|
34931
34931
|
|
|
34932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
34933
34933
|
var selections = [
|
|
34934
34934
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
34935
34935
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -35073,7 +35073,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
35073
35073
|
};
|
|
35074
35074
|
}, "previewRows");
|
|
35075
35075
|
|
|
35076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
35077
35077
|
var kinds = ["project", "tag", "topic"];
|
|
35078
35078
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
35079
35079
|
if (signal?.aborted)
|
|
@@ -35337,7 +35337,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35337
35337
|
};
|
|
35338
35338
|
}, "vocabularyStoreOver");
|
|
35339
35339
|
|
|
35340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
35341
35341
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
35342
35342
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
35343
35343
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -35894,7 +35894,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
35894
35894
|
return key2.padEnd(3, "X");
|
|
35895
35895
|
}, "projectKey");
|
|
35896
35896
|
|
|
35897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
35898
35898
|
var DAY5 = 864e5;
|
|
35899
35899
|
var SETTING4 = "logs_pruned_at";
|
|
35900
35900
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -35921,7 +35921,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
35921
35921
|
};
|
|
35922
35922
|
}, "logPruner");
|
|
35923
35923
|
|
|
35924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
35925
35925
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
35926
35926
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
35927
35927
|
var invalid6 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -36047,7 +36047,7 @@ var validateMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
36047
36047
|
}, "validateMailFindings");
|
|
36048
36048
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
36049
36049
|
|
|
36050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
36051
36051
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
36052
36052
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
36053
36053
|
reason: "mail-findings.stale"
|
|
@@ -36341,7 +36341,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
36341
36341
|
};
|
|
36342
36342
|
}, "mailFindingsStoreOver");
|
|
36343
36343
|
|
|
36344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
36345
36345
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
36346
36346
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
36347
36347
|
reason: "meeting-findings.stale"
|
|
@@ -36509,7 +36509,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36509
36509
|
};
|
|
36510
36510
|
}, "meetingFindingsStoreOver");
|
|
36511
36511
|
|
|
36512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
36513
36513
|
var RANK_BATCH = 512;
|
|
36514
36514
|
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";
|
|
36515
36515
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -36780,7 +36780,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
36780
36780
|
}
|
|
36781
36781
|
}), "meetingVectorsOver");
|
|
36782
36782
|
|
|
36783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
36784
36784
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
36785
36785
|
var TEXTS = {
|
|
36786
36786
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -36881,11 +36881,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
36881
36881
|
};
|
|
36882
36882
|
}, "sourceMentionStoreOver");
|
|
36883
36883
|
|
|
36884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
36885
36885
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
36886
36886
|
import { dirname } from "node:path";
|
|
36887
36887
|
|
|
36888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
36889
36889
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
36890
36890
|
var CLIENTS_SETTING = "clients";
|
|
36891
36891
|
var coreVersion = (() => {
|
|
@@ -36943,7 +36943,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
36943
36943
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
36944
36944
|
}, "refusalAdvice");
|
|
36945
36945
|
|
|
36946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
36947
36947
|
var GENERATED = [
|
|
36948
36948
|
{
|
|
36949
36949
|
"name": "20261010184427_initial",
|
|
@@ -37916,7 +37916,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
37916
37916
|
}
|
|
37917
37917
|
];
|
|
37918
37918
|
|
|
37919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
37920
37920
|
var MANIFEST = [
|
|
37921
37921
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
37922
37922
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -38005,7 +38005,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
38005
38005
|
return migrations;
|
|
38006
38006
|
}, "generatedMigrations");
|
|
38007
38007
|
|
|
38008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
38009
38009
|
var MIGRATIONS = generatedMigrations();
|
|
38010
38010
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
38011
38011
|
version INTEGER PRIMARY KEY,
|
|
@@ -38058,7 +38058,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
38058
38058
|
}
|
|
38059
38059
|
}, "migrate");
|
|
38060
38060
|
|
|
38061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
38062
38062
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
38063
38063
|
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 ?");
|
|
38064
38064
|
if (pending.get(0, 1) === void 0)
|
|
@@ -38080,7 +38080,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
38080
38080
|
}
|
|
38081
38081
|
}, "fillJoinKeys");
|
|
38082
38082
|
|
|
38083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
38084
38084
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
38085
38085
|
refuseOwnerStoreInTests(path);
|
|
38086
38086
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -38094,8 +38094,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
38094
38094
|
}, "openSqlite");
|
|
38095
38095
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
38096
38096
|
quietSqliteWarning();
|
|
38097
|
-
const { drizzle } = await import("./node-
|
|
38098
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
38097
|
+
const { drizzle } = await import("./node-6T5LUBAE.js");
|
|
38098
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-ZTDWPRJU.js");
|
|
38099
38099
|
const client = await nodeClient(path, { readOnly });
|
|
38100
38100
|
try {
|
|
38101
38101
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -38105,8 +38105,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
38105
38105
|
}
|
|
38106
38106
|
}, "openUnderNode");
|
|
38107
38107
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
38108
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
38109
|
-
const { drizzle } = await import("./bun-
|
|
38108
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-2NGQT7HH.js");
|
|
38109
|
+
const { drizzle } = await import("./bun-K5H33WQK.js");
|
|
38110
38110
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
38111
38111
|
try {
|
|
38112
38112
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -38116,7 +38116,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
38116
38116
|
}
|
|
38117
38117
|
}, "openUnderBun");
|
|
38118
38118
|
|
|
38119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
38120
38120
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
38121
38121
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
38122
38122
|
try {
|
|
@@ -38184,7 +38184,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
38184
38184
|
});
|
|
38185
38185
|
}, "movePaymentFacts");
|
|
38186
38186
|
|
|
38187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
38188
38188
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
38189
38189
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
38190
38190
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -38199,7 +38199,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
38199
38199
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
38200
38200
|
}, "assertReadCompatible");
|
|
38201
38201
|
|
|
38202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
38203
38203
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
38204
38204
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
38205
38205
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -38245,7 +38245,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
38245
38245
|
});
|
|
38246
38246
|
}, "moveSuggestedLinks");
|
|
38247
38247
|
|
|
38248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
38249
38249
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
38250
38250
|
var TEST_PROVIDER = "chat";
|
|
38251
38251
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -38266,7 +38266,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
38266
38266
|
}
|
|
38267
38267
|
}, "purgeTestAccounts");
|
|
38268
38268
|
|
|
38269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
38270
38270
|
var BACKFILL_ON_OPEN = 5e3;
|
|
38271
38271
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
38272
38272
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -38331,10 +38331,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
38331
38331
|
}
|
|
38332
38332
|
}, "openStoreContext");
|
|
38333
38333
|
|
|
38334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
38335
38335
|
import { createHash as createHash16 } from "node:crypto";
|
|
38336
38336
|
|
|
38337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
38338
38338
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
38339
38339
|
var ref = text4(2048);
|
|
38340
38340
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -38400,7 +38400,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
38400
38400
|
}))
|
|
38401
38401
|
});
|
|
38402
38402
|
|
|
38403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
38404
38404
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
38405
38405
|
var invalid9 = /* @__PURE__ */ __name((field4) => {
|
|
38406
38406
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -38504,7 +38504,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
38504
38504
|
invalid9("external.unused");
|
|
38505
38505
|
}, "validateProjectAnnotationsGraph");
|
|
38506
38506
|
|
|
38507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
38508
38508
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
38509
38509
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
38510
38510
|
var targetSchema = strictObject({
|
|
@@ -38610,7 +38610,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
38610
38610
|
};
|
|
38611
38611
|
}, "planBoundProjectAnnotations");
|
|
38612
38612
|
|
|
38613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
38614
38614
|
import { createHash as createHash17 } from "node:crypto";
|
|
38615
38615
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
38616
38616
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -38704,7 +38704,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
38704
38704
|
})).digest("hex");
|
|
38705
38705
|
}, "projectAnnotationSnapshotFingerprint");
|
|
38706
38706
|
|
|
38707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
38708
38708
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
38709
38709
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
38710
38710
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -38721,7 +38721,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
38721
38721
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
38722
38722
|
}, "projectAnnotationRequest");
|
|
38723
38723
|
|
|
38724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
38725
38725
|
var SnapshotBudget = class {
|
|
38726
38726
|
static {
|
|
38727
38727
|
__name(this, "SnapshotBudget");
|
|
@@ -38747,13 +38747,13 @@ var SnapshotBudget = class {
|
|
|
38747
38747
|
}
|
|
38748
38748
|
};
|
|
38749
38749
|
|
|
38750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
38751
38751
|
import { createHash as createHash19 } from "node:crypto";
|
|
38752
38752
|
|
|
38753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
38754
38754
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
38755
38755
|
|
|
38756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
38757
38757
|
import { createHash as createHash18 } from "node:crypto";
|
|
38758
38758
|
var invalid11 = /* @__PURE__ */ __name(() => {
|
|
38759
38759
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -38896,7 +38896,7 @@ var ProjectSnapshotSources = class {
|
|
|
38896
38896
|
}
|
|
38897
38897
|
};
|
|
38898
38898
|
|
|
38899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
38900
38900
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
38901
38901
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
38902
38902
|
}, "unsupported");
|
|
@@ -39067,7 +39067,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
39067
39067
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
39068
39068
|
}), "projectAnnotationSnapshot");
|
|
39069
39069
|
|
|
39070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
39071
39071
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
39072
39072
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
39073
39073
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -39129,7 +39129,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
39129
39129
|
};
|
|
39130
39130
|
}), "previewAnnotationSnapshot");
|
|
39131
39131
|
|
|
39132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
39133
39133
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
39134
39134
|
const mappings = { ...bindings };
|
|
39135
39135
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -39171,7 +39171,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
39171
39171
|
return mappings;
|
|
39172
39172
|
}, "restoreAnnotationRecords");
|
|
39173
39173
|
|
|
39174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
39175
39175
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
39176
39176
|
async preview(request) {
|
|
39177
39177
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -39201,7 +39201,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
39201
39201
|
}
|
|
39202
39202
|
}), "projectAnnotationStoreOver");
|
|
39203
39203
|
|
|
39204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
39205
39205
|
import { createHash as createHash20 } from "node:crypto";
|
|
39206
39206
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
39207
39207
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -39433,7 +39433,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
|
|
|
39433
39433
|
return isObject2(header) ? { ...header, records: records2 } : header;
|
|
39434
39434
|
}, "envelopeOfJsonl");
|
|
39435
39435
|
|
|
39436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
39437
39437
|
var PROJECTED = {
|
|
39438
39438
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
39439
39439
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -39846,7 +39846,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39846
39846
|
};
|
|
39847
39847
|
}, "recordStoreOver");
|
|
39848
39848
|
|
|
39849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
39850
39850
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
39851
39851
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
39852
39852
|
let merged = { from: from2, to };
|
|
@@ -39859,7 +39859,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
39859
39859
|
}, "markRange");
|
|
39860
39860
|
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");
|
|
39861
39861
|
|
|
39862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
39863
39863
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
39864
39864
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
39865
39865
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -39880,7 +39880,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
39880
39880
|
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);
|
|
39881
39881
|
}, "setTaskAnalysisMark");
|
|
39882
39882
|
|
|
39883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
39884
39884
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
39885
39885
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
39886
39886
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -39890,7 +39890,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
39890
39890
|
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);
|
|
39891
39891
|
}, "setTaskRulesStop");
|
|
39892
39892
|
|
|
39893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
39894
39894
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39895
39895
|
const { database } = context;
|
|
39896
39896
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -39949,7 +39949,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39949
39949
|
};
|
|
39950
39950
|
}, "syncStoreOver");
|
|
39951
39951
|
|
|
39952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
39953
39953
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
39954
39954
|
const { database } = context;
|
|
39955
39955
|
return {
|
|
@@ -39971,7 +39971,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
39971
39971
|
};
|
|
39972
39972
|
}, "tagsStoreOver");
|
|
39973
39973
|
|
|
39974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
39975
39975
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
39976
39976
|
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
|
|
39977
39977
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -40098,7 +40098,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
40098
40098
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
40099
40099
|
}, "savePictureChunks");
|
|
40100
40100
|
|
|
40101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
40102
40102
|
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,
|
|
40103
40103
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
40104
40104
|
FROM messages m
|
|
@@ -40187,7 +40187,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
40187
40187
|
return plain2(best(found2));
|
|
40188
40188
|
}, "nearestMessages");
|
|
40189
40189
|
|
|
40190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
40191
40191
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
40192
40192
|
const { database } = context;
|
|
40193
40193
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -40445,7 +40445,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
40445
40445
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
40446
40446
|
}), "vectorsStoreOver");
|
|
40447
40447
|
|
|
40448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
40449
40449
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
40450
40450
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
40451
40451
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -40533,10 +40533,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
40533
40533
|
}
|
|
40534
40534
|
}, "lastBackup");
|
|
40535
40535
|
|
|
40536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
40537
40537
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
40538
40538
|
|
|
40539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
40540
40540
|
var COUNTED_TABLES = [
|
|
40541
40541
|
"accounts",
|
|
40542
40542
|
"chats",
|
|
@@ -40621,7 +40621,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
40621
40621
|
};
|
|
40622
40622
|
}, "storeContents");
|
|
40623
40623
|
|
|
40624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.573.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ebc00d7fcc6d9dd842f7c9d3c7667e19/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
40625
40625
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
40626
40626
|
const context = await openStoreContext(options);
|
|
40627
40627
|
try {
|