@wirecat/cli-memo 0.131.40 → 0.131.41
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-QFW2NKJY.js → all-profiles-ZTYUFM24.js} +5 -5
- package/dist/bundle/{anthropic-IARLHPYJ.js → anthropic-BLXCM7J2.js} +3 -3
- package/dist/bundle/{app-server-L4N5IWJF.js → app-server-MXYDSTTW.js} +35 -35
- package/dist/bundle/auto-2RK6FE5A.js +86 -0
- package/dist/bundle/{bun-NWKIEX53.js → bun-GFMA4TKJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-HORFVNNY.js → bun-sqlite-3V6EB3XP.js} +2 -2
- package/dist/bundle/{chunk-FTX3OPWV.js → chunk-2E4N5DVE.js} +27 -27
- package/dist/bundle/{chunk-RZ3UQFLE.js → chunk-2G66FZPO.js} +1 -1
- package/dist/bundle/{chunk-YWWTEWX3.js → chunk-2O2BSM4K.js} +1 -1
- package/dist/bundle/{chunk-ASVVDNAS.js → chunk-3MVDNB6Y.js} +3 -3
- package/dist/bundle/{chunk-M7UHHXSH.js → chunk-5KL7T2EP.js} +1 -1
- package/dist/bundle/{chunk-JGDZ3G4P.js → chunk-6V6VCYOS.js} +3 -3
- package/dist/bundle/{chunk-2YJBI3NK.js → chunk-776YSJJY.js} +1 -1
- package/dist/bundle/{chunk-WU6PDHXY.js → chunk-7AS5QFWJ.js} +5 -5
- package/dist/bundle/{chunk-QR5KWOZ2.js → chunk-7EOGXNLO.js} +4 -4
- package/dist/bundle/{chunk-OZF7QBTS.js → chunk-7GEK5BE5.js} +2 -2
- package/dist/bundle/{chunk-CB34NXQP.js → chunk-A6HC2DWU.js} +57 -56
- package/dist/bundle/{chunk-WAZWM4KZ.js → chunk-ARNYYXLO.js} +20 -20
- package/dist/bundle/{chunk-ADMB7OK5.js → chunk-AYOFFZMO.js} +4 -4
- package/dist/bundle/{chunk-UGHYNVWQ.js → chunk-B5LF2FVU.js} +1 -1
- package/dist/bundle/{chunk-6E4DCMJ5.js → chunk-BA3HPVBN.js} +4 -4
- package/dist/bundle/{chunk-AKSNCK5L.js → chunk-BFN5KXGH.js} +257 -257
- package/dist/bundle/{chunk-THIXDXP3.js → chunk-BJWDBPLF.js} +2 -2
- package/dist/bundle/{chunk-G3IO2TLK.js → chunk-DYSWDGOU.js} +5 -5
- package/dist/bundle/{chunk-EQQWJM6B.js → chunk-F3OGJQWY.js} +5 -5
- package/dist/bundle/{chunk-XAWB4WEC.js → chunk-FVN42IND.js} +1 -1
- package/dist/bundle/{chunk-ZH43Q2JO.js → chunk-G6EOW6PY.js} +2 -2
- package/dist/bundle/{chunk-W3SMUCMB.js → chunk-IJJ4OEXK.js} +1 -1
- package/dist/bundle/{chunk-5HXLRQ4Q.js → chunk-IJS2X4AZ.js} +43 -43
- package/dist/bundle/{chunk-UEG3BDCX.js → chunk-ISVO2PHD.js} +4 -4
- package/dist/bundle/{chunk-ATR65D7K.js → chunk-J364I2EL.js} +8 -8
- package/dist/bundle/{chunk-WHWACGZX.js → chunk-JO3FC5B4.js} +7 -7
- package/dist/bundle/{chunk-A7MXWBIX.js → chunk-LGILT5CA.js} +2 -2
- package/dist/bundle/{chunk-6RAU7FD2.js → chunk-LLL4RBDU.js} +11 -11
- package/dist/bundle/{chunk-5HSR6U4Z.js → chunk-N2EY7NT3.js} +1 -1
- package/dist/bundle/{chunk-TWC6UJD2.js → chunk-NFN3JTGD.js} +12 -12
- package/dist/bundle/{chunk-FBREYLY5.js → chunk-NKKC6SLX.js} +1 -1
- package/dist/bundle/{chunk-LXQQ7Q34.js → chunk-NP7Y3JQ7.js} +9 -9
- package/dist/bundle/{chunk-EGRI2NUT.js → chunk-NYNUDUFA.js} +4 -4
- package/dist/bundle/{chunk-756VKGKO.js → chunk-OLVBY6N6.js} +2 -2
- package/dist/bundle/{chunk-LL5HPYW5.js → chunk-ONJAEHOD.js} +7 -7
- package/dist/bundle/{chunk-NCC3RXUX.js → chunk-OY2CMEUW.js} +3 -3
- package/dist/bundle/{chunk-B4XRE67Q.js → chunk-PPSIMMJM.js} +9 -9
- package/dist/bundle/{chunk-MLHRER2H.js → chunk-QCE6BNKK.js} +2 -2
- package/dist/bundle/{chunk-5G3NNIJQ.js → chunk-QUA7EHLA.js} +10 -10
- package/dist/bundle/{chunk-XV7M6VWX.js → chunk-RMJLG2D6.js} +4 -4
- package/dist/bundle/{chunk-PAE2NZ7S.js → chunk-RMMYPYNA.js} +20 -20
- package/dist/bundle/{chunk-SRYOICSG.js → chunk-RNINC74Q.js} +1 -1
- package/dist/bundle/{chunk-EGQCBZVM.js → chunk-RZUSWGAC.js} +2 -2
- package/dist/bundle/{chunk-OSDA5EZW.js → chunk-S7TVQ7ES.js} +268 -258
- package/dist/bundle/{chunk-DNZH53VQ.js → chunk-SCIU5WHL.js} +3 -3
- package/dist/bundle/{chunk-BWNNUEHG.js → chunk-UA2H5FRV.js} +1 -1
- package/dist/bundle/{chunk-XF7TG5VK.js → chunk-ULDE2Y7M.js} +32 -31
- package/dist/bundle/{chunk-A7M74RZH.js → chunk-V5TOZXBU.js} +297 -278
- package/dist/bundle/{chunk-EIFPQD57.js → chunk-VF24JTL4.js} +1 -1
- package/dist/bundle/{chunk-Z6OKSDP3.js → chunk-VT4PCMY2.js} +1 -1
- package/dist/bundle/{chunk-KGXVJO2V.js → chunk-WFME7ILV.js} +5 -5
- package/dist/bundle/{chunk-OGHWLR5E.js → chunk-WG3JJ7D5.js} +1 -1
- package/dist/bundle/{chunk-4EZK5PGX.js → chunk-XXDWCZRM.js} +1 -1
- package/dist/bundle/{chunk-KWGNPUIV.js → chunk-Y4B4273X.js} +7 -7
- package/dist/bundle/{chunk-U5WIWLWM.js → chunk-Y7XDV4GQ.js} +6 -6
- package/dist/bundle/{chunk-KAU67PDK.js → chunk-YNYOWOKD.js} +159 -150
- package/dist/bundle/{chunk-2SZEKYBN.js → chunk-ZETAM63O.js} +1 -1
- package/dist/bundle/{command-contract-ZRJPMWWI.js → command-contract-KCV6NNGF.js} +11 -11
- package/dist/bundle/{decode-MDCEP64X.js → decode-SU7TIUXV.js} +2 -2
- package/dist/bundle/{echarts-RFIQAWMT.js → echarts-CJG2WVOX.js} +2 -2
- package/dist/bundle/{embed-443F7XR4.js → embed-IBURCPTK.js} +3 -3
- package/dist/bundle/{embedder-VRDPZFWC.js → embedder-SK773RJG.js} +6 -6
- package/dist/bundle/{entry-36KBOBA4.js → entry-6WOJUMZN.js} +4 -4
- package/dist/bundle/failure-4N6GOEGN.js +66 -0
- package/dist/bundle/{first-run-CYZSGJTG.js → first-run-CMSDLJGE.js} +5 -5
- package/dist/bundle/{first-screen-UY54KNVU.js → first-screen-6IZLOQ3Q.js} +12 -12
- package/dist/bundle/{instructions-RI2WFMBA.js → instructions-RHGGUIBR.js} +1 -1
- package/dist/bundle/{mcp-DHX4GF3A.js → mcp-HBKMY35O.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-H7LWGE5H.js → node-NBXEN7JU.js} +2 -2
- package/dist/bundle/{node-sqlite-N4POELFM.js → node-sqlite-WAGIYOYR.js} +3 -3
- package/dist/bundle/{oauth-OOUASPSL.js → oauth-INSEXJD2.js} +4 -4
- package/dist/bundle/{open-2T52CQDG.js → open-LXFV2C67.js} +2 -2
- package/dist/bundle/{openai-76CJYDRJ.js → openai-OCWAXC7E.js} +7 -7
- package/dist/bundle/{process-7YATIAKW.js → process-MRPJP32M.js} +1 -1
- package/dist/bundle/{program-O4I2BGM2.js → program-XKO4X6BB.js} +90 -68
- package/dist/bundle/{prompt-MHD5EI75.js → prompt-ROLOHFNO.js} +2 -2
- package/dist/bundle/{recognize-ARCD7XPJ.js → recognize-63ZLC4DN.js} +1 -1
- package/dist/bundle/{remote-OQ7TUXN3.js → remote-J4ZBFG3Y.js} +4 -4
- package/dist/bundle/{rerank-422D4DZR.js → rerank-HUQCCGYO.js} +4 -4
- package/dist/bundle/{serve-ZOT62JRM.js → serve-MFJYL4AB.js} +6 -6
- package/dist/bundle/{server-HAZC3T7X.js → server-2JQ5K33G.js} +50 -50
- package/dist/bundle/server-RKPGL53W.js +48 -0
- package/dist/bundle/server-ZN2KC4EE.js +61 -0
- package/dist/bundle/{state-KBW7BI2G.js → state-AV5MO77W.js} +3 -3
- package/dist/bundle/{store-KZY5FZPD.js → store-H4HCVN4H.js} +9 -9
- package/dist/bundle/store-maintenance-command-4GYOMUXE.js +48 -0
- package/dist/bundle/update-ATXEHV72.js +69 -0
- package/dist/finance/finance.d.ts +1 -1
- package/dist/finance/finance.d.ts.map +1 -1
- package/dist/finance/finance.js +2 -0
- package/dist/finance/finance.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +9 -13
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/review/command.d.ts +40 -0
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +25 -1
- package/dist/review/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-triage/SKILL.md +8 -9
- package/dist/bundle/auto-24I3FBUW.js +0 -86
- package/dist/bundle/failure-QKFNHYKC.js +0 -66
- package/dist/bundle/server-EISBI6O6.js +0 -61
- package/dist/bundle/server-NNQ3YRBV.js +0 -48
- package/dist/bundle/store-maintenance-command-ZFQOMCLZ.js +0 -48
- package/dist/bundle/update-SAX5XN2C.js +0 -69
- /package/dist/bundle/{chunk-5VKETWNU.js → chunk-VVDYRHYP.js} +0 -0
|
@@ -83,6 +83,7 @@ import {
|
|
|
83
83
|
reminder,
|
|
84
84
|
scaleOf,
|
|
85
85
|
settledStatus,
|
|
86
|
+
snakeCase,
|
|
86
87
|
tagOf,
|
|
87
88
|
timezoneOf,
|
|
88
89
|
transcriptLanguage,
|
|
@@ -99,11 +100,11 @@ import {
|
|
|
99
100
|
validateQuery,
|
|
100
101
|
walkQuery,
|
|
101
102
|
zonedMoment
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-A6HC2DWU.js";
|
|
103
104
|
import {
|
|
104
105
|
holdsCredential,
|
|
105
106
|
secretNamed
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-XXDWCZRM.js";
|
|
107
108
|
import {
|
|
108
109
|
DEFAULT_STEMMERS,
|
|
109
110
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -116,26 +117,26 @@ import {
|
|
|
116
117
|
fold,
|
|
117
118
|
normalize,
|
|
118
119
|
parseStemmers
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-Y4B4273X.js";
|
|
120
121
|
import {
|
|
121
122
|
DEFAULT_TASK_CATEGORIES,
|
|
122
123
|
sharedConfigPath,
|
|
123
124
|
storedTaskCategories,
|
|
124
125
|
taskCategoriesReader
|
|
125
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-ISVO2PHD.js";
|
|
126
127
|
import {
|
|
127
128
|
refuseOwnerStoreInTests,
|
|
128
129
|
storePath
|
|
129
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-FVN42IND.js";
|
|
130
131
|
import {
|
|
131
132
|
quietSqliteWarning,
|
|
132
133
|
storeCapable
|
|
133
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-F3OGJQWY.js";
|
|
134
135
|
import {
|
|
135
136
|
PRAGMAS,
|
|
136
137
|
TIME_LIMIT_FUNCTION,
|
|
137
138
|
TimeLimitReached
|
|
138
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-UA2H5FRV.js";
|
|
139
140
|
import {
|
|
140
141
|
array,
|
|
141
142
|
boolean,
|
|
@@ -185,7 +186,7 @@ import {
|
|
|
185
186
|
sql,
|
|
186
187
|
sqliteTable,
|
|
187
188
|
text
|
|
188
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-VF24JTL4.js";
|
|
189
190
|
import {
|
|
190
191
|
__commonJS,
|
|
191
192
|
__name,
|
|
@@ -9929,7 +9930,7 @@ var require_cjs = __commonJS({
|
|
|
9929
9930
|
}
|
|
9930
9931
|
});
|
|
9931
9932
|
|
|
9932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
9933
9934
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
9934
9935
|
const methods = whole;
|
|
9935
9936
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -10057,7 +10058,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
10057
10058
|
};
|
|
10058
10059
|
}, "bindAccount");
|
|
10059
10060
|
|
|
10060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
10061
10062
|
var SCHEME = "msg:";
|
|
10062
10063
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
10063
10064
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -10071,7 +10072,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
10071
10072
|
return { provider, account, chat: chat2, message: message2 };
|
|
10072
10073
|
}, "parseLocator");
|
|
10073
10074
|
|
|
10074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
10075
10076
|
var SIMPLE_REFERENCES = [
|
|
10076
10077
|
"note",
|
|
10077
10078
|
"document",
|
|
@@ -10219,7 +10220,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
10219
10220
|
return match !== null && byPrefix.has(match[1]);
|
|
10220
10221
|
}, "looksLikeReference");
|
|
10221
10222
|
|
|
10222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
10223
10224
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
10224
10225
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
10225
10226
|
var PROVIDERS = [
|
|
@@ -10335,7 +10336,7 @@ var providerNamed = /* @__PURE__ */ __name((word2) => {
|
|
|
10335
10336
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
10336
10337
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
10337
10338
|
|
|
10338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
10339
10340
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
10340
10341
|
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");
|
|
10341
10342
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -10358,7 +10359,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
10358
10359
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
10359
10360
|
}, "sourceOf");
|
|
10360
10361
|
|
|
10361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
10362
10363
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
10363
10364
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
10364
10365
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -10545,7 +10546,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
|
|
|
10545
10546
|
return { accounts: [...chosen.values()], skipped };
|
|
10546
10547
|
}, "fitting");
|
|
10547
10548
|
|
|
10548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
10549
10550
|
var IndexBuilderOn = class {
|
|
10550
10551
|
static {
|
|
10551
10552
|
__name(this, "IndexBuilderOn");
|
|
@@ -10740,7 +10741,7 @@ function alias(table, alias2) {
|
|
|
10740
10741
|
}
|
|
10741
10742
|
__name(alias, "alias");
|
|
10742
10743
|
|
|
10743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
10744
10745
|
var ENTITY_TABLES = {
|
|
10745
10746
|
account: "accounts",
|
|
10746
10747
|
attachment: "attachments",
|
|
@@ -10783,7 +10784,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
10783
10784
|
return { table, pointer, type, count, known: known2 };
|
|
10784
10785
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
10785
10786
|
|
|
10786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
10787
10788
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
10788
10789
|
id: integer("id").primaryKey(),
|
|
10789
10790
|
name: text("name").notNull().unique(),
|
|
@@ -10792,7 +10793,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
10792
10793
|
updatedAt: integer("updated_at").notNull()
|
|
10793
10794
|
});
|
|
10794
10795
|
|
|
10795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
10796
10797
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
10797
10798
|
sourceKey: text("source_key").notNull(),
|
|
10798
10799
|
collection: text("collection").notNull(),
|
|
@@ -10802,13 +10803,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
10802
10803
|
createdAt: integer("created_at").notNull()
|
|
10803
10804
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
10804
10805
|
|
|
10805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
10806
10807
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
10807
10808
|
id: integer("id").notNull(),
|
|
10808
10809
|
indexableType: text("indexable_type").notNull()
|
|
10809
10810
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
10810
10811
|
|
|
10811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
10812
10813
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
10813
10814
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
10814
10815
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -10834,7 +10835,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
10834
10835
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
10835
10836
|
]);
|
|
10836
10837
|
|
|
10837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
10838
10839
|
var accounts = sqliteTable("accounts", {
|
|
10839
10840
|
id: integer("id").primaryKey(),
|
|
10840
10841
|
provider: text("provider").notNull(),
|
|
@@ -12501,7 +12502,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
12501
12502
|
at: integer("at").notNull()
|
|
12502
12503
|
});
|
|
12503
12504
|
|
|
12504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
12505
12506
|
var ARMS = [
|
|
12506
12507
|
[
|
|
12507
12508
|
"message",
|
|
@@ -12628,7 +12629,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
12628
12629
|
return recomputed;
|
|
12629
12630
|
}, "drainInvolvementQueue");
|
|
12630
12631
|
|
|
12631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
12632
12633
|
import { domainToUnicode } from "node:url";
|
|
12633
12634
|
|
|
12634
12635
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -22650,7 +22651,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
22650
22651
|
}, "oa");
|
|
22651
22652
|
var na = { parse: O, get: aa, isValid: oa };
|
|
22652
22653
|
|
|
22653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
22654
22655
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
22655
22656
|
var ID = /^[\w-]{10,}$/;
|
|
22656
22657
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -22691,7 +22692,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
22691
22692
|
return { url, documentId: googleDocumentId(url) };
|
|
22692
22693
|
}), "googleDocumentLinks");
|
|
22693
22694
|
|
|
22694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
22695
22696
|
var PHONE_PLANS = [
|
|
22696
22697
|
{
|
|
22697
22698
|
country: "us",
|
|
@@ -23071,7 +23072,7 @@ var PHONE_PLANS = [
|
|
|
23071
23072
|
}
|
|
23072
23073
|
];
|
|
23073
23074
|
|
|
23074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
23075
23076
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
23076
23077
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
23077
23078
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -23112,7 +23113,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
23112
23113
|
return void 0;
|
|
23113
23114
|
}, "nationalPhone");
|
|
23114
23115
|
|
|
23115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
23116
23117
|
var BEFORE = [
|
|
23117
23118
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
23118
23119
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -23372,7 +23373,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
23372
23373
|
return found2.sort((a, b) => a.start - b.start);
|
|
23373
23374
|
}, "findPlaces");
|
|
23374
23375
|
|
|
23375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
23376
23377
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
23377
23378
|
var MENTION_VERSIONS = {
|
|
23378
23379
|
phone: 1,
|
|
@@ -23562,7 +23563,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
23562
23563
|
};
|
|
23563
23564
|
}, "typedPhone");
|
|
23564
23565
|
|
|
23565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
23566
23567
|
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";
|
|
23567
23568
|
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";
|
|
23568
23569
|
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";
|
|
@@ -23570,7 +23571,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
23570
23571
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
23571
23572
|
var NAME_WORDS = WORDS.split(" ");
|
|
23572
23573
|
|
|
23573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
23574
23575
|
var LATIN_TO_CYRILLIC = {
|
|
23575
23576
|
shch: "\u0449",
|
|
23576
23577
|
sch: "\u0449",
|
|
@@ -23778,7 +23779,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
23778
23779
|
return found2;
|
|
23779
23780
|
}, "findUnknownNames");
|
|
23780
23781
|
|
|
23781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
23782
23783
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
23783
23784
|
"webpage",
|
|
23784
23785
|
"share",
|
|
@@ -23818,7 +23819,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
23818
23819
|
});
|
|
23819
23820
|
}, "matchDownloads");
|
|
23820
23821
|
|
|
23821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
23822
23823
|
var QUERY_VERSION = 1;
|
|
23823
23824
|
var QUERY_LIMITS2 = {
|
|
23824
23825
|
...QUERY_LIMITS,
|
|
@@ -23854,7 +23855,7 @@ function exhausted(budget) {
|
|
|
23854
23855
|
}
|
|
23855
23856
|
__name(exhausted, "exhausted");
|
|
23856
23857
|
|
|
23857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
23858
23859
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
23859
23860
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
23860
23861
|
kind: "char",
|
|
@@ -24254,7 +24255,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
24254
24255
|
return out;
|
|
24255
24256
|
}, "foldRegex");
|
|
24256
24257
|
|
|
24257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
24258
24259
|
var PRESET_VERSION = 1;
|
|
24259
24260
|
var PRESETS = {
|
|
24260
24261
|
password: {
|
|
@@ -24308,7 +24309,7 @@ var PRESETS = {
|
|
|
24308
24309
|
}
|
|
24309
24310
|
};
|
|
24310
24311
|
|
|
24311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
24312
24313
|
var FIELD_VERSION = 2;
|
|
24313
24314
|
var UNITS = {
|
|
24314
24315
|
"": 1,
|
|
@@ -24769,12 +24770,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
24769
24770
|
return validateFields(parsed3.output);
|
|
24770
24771
|
}, "validateAst");
|
|
24771
24772
|
|
|
24772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
24773
24774
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
24774
24775
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
24775
24776
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
24776
24777
|
|
|
24777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
24778
24779
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
24779
24780
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
24780
24781
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -24798,7 +24799,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
24798
24799
|
};
|
|
24799
24800
|
}, "linkMatch");
|
|
24800
24801
|
|
|
24801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
24802
24803
|
var SETTING = "phoneCountries";
|
|
24803
24804
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
24804
24805
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -24829,7 +24830,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
24829
24830
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
24830
24831
|
}, "valueMatch");
|
|
24831
24832
|
|
|
24832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
24833
24834
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
24834
24835
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
24835
24836
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -24857,7 +24858,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
24857
24858
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
24858
24859
|
}, "vocabularySimilarity");
|
|
24859
24860
|
|
|
24860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
24861
24862
|
import { createHash } from "node:crypto";
|
|
24862
24863
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
24863
24864
|
try {
|
|
@@ -24923,7 +24924,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
|
|
|
24923
24924
|
});
|
|
24924
24925
|
}, "guardTagCreation");
|
|
24925
24926
|
|
|
24926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
24927
24928
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
24928
24929
|
throw new CliError("validation_error", message2);
|
|
24929
24930
|
}, "invalid");
|
|
@@ -25000,7 +25001,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
25000
25001
|
};
|
|
25001
25002
|
}, "createTagRedirectIndex");
|
|
25002
25003
|
|
|
25003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
25004
25005
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
25005
25006
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
25006
25007
|
if (!row2)
|
|
@@ -25028,7 +25029,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
25028
25029
|
return snapshot2;
|
|
25029
25030
|
}, "tagRedirectSnapshot");
|
|
25030
25031
|
|
|
25031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
25032
25033
|
import { createHash as createHash2 } from "node:crypto";
|
|
25033
25034
|
var TASK_KEY_PREFIXES = {
|
|
25034
25035
|
question: "Q",
|
|
@@ -25056,7 +25057,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25056
25057
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
25057
25058
|
}, "taskAccountOf");
|
|
25058
25059
|
|
|
25059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
25060
25061
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
25061
25062
|
var REFERABLE = {
|
|
25062
25063
|
note: { tombstone: true },
|
|
@@ -25221,7 +25222,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25221
25222
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
25222
25223
|
}, "taskIdOf");
|
|
25223
25224
|
|
|
25224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
25225
25226
|
var toMs = /* @__PURE__ */ __name((iso13) => {
|
|
25226
25227
|
if (iso13 === null || iso13 === void 0)
|
|
25227
25228
|
return null;
|
|
@@ -25235,7 +25236,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
25235
25236
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
25236
25237
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
25237
25238
|
|
|
25238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
25239
25240
|
var TAG_KINDS = ["tag", "topic"];
|
|
25240
25241
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
25241
25242
|
var TAG_TYPE = {
|
|
@@ -25438,7 +25439,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
25438
25439
|
return result;
|
|
25439
25440
|
}, "tagsOf");
|
|
25440
25441
|
|
|
25441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
25442
25443
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
25443
25444
|
var SPEECH = speech("att");
|
|
25444
25445
|
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");
|
|
@@ -25802,7 +25803,7 @@ var FIELD_COMPILERS = {
|
|
|
25802
25803
|
subject
|
|
25803
25804
|
};
|
|
25804
25805
|
|
|
25805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
25806
25807
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
25807
25808
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
25808
25809
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -25818,7 +25819,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
25818
25819
|
};
|
|
25819
25820
|
}, "placeOf");
|
|
25820
25821
|
|
|
25821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
25822
25823
|
var DRAIN_ON_WRITE = 500;
|
|
25823
25824
|
var METHOD = "rules";
|
|
25824
25825
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -25981,7 +25982,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
25981
25982
|
return queued.length;
|
|
25982
25983
|
}, "drainMentions");
|
|
25983
25984
|
|
|
25984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
25985
25986
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
25986
25987
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
25987
25988
|
if (!exists2)
|
|
@@ -25989,7 +25990,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
25989
25990
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
25990
25991
|
}, "indexRow");
|
|
25991
25992
|
|
|
25992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
25993
25994
|
var INDEX = "message_stems";
|
|
25994
25995
|
var SETTING2 = "searchStemmers";
|
|
25995
25996
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -26111,7 +26112,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
26111
26112
|
};
|
|
26112
26113
|
}, "stemmerCache");
|
|
26113
26114
|
|
|
26114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
26115
26116
|
var SQLITE_BUSY = 5;
|
|
26116
26117
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
26117
26118
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -26206,7 +26207,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
26206
26207
|
}
|
|
26207
26208
|
}, "read");
|
|
26208
26209
|
|
|
26209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
26210
26211
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
26211
26212
|
coalesce(CASE k.chunkable_type
|
|
26212
26213
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -26348,7 +26349,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
26348
26349
|
}, "dropUnusedVectors");
|
|
26349
26350
|
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");
|
|
26350
26351
|
|
|
26351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
26352
26353
|
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({
|
|
26353
26354
|
target: [accounts.provider, accounts.externalId],
|
|
26354
26355
|
set: {
|
|
@@ -26457,7 +26458,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
26457
26458
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
26458
26459
|
}, "dropOrphanPeople");
|
|
26459
26460
|
|
|
26460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
26461
26462
|
var FOLDED = [
|
|
26462
26463
|
{ table: "tasks", column: "title" },
|
|
26463
26464
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -26494,7 +26495,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
26494
26495
|
return filled2;
|
|
26495
26496
|
}, "fillFolded");
|
|
26496
26497
|
|
|
26497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
26498
26499
|
var HISTORY_KEY = "$history";
|
|
26499
26500
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
26500
26501
|
if (typeof text6 !== "string")
|
|
@@ -26570,7 +26571,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
26570
26571
|
return rest;
|
|
26571
26572
|
}, "withoutHistory");
|
|
26572
26573
|
|
|
26573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
26574
26575
|
import { createHash as createHash3 } from "node:crypto";
|
|
26575
26576
|
var CHUNK_CHARS = 1200;
|
|
26576
26577
|
var CHUNK_OVERLAP = 150;
|
|
@@ -26675,7 +26676,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
26675
26676
|
return chunks2;
|
|
26676
26677
|
}, "cutChunks");
|
|
26677
26678
|
|
|
26678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
26679
26680
|
var DAY = 864e5;
|
|
26680
26681
|
var CURRENCY = [
|
|
26681
26682
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -26801,7 +26802,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
26801
26802
|
return best?.day ?? null;
|
|
26802
26803
|
}, "dueDayOf");
|
|
26803
26804
|
|
|
26804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
26805
26806
|
var DAY2 = 864e5;
|
|
26806
26807
|
var STOP_WORDS = new Set([
|
|
26807
26808
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -26956,7 +26957,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
26956
26957
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
26957
26958
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
26958
26959
|
|
|
26959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
26960
26961
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
26961
26962
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
26962
26963
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -27227,7 +27228,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
27227
27228
|
};
|
|
27228
27229
|
}, "readiness");
|
|
27229
27230
|
|
|
27230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
27231
27232
|
var DOCUMENT_PICTURE = "document_picture";
|
|
27232
27233
|
var SCAN_PAGE2 = 5e3;
|
|
27233
27234
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -27290,7 +27291,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
27290
27291
|
}, "nearestPictures")
|
|
27291
27292
|
}), "documentPicturesOver");
|
|
27292
27293
|
|
|
27293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
27294
27295
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
27295
27296
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
27296
27297
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -27355,7 +27356,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
27355
27356
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
27356
27357
|
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");
|
|
27357
27358
|
|
|
27358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
27359
27360
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
27360
27361
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
27361
27362
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -27445,7 +27446,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
27445
27446
|
});
|
|
27446
27447
|
}, "linkMeeting");
|
|
27447
27448
|
|
|
27448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
27449
27450
|
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), ''))";
|
|
27450
27451
|
var UNSEARCHED_EVENT_TYPES = [
|
|
27451
27452
|
"working-location",
|
|
@@ -27675,7 +27676,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
27675
27676
|
return true;
|
|
27676
27677
|
}, "resetNoteIndex");
|
|
27677
27678
|
|
|
27678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
27679
27680
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
27680
27681
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
27681
27682
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -27694,7 +27695,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
27694
27695
|
}
|
|
27695
27696
|
}, "resolvePersonLinks");
|
|
27696
27697
|
|
|
27697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
27698
27699
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
27699
27700
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
27700
27701
|
find: orm.select({
|
|
@@ -27919,7 +27920,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
27919
27920
|
}, "meetingIdentityPk");
|
|
27920
27921
|
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");
|
|
27921
27922
|
|
|
27922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
27923
27924
|
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");
|
|
27924
27925
|
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");
|
|
27925
27926
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -28199,7 +28200,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
28199
28200
|
}
|
|
28200
28201
|
}, "replaceAutoTags");
|
|
28201
28202
|
|
|
28202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
28203
28204
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
28204
28205
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
28205
28206
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -28218,7 +28219,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
28218
28219
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
28219
28220
|
}, "counterFreshness");
|
|
28220
28221
|
|
|
28221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
28222
28223
|
import { createHash as createHash4 } from "node:crypto";
|
|
28223
28224
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
28224
28225
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -28316,7 +28317,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
28316
28317
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
28317
28318
|
}, "contextEvidenceRequest");
|
|
28318
28319
|
|
|
28319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
28320
28321
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
28321
28322
|
var ACTIVITY = `
|
|
28322
28323
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -28433,7 +28434,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
28433
28434
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
28434
28435
|
}), "mailActivity");
|
|
28435
28436
|
|
|
28436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
28437
28438
|
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");
|
|
28438
28439
|
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;
|
|
28439
28440
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -28574,7 +28575,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
28574
28575
|
return text6 || body2.trim();
|
|
28575
28576
|
}, "mailOwnText");
|
|
28576
28577
|
|
|
28577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
28578
28579
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
28579
28580
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
28580
28581
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -28684,7 +28685,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
28684
28685
|
return emails3 + threads;
|
|
28685
28686
|
}, "drainEmailIndex");
|
|
28686
28687
|
|
|
28687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
28688
28689
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
28689
28690
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
28690
28691
|
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,
|
|
@@ -28782,7 +28783,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
28782
28783
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
28783
28784
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
28784
28785
|
|
|
28785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
28786
28787
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
28787
28788
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
28788
28789
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -28832,7 +28833,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
28832
28833
|
return threads.length;
|
|
28833
28834
|
}, "markEmailsRestored");
|
|
28834
28835
|
|
|
28835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
28836
28837
|
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");
|
|
28837
28838
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
28838
28839
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -28899,7 +28900,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
28899
28900
|
}
|
|
28900
28901
|
}), "mailRulesOver");
|
|
28901
28902
|
|
|
28902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
28903
28904
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
28904
28905
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
28905
28906
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -28907,7 +28908,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
28907
28908
|
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);
|
|
28908
28909
|
}, "reviewLink");
|
|
28909
28910
|
|
|
28910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
28911
28912
|
function checkMeetingCancelled(signal) {
|
|
28912
28913
|
if (!signal?.aborted)
|
|
28913
28914
|
return;
|
|
@@ -28918,7 +28919,7 @@ function checkMeetingCancelled(signal) {
|
|
|
28918
28919
|
}
|
|
28919
28920
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
28920
28921
|
|
|
28921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
28922
28923
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
28923
28924
|
id: Number(row2.id),
|
|
28924
28925
|
accountId: Number(row2.account_id),
|
|
@@ -28968,7 +28969,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
28968
28969
|
createdAt: Number(row2.created_at)
|
|
28969
28970
|
}), "transcriptRowOf");
|
|
28970
28971
|
|
|
28971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
28972
28973
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
28973
28974
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
28974
28975
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -29135,7 +29136,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29135
29136
|
}
|
|
29136
29137
|
}), "meetingReadsOver");
|
|
29137
29138
|
|
|
29138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
29139
29140
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
29140
29141
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
29141
29142
|
const params = [input.accountId];
|
|
@@ -29178,7 +29179,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
29178
29179
|
return { clauses, params };
|
|
29179
29180
|
}, "meetingSelectionSql");
|
|
29180
29181
|
|
|
29181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
29182
29183
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
29183
29184
|
async meetingChatLines(input) {
|
|
29184
29185
|
checkMeetingCancelled(input.signal);
|
|
@@ -29206,7 +29207,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29206
29207
|
}
|
|
29207
29208
|
}), "meetingChatLinesOver");
|
|
29208
29209
|
|
|
29209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
29210
29211
|
var MESSAGE_FIELDS = {
|
|
29211
29212
|
pk: messages.id,
|
|
29212
29213
|
nativeId: messages.externalId,
|
|
@@ -29377,7 +29378,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
29377
29378
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
29378
29379
|
}), "chatActivity");
|
|
29379
29380
|
|
|
29380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
29381
29382
|
var HIT_FIELDS = {
|
|
29382
29383
|
...MESSAGE_FIELDS,
|
|
29383
29384
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -29476,7 +29477,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
29476
29477
|
};
|
|
29477
29478
|
}, "directReplies");
|
|
29478
29479
|
|
|
29479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
29480
29481
|
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");
|
|
29481
29482
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
29482
29483
|
const found2 = identityRow(context, ref3);
|
|
@@ -29607,7 +29608,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
29607
29608
|
}, "mentioning");
|
|
29608
29609
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
29609
29610
|
|
|
29610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
29611
29612
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
29612
29613
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
29613
29614
|
}, "missing");
|
|
@@ -29729,7 +29730,7 @@ function meetingContextLinksOver(context) {
|
|
|
29729
29730
|
}
|
|
29730
29731
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
29731
29732
|
|
|
29732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
29733
29734
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
29734
29735
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
29735
29736
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -29758,7 +29759,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
29758
29759
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
29759
29760
|
}, "indexedText");
|
|
29760
29761
|
|
|
29761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
29762
29763
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
29763
29764
|
var meetingCurrentIndexRows = `
|
|
29764
29765
|
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
|
|
@@ -29789,7 +29790,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
29789
29790
|
}, "invalidateMeetingStems");
|
|
29790
29791
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
29791
29792
|
|
|
29792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
29793
29794
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
29794
29795
|
return {
|
|
29795
29796
|
async indexSearch(original) {
|
|
@@ -29857,10 +29858,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
29857
29858
|
}
|
|
29858
29859
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
29859
29860
|
|
|
29860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
29861
29862
|
import { createHash as createHash5 } from "node:crypto";
|
|
29862
29863
|
|
|
29863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
29864
29865
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
29865
29866
|
const padded = ` ${term} `;
|
|
29866
29867
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -29869,7 +29870,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
29869
29870
|
return [...pieces];
|
|
29870
29871
|
}, "trigrams");
|
|
29871
29872
|
|
|
29872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
29873
29874
|
var SHORTEST_CORRECTION = 3;
|
|
29874
29875
|
var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
|
|
29875
29876
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -29916,7 +29917,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
29916
29917
|
return corrections;
|
|
29917
29918
|
}, "correctWords");
|
|
29918
29919
|
|
|
29919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
29920
29921
|
var SHORTEST_GARBLED = 4;
|
|
29921
29922
|
var MOST_WIDENED = 64;
|
|
29922
29923
|
var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -30008,7 +30009,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
30008
30009
|
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((word2) => word2.term));
|
|
30009
30010
|
}, "widenWords");
|
|
30010
30011
|
|
|
30011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
30012
30013
|
import { readFileSync } from "node:fs";
|
|
30013
30014
|
var loaded;
|
|
30014
30015
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -30067,7 +30068,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
|
|
|
30067
30068
|
return false;
|
|
30068
30069
|
}, "knownRussianWord");
|
|
30069
30070
|
|
|
30070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
30071
30072
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
30072
30073
|
var MOST_WORDS = 128;
|
|
30073
30074
|
var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
|
|
@@ -30294,7 +30295,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
30294
30295
|
return check3(tree);
|
|
30295
30296
|
}, "matchMeetingText");
|
|
30296
30297
|
|
|
30297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
30298
30299
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
30299
30300
|
throw new CliError("validation_error", message2);
|
|
30300
30301
|
}, "fail");
|
|
@@ -30476,7 +30477,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
30476
30477
|
}
|
|
30477
30478
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
30478
30479
|
|
|
30479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
30480
30481
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30481
30482
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
30482
30483
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -30508,7 +30509,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30508
30509
|
}
|
|
30509
30510
|
}), "meetingLanguagesOver");
|
|
30510
30511
|
|
|
30511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
30512
30513
|
import { createHash as createHash6 } from "node:crypto";
|
|
30513
30514
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
30514
30515
|
if (value === void 0)
|
|
@@ -30598,7 +30599,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
30598
30599
|
}
|
|
30599
30600
|
}), "meetingParticipantSearchOver");
|
|
30600
30601
|
|
|
30601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
30602
30603
|
var preparationQueries = {
|
|
30603
30604
|
participants: {
|
|
30604
30605
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -30648,7 +30649,7 @@ var preparationQueries = {
|
|
|
30648
30649
|
}
|
|
30649
30650
|
};
|
|
30650
30651
|
|
|
30651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
30652
30653
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30653
30654
|
async preparationContext(original) {
|
|
30654
30655
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -30689,7 +30690,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30689
30690
|
}
|
|
30690
30691
|
}), "meetingPreparationContextOver");
|
|
30691
30692
|
|
|
30692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
30693
30694
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
30694
30695
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
30695
30696
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -30703,7 +30704,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
30703
30704
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
30704
30705
|
)`, "preparationSubjects");
|
|
30705
30706
|
|
|
30706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
30707
30708
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30708
30709
|
async preparationKnowledge(original) {
|
|
30709
30710
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -30748,7 +30749,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
30748
30749
|
}
|
|
30749
30750
|
}), "meetingPreparationKnowledgeOver");
|
|
30750
30751
|
|
|
30751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
30752
30753
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30753
30754
|
async preparationNotes(original) {
|
|
30754
30755
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -30801,7 +30802,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30801
30802
|
}
|
|
30802
30803
|
}), "meetingPreparationNotesOver");
|
|
30803
30804
|
|
|
30804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
30805
30806
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30806
30807
|
async relatedHistory(original) {
|
|
30807
30808
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -30872,7 +30873,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30872
30873
|
}
|
|
30873
30874
|
}), "meetingRelatedHistoryOver");
|
|
30874
30875
|
|
|
30875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
30876
30877
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
30877
30878
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
30878
30879
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -30953,7 +30954,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30953
30954
|
}
|
|
30954
30955
|
}), "meetingReviewOver");
|
|
30955
30956
|
|
|
30956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
30957
30958
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
30958
30959
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
30959
30960
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -31007,7 +31008,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31007
31008
|
}
|
|
31008
31009
|
}), "meetingSeriesHistoryOver");
|
|
31009
31010
|
|
|
31010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
31011
31012
|
var MOST_ROWS = 5e5;
|
|
31012
31013
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
31013
31014
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -31076,7 +31077,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31076
31077
|
}
|
|
31077
31078
|
}), "meetingStatsOver");
|
|
31078
31079
|
|
|
31079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
31080
31081
|
var CURSOR_KEY = "meetings";
|
|
31081
31082
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
31082
31083
|
id: Number(row2.id),
|
|
@@ -31645,7 +31646,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31645
31646
|
};
|
|
31646
31647
|
}, "meetingStoreOver");
|
|
31647
31648
|
|
|
31648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
31649
31650
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
31650
31651
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
31651
31652
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -31671,7 +31672,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
31671
31672
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
31672
31673
|
}, "release");
|
|
31673
31674
|
|
|
31674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
31675
31676
|
var THREAD_COLUMNS = {
|
|
31676
31677
|
subject: {
|
|
31677
31678
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -31688,7 +31689,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
31688
31689
|
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);
|
|
31689
31690
|
}, "threadRows");
|
|
31690
31691
|
|
|
31691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
31692
31693
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
31693
31694
|
id: `email:${place.emailId}`,
|
|
31694
31695
|
chatId: place.threadExternalId,
|
|
@@ -32244,7 +32245,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
32244
32245
|
}
|
|
32245
32246
|
}), "mailStoreOver");
|
|
32246
32247
|
|
|
32247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
32248
32249
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
32249
32250
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
32250
32251
|
var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
|
|
@@ -32334,7 +32335,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
32334
32335
|
}, "knownWord");
|
|
32335
32336
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
32336
32337
|
|
|
32337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
32338
32339
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
32339
32340
|
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");
|
|
32340
32341
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -32420,7 +32421,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
32420
32421
|
return found2;
|
|
32421
32422
|
}, "spokenTranscripts");
|
|
32422
32423
|
|
|
32423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
32424
32425
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
32425
32426
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
32426
32427
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -32467,7 +32468,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
32467
32468
|
});
|
|
32468
32469
|
}, "placeHits");
|
|
32469
32470
|
|
|
32470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
32471
32472
|
var GROUPS = {
|
|
32472
32473
|
chat: {
|
|
32473
32474
|
key: "m.chat_id",
|
|
@@ -32489,7 +32490,7 @@ var GROUPS = {
|
|
|
32489
32490
|
}
|
|
32490
32491
|
};
|
|
32491
32492
|
|
|
32492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
32493
32494
|
var MESSAGES2 = {
|
|
32494
32495
|
rows: "messages",
|
|
32495
32496
|
threads: "chats",
|
|
@@ -32972,7 +32973,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
32972
32973
|
};
|
|
32973
32974
|
}, "runCompiled");
|
|
32974
32975
|
|
|
32975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
32976
32977
|
function invalidMetadata() {
|
|
32977
32978
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
32978
32979
|
}
|
|
@@ -33074,7 +33075,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
33074
33075
|
};
|
|
33075
33076
|
}), "counterTargets");
|
|
33076
33077
|
|
|
33077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
33078
33079
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
33079
33080
|
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,
|
|
33080
33081
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -33193,7 +33194,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
33193
33194
|
}));
|
|
33194
33195
|
}, "attachmentViews");
|
|
33195
33196
|
|
|
33196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
33197
33198
|
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");
|
|
33198
33199
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
33199
33200
|
const { orm, database, now: now2 } = context;
|
|
@@ -33231,7 +33232,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
33231
33232
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
33232
33233
|
}, "intoVoiceAttachment");
|
|
33233
33234
|
|
|
33234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
33235
33236
|
var FIELDS = [
|
|
33236
33237
|
"threadExternalId",
|
|
33237
33238
|
"senderIdentityId",
|
|
@@ -33548,7 +33549,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
33548
33549
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
33549
33550
|
}, "writeDerivedReactions");
|
|
33550
33551
|
|
|
33551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
33552
33553
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
33553
33554
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
33554
33555
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -33569,7 +33570,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
33569
33570
|
};
|
|
33570
33571
|
}, "keysOver");
|
|
33571
33572
|
|
|
33572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
33573
33574
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
33574
33575
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
33575
33576
|
if (!row2)
|
|
@@ -33604,7 +33605,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
33604
33605
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
33605
33606
|
}, "saveProfile");
|
|
33606
33607
|
|
|
33607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
33608
33609
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
33609
33610
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
33610
33611
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -33661,7 +33662,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
33661
33662
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
33662
33663
|
}, "proposedBySql");
|
|
33663
33664
|
|
|
33664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
33665
33666
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
33666
33667
|
const owner = ownerPerson(context.database).id;
|
|
33667
33668
|
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);
|
|
@@ -33682,7 +33683,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
33682
33683
|
return personOf(context, ref3);
|
|
33683
33684
|
}, "linkToOwner");
|
|
33684
33685
|
|
|
33685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
33686
33687
|
var PROVIDERS_SETTING = "providers";
|
|
33687
33688
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
33688
33689
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -33717,7 +33718,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
33717
33718
|
});
|
|
33718
33719
|
}, "registerProvider");
|
|
33719
33720
|
|
|
33720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
33721
33722
|
var DAY3 = 864e5;
|
|
33722
33723
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
33723
33724
|
var TEXT_LIMIT = 20;
|
|
@@ -33916,7 +33917,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
33916
33917
|
};
|
|
33917
33918
|
}, "taskSimilarityOver");
|
|
33918
33919
|
|
|
33919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
33920
33921
|
var SETTING3 = "taskCategories";
|
|
33921
33922
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
33922
33923
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -33935,7 +33936,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
33935
33936
|
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);
|
|
33936
33937
|
}, "saveTaskCategories");
|
|
33937
33938
|
|
|
33938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
33939
33940
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
33940
33941
|
var ALLOWED = "taskAgentClose";
|
|
33941
33942
|
var MIN = "taskAgentCloseMin";
|
|
@@ -33991,10 +33992,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
33991
33992
|
];
|
|
33992
33993
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
33993
33994
|
|
|
33994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
33995
33996
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
33996
33997
|
|
|
33997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
33998
33999
|
var TASK_CLOSE_KIND = "task_close";
|
|
33999
34000
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
34000
34001
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -34042,7 +34043,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
34042
34043
|
}, "assertMayDecide");
|
|
34043
34044
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
34044
34045
|
|
|
34045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
34046
34047
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
34047
34048
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
34048
34049
|
var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
|
|
@@ -34095,7 +34096,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
34095
34096
|
return `${WORDS2[summary.kind]} ${named3}${notes2 === "" ? "" : ` (${notes2})`}`;
|
|
34096
34097
|
}, "refLabel");
|
|
34097
34098
|
|
|
34098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
34099
34100
|
var EXCERPT_CHARS = 280;
|
|
34100
34101
|
var TITLE_CHARS = 120;
|
|
34101
34102
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -34456,7 +34457,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
34456
34457
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
34457
34458
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
|
|
34458
34459
|
|
|
34459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
34460
34461
|
var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
|
|
34461
34462
|
ref: ref3,
|
|
34462
34463
|
kind: read2.kind,
|
|
@@ -34492,7 +34493,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
34492
34493
|
});
|
|
34493
34494
|
}, "evidenceSourcesOf");
|
|
34494
34495
|
|
|
34495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
34496
34497
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
34497
34498
|
var MAX_TEXT_CHARS = 2e6;
|
|
34498
34499
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -34518,7 +34519,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
34518
34519
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
34519
34520
|
}, "pdfPreviewLimits");
|
|
34520
34521
|
|
|
34521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
34522
34523
|
import { randomBytes } from "node:crypto";
|
|
34523
34524
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
34524
34525
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -34531,7 +34532,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
34531
34532
|
return time3 + random;
|
|
34532
34533
|
}, "ulid");
|
|
34533
34534
|
|
|
34534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
34535
34536
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
34536
34537
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
34537
34538
|
if (!meta && !sections?.length)
|
|
@@ -34552,7 +34553,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
34552
34553
|
return typeof language === "string" && language !== "" ? language : null;
|
|
34553
34554
|
}, "languageOf");
|
|
34554
34555
|
|
|
34555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
34556
34557
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
34557
34558
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
34558
34559
|
if (isObject(value))
|
|
@@ -34795,7 +34796,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
34795
34796
|
};
|
|
34796
34797
|
}, "filesStoreOver");
|
|
34797
34798
|
|
|
34798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
34799
34800
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
34800
34801
|
entity: "document",
|
|
34801
34802
|
backend: "sql",
|
|
@@ -34841,7 +34842,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
34841
34842
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
34842
34843
|
}, "importedDocumentWhere");
|
|
34843
34844
|
|
|
34844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
34845
34846
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
34846
34847
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
34847
34848
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -35367,7 +35368,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35367
35368
|
};
|
|
35368
35369
|
}, "notesStoreOver");
|
|
35369
35370
|
|
|
35370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
35371
35372
|
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";
|
|
35372
35373
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35373
35374
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -35589,7 +35590,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35589
35590
|
};
|
|
35590
35591
|
}, "memoriesStoreOver");
|
|
35591
35592
|
|
|
35592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
35593
35594
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
35594
35595
|
var KEY = "taskFirstPassPerChat";
|
|
35595
35596
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -35609,7 +35610,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
35609
35610
|
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);
|
|
35610
35611
|
}, "saveFirstPassPerChat");
|
|
35611
35612
|
|
|
35612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/external-links.js
|
|
35613
35614
|
var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
|
|
35614
35615
|
var EXTERNAL_ID_CHARS = 200;
|
|
35615
35616
|
var SOURCE_URL_CHARS = 2e3;
|
|
@@ -35636,7 +35637,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
|
|
|
35636
35637
|
return text6;
|
|
35637
35638
|
}, "sourceUrlOf");
|
|
35638
35639
|
|
|
35639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
35640
35641
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
35641
35642
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
35642
35643
|
name,
|
|
@@ -35859,7 +35860,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
35859
35860
|
return root === void 0 ? void 0 : { ...query, root };
|
|
35860
35861
|
}, "withoutField");
|
|
35861
35862
|
|
|
35862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
35863
35864
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
35864
35865
|
if (row2.author_type == null)
|
|
35865
35866
|
return null;
|
|
@@ -35887,7 +35888,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
35887
35888
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
35888
35889
|
}, "addComment");
|
|
35889
35890
|
|
|
35890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
35891
35892
|
var TASK_RELATION_KINDS = [
|
|
35892
35893
|
"blocked-by",
|
|
35893
35894
|
"follow-up-of",
|
|
@@ -36017,7 +36018,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
36017
36018
|
};
|
|
36018
36019
|
}, "taskRelationsStoreOver");
|
|
36019
36020
|
|
|
36020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
36021
36022
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
36022
36023
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
36023
36024
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
|
|
@@ -36546,7 +36547,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
36546
36547
|
};
|
|
36547
36548
|
}, "workTasksOver");
|
|
36548
36549
|
|
|
36549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
36550
36551
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
36551
36552
|
const { database, now: now2 } = context;
|
|
36552
36553
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -36595,7 +36596,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
36595
36596
|
};
|
|
36596
36597
|
}, "taskCloseOver");
|
|
36597
36598
|
|
|
36598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
36599
36600
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
36600
36601
|
const { database, now: now2 } = context;
|
|
36601
36602
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -36813,7 +36814,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
36813
36814
|
};
|
|
36814
36815
|
}, "taskPairsOver");
|
|
36815
36816
|
|
|
36816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
36817
36818
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
36818
36819
|
var TASK_STATS_SQL = {
|
|
36819
36820
|
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"),
|
|
@@ -36852,7 +36853,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
36852
36853
|
}, "statNames")
|
|
36853
36854
|
}), "taskStatsOver");
|
|
36854
36855
|
|
|
36855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
36856
36857
|
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";
|
|
36857
36858
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
36858
36859
|
const key2 = inboxKey(account);
|
|
@@ -37059,7 +37060,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
37059
37060
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
37060
37061
|
}, "oneOf");
|
|
37061
37062
|
|
|
37062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
37063
37064
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
37064
37065
|
const { database } = context;
|
|
37065
37066
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -37104,7 +37105,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
37104
37105
|
};
|
|
37105
37106
|
}, "accountsStoreOver");
|
|
37106
37107
|
|
|
37107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
37108
37109
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
37109
37110
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
37110
37111
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -37128,7 +37129,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
37128
37129
|
})), "keepDownloads");
|
|
37129
37130
|
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");
|
|
37130
37131
|
|
|
37131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
37132
37133
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
37133
37134
|
const { database } = context;
|
|
37134
37135
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -37185,7 +37186,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
37185
37186
|
}, "keepAttachmentText")
|
|
37186
37187
|
}), "attachmentsStoreOver");
|
|
37187
37188
|
|
|
37188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
37189
37190
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
37190
37191
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
37191
37192
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -37365,7 +37366,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
37365
37366
|
return done;
|
|
37366
37367
|
}, "rekeyChats");
|
|
37367
37368
|
|
|
37368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
37369
37370
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
37370
37371
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
37371
37372
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -37423,7 +37424,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
37423
37424
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
37424
37425
|
}, "chatCoverage");
|
|
37425
37426
|
|
|
37426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
37427
37428
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
37428
37429
|
const { database } = context;
|
|
37429
37430
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -37558,7 +37559,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
37558
37559
|
};
|
|
37559
37560
|
}, "chatsStoreOver");
|
|
37560
37561
|
|
|
37561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
37562
37563
|
import { createHash as createHash7 } from "node:crypto";
|
|
37563
37564
|
var BATCH_CONTEXT = 50;
|
|
37564
37565
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -37696,7 +37697,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
37696
37697
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
37697
37698
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
37698
37699
|
|
|
37699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
37700
37701
|
import { setTimeout } from "node:timers/promises";
|
|
37701
37702
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
37702
37703
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -38008,7 +38009,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
38008
38009
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
38009
38010
|
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");
|
|
38010
38011
|
|
|
38011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
38012
38013
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
38013
38014
|
const { database } = context;
|
|
38014
38015
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -38115,7 +38116,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
38115
38116
|
};
|
|
38116
38117
|
}, "conversationsStoreOver");
|
|
38117
38118
|
|
|
38118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
38119
38120
|
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";
|
|
38120
38121
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
38121
38122
|
const { database } = context;
|
|
@@ -38140,7 +38141,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38140
38141
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
38141
38142
|
}), "countersStoreOver");
|
|
38142
38143
|
|
|
38143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
38144
38145
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
38145
38146
|
var MENTION_QUERY = defineQuery({
|
|
38146
38147
|
entity: "mention",
|
|
@@ -38356,7 +38357,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
38356
38357
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
38357
38358
|
}, "listPlaces");
|
|
38358
38359
|
|
|
38359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
38360
38361
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
38361
38362
|
const { database } = context;
|
|
38362
38363
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -38391,7 +38392,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38391
38392
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
38392
38393
|
}), "mentionsStoreOver");
|
|
38393
38394
|
|
|
38394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
38395
38396
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
38396
38397
|
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");
|
|
38397
38398
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -38406,7 +38407,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
38406
38407
|
}));
|
|
38407
38408
|
}, "documentLinkMessages");
|
|
38408
38409
|
|
|
38409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
38410
38411
|
var stemmerFor = stemmerCache();
|
|
38411
38412
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
38412
38413
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -38450,7 +38451,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
38450
38451
|
});
|
|
38451
38452
|
}, "laterSharingRare");
|
|
38452
38453
|
|
|
38453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
38454
38455
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
38455
38456
|
const { database } = context;
|
|
38456
38457
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -38585,7 +38586,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38585
38586
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
38586
38587
|
}), "messagesStoreOver");
|
|
38587
38588
|
|
|
38588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
38589
38590
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
38590
38591
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
38591
38592
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -38642,7 +38643,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
38642
38643
|
});
|
|
38643
38644
|
}, "personPreparation");
|
|
38644
38645
|
|
|
38645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
38646
38647
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
38647
38648
|
const id2 = Number(uid);
|
|
38648
38649
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -38650,7 +38651,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
38650
38651
|
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)));
|
|
38651
38652
|
}, "personSeenInAccounts");
|
|
38652
38653
|
|
|
38653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
38654
38655
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
38655
38656
|
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);
|
|
38656
38657
|
if (!row2)
|
|
@@ -38716,7 +38717,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
38716
38717
|
return { id: id2, personId, removed: true };
|
|
38717
38718
|
}, "removeNote");
|
|
38718
38719
|
|
|
38719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
38720
38721
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
38721
38722
|
const { database } = context;
|
|
38722
38723
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -38801,13 +38802,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
38801
38802
|
};
|
|
38802
38803
|
}, "peopleStoreOver");
|
|
38803
38804
|
|
|
38804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
38805
38806
|
import { createHash as createHash9 } from "node:crypto";
|
|
38806
38807
|
|
|
38807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
38808
38809
|
import { createHash as createHash8 } from "node:crypto";
|
|
38809
38810
|
|
|
38810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
38811
38812
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
38812
38813
|
var AUTHOR_MEASURES = [
|
|
38813
38814
|
"messages",
|
|
@@ -38947,7 +38948,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
38947
38948
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
38948
38949
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
38949
38950
|
|
|
38950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
38951
38952
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
38952
38953
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
38953
38954
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -39169,7 +39170,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
39169
39170
|
};
|
|
39170
39171
|
}, "rankReplyGraph");
|
|
39171
39172
|
|
|
39172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39173
39174
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
39174
39175
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
39175
39176
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -39343,7 +39344,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
39343
39344
|
return { items, evidence, summary, graph: graph.quality };
|
|
39344
39345
|
}, "calculateAdminStatistics");
|
|
39345
39346
|
|
|
39346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
39347
39348
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
39348
39349
|
const dates = [];
|
|
39349
39350
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -39365,7 +39366,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
39365
39366
|
return dates[0].node.resolution.date;
|
|
39366
39367
|
}, "rankingContextRange");
|
|
39367
39368
|
|
|
39368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
39369
39370
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
39370
39371
|
let counts;
|
|
39371
39372
|
try {
|
|
@@ -39660,7 +39661,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
39660
39661
|
});
|
|
39661
39662
|
}, "rankQuery");
|
|
39662
39663
|
|
|
39663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
39664
39665
|
function fail4(message2, reason = "query.too-large") {
|
|
39665
39666
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
39666
39667
|
}
|
|
@@ -39837,7 +39838,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
39837
39838
|
return result;
|
|
39838
39839
|
}), "adminStatisticsQuery");
|
|
39839
39840
|
|
|
39840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
39841
39842
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
39842
39843
|
if (!execution.accounts.length)
|
|
39843
39844
|
return { conversations: [], chats: [] };
|
|
@@ -39855,7 +39856,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
39855
39856
|
return { conversations: conversations2, chats: chats2 };
|
|
39856
39857
|
}, "conversationEligibility");
|
|
39857
39858
|
|
|
39858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
39859
39860
|
import { createHash as createHash10 } from "node:crypto";
|
|
39860
39861
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
39861
39862
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -40005,7 +40006,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
40005
40006
|
return result;
|
|
40006
40007
|
}, "rankingEvidence");
|
|
40007
40008
|
|
|
40008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
40009
40010
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
40010
40011
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
40011
40012
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -40099,7 +40100,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
40099
40100
|
});
|
|
40100
40101
|
}, "waitingChats");
|
|
40101
40102
|
|
|
40102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
40103
40104
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
40104
40105
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
40105
40106
|
if (execution.corpus === "mail")
|
|
@@ -40120,7 +40121,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
40120
40121
|
};
|
|
40121
40122
|
}, "queriesStoreOver");
|
|
40122
40123
|
|
|
40123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
40124
40125
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
40125
40126
|
const { database, now: now2 } = context;
|
|
40126
40127
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -40159,10 +40160,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
40159
40160
|
}));
|
|
40160
40161
|
}, "chatEventsOf");
|
|
40161
40162
|
|
|
40162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40163
40164
|
import { createHash as createHash11 } from "node:crypto";
|
|
40164
40165
|
|
|
40165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
40166
40167
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
40167
40168
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
40168
40169
|
timeZone: zone,
|
|
@@ -40182,7 +40183,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
|
|
|
40182
40183
|
return date3.toISOString().slice(0, 10);
|
|
40183
40184
|
}, "weekKey");
|
|
40184
40185
|
|
|
40185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
40186
40187
|
var RETENTION_TOLERANCE = 864e5;
|
|
40187
40188
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
40188
40189
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -40236,7 +40237,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
40236
40237
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
40237
40238
|
}, "retentionCohorts");
|
|
40238
40239
|
|
|
40239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40240
40241
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
40241
40242
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
40242
40243
|
validateRetentionOptions(options);
|
|
@@ -40367,7 +40368,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
40367
40368
|
};
|
|
40368
40369
|
}, "retentionQuery");
|
|
40369
40370
|
|
|
40370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
40371
40372
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
40372
40373
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
40373
40374
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -40498,7 +40499,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
40498
40499
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
40499
40500
|
})), "trackedChats");
|
|
40500
40501
|
|
|
40501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
40502
40503
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40503
40504
|
const { database } = context;
|
|
40504
40505
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -40554,7 +40555,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40554
40555
|
};
|
|
40555
40556
|
}, "rosterStoreOver");
|
|
40556
40557
|
|
|
40557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
40558
40559
|
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");
|
|
40559
40560
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
40560
40561
|
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 ?`);
|
|
@@ -40578,7 +40579,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
40578
40579
|
}
|
|
40579
40580
|
}, "backfillNormalized");
|
|
40580
40581
|
|
|
40581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
40582
40583
|
var INDEX2 = "message_words";
|
|
40583
40584
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
40584
40585
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -40705,7 +40706,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
40705
40706
|
});
|
|
40706
40707
|
}, "resetSearchIndex");
|
|
40707
40708
|
|
|
40708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
40709
40710
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
40710
40711
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
40711
40712
|
const before2 = stemsState(database);
|
|
@@ -40800,7 +40801,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
40800
40801
|
return resetStems(database, { now: now2 });
|
|
40801
40802
|
}, "followDefaultStemmers");
|
|
40802
40803
|
|
|
40803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
40804
40805
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
40805
40806
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
40806
40807
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -40822,7 +40823,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
40822
40823
|
});
|
|
40823
40824
|
}, "termCandidates");
|
|
40824
40825
|
|
|
40825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
40826
40827
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40827
40828
|
const { database } = context;
|
|
40828
40829
|
const stemmerFor2 = stemmerCache();
|
|
@@ -40844,7 +40845,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40844
40845
|
};
|
|
40845
40846
|
}, "searchIndexStoreOver");
|
|
40846
40847
|
|
|
40847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
40848
40849
|
var HISTORY_KEPT = 1e3;
|
|
40849
40850
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
40850
40851
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -40913,7 +40914,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
40913
40914
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
40914
40915
|
}, "clearHistory");
|
|
40915
40916
|
|
|
40916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
40917
40918
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40918
40919
|
const { database } = context;
|
|
40919
40920
|
return {
|
|
@@ -40937,7 +40938,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40937
40938
|
};
|
|
40938
40939
|
}, "searchesStoreOver");
|
|
40939
40940
|
|
|
40940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
40941
40942
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
40942
40943
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
40943
40944
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -40980,7 +40981,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
40980
40981
|
};
|
|
40981
40982
|
}, "agentActionsStoreOver");
|
|
40982
40983
|
|
|
40983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
40984
40985
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
40985
40986
|
}) => {
|
|
40986
40987
|
const { database, now: now2 } = context;
|
|
@@ -41039,7 +41040,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
41039
41040
|
};
|
|
41040
41041
|
}, "botUpdateStoreOver");
|
|
41041
41042
|
|
|
41042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
41043
41044
|
var DAY4 = 864e5;
|
|
41044
41045
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
41045
41046
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -41148,7 +41149,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
41148
41149
|
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);
|
|
41149
41150
|
}, "listEvents");
|
|
41150
41151
|
|
|
41151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
41152
41153
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
41153
41154
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
41154
41155
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -41203,7 +41204,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
41203
41204
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
41204
41205
|
}, "forgetCalendarRows");
|
|
41205
41206
|
|
|
41206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
41207
41208
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
41208
41209
|
id: Number(row2.id),
|
|
41209
41210
|
accountId: Number(row2.account_id),
|
|
@@ -41790,7 +41791,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41790
41791
|
};
|
|
41791
41792
|
}, "eventStoreOver");
|
|
41792
41793
|
|
|
41793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
41794
41795
|
var CATALOG_QUERY = defineQuery({
|
|
41795
41796
|
entity: "document",
|
|
41796
41797
|
backend: "sql",
|
|
@@ -42032,7 +42033,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
42032
42033
|
};
|
|
42033
42034
|
}, "catalogStoreOver");
|
|
42034
42035
|
|
|
42035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
42036
42037
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
42037
42038
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
42038
42039
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -42045,7 +42046,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
42045
42046
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
42046
42047
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
42047
42048
|
|
|
42048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
42049
42050
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
42050
42051
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
42051
42052
|
signal?.throwIfAborted();
|
|
@@ -42144,7 +42145,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
42144
42145
|
});
|
|
42145
42146
|
}, "readMeetingContextEvidence");
|
|
42146
42147
|
|
|
42147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
42148
42149
|
var corpora = {
|
|
42149
42150
|
message: {
|
|
42150
42151
|
table: "messages",
|
|
@@ -42383,7 +42384,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
42383
42384
|
}
|
|
42384
42385
|
}), "contextRecordsOver");
|
|
42385
42386
|
|
|
42386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
42387
42388
|
var NOTE_FIELDS = [
|
|
42388
42389
|
"text",
|
|
42389
42390
|
"exact",
|
|
@@ -42813,7 +42814,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
42813
42814
|
};
|
|
42814
42815
|
}, "noteSearchOver");
|
|
42815
42816
|
|
|
42816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
42817
42818
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
42818
42819
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
42819
42820
|
var EVENT_CORPUS = {
|
|
@@ -42945,7 +42946,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
42945
42946
|
};
|
|
42946
42947
|
}, "eventSearchOver");
|
|
42947
42948
|
|
|
42948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
42949
42950
|
var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
42950
42951
|
throw new CliError(code, message2, { reason });
|
|
42951
42952
|
}, "refuse");
|
|
@@ -43406,7 +43407,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43406
43407
|
};
|
|
43407
43408
|
}, "financeStoreOver");
|
|
43408
43409
|
|
|
43409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
43410
43411
|
var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
|
|
43411
43412
|
throw new CliError("validation_error", message2, { reason });
|
|
43412
43413
|
}, "refuse");
|
|
@@ -43484,7 +43485,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
43484
43485
|
};
|
|
43485
43486
|
}, "paymentEntriesOver");
|
|
43486
43487
|
|
|
43487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
43488
43489
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
43489
43490
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
43490
43491
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -43510,7 +43511,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
43510
43511
|
return valid;
|
|
43511
43512
|
}, "validateEvidenceFindings");
|
|
43512
43513
|
|
|
43513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
43514
43515
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
43515
43516
|
try {
|
|
43516
43517
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -43522,7 +43523,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
43522
43523
|
}
|
|
43523
43524
|
}, "calendarMoment");
|
|
43524
43525
|
|
|
43525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
43526
43527
|
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";
|
|
43527
43528
|
var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
43528
43529
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -43731,7 +43732,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43731
43732
|
};
|
|
43732
43733
|
}, "factsStoreOver");
|
|
43733
43734
|
|
|
43734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
43735
43736
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
43736
43737
|
throw new CliError("validation_error", message2);
|
|
43737
43738
|
}, "invalid");
|
|
@@ -43835,7 +43836,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
43835
43836
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
43836
43837
|
}, "findingsCoreOver");
|
|
43837
43838
|
|
|
43838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
43839
43840
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
43840
43841
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
43841
43842
|
var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -44000,7 +44001,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
44000
44001
|
};
|
|
44001
44002
|
}, "proposedActionsStoreOver");
|
|
44002
44003
|
|
|
44003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
44004
44005
|
var stale = /* @__PURE__ */ __name(() => {
|
|
44005
44006
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
44006
44007
|
reason: "evidence-findings.stale"
|
|
@@ -44181,7 +44182,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
44181
44182
|
};
|
|
44182
44183
|
}, "evidenceFindingsStoreOver");
|
|
44183
44184
|
|
|
44184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
44185
44186
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
44186
44187
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
44187
44188
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -44234,7 +44235,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
44234
44235
|
}, "forPerson")
|
|
44235
44236
|
}), "involvementStoreOver");
|
|
44236
44237
|
|
|
44237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
44238
44239
|
import { createHash as createHash12 } from "node:crypto";
|
|
44239
44240
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
44240
44241
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -44320,7 +44321,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
44320
44321
|
};
|
|
44321
44322
|
}, "meetingProjectsStoreOver");
|
|
44322
44323
|
|
|
44323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
44324
44325
|
var ORGANIZATIONS_QUERY = {
|
|
44325
44326
|
entity: "organization",
|
|
44326
44327
|
backend: "sql",
|
|
@@ -44361,7 +44362,7 @@ var REMINDERS_QUERY = {
|
|
|
44361
44362
|
})
|
|
44362
44363
|
};
|
|
44363
44364
|
|
|
44364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/organizations.js
|
|
44365
44366
|
var organizationOf = /* @__PURE__ */ __name((row2) => ({
|
|
44366
44367
|
id: String(row2.id),
|
|
44367
44368
|
ref: `organization:${row2.id}`,
|
|
@@ -44394,7 +44395,7 @@ var organizationsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) =>
|
|
|
44394
44395
|
}), "updateOrganization")
|
|
44395
44396
|
}), "organizationsStoreOver");
|
|
44396
44397
|
|
|
44397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
44398
44399
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
44399
44400
|
id: link3.id,
|
|
44400
44401
|
from: link3.from,
|
|
@@ -44620,16 +44621,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
44620
44621
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
44621
44622
|
}, "decidedOrigin");
|
|
44622
44623
|
|
|
44623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
44624
44625
|
import { createHash as createHash15 } from "node:crypto";
|
|
44625
44626
|
|
|
44626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
44627
44628
|
import { createHash as createHash14 } from "node:crypto";
|
|
44628
44629
|
|
|
44629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
44630
44631
|
import { createHash as createHash13 } from "node:crypto";
|
|
44631
44632
|
|
|
44632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
44633
44634
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
44634
44635
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
44635
44636
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -44680,7 +44681,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
44680
44681
|
return input;
|
|
44681
44682
|
}, "consolidationApplyInput");
|
|
44682
44683
|
|
|
44683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
44684
44685
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
44685
44686
|
id: String(row2.id),
|
|
44686
44687
|
sourceId: String(row2.source_id),
|
|
@@ -44755,7 +44756,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
44755
44756
|
}, { beforeCommit: check3 });
|
|
44756
44757
|
}, "applyTagConsolidation");
|
|
44757
44758
|
|
|
44758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
44759
44760
|
var selections = [
|
|
44760
44761
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
44761
44762
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -44899,7 +44900,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
44899
44900
|
};
|
|
44900
44901
|
}, "previewRows");
|
|
44901
44902
|
|
|
44902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
44903
44904
|
var kinds = ["project", "tag", "topic"];
|
|
44904
44905
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
44905
44906
|
if (signal?.aborted)
|
|
@@ -45163,7 +45164,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45163
45164
|
};
|
|
45164
45165
|
}, "vocabularyStoreOver");
|
|
45165
45166
|
|
|
45166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
45167
45168
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
45168
45169
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
45169
45170
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -45704,7 +45705,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
45704
45705
|
return key2.padEnd(3, "X");
|
|
45705
45706
|
}, "projectKey");
|
|
45706
45707
|
|
|
45707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
45708
45709
|
var DAY5 = 864e5;
|
|
45709
45710
|
var SETTING4 = "logs_pruned_at";
|
|
45710
45711
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -45731,7 +45732,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
45731
45732
|
};
|
|
45732
45733
|
}, "logPruner");
|
|
45733
45734
|
|
|
45734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
45735
45736
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
45736
45737
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
45737
45738
|
var invalid6 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -45813,6 +45814,23 @@ var MAIL_FINDING_FIELDS = {
|
|
|
45813
45814
|
order_update: { needs: ["supplierName", "number", "status", "reason"], may: ["date"] }
|
|
45814
45815
|
};
|
|
45815
45816
|
var MAIL_FINDING_KINDS = Object.keys(MAIL_FINDING_FIELDS);
|
|
45817
|
+
var VALUES = {
|
|
45818
|
+
task: { type: ["bug", "feature", "chore"], commitment: ["explicit", "inferred"] },
|
|
45819
|
+
task_update: { change: ["close", "due", "detail"] },
|
|
45820
|
+
memory: { memoryKind: MEMORY_KINDS, scope: MEMORY_SCOPES },
|
|
45821
|
+
invoice: { direction: INVOICE_DIRECTIONS },
|
|
45822
|
+
payment: { direction: MONEY_DIRECTIONS },
|
|
45823
|
+
order: { purpose: ORDER_PURPOSES, status: ORDER_STATUSES },
|
|
45824
|
+
order_update: { status: ORDER_STATUSES }
|
|
45825
|
+
};
|
|
45826
|
+
var mailFindingFieldsHelp = /* @__PURE__ */ __name(() => MAIL_FINDING_KINDS.map((kind4) => {
|
|
45827
|
+
const { needs, may } = MAIL_FINDING_FIELDS[kind4];
|
|
45828
|
+
const named3 = /* @__PURE__ */ __name((field4) => {
|
|
45829
|
+
const values = VALUES[kind4]?.[field4];
|
|
45830
|
+
return values ? `${snakeCase(field4)} ${values.join("|")}` : snakeCase(field4);
|
|
45831
|
+
}, "named");
|
|
45832
|
+
return ` ${kind4}: ${needs.map(named3).join(", ")}${may.length ? `; optional ${may.map(named3).join(", ")}` : ""}`;
|
|
45833
|
+
}).join("\n"), "mailFindingFieldsHelp");
|
|
45816
45834
|
var typeOf2 = /* @__PURE__ */ __name((reference2) => {
|
|
45817
45835
|
try {
|
|
45818
45836
|
const parsed3 = parseReference(reference2);
|
|
@@ -46090,7 +46108,7 @@ var checkMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
46090
46108
|
}, "checkMailFindings");
|
|
46091
46109
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
46092
46110
|
|
|
46093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
46094
46112
|
var import_disposable_email_domains_js = __toESM(require_dist(), 1);
|
|
46095
46113
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
46096
46114
|
var WEIGHTS = {
|
|
@@ -46223,7 +46241,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
46223
46241
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
46224
46242
|
}, "scoreGroup");
|
|
46225
46243
|
|
|
46226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
|
|
46227
46245
|
var ORDERS = "SELECT o.*, b.name AS author_name, b.kind AS author_kind FROM orders o LEFT JOIN bots b ON o.author_type = 'bot' AND b.id = o.author_id";
|
|
46228
46246
|
var orderOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
46229
46247
|
const { database, now: now2 } = context;
|
|
@@ -46375,7 +46393,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
46375
46393
|
};
|
|
46376
46394
|
}, "ordersStoreOver");
|
|
46377
46395
|
|
|
46378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
46379
46397
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
46380
46398
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
46381
46399
|
reason: "mail-findings.stale"
|
|
@@ -46832,7 +46850,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
46832
46850
|
};
|
|
46833
46851
|
}, "mailFindingsStoreOver");
|
|
46834
46852
|
|
|
46835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
46836
46854
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
46837
46855
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
46838
46856
|
reason: "meeting-findings.stale"
|
|
@@ -47000,7 +47018,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
47000
47018
|
};
|
|
47001
47019
|
}, "meetingFindingsStoreOver");
|
|
47002
47020
|
|
|
47003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
47004
47022
|
var RANK_BATCH = 512;
|
|
47005
47023
|
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";
|
|
47006
47024
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -47271,7 +47289,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
47271
47289
|
}
|
|
47272
47290
|
}), "meetingVectorsOver");
|
|
47273
47291
|
|
|
47274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
47275
47293
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
47276
47294
|
var TEXTS = {
|
|
47277
47295
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -47372,11 +47390,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
47372
47390
|
};
|
|
47373
47391
|
}, "sourceMentionStoreOver");
|
|
47374
47392
|
|
|
47375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
47376
47394
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
47377
47395
|
import { dirname } from "node:path";
|
|
47378
47396
|
|
|
47379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
47380
47398
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
47381
47399
|
var CLIENTS_SETTING = "clients";
|
|
47382
47400
|
var coreVersion = (() => {
|
|
@@ -47434,7 +47452,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
47434
47452
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
47435
47453
|
}, "refusalAdvice");
|
|
47436
47454
|
|
|
47437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
47438
47456
|
var GENERATED = [
|
|
47439
47457
|
{
|
|
47440
47458
|
"name": "20261010184427_initial",
|
|
@@ -48437,7 +48455,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
48437
48455
|
}
|
|
48438
48456
|
];
|
|
48439
48457
|
|
|
48440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
48441
48459
|
var MANIFEST = [
|
|
48442
48460
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
48443
48461
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -48529,7 +48547,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
48529
48547
|
return migrations;
|
|
48530
48548
|
}, "generatedMigrations");
|
|
48531
48549
|
|
|
48532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
48533
48551
|
var MIGRATIONS = generatedMigrations();
|
|
48534
48552
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
48535
48553
|
version INTEGER PRIMARY KEY,
|
|
@@ -48582,7 +48600,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
48582
48600
|
}
|
|
48583
48601
|
}, "migrate");
|
|
48584
48602
|
|
|
48585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
48586
48604
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
48587
48605
|
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 ?");
|
|
48588
48606
|
if (pending.get(0, 1) === void 0)
|
|
@@ -48604,7 +48622,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
48604
48622
|
}
|
|
48605
48623
|
}, "fillJoinKeys");
|
|
48606
48624
|
|
|
48607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
48608
48626
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
48609
48627
|
refuseOwnerStoreInTests(path);
|
|
48610
48628
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -48618,8 +48636,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
48618
48636
|
}, "openSqlite");
|
|
48619
48637
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
48620
48638
|
quietSqliteWarning();
|
|
48621
|
-
const { drizzle } = await import("./node-
|
|
48622
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
48639
|
+
const { drizzle } = await import("./node-NBXEN7JU.js");
|
|
48640
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-WAGIYOYR.js");
|
|
48623
48641
|
const client = await nodeClient(path, { readOnly });
|
|
48624
48642
|
try {
|
|
48625
48643
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -48629,8 +48647,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
48629
48647
|
}
|
|
48630
48648
|
}, "openUnderNode");
|
|
48631
48649
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
48632
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
48633
|
-
const { drizzle } = await import("./bun-
|
|
48650
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-3V6EB3XP.js");
|
|
48651
|
+
const { drizzle } = await import("./bun-GFMA4TKJ.js");
|
|
48634
48652
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
48635
48653
|
try {
|
|
48636
48654
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -48640,7 +48658,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
48640
48658
|
}
|
|
48641
48659
|
}, "openUnderBun");
|
|
48642
48660
|
|
|
48643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
48644
48662
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
48645
48663
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
48646
48664
|
try {
|
|
@@ -48708,7 +48726,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
48708
48726
|
});
|
|
48709
48727
|
}, "movePaymentFacts");
|
|
48710
48728
|
|
|
48711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
48712
48730
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
48713
48731
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
48714
48732
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -48723,7 +48741,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
48723
48741
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
48724
48742
|
}, "assertReadCompatible");
|
|
48725
48743
|
|
|
48726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
48727
48745
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
48728
48746
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
48729
48747
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -48769,7 +48787,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
48769
48787
|
});
|
|
48770
48788
|
}, "moveSuggestedLinks");
|
|
48771
48789
|
|
|
48772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
48773
48791
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
48774
48792
|
var TEST_PROVIDER = "chat";
|
|
48775
48793
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -48790,7 +48808,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
48790
48808
|
}
|
|
48791
48809
|
}, "purgeTestAccounts");
|
|
48792
48810
|
|
|
48793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
48794
48812
|
var BACKFILL_ON_OPEN = 5e3;
|
|
48795
48813
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
48796
48814
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -48855,10 +48873,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
48855
48873
|
}
|
|
48856
48874
|
}, "openStoreContext");
|
|
48857
48875
|
|
|
48858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
48859
48877
|
import { createHash as createHash16 } from "node:crypto";
|
|
48860
48878
|
|
|
48861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
48862
48880
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
48863
48881
|
var ref = text4(2048);
|
|
48864
48882
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -48924,7 +48942,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
48924
48942
|
}))
|
|
48925
48943
|
});
|
|
48926
48944
|
|
|
48927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
48928
48946
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
48929
48947
|
var invalid9 = /* @__PURE__ */ __name((field4) => {
|
|
48930
48948
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -49028,7 +49046,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
49028
49046
|
invalid9("external.unused");
|
|
49029
49047
|
}, "validateProjectAnnotationsGraph");
|
|
49030
49048
|
|
|
49031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
49032
49050
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
49033
49051
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
49034
49052
|
var targetSchema = strictObject({
|
|
@@ -49134,7 +49152,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
49134
49152
|
};
|
|
49135
49153
|
}, "planBoundProjectAnnotations");
|
|
49136
49154
|
|
|
49137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
49138
49156
|
import { createHash as createHash17 } from "node:crypto";
|
|
49139
49157
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
49140
49158
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -49228,7 +49246,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
49228
49246
|
})).digest("hex");
|
|
49229
49247
|
}, "projectAnnotationSnapshotFingerprint");
|
|
49230
49248
|
|
|
49231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
49232
49250
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
49233
49251
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
49234
49252
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -49245,7 +49263,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
49245
49263
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
49246
49264
|
}, "projectAnnotationRequest");
|
|
49247
49265
|
|
|
49248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
49249
49267
|
var SnapshotBudget = class {
|
|
49250
49268
|
static {
|
|
49251
49269
|
__name(this, "SnapshotBudget");
|
|
@@ -49271,13 +49289,13 @@ var SnapshotBudget = class {
|
|
|
49271
49289
|
}
|
|
49272
49290
|
};
|
|
49273
49291
|
|
|
49274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
49275
49293
|
import { createHash as createHash19 } from "node:crypto";
|
|
49276
49294
|
|
|
49277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
49278
49296
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
49279
49297
|
|
|
49280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
49281
49299
|
import { createHash as createHash18 } from "node:crypto";
|
|
49282
49300
|
var invalid11 = /* @__PURE__ */ __name(() => {
|
|
49283
49301
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -49420,7 +49438,7 @@ var ProjectSnapshotSources = class {
|
|
|
49420
49438
|
}
|
|
49421
49439
|
};
|
|
49422
49440
|
|
|
49423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
49424
49442
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
49425
49443
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
49426
49444
|
}, "unsupported");
|
|
@@ -49591,7 +49609,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
49591
49609
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
49592
49610
|
}), "projectAnnotationSnapshot");
|
|
49593
49611
|
|
|
49594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
49595
49613
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
49596
49614
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
49597
49615
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -49653,7 +49671,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
49653
49671
|
};
|
|
49654
49672
|
}), "previewAnnotationSnapshot");
|
|
49655
49673
|
|
|
49656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
49657
49675
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
49658
49676
|
const mappings = { ...bindings };
|
|
49659
49677
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -49695,7 +49713,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
49695
49713
|
return mappings;
|
|
49696
49714
|
}, "restoreAnnotationRecords");
|
|
49697
49715
|
|
|
49698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
49699
49717
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
49700
49718
|
async preview(request) {
|
|
49701
49719
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -49725,7 +49743,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
49725
49743
|
}
|
|
49726
49744
|
}), "projectAnnotationStoreOver");
|
|
49727
49745
|
|
|
49728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
49729
49747
|
import { createHash as createHash20 } from "node:crypto";
|
|
49730
49748
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
49731
49749
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -49957,7 +49975,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
|
|
|
49957
49975
|
return isObject2(header) ? { ...header, records: records2 } : header;
|
|
49958
49976
|
}, "envelopeOfJsonl");
|
|
49959
49977
|
|
|
49960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
49961
49979
|
var PROJECTED = {
|
|
49962
49980
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
49963
49981
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -50370,7 +50388,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
50370
50388
|
};
|
|
50371
50389
|
}, "recordStoreOver");
|
|
50372
50390
|
|
|
50373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
50374
50392
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
50375
50393
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
50376
50394
|
let merged = { from: from2, to };
|
|
@@ -50383,7 +50401,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
50383
50401
|
}, "markRange");
|
|
50384
50402
|
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");
|
|
50385
50403
|
|
|
50386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
50387
50405
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
50388
50406
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
50389
50407
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -50404,7 +50422,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
50404
50422
|
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);
|
|
50405
50423
|
}, "setTaskAnalysisMark");
|
|
50406
50424
|
|
|
50407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
50408
50426
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
50409
50427
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
50410
50428
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -50414,7 +50432,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
50414
50432
|
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);
|
|
50415
50433
|
}, "setTaskRulesStop");
|
|
50416
50434
|
|
|
50417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
50418
50436
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
50419
50437
|
const { database } = context;
|
|
50420
50438
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -50473,7 +50491,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
50473
50491
|
};
|
|
50474
50492
|
}, "syncStoreOver");
|
|
50475
50493
|
|
|
50476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
50477
50495
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
50478
50496
|
const { database } = context;
|
|
50479
50497
|
return {
|
|
@@ -50495,7 +50513,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
50495
50513
|
};
|
|
50496
50514
|
}, "tagsStoreOver");
|
|
50497
50515
|
|
|
50498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
50499
50517
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
50500
50518
|
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
|
|
50501
50519
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -50622,7 +50640,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
50622
50640
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
50623
50641
|
}, "savePictureChunks");
|
|
50624
50642
|
|
|
50625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
50626
50644
|
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,
|
|
50627
50645
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
50628
50646
|
FROM messages m
|
|
@@ -50711,7 +50729,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
50711
50729
|
return plain2(best(found2));
|
|
50712
50730
|
}, "nearestMessages");
|
|
50713
50731
|
|
|
50714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
50715
50733
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
50716
50734
|
const { database } = context;
|
|
50717
50735
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -50969,7 +50987,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
50969
50987
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
50970
50988
|
}), "vectorsStoreOver");
|
|
50971
50989
|
|
|
50972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
50973
50991
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
50974
50992
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
50975
50993
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -51057,10 +51075,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
51057
51075
|
}
|
|
51058
51076
|
}, "lastBackup");
|
|
51059
51077
|
|
|
51060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
51061
51079
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
51062
51080
|
|
|
51063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
51064
51082
|
var COUNTED_TABLES = [
|
|
51065
51083
|
"accounts",
|
|
51066
51084
|
"chats",
|
|
@@ -51145,7 +51163,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
51145
51163
|
};
|
|
51146
51164
|
}, "storeContents");
|
|
51147
51165
|
|
|
51148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
51149
51167
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
51150
51168
|
const context = await openStoreContext(options);
|
|
51151
51169
|
try {
|
|
@@ -51497,6 +51515,7 @@ export {
|
|
|
51497
51515
|
ORGANIZATION_KINDS,
|
|
51498
51516
|
PROJECT_TYPES,
|
|
51499
51517
|
SCOPES,
|
|
51518
|
+
mailFindingFieldsHelp,
|
|
51500
51519
|
validateMailFindings,
|
|
51501
51520
|
registrableOf,
|
|
51502
51521
|
scoreGroup,
|