@wirecat/cli-memo 0.131.46 → 0.131.47
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-I2JBJDOR.js → all-profiles-75EGCXK3.js} +5 -5
- package/dist/bundle/{anthropic-CARSCLDG.js → anthropic-PTAYBCPR.js} +3 -3
- package/dist/bundle/{app-server-SAMZMY3C.js → app-server-YSUBXGGB.js} +41 -38
- package/dist/bundle/auto-GB35FRTV.js +86 -0
- package/dist/bundle/{bun-T6E2RGI5.js → bun-3AIG5ML4.js} +2 -2
- package/dist/bundle/{bun-sqlite-WWDLRDBW.js → bun-sqlite-5FCGI6EO.js} +2 -2
- package/dist/bundle/{chunk-3ZLDPPI4.js → chunk-25RDNYKZ.js} +5 -5
- package/dist/bundle/{chunk-CV5MM7HG.js → chunk-32QM6X5H.js} +1 -1
- package/dist/bundle/{chunk-2K7E5YOZ.js → chunk-3HPFTKDH.js} +4 -4
- package/dist/bundle/{chunk-HFQZYHLX.js → chunk-4LWX2WOB.js} +3 -3
- package/dist/bundle/{chunk-ZGQSWRCY.js → chunk-5N6HWFXN.js} +508 -338
- package/dist/bundle/{chunk-5FN27OVR.js → chunk-6IVHND3S.js} +4 -4
- package/dist/bundle/{chunk-YPD27HJI.js → chunk-6QNPOBR5.js} +11 -11
- package/dist/bundle/{chunk-UI4MKFTZ.js → chunk-6TKWJKPS.js} +10 -10
- package/dist/bundle/{chunk-2FYCJ3KB.js → chunk-BNIWLVWG.js} +3 -3
- package/dist/bundle/{chunk-JX6JZTOI.js → chunk-CODD5SXC.js} +27 -27
- package/dist/bundle/{chunk-VOUTO3WF.js → chunk-DDADFHR7.js} +12 -12
- package/dist/bundle/{chunk-TOSRVNCY.js → chunk-DMTLG2GD.js} +7 -7
- package/dist/bundle/{chunk-GPBUD6WS.js → chunk-DS4DOK75.js} +22 -21
- package/dist/bundle/{chunk-IQJQLLAV.js → chunk-DWBTCOF2.js} +4 -4
- package/dist/bundle/{chunk-37D3IHOG.js → chunk-EFQCDCLY.js} +56 -56
- package/dist/bundle/{chunk-NFSFUVP2.js → chunk-ELKK5M66.js} +5 -5
- package/dist/bundle/{chunk-VZRGIWJM.js → chunk-EVZI54B5.js} +4 -4
- package/dist/bundle/{chunk-LTZHG4BX.js → chunk-F4HMPMET.js} +7 -7
- package/dist/bundle/{chunk-AXCYTZJD.js → chunk-FSAMZHIM.js} +5 -5
- package/dist/bundle/{chunk-XFT24B7A.js → chunk-G3YSCD77.js} +155 -152
- package/dist/bundle/{chunk-YFZ45S6S.js → chunk-G4W42RGE.js} +1 -1
- package/dist/bundle/{chunk-PIHAI7NF.js → chunk-GA3KFYEZ.js} +4 -4
- package/dist/bundle/{chunk-IPNORZSF.js → chunk-GOFPCOEI.js} +9 -9
- package/dist/bundle/{chunk-RF3R3W2I.js → chunk-GQLSVXS2.js} +20 -20
- package/dist/bundle/{chunk-ADBD5GOY.js → chunk-HCZV537M.js} +1 -1
- package/dist/bundle/{chunk-36DLHVMS.js → chunk-HVTW2M6T.js} +1 -1
- package/dist/bundle/{chunk-QR5HJROX.js → chunk-HYEYRFWX.js} +1 -1
- package/dist/bundle/{chunk-LOSAAPRY.js → chunk-I2RDACUF.js} +6 -6
- package/dist/bundle/{chunk-UYITVRUC.js → chunk-ILK5BCBB.js} +1 -1
- package/dist/bundle/{chunk-W2EY5PSH.js → chunk-IPLPMD6H.js} +1 -1
- package/dist/bundle/{chunk-QUUYSYCG.js → chunk-IPMBB6W5.js} +2 -2
- package/dist/bundle/{chunk-UEMY6RSB.js → chunk-J324GKJM.js} +1 -1
- package/dist/bundle/{chunk-TFWTSBON.js → chunk-KLBZJZD2.js} +592 -118
- package/dist/bundle/{chunk-HE535VWC.js → chunk-KWM7HLAI.js} +4 -4
- package/dist/bundle/{chunk-7UNXTC2J.js → chunk-LE7NROV6.js} +31 -31
- package/dist/bundle/{chunk-6B75W6XW.js → chunk-MCMEBL3C.js} +17 -9
- package/dist/bundle/{chunk-F7XQEYF3.js → chunk-MMJDQQFX.js} +268 -255
- package/dist/bundle/{chunk-5FBJQHCG.js → chunk-MSBRZ5QD.js} +2 -2
- package/dist/bundle/{chunk-IFGMJXND.js → chunk-N5QQFDNV.js} +2 -2
- package/dist/bundle/{chunk-XB43J5VQ.js → chunk-N63KZFH4.js} +8 -8
- package/dist/bundle/{chunk-YBBCGTZO.js → chunk-OSCRP52P.js} +298 -287
- package/dist/bundle/{chunk-AAKU7TGI.js → chunk-PGVADNDD.js} +2 -2
- package/dist/bundle/{chunk-IEVJMRL2.js → chunk-R44PUK7G.js} +1 -1
- package/dist/bundle/{chunk-UT2K3TAH.js → chunk-SYTYLLYO.js} +1 -1
- package/dist/bundle/{chunk-WXCRRP4B.js → chunk-U35N3EC7.js} +1 -1
- package/dist/bundle/{chunk-2MKPY6NU.js → chunk-U75ANK5K.js} +1 -1
- package/dist/bundle/{chunk-PZQCIEMC.js → chunk-UE4GMPBY.js} +1 -1
- package/dist/bundle/{chunk-J6EUSJ3X.js → chunk-UFVGAFID.js} +3 -3
- package/dist/bundle/{chunk-CWBRCYDY.js → chunk-V3B5COFP.js} +3 -3
- package/dist/bundle/{chunk-KGVDWSGM.js → chunk-V6OYLCCM.js} +2 -2
- package/dist/bundle/{chunk-VUSM6XFE.js → chunk-W2JVP7GK.js} +1 -1
- package/dist/bundle/{chunk-MKA3NOUU.js → chunk-W3T45MMN.js} +5 -5
- package/dist/bundle/{chunk-HDNMDLWC.js → chunk-XRRPQCTS.js} +1 -1
- package/dist/bundle/{chunk-BJSZECFV.js → chunk-Y4ZXDJQF.js} +2 -2
- package/dist/bundle/{chunk-TU34HVOY.js → chunk-YMK35KVV.js} +2 -2
- package/dist/bundle/{chunk-V7QNIJOE.js → chunk-ZKH6LC5P.js} +7 -7
- package/dist/bundle/{chunk-ICF3LNBX.js → chunk-ZLIARJU4.js} +1 -1
- package/dist/bundle/{command-contract-B6MBG7GI.js → command-contract-YYILWWYQ.js} +11 -11
- package/dist/bundle/{decode-E3TI4HEU.js → decode-F2A2BLIA.js} +2 -2
- package/dist/bundle/{echarts-B46XTHOI.js → echarts-JL55HJCM.js} +2 -2
- package/dist/bundle/{embed-BIUMRFOQ.js → embed-74KVORNN.js} +3 -3
- package/dist/bundle/{embedder-IA3CG6LB.js → embedder-GACNPCZN.js} +6 -6
- package/dist/bundle/{entry-E3QEAAYL.js → entry-7FI2H4RQ.js} +4 -4
- package/dist/bundle/failure-AHPPXHAW.js +66 -0
- package/dist/bundle/{first-run-6UQRVGZ4.js → first-run-D4VBIJ7H.js} +5 -5
- package/dist/bundle/{first-screen-W3BPVWCT.js → first-screen-D7Q2U7VP.js} +12 -12
- package/dist/bundle/{instructions-6AISOK6M.js → instructions-QNPIVGKX.js} +1 -1
- package/dist/bundle/{mcp-RX3COQPC.js → mcp-AFXHH33V.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-6GP2V36M.js → node-SPFML2D5.js} +2 -2
- package/dist/bundle/{node-sqlite-2CC5J5RZ.js → node-sqlite-T3KILRCP.js} +3 -3
- package/dist/bundle/{oauth-VOOLTPGW.js → oauth-ZOGSHZF3.js} +4 -4
- package/dist/bundle/{open-AGFSOJG6.js → open-XXFVCGCA.js} +2 -2
- package/dist/bundle/{openai-KPRA5NIB.js → openai-JRHZLFKD.js} +7 -7
- package/dist/bundle/{process-J74KA6F3.js → process-OGYYVVLG.js} +1 -1
- package/dist/bundle/{program-VAYJBUPU.js → program-EFCQACPD.js} +91 -61
- package/dist/bundle/{prompt-PDQD5OD5.js → prompt-53D5WVD3.js} +2 -2
- package/dist/bundle/{recognize-QH6FBB2L.js → recognize-7GYZKJCD.js} +1 -1
- package/dist/bundle/{remote-BREQR2BJ.js → remote-V5GUFZCG.js} +4 -4
- package/dist/bundle/{rerank-HWNJXOHL.js → rerank-FUNVBYFI.js} +4 -4
- package/dist/bundle/{serve-A63VR5F4.js → serve-ZLUYFAXC.js} +6 -6
- package/dist/bundle/server-4OJC7ZWM.js +61 -0
- package/dist/bundle/server-CGUUZBLB.js +48 -0
- package/dist/bundle/{server-6UZJQQ4E.js → server-HJRMD3XD.js} +50 -50
- package/dist/bundle/{state-GMJJEIPI.js → state-4P7H6KBM.js} +3 -3
- package/dist/bundle/{store-HLK3ZQ7A.js → store-NILJK24C.js} +9 -9
- package/dist/bundle/store-maintenance-command-VP7CIBSS.js +48 -0
- package/dist/bundle/update-NPK4DT2E.js +69 -0
- package/dist/contract-overrides/doctor.d.ts.map +1 -1
- package/dist/contract-overrides/doctor.js +6 -0
- package/dist/contract-overrides/doctor.js.map +1 -1
- package/dist/doctor/command.d.ts +23 -2
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +13 -5
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +2 -0
- package/dist/examples.js.map +1 -1
- package/dist/store/info-command.d.ts.map +1 -1
- package/dist/store/info-command.js +23 -1
- package/dist/store/info-command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/auto-KD7L4X6G.js +0 -86
- package/dist/bundle/failure-UKRO32A7.js +0 -66
- package/dist/bundle/server-3FKLHDFN.js +0 -48
- package/dist/bundle/server-XKZXPS7I.js +0 -61
- package/dist/bundle/store-maintenance-command-2WOANSCK.js +0 -48
- package/dist/bundle/update-GIAB6TXY.js +0 -69
- /package/dist/bundle/{chunk-B6ZCQNF4.js → chunk-JPGEFBRW.js} +0 -0
|
@@ -100,11 +100,11 @@ import {
|
|
|
100
100
|
validateQuery,
|
|
101
101
|
walkQuery,
|
|
102
102
|
zonedMoment
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-EFQCDCLY.js";
|
|
104
104
|
import {
|
|
105
105
|
holdsCredential,
|
|
106
106
|
secretNamed
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-XRRPQCTS.js";
|
|
108
108
|
import {
|
|
109
109
|
DEFAULT_STEMMERS,
|
|
110
110
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -117,27 +117,27 @@ import {
|
|
|
117
117
|
fold,
|
|
118
118
|
normalize,
|
|
119
119
|
parseStemmers
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-DMTLG2GD.js";
|
|
121
121
|
import {
|
|
122
122
|
DEFAULT_TASK_CATEGORIES,
|
|
123
123
|
sharedConfigPath,
|
|
124
124
|
storedTaskCategories,
|
|
125
125
|
taskCategoriesReader
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-EVZI54B5.js";
|
|
127
127
|
import {
|
|
128
128
|
refuseOwnerStoreInTests,
|
|
129
129
|
storePath
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-IPLPMD6H.js";
|
|
131
131
|
import {
|
|
132
132
|
quietSqliteWarning,
|
|
133
133
|
storeCapable
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-25RDNYKZ.js";
|
|
135
135
|
import {
|
|
136
136
|
PRAGMAS,
|
|
137
137
|
TIME_LIMIT_FUNCTION,
|
|
138
138
|
TimeLimitReached,
|
|
139
139
|
isQueryOnly
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-UE4GMPBY.js";
|
|
141
141
|
import {
|
|
142
142
|
array,
|
|
143
143
|
boolean,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
sql,
|
|
188
188
|
sqliteTable,
|
|
189
189
|
text
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-ZLIARJU4.js";
|
|
191
191
|
import {
|
|
192
192
|
__commonJS,
|
|
193
193
|
__name,
|
|
@@ -9931,7 +9931,7 @@ var require_cjs = __commonJS({
|
|
|
9931
9931
|
}
|
|
9932
9932
|
});
|
|
9933
9933
|
|
|
9934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
9935
9935
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
9936
9936
|
const methods = whole;
|
|
9937
9937
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -10059,7 +10059,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
10059
10059
|
};
|
|
10060
10060
|
}, "bindAccount");
|
|
10061
10061
|
|
|
10062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
10063
10063
|
var SCHEME = "msg:";
|
|
10064
10064
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
10065
10065
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -10073,7 +10073,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
10073
10073
|
return { provider, account, chat: chat2, message: message2 };
|
|
10074
10074
|
}, "parseLocator");
|
|
10075
10075
|
|
|
10076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
10077
10077
|
var SIMPLE_REFERENCES = [
|
|
10078
10078
|
"note",
|
|
10079
10079
|
"document",
|
|
@@ -10224,7 +10224,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
10224
10224
|
return match !== null && byPrefix.has(match[1]);
|
|
10225
10225
|
}, "looksLikeReference");
|
|
10226
10226
|
|
|
10227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
10228
10228
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
10229
10229
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
10230
10230
|
var PROVIDERS = [
|
|
@@ -10340,7 +10340,7 @@ var providerNamed = /* @__PURE__ */ __name((word2) => {
|
|
|
10340
10340
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
10341
10341
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
10342
10342
|
|
|
10343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
10344
10344
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
10345
10345
|
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");
|
|
10346
10346
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -10363,7 +10363,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
10363
10363
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
10364
10364
|
}, "sourceOf");
|
|
10365
10365
|
|
|
10366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
10367
10367
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
10368
10368
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
10369
10369
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -10551,7 +10551,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
|
|
|
10551
10551
|
return { accounts: [...chosen.values()], skipped };
|
|
10552
10552
|
}, "fitting");
|
|
10553
10553
|
|
|
10554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
10555
10555
|
var IndexBuilderOn = class {
|
|
10556
10556
|
static {
|
|
10557
10557
|
__name(this, "IndexBuilderOn");
|
|
@@ -10746,7 +10746,7 @@ function alias(table, alias2) {
|
|
|
10746
10746
|
}
|
|
10747
10747
|
__name(alias, "alias");
|
|
10748
10748
|
|
|
10749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
10750
10750
|
var ENTITY_TABLES = {
|
|
10751
10751
|
account: "accounts",
|
|
10752
10752
|
attachment: "attachments",
|
|
@@ -10792,7 +10792,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
10792
10792
|
return { table, pointer, type, count, known: known2 };
|
|
10793
10793
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
10794
10794
|
|
|
10795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
10796
10796
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
10797
10797
|
id: integer("id").primaryKey(),
|
|
10798
10798
|
name: text("name").notNull().unique(),
|
|
@@ -10801,7 +10801,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
10801
10801
|
updatedAt: integer("updated_at").notNull()
|
|
10802
10802
|
});
|
|
10803
10803
|
|
|
10804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
10805
10805
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
10806
10806
|
sourceKey: text("source_key").notNull(),
|
|
10807
10807
|
collection: text("collection").notNull(),
|
|
@@ -10811,13 +10811,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
10811
10811
|
createdAt: integer("created_at").notNull()
|
|
10812
10812
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
10813
10813
|
|
|
10814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
10815
10815
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
10816
10816
|
id: integer("id").notNull(),
|
|
10817
10817
|
indexableType: text("indexable_type").notNull()
|
|
10818
10818
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
10819
10819
|
|
|
10820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
10821
10821
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
10822
10822
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
10823
10823
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -10843,7 +10843,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
10843
10843
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
10844
10844
|
]);
|
|
10845
10845
|
|
|
10846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
10847
10847
|
var accounts = sqliteTable("accounts", {
|
|
10848
10848
|
id: integer("id").primaryKey(),
|
|
10849
10849
|
provider: text("provider").notNull(),
|
|
@@ -12629,7 +12629,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
12629
12629
|
at: integer("at").notNull()
|
|
12630
12630
|
});
|
|
12631
12631
|
|
|
12632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
12633
12633
|
var ARMS = [
|
|
12634
12634
|
[
|
|
12635
12635
|
"message",
|
|
@@ -12756,7 +12756,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
12756
12756
|
return recomputed;
|
|
12757
12757
|
}, "drainInvolvementQueue");
|
|
12758
12758
|
|
|
12759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
12760
12760
|
import { domainToUnicode } from "node:url";
|
|
12761
12761
|
|
|
12762
12762
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -22778,7 +22778,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
22778
22778
|
}, "oa");
|
|
22779
22779
|
var na = { parse: O, get: aa, isValid: oa };
|
|
22780
22780
|
|
|
22781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
22782
22782
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
22783
22783
|
var ID = /^[\w-]{10,}$/;
|
|
22784
22784
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -22819,7 +22819,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
22819
22819
|
return { url, documentId: googleDocumentId(url) };
|
|
22820
22820
|
}), "googleDocumentLinks");
|
|
22821
22821
|
|
|
22822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
22823
22823
|
var PHONE_PLANS = [
|
|
22824
22824
|
{
|
|
22825
22825
|
country: "us",
|
|
@@ -23199,7 +23199,7 @@ var PHONE_PLANS = [
|
|
|
23199
23199
|
}
|
|
23200
23200
|
];
|
|
23201
23201
|
|
|
23202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
23203
23203
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
23204
23204
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
23205
23205
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -23240,7 +23240,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
23240
23240
|
return void 0;
|
|
23241
23241
|
}, "nationalPhone");
|
|
23242
23242
|
|
|
23243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
23244
23244
|
var BEFORE = [
|
|
23245
23245
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
23246
23246
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -23500,7 +23500,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
23500
23500
|
return found2.sort((a, b) => a.start - b.start);
|
|
23501
23501
|
}, "findPlaces");
|
|
23502
23502
|
|
|
23503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
23504
23504
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
23505
23505
|
var MENTION_VERSIONS = {
|
|
23506
23506
|
phone: 1,
|
|
@@ -23690,7 +23690,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
23690
23690
|
};
|
|
23691
23691
|
}, "typedPhone");
|
|
23692
23692
|
|
|
23693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
23694
23694
|
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";
|
|
23695
23695
|
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";
|
|
23696
23696
|
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";
|
|
@@ -23698,7 +23698,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
23698
23698
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
23699
23699
|
var NAME_WORDS = WORDS.split(" ");
|
|
23700
23700
|
|
|
23701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
23702
23702
|
var LATIN_TO_CYRILLIC = {
|
|
23703
23703
|
shch: "\u0449",
|
|
23704
23704
|
sch: "\u0449",
|
|
@@ -23906,7 +23906,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
23906
23906
|
return found2;
|
|
23907
23907
|
}, "findUnknownNames");
|
|
23908
23908
|
|
|
23909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
23910
23910
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
23911
23911
|
"webpage",
|
|
23912
23912
|
"share",
|
|
@@ -23946,7 +23946,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
23946
23946
|
});
|
|
23947
23947
|
}, "matchDownloads");
|
|
23948
23948
|
|
|
23949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
23950
23950
|
var QUERY_VERSION = 1;
|
|
23951
23951
|
var QUERY_LIMITS2 = {
|
|
23952
23952
|
...QUERY_LIMITS,
|
|
@@ -23982,7 +23982,7 @@ function exhausted(budget) {
|
|
|
23982
23982
|
}
|
|
23983
23983
|
__name(exhausted, "exhausted");
|
|
23984
23984
|
|
|
23985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
23986
23986
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
23987
23987
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
23988
23988
|
kind: "char",
|
|
@@ -24382,7 +24382,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
24382
24382
|
return out;
|
|
24383
24383
|
}, "foldRegex");
|
|
24384
24384
|
|
|
24385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
24386
24386
|
var PRESET_VERSION = 1;
|
|
24387
24387
|
var PRESETS = {
|
|
24388
24388
|
password: {
|
|
@@ -24436,7 +24436,7 @@ var PRESETS = {
|
|
|
24436
24436
|
}
|
|
24437
24437
|
};
|
|
24438
24438
|
|
|
24439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
24440
24440
|
var FIELD_VERSION = 2;
|
|
24441
24441
|
var UNITS = {
|
|
24442
24442
|
"": 1,
|
|
@@ -24897,12 +24897,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
24897
24897
|
return validateFields(parsed3.output);
|
|
24898
24898
|
}, "validateAst");
|
|
24899
24899
|
|
|
24900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
24901
24901
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
24902
24902
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
24903
24903
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
24904
24904
|
|
|
24905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
24906
24906
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
24907
24907
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
24908
24908
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -24926,7 +24926,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
24926
24926
|
};
|
|
24927
24927
|
}, "linkMatch");
|
|
24928
24928
|
|
|
24929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
24930
24930
|
var SETTING = "phoneCountries";
|
|
24931
24931
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
24932
24932
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -24957,7 +24957,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
24957
24957
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
24958
24958
|
}, "valueMatch");
|
|
24959
24959
|
|
|
24960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
24961
24961
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
24962
24962
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
24963
24963
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -24985,7 +24985,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
24985
24985
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
24986
24986
|
}, "vocabularySimilarity");
|
|
24987
24987
|
|
|
24988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
24989
24989
|
import { createHash } from "node:crypto";
|
|
24990
24990
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
24991
24991
|
try {
|
|
@@ -25051,7 +25051,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
|
|
|
25051
25051
|
});
|
|
25052
25052
|
}, "guardTagCreation");
|
|
25053
25053
|
|
|
25054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
25055
25055
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
25056
25056
|
throw new CliError("validation_error", message2);
|
|
25057
25057
|
}, "invalid");
|
|
@@ -25128,7 +25128,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
25128
25128
|
};
|
|
25129
25129
|
}, "createTagRedirectIndex");
|
|
25130
25130
|
|
|
25131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
25132
25132
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
25133
25133
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
25134
25134
|
if (!row2)
|
|
@@ -25156,7 +25156,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
25156
25156
|
return snapshot2;
|
|
25157
25157
|
}, "tagRedirectSnapshot");
|
|
25158
25158
|
|
|
25159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
25160
25160
|
import { createHash as createHash2 } from "node:crypto";
|
|
25161
25161
|
var TASK_KEY_PREFIXES = {
|
|
25162
25162
|
question: "Q",
|
|
@@ -25184,7 +25184,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25184
25184
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
25185
25185
|
}, "taskAccountOf");
|
|
25186
25186
|
|
|
25187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
25188
25188
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
25189
25189
|
var REFERABLE = {
|
|
25190
25190
|
note: { tombstone: true },
|
|
@@ -25352,7 +25352,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25352
25352
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
25353
25353
|
}, "taskIdOf");
|
|
25354
25354
|
|
|
25355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
25356
25356
|
var toMs = /* @__PURE__ */ __name((iso14) => {
|
|
25357
25357
|
if (iso14 === null || iso14 === void 0)
|
|
25358
25358
|
return null;
|
|
@@ -25366,7 +25366,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
25366
25366
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
25367
25367
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
25368
25368
|
|
|
25369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
25370
25370
|
var TAG_KINDS = ["tag", "topic"];
|
|
25371
25371
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
25372
25372
|
var TAG_TYPE = {
|
|
@@ -25569,7 +25569,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
25569
25569
|
return result;
|
|
25570
25570
|
}, "tagsOf");
|
|
25571
25571
|
|
|
25572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
25573
25573
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
25574
25574
|
var SPEECH = speech("att");
|
|
25575
25575
|
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");
|
|
@@ -25933,7 +25933,7 @@ var FIELD_COMPILERS = {
|
|
|
25933
25933
|
subject
|
|
25934
25934
|
};
|
|
25935
25935
|
|
|
25936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
25937
25937
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
25938
25938
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
25939
25939
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -25949,7 +25949,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
25949
25949
|
};
|
|
25950
25950
|
}, "placeOf");
|
|
25951
25951
|
|
|
25952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
25953
25953
|
var DRAIN_ON_WRITE = 500;
|
|
25954
25954
|
var METHOD = "rules";
|
|
25955
25955
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -26112,7 +26112,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
26112
26112
|
return queued.length;
|
|
26113
26113
|
}, "drainMentions");
|
|
26114
26114
|
|
|
26115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
26116
26116
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
26117
26117
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
26118
26118
|
if (!exists2)
|
|
@@ -26120,7 +26120,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
26120
26120
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
26121
26121
|
}, "indexRow");
|
|
26122
26122
|
|
|
26123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
26124
26124
|
var INDEX = "message_stems";
|
|
26125
26125
|
var SETTING2 = "searchStemmers";
|
|
26126
26126
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -26242,7 +26242,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
26242
26242
|
};
|
|
26243
26243
|
}, "stemmerCache");
|
|
26244
26244
|
|
|
26245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
26246
26246
|
var SQLITE_BUSY = 5;
|
|
26247
26247
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
26248
26248
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -26337,7 +26337,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
26337
26337
|
}
|
|
26338
26338
|
}, "read");
|
|
26339
26339
|
|
|
26340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
26341
26341
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
26342
26342
|
coalesce(CASE k.chunkable_type
|
|
26343
26343
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -26479,7 +26479,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
26479
26479
|
}, "dropUnusedVectors");
|
|
26480
26480
|
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");
|
|
26481
26481
|
|
|
26482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
26483
26483
|
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({
|
|
26484
26484
|
target: [accounts.provider, accounts.externalId],
|
|
26485
26485
|
set: {
|
|
@@ -26589,7 +26589,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
26589
26589
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
26590
26590
|
}, "dropOrphanPeople");
|
|
26591
26591
|
|
|
26592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
26593
26593
|
var FOLDED = [
|
|
26594
26594
|
{ table: "tasks", column: "title" },
|
|
26595
26595
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -26626,7 +26626,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
26626
26626
|
return filled2;
|
|
26627
26627
|
}, "fillFolded");
|
|
26628
26628
|
|
|
26629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
26630
26630
|
var HISTORY_KEY = "$history";
|
|
26631
26631
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
26632
26632
|
if (typeof text6 !== "string")
|
|
@@ -26702,7 +26702,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
26702
26702
|
return rest;
|
|
26703
26703
|
}, "withoutHistory");
|
|
26704
26704
|
|
|
26705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
26706
26706
|
import { createHash as createHash3 } from "node:crypto";
|
|
26707
26707
|
var CHUNK_CHARS = 1200;
|
|
26708
26708
|
var CHUNK_OVERLAP = 150;
|
|
@@ -26807,7 +26807,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
26807
26807
|
return chunks2;
|
|
26808
26808
|
}, "cutChunks");
|
|
26809
26809
|
|
|
26810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
26811
26811
|
var DAY = 864e5;
|
|
26812
26812
|
var CURRENCY = [
|
|
26813
26813
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -26933,7 +26933,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
26933
26933
|
return best?.day ?? null;
|
|
26934
26934
|
}, "dueDayOf");
|
|
26935
26935
|
|
|
26936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
26937
26937
|
var DAY2 = 864e5;
|
|
26938
26938
|
var STOP_WORDS = new Set([
|
|
26939
26939
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -27088,7 +27088,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
27088
27088
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
27089
27089
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
27090
27090
|
|
|
27091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
27092
27092
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
27093
27093
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
27094
27094
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -27359,7 +27359,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
27359
27359
|
};
|
|
27360
27360
|
}, "readiness");
|
|
27361
27361
|
|
|
27362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
27363
27363
|
var DOCUMENT_PICTURE = "document_picture";
|
|
27364
27364
|
var SCAN_PAGE2 = 5e3;
|
|
27365
27365
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -27422,7 +27422,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
27422
27422
|
}, "nearestPictures")
|
|
27423
27423
|
}), "documentPicturesOver");
|
|
27424
27424
|
|
|
27425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
27426
27426
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
27427
27427
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
27428
27428
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -27487,7 +27487,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
27487
27487
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
27488
27488
|
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");
|
|
27489
27489
|
|
|
27490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
27491
27491
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
27492
27492
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
27493
27493
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -27577,7 +27577,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
27577
27577
|
});
|
|
27578
27578
|
}, "linkMeeting");
|
|
27579
27579
|
|
|
27580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
27581
27581
|
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), ''))";
|
|
27582
27582
|
var UNSEARCHED_EVENT_TYPES = [
|
|
27583
27583
|
"working-location",
|
|
@@ -27809,7 +27809,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
27809
27809
|
return true;
|
|
27810
27810
|
}, "resetNoteIndex");
|
|
27811
27811
|
|
|
27812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
27813
27813
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
27814
27814
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
27815
27815
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -27828,7 +27828,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
27828
27828
|
}
|
|
27829
27829
|
}, "resolvePersonLinks");
|
|
27830
27830
|
|
|
27831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
27832
27832
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
27833
27833
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
27834
27834
|
find: orm.select({
|
|
@@ -28053,7 +28053,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
28053
28053
|
}, "meetingIdentityPk");
|
|
28054
28054
|
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");
|
|
28055
28055
|
|
|
28056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
28057
28057
|
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");
|
|
28058
28058
|
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");
|
|
28059
28059
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -28333,7 +28333,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
28333
28333
|
}
|
|
28334
28334
|
}, "replaceAutoTags");
|
|
28335
28335
|
|
|
28336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
28337
28337
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
28338
28338
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
28339
28339
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -28352,7 +28352,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
28352
28352
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
28353
28353
|
}, "counterFreshness");
|
|
28354
28354
|
|
|
28355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
28356
28356
|
import { createHash as createHash4 } from "node:crypto";
|
|
28357
28357
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
28358
28358
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -28450,7 +28450,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
28450
28450
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
28451
28451
|
}, "contextEvidenceRequest");
|
|
28452
28452
|
|
|
28453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
28454
28454
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
28455
28455
|
var ACTIVITY = `
|
|
28456
28456
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -28580,7 +28580,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
28580
28580
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
28581
28581
|
}), "mailActivity");
|
|
28582
28582
|
|
|
28583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
28584
28584
|
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");
|
|
28585
28585
|
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;
|
|
28586
28586
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -28721,7 +28721,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
28721
28721
|
return text6 || body2.trim();
|
|
28722
28722
|
}, "mailOwnText");
|
|
28723
28723
|
|
|
28724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
28725
28725
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
28726
28726
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
28727
28727
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -28831,7 +28831,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
28831
28831
|
return emails3 + threads;
|
|
28832
28832
|
}, "drainEmailIndex");
|
|
28833
28833
|
|
|
28834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
28835
28835
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
28836
28836
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
28837
28837
|
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,
|
|
@@ -28929,7 +28929,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
28929
28929
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
28930
28930
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
28931
28931
|
|
|
28932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
28933
28933
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
28934
28934
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
28935
28935
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -28979,7 +28979,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
28979
28979
|
return threads.length;
|
|
28980
28980
|
}, "markEmailsRestored");
|
|
28981
28981
|
|
|
28982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-nearest.js
|
|
28983
28983
|
var MAIL_PIECE_ROWS = `SELECT p.id, p.content_hash AS hash, p.type, p.owner, p.position, p.email_id AS email, v.vector
|
|
28984
28984
|
FROM ${MAIL_PIECES} JOIN embeddings v ON v.model = ? AND v.content_hash = p.content_hash
|
|
28985
28985
|
WHERE p.account_id = ?
|
|
@@ -29039,7 +29039,7 @@ var indexedMailPieces = /* @__PURE__ */ __name((database, model, query, filter,
|
|
|
29039
29039
|
}, "indexedMailPieces");
|
|
29040
29040
|
var nearestMailPieces = /* @__PURE__ */ __name((database, model, query, filter, depth) => (filter.threadExternalId === void 0 ? indexedMailPieces(database, model, query, filter, depth) : void 0) ?? scannedMailPieces(database, model, query, filter), "nearestMailPieces");
|
|
29041
29041
|
|
|
29042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
29043
29043
|
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");
|
|
29044
29044
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
29045
29045
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -29106,7 +29106,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
29106
29106
|
}
|
|
29107
29107
|
}), "mailRulesOver");
|
|
29108
29108
|
|
|
29109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
29110
29110
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
29111
29111
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
29112
29112
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -29114,7 +29114,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
29114
29114
|
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);
|
|
29115
29115
|
}, "reviewLink");
|
|
29116
29116
|
|
|
29117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
29118
29118
|
function checkMeetingCancelled(signal) {
|
|
29119
29119
|
if (!signal?.aborted)
|
|
29120
29120
|
return;
|
|
@@ -29125,7 +29125,7 @@ function checkMeetingCancelled(signal) {
|
|
|
29125
29125
|
}
|
|
29126
29126
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
29127
29127
|
|
|
29128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
29129
29129
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
29130
29130
|
id: Number(row2.id),
|
|
29131
29131
|
accountId: Number(row2.account_id),
|
|
@@ -29175,7 +29175,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
29175
29175
|
createdAt: Number(row2.created_at)
|
|
29176
29176
|
}), "transcriptRowOf");
|
|
29177
29177
|
|
|
29178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
29179
29179
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
29180
29180
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
29181
29181
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -29342,7 +29342,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29342
29342
|
}
|
|
29343
29343
|
}), "meetingReadsOver");
|
|
29344
29344
|
|
|
29345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
29346
29346
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
29347
29347
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
29348
29348
|
const params = [input.accountId];
|
|
@@ -29385,7 +29385,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
29385
29385
|
return { clauses, params };
|
|
29386
29386
|
}, "meetingSelectionSql");
|
|
29387
29387
|
|
|
29388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
29389
29389
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
29390
29390
|
async meetingChatLines(input) {
|
|
29391
29391
|
checkMeetingCancelled(input.signal);
|
|
@@ -29413,7 +29413,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29413
29413
|
}
|
|
29414
29414
|
}), "meetingChatLinesOver");
|
|
29415
29415
|
|
|
29416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
29417
29417
|
var MESSAGE_FIELDS = {
|
|
29418
29418
|
pk: messages.id,
|
|
29419
29419
|
nativeId: messages.externalId,
|
|
@@ -29584,7 +29584,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
29584
29584
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
29585
29585
|
}), "chatActivity");
|
|
29586
29586
|
|
|
29587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
29588
29588
|
var HIT_FIELDS = {
|
|
29589
29589
|
...MESSAGE_FIELDS,
|
|
29590
29590
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -29683,7 +29683,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
29683
29683
|
};
|
|
29684
29684
|
}, "directReplies");
|
|
29685
29685
|
|
|
29686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
29687
29687
|
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");
|
|
29688
29688
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
29689
29689
|
const found2 = identityRow(context, ref3);
|
|
@@ -29814,7 +29814,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
29814
29814
|
}, "mentioning");
|
|
29815
29815
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
29816
29816
|
|
|
29817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
29818
29818
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
29819
29819
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
29820
29820
|
}, "missing");
|
|
@@ -29936,7 +29936,7 @@ function meetingContextLinksOver(context) {
|
|
|
29936
29936
|
}
|
|
29937
29937
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
29938
29938
|
|
|
29939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
29940
29940
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
29941
29941
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
29942
29942
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -29965,7 +29965,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
29965
29965
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
29966
29966
|
}, "indexedText");
|
|
29967
29967
|
|
|
29968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
29969
29969
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
29970
29970
|
var meetingCurrentIndexRows = `
|
|
29971
29971
|
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
|
|
@@ -29996,7 +29996,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
29996
29996
|
}, "invalidateMeetingStems");
|
|
29997
29997
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
29998
29998
|
|
|
29999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
30000
30000
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
30001
30001
|
return {
|
|
30002
30002
|
async indexSearch(original) {
|
|
@@ -30064,10 +30064,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
30064
30064
|
}
|
|
30065
30065
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
30066
30066
|
|
|
30067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
30068
30068
|
import { createHash as createHash5 } from "node:crypto";
|
|
30069
30069
|
|
|
30070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
30071
30071
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
30072
30072
|
const padded = ` ${term} `;
|
|
30073
30073
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -30076,7 +30076,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
30076
30076
|
return [...pieces];
|
|
30077
30077
|
}, "trigrams");
|
|
30078
30078
|
|
|
30079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
30080
30080
|
var SHORTEST_CORRECTION = 3;
|
|
30081
30081
|
var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
|
|
30082
30082
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -30123,7 +30123,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
30123
30123
|
return corrections;
|
|
30124
30124
|
}, "correctWords");
|
|
30125
30125
|
|
|
30126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
30127
30127
|
var SHORTEST_GARBLED = 4;
|
|
30128
30128
|
var MOST_WIDENED = 64;
|
|
30129
30129
|
var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -30215,7 +30215,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
30215
30215
|
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));
|
|
30216
30216
|
}, "widenWords");
|
|
30217
30217
|
|
|
30218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
30219
30219
|
import { readFileSync } from "node:fs";
|
|
30220
30220
|
var loaded;
|
|
30221
30221
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -30274,7 +30274,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
|
|
|
30274
30274
|
return false;
|
|
30275
30275
|
}, "knownRussianWord");
|
|
30276
30276
|
|
|
30277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
30278
30278
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
30279
30279
|
var MOST_WORDS = 128;
|
|
30280
30280
|
var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
|
|
@@ -30501,7 +30501,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
30501
30501
|
return check3(tree);
|
|
30502
30502
|
}, "matchMeetingText");
|
|
30503
30503
|
|
|
30504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
30505
30505
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
30506
30506
|
throw new CliError("validation_error", message2);
|
|
30507
30507
|
}, "fail");
|
|
@@ -30683,7 +30683,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
30683
30683
|
}
|
|
30684
30684
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
30685
30685
|
|
|
30686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
30687
30687
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30688
30688
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
30689
30689
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -30715,7 +30715,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30715
30715
|
}
|
|
30716
30716
|
}), "meetingLanguagesOver");
|
|
30717
30717
|
|
|
30718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
30719
30719
|
import { createHash as createHash6 } from "node:crypto";
|
|
30720
30720
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
30721
30721
|
if (value === void 0)
|
|
@@ -30805,7 +30805,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
30805
30805
|
}
|
|
30806
30806
|
}), "meetingParticipantSearchOver");
|
|
30807
30807
|
|
|
30808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
30809
30809
|
var preparationQueries = {
|
|
30810
30810
|
participants: {
|
|
30811
30811
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -30855,7 +30855,7 @@ var preparationQueries = {
|
|
|
30855
30855
|
}
|
|
30856
30856
|
};
|
|
30857
30857
|
|
|
30858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
30859
30859
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30860
30860
|
async preparationContext(original) {
|
|
30861
30861
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -30896,7 +30896,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30896
30896
|
}
|
|
30897
30897
|
}), "meetingPreparationContextOver");
|
|
30898
30898
|
|
|
30899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
30900
30900
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
30901
30901
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
30902
30902
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -30910,7 +30910,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
30910
30910
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
30911
30911
|
)`, "preparationSubjects");
|
|
30912
30912
|
|
|
30913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
30914
30914
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30915
30915
|
async preparationKnowledge(original) {
|
|
30916
30916
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -30955,7 +30955,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
30955
30955
|
}
|
|
30956
30956
|
}), "meetingPreparationKnowledgeOver");
|
|
30957
30957
|
|
|
30958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
30959
30959
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30960
30960
|
async preparationNotes(original) {
|
|
30961
30961
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -31008,7 +31008,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31008
31008
|
}
|
|
31009
31009
|
}), "meetingPreparationNotesOver");
|
|
31010
31010
|
|
|
31011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
31012
31012
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
31013
31013
|
async relatedHistory(original) {
|
|
31014
31014
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -31079,7 +31079,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31079
31079
|
}
|
|
31080
31080
|
}), "meetingRelatedHistoryOver");
|
|
31081
31081
|
|
|
31082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
31083
31083
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
31084
31084
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
31085
31085
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -31160,7 +31160,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31160
31160
|
}
|
|
31161
31161
|
}), "meetingReviewOver");
|
|
31162
31162
|
|
|
31163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
31164
31164
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
31165
31165
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
31166
31166
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -31214,7 +31214,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31214
31214
|
}
|
|
31215
31215
|
}), "meetingSeriesHistoryOver");
|
|
31216
31216
|
|
|
31217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
31218
31218
|
var MOST_ROWS = 5e5;
|
|
31219
31219
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
31220
31220
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -31283,7 +31283,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31283
31283
|
}
|
|
31284
31284
|
}), "meetingStatsOver");
|
|
31285
31285
|
|
|
31286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
31287
31287
|
var CURSOR_KEY = "meetings";
|
|
31288
31288
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
31289
31289
|
id: Number(row2.id),
|
|
@@ -31852,7 +31852,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31852
31852
|
};
|
|
31853
31853
|
}, "meetingStoreOver");
|
|
31854
31854
|
|
|
31855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
31856
31856
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
31857
31857
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
31858
31858
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -31878,7 +31878,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
31878
31878
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
31879
31879
|
}, "release");
|
|
31880
31880
|
|
|
31881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
31882
31882
|
var THREAD_COLUMNS = {
|
|
31883
31883
|
subject: {
|
|
31884
31884
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -31895,7 +31895,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
31895
31895
|
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);
|
|
31896
31896
|
}, "threadRows");
|
|
31897
31897
|
|
|
31898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
31899
31899
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
31900
31900
|
id: `email:${place.emailId}`,
|
|
31901
31901
|
chatId: place.threadExternalId,
|
|
@@ -32433,7 +32433,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
32433
32433
|
}
|
|
32434
32434
|
}), "mailStoreOver");
|
|
32435
32435
|
|
|
32436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
32437
32437
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
32438
32438
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
32439
32439
|
var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
|
|
@@ -32523,7 +32523,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
32523
32523
|
}, "knownWord");
|
|
32524
32524
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
32525
32525
|
|
|
32526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
32527
32527
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
32528
32528
|
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");
|
|
32529
32529
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -32609,7 +32609,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
32609
32609
|
return found2;
|
|
32610
32610
|
}, "spokenTranscripts");
|
|
32611
32611
|
|
|
32612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
32613
32613
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
32614
32614
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
32615
32615
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -32656,7 +32656,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
32656
32656
|
});
|
|
32657
32657
|
}, "placeHits");
|
|
32658
32658
|
|
|
32659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
32660
32660
|
var GROUPS = {
|
|
32661
32661
|
chat: {
|
|
32662
32662
|
key: "m.chat_id",
|
|
@@ -32678,7 +32678,7 @@ var GROUPS = {
|
|
|
32678
32678
|
}
|
|
32679
32679
|
};
|
|
32680
32680
|
|
|
32681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
32682
32682
|
var MESSAGES2 = {
|
|
32683
32683
|
rows: "messages",
|
|
32684
32684
|
threads: "chats",
|
|
@@ -33161,7 +33161,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
33161
33161
|
};
|
|
33162
33162
|
}, "runCompiled");
|
|
33163
33163
|
|
|
33164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
33165
33165
|
function invalidMetadata() {
|
|
33166
33166
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
33167
33167
|
}
|
|
@@ -33263,7 +33263,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
33263
33263
|
};
|
|
33264
33264
|
}), "counterTargets");
|
|
33265
33265
|
|
|
33266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
33267
33267
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
33268
33268
|
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,
|
|
33269
33269
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -33382,7 +33382,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
33382
33382
|
}));
|
|
33383
33383
|
}, "attachmentViews");
|
|
33384
33384
|
|
|
33385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
33386
33386
|
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");
|
|
33387
33387
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
33388
33388
|
const { orm, database, now: now2 } = context;
|
|
@@ -33420,7 +33420,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
33420
33420
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
33421
33421
|
}, "intoVoiceAttachment");
|
|
33422
33422
|
|
|
33423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
33424
33424
|
var FIELDS = [
|
|
33425
33425
|
"threadExternalId",
|
|
33426
33426
|
"senderIdentityId",
|
|
@@ -33737,7 +33737,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
33737
33737
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
33738
33738
|
}, "writeDerivedReactions");
|
|
33739
33739
|
|
|
33740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
33741
33741
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
33742
33742
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
33743
33743
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -33758,7 +33758,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
33758
33758
|
};
|
|
33759
33759
|
}, "keysOver");
|
|
33760
33760
|
|
|
33761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
33762
33762
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
33763
33763
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
33764
33764
|
if (!row2)
|
|
@@ -33793,7 +33793,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
33793
33793
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
33794
33794
|
}, "saveProfile");
|
|
33795
33795
|
|
|
33796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
33797
33797
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
33798
33798
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
33799
33799
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -33850,7 +33850,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
33850
33850
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
33851
33851
|
}, "proposedBySql");
|
|
33852
33852
|
|
|
33853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
33854
33854
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
33855
33855
|
const owner = ownerPerson(context.database).id;
|
|
33856
33856
|
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);
|
|
@@ -33871,7 +33871,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
33871
33871
|
return personOf(context, ref3);
|
|
33872
33872
|
}, "linkToOwner");
|
|
33873
33873
|
|
|
33874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
33875
33875
|
var PROVIDERS_SETTING = "providers";
|
|
33876
33876
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
33877
33877
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -33906,7 +33906,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
33906
33906
|
});
|
|
33907
33907
|
}, "registerProvider");
|
|
33908
33908
|
|
|
33909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
33910
33910
|
var DAY3 = 864e5;
|
|
33911
33911
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
33912
33912
|
var TEXT_LIMIT = 20;
|
|
@@ -34105,7 +34105,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
34105
34105
|
};
|
|
34106
34106
|
}, "taskSimilarityOver");
|
|
34107
34107
|
|
|
34108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
34109
34109
|
var SETTING3 = "taskCategories";
|
|
34110
34110
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
34111
34111
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -34124,7 +34124,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
34124
34124
|
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);
|
|
34125
34125
|
}, "saveTaskCategories");
|
|
34126
34126
|
|
|
34127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
34128
34128
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
34129
34129
|
var ALLOWED = "taskAgentClose";
|
|
34130
34130
|
var MIN = "taskAgentCloseMin";
|
|
@@ -34180,10 +34180,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
34180
34180
|
];
|
|
34181
34181
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
34182
34182
|
|
|
34183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
34184
34184
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
34185
34185
|
|
|
34186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
34187
34187
|
var TASK_CLOSE_KIND = "task_close";
|
|
34188
34188
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
34189
34189
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -34231,7 +34231,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
34231
34231
|
}, "assertMayDecide");
|
|
34232
34232
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
34233
34233
|
|
|
34234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
34235
34235
|
var DEAL_KINDS = ["deal", "lead"];
|
|
34236
34236
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
34237
34237
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -34241,7 +34241,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
34241
34241
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
34242
34242
|
}, "dealLine");
|
|
34243
34243
|
|
|
34244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
34245
34245
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
34246
34246
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
34247
34247
|
var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
|
|
@@ -34297,7 +34297,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
34297
34297
|
return `${WORDS2[summary.kind]} ${named3}${notes2 === "" ? "" : ` (${notes2})`}`;
|
|
34298
34298
|
}, "refLabel");
|
|
34299
34299
|
|
|
34300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
34301
34301
|
var EXCERPT_CHARS = 280;
|
|
34302
34302
|
var TITLE_CHARS = 120;
|
|
34303
34303
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -34670,7 +34670,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
34670
34670
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
34671
34671
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
|
|
34672
34672
|
|
|
34673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
34674
34674
|
var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
|
|
34675
34675
|
ref: ref3,
|
|
34676
34676
|
kind: read2.kind,
|
|
@@ -34706,7 +34706,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
34706
34706
|
});
|
|
34707
34707
|
}, "evidenceSourcesOf");
|
|
34708
34708
|
|
|
34709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
34710
34710
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
34711
34711
|
var MAX_TEXT_CHARS = 2e6;
|
|
34712
34712
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -34732,7 +34732,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
34732
34732
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
34733
34733
|
}, "pdfPreviewLimits");
|
|
34734
34734
|
|
|
34735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
34736
34736
|
import { randomBytes } from "node:crypto";
|
|
34737
34737
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
34738
34738
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -34745,7 +34745,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
34745
34745
|
return time3 + random;
|
|
34746
34746
|
}, "ulid");
|
|
34747
34747
|
|
|
34748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
34749
34749
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
34750
34750
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
34751
34751
|
if (!meta && !sections?.length)
|
|
@@ -34766,7 +34766,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
34766
34766
|
return typeof language === "string" && language !== "" ? language : null;
|
|
34767
34767
|
}, "languageOf");
|
|
34768
34768
|
|
|
34769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
34770
34770
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
34771
34771
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
34772
34772
|
if (isObject(value))
|
|
@@ -35009,7 +35009,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
35009
35009
|
};
|
|
35010
35010
|
}, "filesStoreOver");
|
|
35011
35011
|
|
|
35012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
35013
35013
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
35014
35014
|
entity: "document",
|
|
35015
35015
|
backend: "sql",
|
|
@@ -35055,7 +35055,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
35055
35055
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
35056
35056
|
}, "importedDocumentWhere");
|
|
35057
35057
|
|
|
35058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
35059
35059
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
35060
35060
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35061
35061
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -35581,7 +35581,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35581
35581
|
};
|
|
35582
35582
|
}, "notesStoreOver");
|
|
35583
35583
|
|
|
35584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
35585
35585
|
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";
|
|
35586
35586
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35587
35587
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -35803,7 +35803,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35803
35803
|
};
|
|
35804
35804
|
}, "memoriesStoreOver");
|
|
35805
35805
|
|
|
35806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
35807
35807
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
35808
35808
|
var KEY = "taskFirstPassPerChat";
|
|
35809
35809
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -35823,7 +35823,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
35823
35823
|
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);
|
|
35824
35824
|
}, "saveFirstPassPerChat");
|
|
35825
35825
|
|
|
35826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/external-links.js
|
|
35827
35827
|
var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
|
|
35828
35828
|
var EXTERNAL_ID_CHARS = 200;
|
|
35829
35829
|
var SOURCE_URL_CHARS = 2e3;
|
|
@@ -35850,7 +35850,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
|
|
|
35850
35850
|
return text6;
|
|
35851
35851
|
}, "sourceUrlOf");
|
|
35852
35852
|
|
|
35853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
35854
35854
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
35855
35855
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
35856
35856
|
name,
|
|
@@ -36073,7 +36073,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
36073
36073
|
return root === void 0 ? void 0 : { ...query, root };
|
|
36074
36074
|
}, "withoutField");
|
|
36075
36075
|
|
|
36076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
36077
36077
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
36078
36078
|
if (row2.author_type == null)
|
|
36079
36079
|
return null;
|
|
@@ -36101,7 +36101,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
36101
36101
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
36102
36102
|
}, "addComment");
|
|
36103
36103
|
|
|
36104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
36105
36105
|
var TASK_RELATION_KINDS = [
|
|
36106
36106
|
"blocked-by",
|
|
36107
36107
|
"follow-up-of",
|
|
@@ -36231,7 +36231,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
36231
36231
|
};
|
|
36232
36232
|
}, "taskRelationsStoreOver");
|
|
36233
36233
|
|
|
36234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
36235
36235
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
36236
36236
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
36237
36237
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
|
|
@@ -36760,7 +36760,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
36760
36760
|
};
|
|
36761
36761
|
}, "workTasksOver");
|
|
36762
36762
|
|
|
36763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
36764
36764
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
36765
36765
|
const { database, now: now2 } = context;
|
|
36766
36766
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -36809,7 +36809,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
36809
36809
|
};
|
|
36810
36810
|
}, "taskCloseOver");
|
|
36811
36811
|
|
|
36812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
36813
36813
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
36814
36814
|
const { database, now: now2 } = context;
|
|
36815
36815
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -37027,7 +37027,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
37027
37027
|
};
|
|
37028
37028
|
}, "taskPairsOver");
|
|
37029
37029
|
|
|
37030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
37031
37031
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
37032
37032
|
var TASK_STATS_SQL = {
|
|
37033
37033
|
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"),
|
|
@@ -37066,7 +37066,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
37066
37066
|
}, "statNames")
|
|
37067
37067
|
}), "taskStatsOver");
|
|
37068
37068
|
|
|
37069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
37070
37070
|
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";
|
|
37071
37071
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
37072
37072
|
const key2 = inboxKey(account);
|
|
@@ -37273,7 +37273,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
37273
37273
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
37274
37274
|
}, "oneOf");
|
|
37275
37275
|
|
|
37276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
37277
37277
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
37278
37278
|
const { database } = context;
|
|
37279
37279
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -37318,7 +37318,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
37318
37318
|
};
|
|
37319
37319
|
}, "accountsStoreOver");
|
|
37320
37320
|
|
|
37321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
37322
37322
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
37323
37323
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
37324
37324
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -37342,7 +37342,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
37342
37342
|
})), "keepDownloads");
|
|
37343
37343
|
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");
|
|
37344
37344
|
|
|
37345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
37346
37346
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
37347
37347
|
const { database } = context;
|
|
37348
37348
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -37399,7 +37399,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
37399
37399
|
}, "keepAttachmentText")
|
|
37400
37400
|
}), "attachmentsStoreOver");
|
|
37401
37401
|
|
|
37402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
37403
37403
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
37404
37404
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
37405
37405
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -37579,7 +37579,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
37579
37579
|
return done;
|
|
37580
37580
|
}, "rekeyChats");
|
|
37581
37581
|
|
|
37582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
37583
37583
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
37584
37584
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
37585
37585
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -37637,7 +37637,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
37637
37637
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
37638
37638
|
}, "chatCoverage");
|
|
37639
37639
|
|
|
37640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
37641
37641
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
37642
37642
|
const { database } = context;
|
|
37643
37643
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -37772,7 +37772,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
37772
37772
|
};
|
|
37773
37773
|
}, "chatsStoreOver");
|
|
37774
37774
|
|
|
37775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
37776
37776
|
import { createHash as createHash7 } from "node:crypto";
|
|
37777
37777
|
var BATCH_CONTEXT = 50;
|
|
37778
37778
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -37910,7 +37910,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
37910
37910
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
37911
37911
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
37912
37912
|
|
|
37913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
37914
37914
|
import { setTimeout } from "node:timers/promises";
|
|
37915
37915
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
37916
37916
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -38222,7 +38222,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
38222
38222
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
38223
38223
|
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");
|
|
38224
38224
|
|
|
38225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
38226
38226
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
38227
38227
|
const { database } = context;
|
|
38228
38228
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -38329,7 +38329,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
38329
38329
|
};
|
|
38330
38330
|
}, "conversationsStoreOver");
|
|
38331
38331
|
|
|
38332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
38333
38333
|
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";
|
|
38334
38334
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
38335
38335
|
const { database } = context;
|
|
@@ -38354,7 +38354,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38354
38354
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
38355
38355
|
}), "countersStoreOver");
|
|
38356
38356
|
|
|
38357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
38358
38358
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
38359
38359
|
var MENTION_QUERY = defineQuery({
|
|
38360
38360
|
entity: "mention",
|
|
@@ -38570,7 +38570,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
38570
38570
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
38571
38571
|
}, "listPlaces");
|
|
38572
38572
|
|
|
38573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
38574
38574
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
38575
38575
|
const { database } = context;
|
|
38576
38576
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -38605,7 +38605,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38605
38605
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
38606
38606
|
}), "mentionsStoreOver");
|
|
38607
38607
|
|
|
38608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
38609
38609
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
38610
38610
|
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");
|
|
38611
38611
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -38620,7 +38620,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
38620
38620
|
}));
|
|
38621
38621
|
}, "documentLinkMessages");
|
|
38622
38622
|
|
|
38623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
38624
38624
|
var stemmerFor = stemmerCache();
|
|
38625
38625
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
38626
38626
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -38664,7 +38664,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
38664
38664
|
});
|
|
38665
38665
|
}, "laterSharingRare");
|
|
38666
38666
|
|
|
38667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
38668
38668
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
38669
38669
|
const { database } = context;
|
|
38670
38670
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -38799,7 +38799,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38799
38799
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
38800
38800
|
}), "messagesStoreOver");
|
|
38801
38801
|
|
|
38802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
38803
38803
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
38804
38804
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
38805
38805
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -38856,7 +38856,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
38856
38856
|
});
|
|
38857
38857
|
}, "personPreparation");
|
|
38858
38858
|
|
|
38859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
38860
38860
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
38861
38861
|
const id2 = Number(uid);
|
|
38862
38862
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -38864,7 +38864,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
38864
38864
|
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)));
|
|
38865
38865
|
}, "personSeenInAccounts");
|
|
38866
38866
|
|
|
38867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
38868
38868
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
38869
38869
|
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);
|
|
38870
38870
|
if (!row2)
|
|
@@ -38930,7 +38930,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
38930
38930
|
return { id: id2, personId, removed: true };
|
|
38931
38931
|
}, "removeNote");
|
|
38932
38932
|
|
|
38933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
38934
38934
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
38935
38935
|
const { database } = context;
|
|
38936
38936
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -39015,13 +39015,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
39015
39015
|
};
|
|
39016
39016
|
}, "peopleStoreOver");
|
|
39017
39017
|
|
|
39018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
39019
39019
|
import { createHash as createHash9 } from "node:crypto";
|
|
39020
39020
|
|
|
39021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39022
39022
|
import { createHash as createHash8 } from "node:crypto";
|
|
39023
39023
|
|
|
39024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
39025
39025
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
39026
39026
|
var AUTHOR_MEASURES = [
|
|
39027
39027
|
"messages",
|
|
@@ -39161,7 +39161,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
39161
39161
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
39162
39162
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
39163
39163
|
|
|
39164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
39165
39165
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
39166
39166
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
39167
39167
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -39383,7 +39383,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
39383
39383
|
};
|
|
39384
39384
|
}, "rankReplyGraph");
|
|
39385
39385
|
|
|
39386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39387
39387
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
39388
39388
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
39389
39389
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -39557,7 +39557,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
39557
39557
|
return { items, evidence, summary, graph: graph.quality };
|
|
39558
39558
|
}, "calculateAdminStatistics");
|
|
39559
39559
|
|
|
39560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
39561
39561
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
39562
39562
|
const dates = [];
|
|
39563
39563
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -39579,7 +39579,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
39579
39579
|
return dates[0].node.resolution.date;
|
|
39580
39580
|
}, "rankingContextRange");
|
|
39581
39581
|
|
|
39582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
39583
39583
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
39584
39584
|
let counts;
|
|
39585
39585
|
try {
|
|
@@ -39874,7 +39874,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
39874
39874
|
});
|
|
39875
39875
|
}, "rankQuery");
|
|
39876
39876
|
|
|
39877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
39878
39878
|
function fail4(message2, reason = "query.too-large") {
|
|
39879
39879
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
39880
39880
|
}
|
|
@@ -40051,7 +40051,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
40051
40051
|
return result;
|
|
40052
40052
|
}), "adminStatisticsQuery");
|
|
40053
40053
|
|
|
40054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
40055
40055
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
40056
40056
|
if (!execution.accounts.length)
|
|
40057
40057
|
return { conversations: [], chats: [] };
|
|
@@ -40069,7 +40069,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
40069
40069
|
return { conversations: conversations2, chats: chats2 };
|
|
40070
40070
|
}, "conversationEligibility");
|
|
40071
40071
|
|
|
40072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
40073
40073
|
import { createHash as createHash10 } from "node:crypto";
|
|
40074
40074
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
40075
40075
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -40219,7 +40219,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
40219
40219
|
return result;
|
|
40220
40220
|
}, "rankingEvidence");
|
|
40221
40221
|
|
|
40222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
40223
40223
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
40224
40224
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
40225
40225
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -40313,7 +40313,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
40313
40313
|
});
|
|
40314
40314
|
}, "waitingChats");
|
|
40315
40315
|
|
|
40316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
40317
40317
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
40318
40318
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
40319
40319
|
if (execution.corpus === "mail")
|
|
@@ -40334,7 +40334,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
40334
40334
|
};
|
|
40335
40335
|
}, "queriesStoreOver");
|
|
40336
40336
|
|
|
40337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
40338
40338
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
40339
40339
|
const { database, now: now2 } = context;
|
|
40340
40340
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -40373,10 +40373,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
40373
40373
|
}));
|
|
40374
40374
|
}, "chatEventsOf");
|
|
40375
40375
|
|
|
40376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40377
40377
|
import { createHash as createHash11 } from "node:crypto";
|
|
40378
40378
|
|
|
40379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
40380
40380
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
40381
40381
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
40382
40382
|
timeZone: zone,
|
|
@@ -40396,7 +40396,7 @@ var weekKey = /* @__PURE__ */ __name((day2) => {
|
|
|
40396
40396
|
return date3.toISOString().slice(0, 10);
|
|
40397
40397
|
}, "weekKey");
|
|
40398
40398
|
|
|
40399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
40400
40400
|
var RETENTION_TOLERANCE = 864e5;
|
|
40401
40401
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
40402
40402
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -40450,7 +40450,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
40450
40450
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
40451
40451
|
}, "retentionCohorts");
|
|
40452
40452
|
|
|
40453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40454
40454
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
40455
40455
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
40456
40456
|
validateRetentionOptions(options);
|
|
@@ -40581,7 +40581,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
40581
40581
|
};
|
|
40582
40582
|
}, "retentionQuery");
|
|
40583
40583
|
|
|
40584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
40585
40585
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
40586
40586
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
40587
40587
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -40712,7 +40712,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
40712
40712
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
40713
40713
|
})), "trackedChats");
|
|
40714
40714
|
|
|
40715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
40716
40716
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40717
40717
|
const { database } = context;
|
|
40718
40718
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -40768,7 +40768,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40768
40768
|
};
|
|
40769
40769
|
}, "rosterStoreOver");
|
|
40770
40770
|
|
|
40771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
40772
40772
|
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");
|
|
40773
40773
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
40774
40774
|
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 ?`);
|
|
@@ -40792,7 +40792,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
40792
40792
|
}
|
|
40793
40793
|
}, "backfillNormalized");
|
|
40794
40794
|
|
|
40795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
40796
40796
|
var INDEX2 = "message_words";
|
|
40797
40797
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
40798
40798
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -40919,7 +40919,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
40919
40919
|
});
|
|
40920
40920
|
}, "resetSearchIndex");
|
|
40921
40921
|
|
|
40922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
40923
40923
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
40924
40924
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
40925
40925
|
const before2 = stemsState(database);
|
|
@@ -41014,7 +41014,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
41014
41014
|
return resetStems(database, { now: now2 });
|
|
41015
41015
|
}, "followDefaultStemmers");
|
|
41016
41016
|
|
|
41017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
41018
41018
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
41019
41019
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
41020
41020
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -41036,7 +41036,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
41036
41036
|
});
|
|
41037
41037
|
}, "termCandidates");
|
|
41038
41038
|
|
|
41039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
41040
41040
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
41041
41041
|
const { database } = context;
|
|
41042
41042
|
const stemmerFor2 = stemmerCache();
|
|
@@ -41060,7 +41060,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41060
41060
|
};
|
|
41061
41061
|
}, "searchIndexStoreOver");
|
|
41062
41062
|
|
|
41063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
41064
41064
|
var HISTORY_KEPT = 1e3;
|
|
41065
41065
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
41066
41066
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -41129,7 +41129,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
41129
41129
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
41130
41130
|
}, "clearHistory");
|
|
41131
41131
|
|
|
41132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
41133
41133
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
41134
41134
|
const { database } = context;
|
|
41135
41135
|
return {
|
|
@@ -41153,7 +41153,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41153
41153
|
};
|
|
41154
41154
|
}, "searchesStoreOver");
|
|
41155
41155
|
|
|
41156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
41157
41157
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
41158
41158
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
41159
41159
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -41196,7 +41196,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
41196
41196
|
};
|
|
41197
41197
|
}, "agentActionsStoreOver");
|
|
41198
41198
|
|
|
41199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
41200
41200
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
41201
41201
|
}) => {
|
|
41202
41202
|
const { database, now: now2 } = context;
|
|
@@ -41255,7 +41255,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
41255
41255
|
};
|
|
41256
41256
|
}, "botUpdateStoreOver");
|
|
41257
41257
|
|
|
41258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
41259
41259
|
var DAY4 = 864e5;
|
|
41260
41260
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
41261
41261
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -41364,7 +41364,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
41364
41364
|
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);
|
|
41365
41365
|
}, "listEvents");
|
|
41366
41366
|
|
|
41367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
41368
41368
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
41369
41369
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
41370
41370
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -41419,7 +41419,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
41419
41419
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
41420
41420
|
}, "forgetCalendarRows");
|
|
41421
41421
|
|
|
41422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
41423
41423
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
41424
41424
|
id: Number(row2.id),
|
|
41425
41425
|
accountId: Number(row2.account_id),
|
|
@@ -42006,7 +42006,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
42006
42006
|
};
|
|
42007
42007
|
}, "eventStoreOver");
|
|
42008
42008
|
|
|
42009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
42010
42010
|
var CATALOG_QUERY = defineQuery({
|
|
42011
42011
|
entity: "document",
|
|
42012
42012
|
backend: "sql",
|
|
@@ -42248,7 +42248,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
42248
42248
|
};
|
|
42249
42249
|
}, "catalogStoreOver");
|
|
42250
42250
|
|
|
42251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
42252
42252
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
42253
42253
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
42254
42254
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -42261,7 +42261,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
42261
42261
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
42262
42262
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
42263
42263
|
|
|
42264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
42265
42265
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
42266
42266
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
42267
42267
|
signal?.throwIfAborted();
|
|
@@ -42360,7 +42360,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
42360
42360
|
});
|
|
42361
42361
|
}, "readMeetingContextEvidence");
|
|
42362
42362
|
|
|
42363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
42364
42364
|
var corpora = {
|
|
42365
42365
|
message: {
|
|
42366
42366
|
table: "messages",
|
|
@@ -42599,7 +42599,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
42599
42599
|
}
|
|
42600
42600
|
}), "contextRecordsOver");
|
|
42601
42601
|
|
|
42602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
42603
42603
|
import { createHash as createHash12 } from "node:crypto";
|
|
42604
42604
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
42605
42605
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -42831,7 +42831,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
|
|
|
42831
42831
|
return isObject2(header) ? { ...header, records: records2 } : header;
|
|
42832
42832
|
}, "envelopeOfJsonl");
|
|
42833
42833
|
|
|
42834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/crm.js
|
|
42835
42835
|
var TABLES = { deal: "deals", lead: "leads" };
|
|
42836
42836
|
var SOURCE = "crm";
|
|
42837
42837
|
var crmIdentityId = /* @__PURE__ */ __name((key2, externalId, type = "contact") => `${key2.account}/${type}/${externalId}`, "crmIdentityId");
|
|
@@ -43106,7 +43106,7 @@ var crmCopiesOver = /* @__PURE__ */ __name((context, people2) => {
|
|
|
43106
43106
|
};
|
|
43107
43107
|
}, "crmCopiesOver");
|
|
43108
43108
|
|
|
43109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
43110
43110
|
var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
43111
43111
|
throw new CliError(code, message2, { reason });
|
|
43112
43112
|
}, "refuse");
|
|
@@ -43567,7 +43567,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43567
43567
|
};
|
|
43568
43568
|
}, "financeStoreOver");
|
|
43569
43569
|
|
|
43570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/deals.js
|
|
43571
43571
|
var TABLES2 = { deal: "deals", lead: "leads" };
|
|
43572
43572
|
var itemsSql = /* @__PURE__ */ __name((kind4) => `SELECT d.*, s.name AS stage_name, s.pipeline_id, p.name AS pipeline_name, b.name AS author_name, b.kind AS author_kind, a.provider AS account_provider, a.external_id AS account_external_id FROM ${TABLES2[kind4]} d JOIN pipeline_stages s ON s.id = d.stage_id JOIN pipelines p ON p.id = s.pipeline_id LEFT JOIN bots b ON d.author_type = 'bot' AND b.id = d.author_id LEFT JOIN accounts a ON a.id = d.account_id`, "itemsSql");
|
|
43573
43573
|
var MAX_STAGES = 30;
|
|
@@ -43907,7 +43907,7 @@ var dealsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43907
43907
|
};
|
|
43908
43908
|
}, "dealsStoreOver");
|
|
43909
43909
|
|
|
43910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
43911
43911
|
var NOTE_FIELDS = [
|
|
43912
43912
|
"text",
|
|
43913
43913
|
"exact",
|
|
@@ -44337,7 +44337,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
44337
44337
|
};
|
|
44338
44338
|
}, "noteSearchOver");
|
|
44339
44339
|
|
|
44340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
44341
44341
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
44342
44342
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
44343
44343
|
var EVENT_CORPUS = {
|
|
@@ -44469,7 +44469,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
44469
44469
|
};
|
|
44470
44470
|
}, "eventSearchOver");
|
|
44471
44471
|
|
|
44472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
44473
44473
|
var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
|
|
44474
44474
|
throw new CliError("validation_error", message2, { reason });
|
|
44475
44475
|
}, "refuse");
|
|
@@ -44547,7 +44547,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
44547
44547
|
};
|
|
44548
44548
|
}, "paymentEntriesOver");
|
|
44549
44549
|
|
|
44550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
44551
44551
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
44552
44552
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
44553
44553
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -44573,7 +44573,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
44573
44573
|
return valid;
|
|
44574
44574
|
}, "validateEvidenceFindings");
|
|
44575
44575
|
|
|
44576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
44577
44577
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
44578
44578
|
try {
|
|
44579
44579
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -44585,7 +44585,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
44585
44585
|
}
|
|
44586
44586
|
}, "calendarMoment");
|
|
44587
44587
|
|
|
44588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
44589
44589
|
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";
|
|
44590
44590
|
var iso10 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
44591
44591
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -44794,7 +44794,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
44794
44794
|
};
|
|
44795
44795
|
}, "factsStoreOver");
|
|
44796
44796
|
|
|
44797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
44798
44798
|
var invalid5 = /* @__PURE__ */ __name((message2) => {
|
|
44799
44799
|
throw new CliError("validation_error", message2);
|
|
44800
44800
|
}, "invalid");
|
|
@@ -44898,7 +44898,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
44898
44898
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
44899
44899
|
}, "findingsCoreOver");
|
|
44900
44900
|
|
|
44901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
44902
44902
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
44903
44903
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
44904
44904
|
var iso11 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -45063,7 +45063,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45063
45063
|
};
|
|
45064
45064
|
}, "proposedActionsStoreOver");
|
|
45065
45065
|
|
|
45066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
45067
45067
|
var stale = /* @__PURE__ */ __name(() => {
|
|
45068
45068
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
45069
45069
|
reason: "evidence-findings.stale"
|
|
@@ -45244,7 +45244,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45244
45244
|
};
|
|
45245
45245
|
}, "evidenceFindingsStoreOver");
|
|
45246
45246
|
|
|
45247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
45248
45248
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
45249
45249
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
45250
45250
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -45297,7 +45297,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
45297
45297
|
}, "forPerson")
|
|
45298
45298
|
}), "involvementStoreOver");
|
|
45299
45299
|
|
|
45300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
45301
45301
|
import { createHash as createHash13 } from "node:crypto";
|
|
45302
45302
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
45303
45303
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -45383,7 +45383,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
45383
45383
|
};
|
|
45384
45384
|
}, "meetingProjectsStoreOver");
|
|
45385
45385
|
|
|
45386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
45387
45387
|
var ORGANIZATIONS_QUERY = {
|
|
45388
45388
|
entity: "organization",
|
|
45389
45389
|
backend: "sql",
|
|
@@ -45424,7 +45424,7 @@ var REMINDERS_QUERY = {
|
|
|
45424
45424
|
})
|
|
45425
45425
|
};
|
|
45426
45426
|
|
|
45427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/organizations.js
|
|
45428
45428
|
var organizationOf = /* @__PURE__ */ __name((row2) => ({
|
|
45429
45429
|
id: String(row2.id),
|
|
45430
45430
|
ref: `organization:${row2.id}`,
|
|
@@ -45457,7 +45457,7 @@ var organizationsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) =>
|
|
|
45457
45457
|
}), "updateOrganization")
|
|
45458
45458
|
}), "organizationsStoreOver");
|
|
45459
45459
|
|
|
45460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
45461
45461
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
45462
45462
|
id: link3.id,
|
|
45463
45463
|
from: link3.from,
|
|
@@ -45683,16 +45683,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
45683
45683
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
45684
45684
|
}, "decidedOrigin");
|
|
45685
45685
|
|
|
45686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
45687
45687
|
import { createHash as createHash16 } from "node:crypto";
|
|
45688
45688
|
|
|
45689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
45690
45690
|
import { createHash as createHash15 } from "node:crypto";
|
|
45691
45691
|
|
|
45692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
45693
45693
|
import { createHash as createHash14 } from "node:crypto";
|
|
45694
45694
|
|
|
45695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
45696
45696
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
45697
45697
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
45698
45698
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -45743,7 +45743,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
45743
45743
|
return input;
|
|
45744
45744
|
}, "consolidationApplyInput");
|
|
45745
45745
|
|
|
45746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
45747
45747
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
45748
45748
|
id: String(row2.id),
|
|
45749
45749
|
sourceId: String(row2.source_id),
|
|
@@ -45818,7 +45818,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
45818
45818
|
}, { beforeCommit: check3 });
|
|
45819
45819
|
}, "applyTagConsolidation");
|
|
45820
45820
|
|
|
45821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
45822
45822
|
var selections = [
|
|
45823
45823
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
45824
45824
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -45962,7 +45962,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
45962
45962
|
};
|
|
45963
45963
|
}, "previewRows");
|
|
45964
45964
|
|
|
45965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
45966
45966
|
var kinds = ["project", "tag", "topic"];
|
|
45967
45967
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
45968
45968
|
if (signal?.aborted)
|
|
@@ -46226,7 +46226,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
46226
46226
|
};
|
|
46227
46227
|
}, "vocabularyStoreOver");
|
|
46228
46228
|
|
|
46229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
46230
46230
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
46231
46231
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
46232
46232
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -46767,7 +46767,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
46767
46767
|
return key2.padEnd(3, "X");
|
|
46768
46768
|
}, "projectKey");
|
|
46769
46769
|
|
|
46770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
46771
46771
|
var DAY5 = 864e5;
|
|
46772
46772
|
var SETTING4 = "logs_pruned_at";
|
|
46773
46773
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -46794,7 +46794,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
46794
46794
|
};
|
|
46795
46795
|
}, "logPruner");
|
|
46796
46796
|
|
|
46797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
46798
46798
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
46799
46799
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
46800
46800
|
var invalid7 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -47170,7 +47170,7 @@ var checkMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
47170
47170
|
}, "checkMailFindings");
|
|
47171
47171
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
47172
47172
|
|
|
47173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
47174
47174
|
var import_disposable_email_domains_js = __toESM(require_dist(), 1);
|
|
47175
47175
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
47176
47176
|
var WEIGHTS = {
|
|
@@ -47303,7 +47303,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
47303
47303
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
47304
47304
|
}, "scoreGroup");
|
|
47305
47305
|
|
|
47306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
|
|
47307
47307
|
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";
|
|
47308
47308
|
var orderOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
47309
47309
|
const { database, now: now2 } = context;
|
|
@@ -47455,7 +47455,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
47455
47455
|
};
|
|
47456
47456
|
}, "ordersStoreOver");
|
|
47457
47457
|
|
|
47458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
47459
47459
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
47460
47460
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
47461
47461
|
reason: "mail-findings.stale"
|
|
@@ -47912,7 +47912,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
47912
47912
|
};
|
|
47913
47913
|
}, "mailFindingsStoreOver");
|
|
47914
47914
|
|
|
47915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
47916
47916
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
47917
47917
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
47918
47918
|
reason: "meeting-findings.stale"
|
|
@@ -48080,7 +48080,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
48080
48080
|
};
|
|
48081
48081
|
}, "meetingFindingsStoreOver");
|
|
48082
48082
|
|
|
48083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
48084
48084
|
var RANK_BATCH = 512;
|
|
48085
48085
|
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";
|
|
48086
48086
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -48351,7 +48351,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
48351
48351
|
}
|
|
48352
48352
|
}), "meetingVectorsOver");
|
|
48353
48353
|
|
|
48354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
48355
48355
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
48356
48356
|
var TEXTS = {
|
|
48357
48357
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -48452,11 +48452,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
48452
48452
|
};
|
|
48453
48453
|
}, "sourceMentionStoreOver");
|
|
48454
48454
|
|
|
48455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48456
|
-
import { mkdirSync as mkdirSync2, statSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
48455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
48456
|
+
import { accessSync, constants, existsSync, mkdirSync as mkdirSync2, statSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
48457
48457
|
import { dirname as dirname2 } from "node:path";
|
|
48458
48458
|
|
|
48459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
48460
48460
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
48461
48461
|
var CLIENTS_SETTING = "clients";
|
|
48462
48462
|
var coreVersion = (() => {
|
|
@@ -48514,7 +48514,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
48514
48514
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
48515
48515
|
}, "refusalAdvice");
|
|
48516
48516
|
|
|
48517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
48518
48518
|
var GENERATED = [
|
|
48519
48519
|
{
|
|
48520
48520
|
"name": "20261010184427_initial",
|
|
@@ -49581,7 +49581,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
49581
49581
|
}
|
|
49582
49582
|
];
|
|
49583
49583
|
|
|
49584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/rollback-copy.js
|
|
49585
49585
|
import { mkdirSync, rmSync, statfsSync, writeFileSync } from "node:fs";
|
|
49586
49586
|
import { basename, dirname, join as join2, parse } from "node:path";
|
|
49587
49587
|
var DERIVED = /(_fts|_words|_stems|_trigrams|_pending)$|^(embeddings|chunks|chunk_messages|mentions|involvements|search_terms)$|^vector_index/;
|
|
@@ -49814,7 +49814,7 @@ var rollBack = /* @__PURE__ */ __name((database, path) => {
|
|
|
49814
49814
|
return { ...result, foreignKeyViolations };
|
|
49815
49815
|
}, "rollBack");
|
|
49816
49816
|
|
|
49817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
49818
49818
|
var V31_TABLES = [
|
|
49819
49819
|
"accounts",
|
|
49820
49820
|
"account_identities",
|
|
@@ -49960,7 +49960,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
49960
49960
|
return migrations;
|
|
49961
49961
|
}, "generatedMigrations");
|
|
49962
49962
|
|
|
49963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
49964
49964
|
var MIGRATIONS = generatedMigrations();
|
|
49965
49965
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
49966
49966
|
version INTEGER PRIMARY KEY,
|
|
@@ -50039,7 +50039,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
50039
50039
|
}
|
|
50040
50040
|
}, "migrate");
|
|
50041
50041
|
|
|
50042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
50043
50043
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
50044
50044
|
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 ?");
|
|
50045
50045
|
if (pending.get(0, 1) === void 0)
|
|
@@ -50061,7 +50061,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
50061
50061
|
}
|
|
50062
50062
|
}, "fillJoinKeys");
|
|
50063
50063
|
|
|
50064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
50065
50065
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
50066
50066
|
refuseOwnerStoreInTests(path);
|
|
50067
50067
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -50075,8 +50075,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
50075
50075
|
}, "openSqlite");
|
|
50076
50076
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
50077
50077
|
quietSqliteWarning();
|
|
50078
|
-
const { drizzle } = await import("./node-
|
|
50079
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
50078
|
+
const { drizzle } = await import("./node-SPFML2D5.js");
|
|
50079
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-T3KILRCP.js");
|
|
50080
50080
|
const client = await nodeClient(path, { readOnly });
|
|
50081
50081
|
try {
|
|
50082
50082
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -50086,8 +50086,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
50086
50086
|
}
|
|
50087
50087
|
}, "openUnderNode");
|
|
50088
50088
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
50089
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
50090
|
-
const { drizzle } = await import("./bun-
|
|
50089
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-5FCGI6EO.js");
|
|
50090
|
+
const { drizzle } = await import("./bun-3AIG5ML4.js");
|
|
50091
50091
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
50092
50092
|
try {
|
|
50093
50093
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -50097,7 +50097,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
50097
50097
|
}
|
|
50098
50098
|
}, "openUnderBun");
|
|
50099
50099
|
|
|
50100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
50101
50101
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
50102
50102
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
50103
50103
|
try {
|
|
@@ -50165,7 +50165,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
50165
50165
|
});
|
|
50166
50166
|
}, "movePaymentFacts");
|
|
50167
50167
|
|
|
50168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
50169
50169
|
var readCompatibility = /* @__PURE__ */ __name((database, command) => {
|
|
50170
50170
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
50171
50171
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -50183,7 +50183,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
50183
50183
|
throw new CliError("configuration_error", `The store needs schema ${MIGRATIONS.at(-1)?.version ?? 0} maintenance before a read-only open`);
|
|
50184
50184
|
}, "assertReadCompatible");
|
|
50185
50185
|
|
|
50186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
50187
50187
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
50188
50188
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
50189
50189
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -50229,7 +50229,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
50229
50229
|
});
|
|
50230
50230
|
}, "moveSuggestedLinks");
|
|
50231
50231
|
|
|
50232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
50233
50233
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
50234
50234
|
var TEST_PROVIDER = "chat";
|
|
50235
50235
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -50250,14 +50250,19 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
50250
50250
|
}
|
|
50251
50251
|
}, "purgeTestAccounts");
|
|
50252
50252
|
|
|
50253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
50254
50254
|
var BACKFILL_ON_OPEN = 5e3;
|
|
50255
50255
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
50256
50256
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
50257
50257
|
try {
|
|
50258
50258
|
mkdirSync2(dirname2(file), { recursive: true, mode: 448 });
|
|
50259
|
-
|
|
50259
|
+
if (existsSync(file))
|
|
50260
|
+
accessSync(file, constants.W_OK);
|
|
50261
|
+
else
|
|
50262
|
+
writeFileSync2(file, "", { flag: "wx", mode: 384 });
|
|
50260
50263
|
} catch (error) {
|
|
50264
|
+
if (error.code === "EEXIST")
|
|
50265
|
+
return;
|
|
50261
50266
|
if (!NOT_WRITABLE.has(error.code ?? ""))
|
|
50262
50267
|
throw error;
|
|
50263
50268
|
throw new CliError("permission_error", "the message store cannot be written from here; run where it is writable, or set MESSAGING_STORE", { reason: "store.not-writable" });
|
|
@@ -50341,10 +50346,10 @@ var openStoreContext = /* @__PURE__ */ __name(async (options = {}) => {
|
|
|
50341
50346
|
}
|
|
50342
50347
|
}, "openStoreContext");
|
|
50343
50348
|
|
|
50344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
50345
50350
|
import { createHash as createHash17 } from "node:crypto";
|
|
50346
50351
|
|
|
50347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
50348
50353
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
50349
50354
|
var ref = text4(2048);
|
|
50350
50355
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -50410,7 +50415,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
50410
50415
|
}))
|
|
50411
50416
|
});
|
|
50412
50417
|
|
|
50413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
50414
50419
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
50415
50420
|
var invalid10 = /* @__PURE__ */ __name((field4) => {
|
|
50416
50421
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -50514,7 +50519,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
50514
50519
|
invalid10("external.unused");
|
|
50515
50520
|
}, "validateProjectAnnotationsGraph");
|
|
50516
50521
|
|
|
50517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
50518
50523
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
50519
50524
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
50520
50525
|
var targetSchema = strictObject({
|
|
@@ -50620,7 +50625,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
50620
50625
|
};
|
|
50621
50626
|
}, "planBoundProjectAnnotations");
|
|
50622
50627
|
|
|
50623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
50624
50629
|
import { createHash as createHash18 } from "node:crypto";
|
|
50625
50630
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
50626
50631
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -50714,7 +50719,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
50714
50719
|
})).digest("hex");
|
|
50715
50720
|
}, "projectAnnotationSnapshotFingerprint");
|
|
50716
50721
|
|
|
50717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
50718
50723
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
50719
50724
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
50720
50725
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -50731,7 +50736,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
50731
50736
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
50732
50737
|
}, "projectAnnotationRequest");
|
|
50733
50738
|
|
|
50734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
50735
50740
|
var SnapshotBudget = class {
|
|
50736
50741
|
static {
|
|
50737
50742
|
__name(this, "SnapshotBudget");
|
|
@@ -50757,13 +50762,13 @@ var SnapshotBudget = class {
|
|
|
50757
50762
|
}
|
|
50758
50763
|
};
|
|
50759
50764
|
|
|
50760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
50761
50766
|
import { createHash as createHash20 } from "node:crypto";
|
|
50762
50767
|
|
|
50763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
50764
50769
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
50765
50770
|
|
|
50766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
50767
50772
|
import { createHash as createHash19 } from "node:crypto";
|
|
50768
50773
|
var invalid12 = /* @__PURE__ */ __name(() => {
|
|
50769
50774
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -50906,7 +50911,7 @@ var ProjectSnapshotSources = class {
|
|
|
50906
50911
|
}
|
|
50907
50912
|
};
|
|
50908
50913
|
|
|
50909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
50910
50915
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
50911
50916
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
50912
50917
|
}, "unsupported");
|
|
@@ -51077,7 +51082,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
51077
51082
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
51078
51083
|
}), "projectAnnotationSnapshot");
|
|
51079
51084
|
|
|
51080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
51081
51086
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
51082
51087
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
51083
51088
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -51139,7 +51144,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
51139
51144
|
};
|
|
51140
51145
|
}), "previewAnnotationSnapshot");
|
|
51141
51146
|
|
|
51142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
51143
51148
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
51144
51149
|
const mappings = { ...bindings };
|
|
51145
51150
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -51181,7 +51186,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
51181
51186
|
return mappings;
|
|
51182
51187
|
}, "restoreAnnotationRecords");
|
|
51183
51188
|
|
|
51184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
51185
51190
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
51186
51191
|
async preview(request) {
|
|
51187
51192
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -51211,7 +51216,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
51211
51216
|
}
|
|
51212
51217
|
}), "projectAnnotationStoreOver");
|
|
51213
51218
|
|
|
51214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
51215
51220
|
var PROJECTED = {
|
|
51216
51221
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
51217
51222
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -51624,7 +51629,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51624
51629
|
};
|
|
51625
51630
|
}, "recordStoreOver");
|
|
51626
51631
|
|
|
51627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
51628
51633
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
51629
51634
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
51630
51635
|
let merged = { from: from2, to };
|
|
@@ -51637,7 +51642,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
51637
51642
|
}, "markRange");
|
|
51638
51643
|
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");
|
|
51639
51644
|
|
|
51640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
51641
51646
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
51642
51647
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
51643
51648
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -51658,7 +51663,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
51658
51663
|
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);
|
|
51659
51664
|
}, "setTaskAnalysisMark");
|
|
51660
51665
|
|
|
51661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
51662
51667
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
51663
51668
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
51664
51669
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -51668,7 +51673,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
51668
51673
|
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);
|
|
51669
51674
|
}, "setTaskRulesStop");
|
|
51670
51675
|
|
|
51671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
51672
51677
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
51673
51678
|
const { database } = context;
|
|
51674
51679
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -51727,7 +51732,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51727
51732
|
};
|
|
51728
51733
|
}, "syncStoreOver");
|
|
51729
51734
|
|
|
51730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
51731
51736
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
51732
51737
|
const { database } = context;
|
|
51733
51738
|
return {
|
|
@@ -51749,7 +51754,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
51749
51754
|
};
|
|
51750
51755
|
}, "tagsStoreOver");
|
|
51751
51756
|
|
|
51752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
51753
51758
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
51754
51759
|
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
|
|
51755
51760
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -51876,7 +51881,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
51876
51881
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
51877
51882
|
}, "savePictureChunks");
|
|
51878
51883
|
|
|
51879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
51880
51885
|
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,
|
|
51881
51886
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
51882
51887
|
FROM messages m
|
|
@@ -51965,7 +51970,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
51965
51970
|
return plain2(best(found2));
|
|
51966
51971
|
}, "nearestMessages");
|
|
51967
51972
|
|
|
51968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
51969
51974
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
51970
51975
|
const { database } = context;
|
|
51971
51976
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -52223,8 +52228,8 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
52223
52228
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
52224
52229
|
}), "vectorsStoreOver");
|
|
52225
52230
|
|
|
52226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52227
|
-
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
52231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
52232
|
+
import { existsSync as existsSync2, readFileSync as readFileSync4 } from "node:fs";
|
|
52228
52233
|
import { dirname as dirname3, join as join3 } from "node:path";
|
|
52229
52234
|
var BOOKKEEPING2 = ["schema_migrations", "store_settings"];
|
|
52230
52235
|
var LISTED = `
|
|
@@ -52294,7 +52299,7 @@ var fileFacts = /* @__PURE__ */ __name((database, path) => {
|
|
|
52294
52299
|
}, "fileFacts");
|
|
52295
52300
|
var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
52296
52301
|
const marker = join3(dirname3(path), "backups", "last.json");
|
|
52297
|
-
if (!
|
|
52302
|
+
if (!existsSync2(marker))
|
|
52298
52303
|
return null;
|
|
52299
52304
|
try {
|
|
52300
52305
|
const { at, file, checked } = JSON.parse(readFileSync4(marker, "utf8"));
|
|
@@ -52311,10 +52316,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
52311
52316
|
}
|
|
52312
52317
|
}, "lastBackup");
|
|
52313
52318
|
|
|
52314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
52315
52320
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
52316
52321
|
|
|
52317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
52318
52323
|
var COUNTED_TABLES = [
|
|
52319
52324
|
"accounts",
|
|
52320
52325
|
"chats",
|
|
@@ -52399,7 +52404,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
52399
52404
|
};
|
|
52400
52405
|
}, "storeContents");
|
|
52401
52406
|
|
|
52402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
52407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.599.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_9abdd607bcc42461f37eac6c77838a67/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
52403
52408
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
52404
52409
|
const context = await openStoreContext(options);
|
|
52405
52410
|
try {
|
|
@@ -52668,6 +52673,7 @@ export {
|
|
|
52668
52673
|
stemsState,
|
|
52669
52674
|
stemmerCache,
|
|
52670
52675
|
isBusy,
|
|
52676
|
+
fillVectorIndexes,
|
|
52671
52677
|
vectorIndexCounts,
|
|
52672
52678
|
dropAllUnusedVectors,
|
|
52673
52679
|
CHUNK_CHARS,
|
|
@@ -52677,7 +52683,10 @@ export {
|
|
|
52677
52683
|
amountsOf,
|
|
52678
52684
|
dueDayOf,
|
|
52679
52685
|
queryFilter,
|
|
52686
|
+
CORPORA,
|
|
52687
|
+
fillTrigrams,
|
|
52680
52688
|
noteIndexState,
|
|
52689
|
+
drainCorpus,
|
|
52681
52690
|
drainNoteIndex,
|
|
52682
52691
|
resetNoteIndex,
|
|
52683
52692
|
CHAT_COLUMNS,
|
|
@@ -52694,6 +52703,7 @@ export {
|
|
|
52694
52703
|
mailOwnText,
|
|
52695
52704
|
AGENDA_COLUMNS,
|
|
52696
52705
|
correctWords,
|
|
52706
|
+
drainMeetingIndex,
|
|
52697
52707
|
THREAD_COLUMNS,
|
|
52698
52708
|
threadConversation,
|
|
52699
52709
|
messageOfEmail,
|
|
@@ -52735,6 +52745,7 @@ export {
|
|
|
52735
52745
|
CONVERSATION_COLUMNS,
|
|
52736
52746
|
MENTION_STATUSES,
|
|
52737
52747
|
MENTION_QUERY,
|
|
52748
|
+
rebuildMentions,
|
|
52738
52749
|
MESSAGE_MEASURES,
|
|
52739
52750
|
AUTHOR_MEASURES,
|
|
52740
52751
|
rankingOptions,
|