@wirecat/cli-memo 0.131.36 → 0.131.37
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-AVDSOFZL.js → all-profiles-W26PFZ2J.js} +5 -5
- package/dist/bundle/{anthropic-CRPI5XLD.js → anthropic-SY6QPTQW.js} +3 -3
- package/dist/bundle/{app-server-PIXX4CXT.js → app-server-WUXDTYU4.js} +35 -35
- package/dist/bundle/auto-U76QA2DW.js +86 -0
- package/dist/bundle/{bun-JOD7BLWG.js → bun-O3KE32D7.js} +2 -2
- package/dist/bundle/{bun-sqlite-IW42RA6B.js → bun-sqlite-5X2NBSLA.js} +2 -2
- package/dist/bundle/{chunk-4BWAVNRU.js → chunk-2EDP7PDR.js} +258 -258
- package/dist/bundle/{chunk-BRMII52T.js → chunk-2IST54UV.js} +9 -9
- package/dist/bundle/{chunk-XSS6U6VL.js → chunk-2Q4DYGNU.js} +2 -2
- package/dist/bundle/{chunk-EUZGV5UK.js → chunk-32WLB6I3.js} +1 -1
- package/dist/bundle/{chunk-G4N6CIFO.js → chunk-374FSLTB.js} +5 -5
- package/dist/bundle/{chunk-JPVAIMPJ.js → chunk-3G63U4VK.js} +9 -9
- package/dist/bundle/{chunk-PWKO36K4.js → chunk-43CMY3YD.js} +1 -1
- package/dist/bundle/{chunk-ZFIBNKLW.js → chunk-4AXSD77N.js} +1 -1
- package/dist/bundle/{chunk-D57K44OV.js → chunk-4CADISNA.js} +1 -1
- package/dist/bundle/{chunk-TW5YX26Q.js → chunk-4CD37FZU.js} +5 -5
- package/dist/bundle/{chunk-7U7U2UZV.js → chunk-4NJQJZRO.js} +1 -1
- package/dist/bundle/{chunk-CC2EUMMM.js → chunk-4OF64T67.js} +1 -1
- package/dist/bundle/{chunk-X3WEAVIH.js → chunk-5EBYGKZB.js} +1 -1
- package/dist/bundle/{chunk-HQJBQWFQ.js → chunk-5J5RTJUJ.js} +1 -1
- package/dist/bundle/{chunk-QRYSVOUH.js → chunk-5ZKNRR6O.js} +48 -33
- package/dist/bundle/{chunk-XCO6NBTE.js → chunk-75QQ7MLH.js} +8 -8
- package/dist/bundle/{chunk-RZLEQP2H.js → chunk-7P3PM3OL.js} +7 -7
- package/dist/bundle/{chunk-EW2T73CA.js → chunk-AJ4SVCBD.js} +259 -251
- package/dist/bundle/{chunk-T5IRZA25.js → chunk-AOFYLQK2.js} +2 -2
- package/dist/bundle/{chunk-6Z5SDRME.js → chunk-B4LT2DHH.js} +4 -4
- package/dist/bundle/{chunk-YVYOZY5K.js → chunk-CEENCS5P.js} +6 -6
- package/dist/bundle/{chunk-T676QOXT.js → chunk-CEOXSWU3.js} +2 -2
- package/dist/bundle/{chunk-EFF5JJRJ.js → chunk-CVCL77DZ.js} +4 -4
- package/dist/bundle/{chunk-CBFO5NLX.js → chunk-CXWKBOKQ.js} +3 -3
- package/dist/bundle/{chunk-QIRO6B6C.js → chunk-DHGQTARJ.js} +4 -4
- package/dist/bundle/{chunk-RPZQ3DSX.js → chunk-DZA5OWKD.js} +5 -5
- package/dist/bundle/{chunk-UKSL7QZD.js → chunk-F4BXYTIW.js} +7 -7
- package/dist/bundle/{chunk-LTP2EEXM.js → chunk-FOQBIEL5.js} +1 -1
- package/dist/bundle/{chunk-WVJFUHQS.js → chunk-GXCXOITM.js} +20 -20
- package/dist/bundle/{chunk-BFKNZMRN.js → chunk-J7FP7PRV.js} +150 -150
- package/dist/bundle/{chunk-AOZMZXFQ.js → chunk-JT36R23P.js} +7 -7
- package/dist/bundle/{chunk-4AMCA6VQ.js → chunk-K3GMQLFM.js} +2 -2
- package/dist/bundle/{chunk-ZLFFEGX6.js → chunk-L2M3LTQQ.js} +1 -1
- package/dist/bundle/{chunk-CIWU756L.js → chunk-LV6FBPUQ.js} +11 -11
- package/dist/bundle/{chunk-JBMSXV2A.js → chunk-O762IE2F.js} +1 -1
- package/dist/bundle/{chunk-VIWOYM4L.js → chunk-QM5CNTGT.js} +20 -20
- package/dist/bundle/{chunk-VWWUJKLO.js → chunk-QMY4EZ6B.js} +5 -5
- package/dist/bundle/{chunk-KAODXBUF.js → chunk-QP7BTVMT.js} +2 -2
- package/dist/bundle/{chunk-6J6OO4BJ.js → chunk-QTLYWZXB.js} +3 -3
- package/dist/bundle/{chunk-34BMGIFI.js → chunk-RBCI432I.js} +3 -3
- package/dist/bundle/{chunk-E7IJTHAC.js → chunk-S2K3FWLA.js} +12 -12
- package/dist/bundle/{chunk-GZZQDHUT.js → chunk-S5KSC4B3.js} +27 -27
- package/dist/bundle/{chunk-UKIZBDD3.js → chunk-SDIKN2OR.js} +10 -10
- package/dist/bundle/{chunk-JU5Q3AZD.js → chunk-SSQDA7X6.js} +4 -4
- package/dist/bundle/{chunk-G7N3ID6S.js → chunk-TJNW4L7P.js} +43 -43
- package/dist/bundle/{chunk-GAC4FF6K.js → chunk-TJXVMLK4.js} +1 -1
- package/dist/bundle/{chunk-YCLV7AAF.js → chunk-TXJYVD5U.js} +1 -1
- package/dist/bundle/{chunk-2JZKVNFL.js → chunk-UOJWRYVD.js} +7 -1
- package/dist/bundle/{chunk-HPUUJVTP.js → chunk-UUD4QHAN.js} +4 -4
- package/dist/bundle/{chunk-WORCFDZN.js → chunk-UWJ3RJF4.js} +2 -2
- package/dist/bundle/{chunk-VR6FNEFZ.js → chunk-VHYJIRK7.js} +4 -4
- package/dist/bundle/{chunk-FKRD3KGN.js → chunk-WRZP6DJT.js} +54 -54
- package/dist/bundle/{chunk-PXOZGHXR.js → chunk-WVXTZWH3.js} +1 -1
- package/dist/bundle/{chunk-RDXN52I6.js → chunk-XCAGVFRC.js} +278 -278
- package/dist/bundle/{chunk-VBAAW3FK.js → chunk-XLUOKHFN.js} +3 -3
- package/dist/bundle/{chunk-WGLE4R45.js → chunk-ZMZVRVCK.js} +2 -2
- package/dist/bundle/{chunk-WUF3P4DX.js → chunk-ZP7F76D3.js} +1 -1
- package/dist/bundle/{command-contract-BAHAQIPW.js → command-contract-FRRW2Z4S.js} +11 -11
- package/dist/bundle/{decode-ANYCY5PK.js → decode-RVPTVZ3W.js} +2 -2
- package/dist/bundle/{echarts-NH42736V.js → echarts-CW6DTALT.js} +2 -2
- package/dist/bundle/{embed-34XKENNN.js → embed-VXWYSZ7X.js} +3 -3
- package/dist/bundle/{embedder-GMTQ6CUJ.js → embedder-QX3GSPBN.js} +6 -6
- package/dist/bundle/{entry-W2JUZTXL.js → entry-LBDVYMDG.js} +4 -4
- package/dist/bundle/failure-NMC4BQ2P.js +66 -0
- package/dist/bundle/{first-run-MAHEEKHT.js → first-run-VPR5YFMD.js} +5 -5
- package/dist/bundle/{first-screen-X4SVIRMT.js → first-screen-WRKQ4GAM.js} +12 -12
- package/dist/bundle/{instructions-YOSNFLTK.js → instructions-2XLUHPQH.js} +1 -1
- package/dist/bundle/{mcp-CAMU2OWN.js → mcp-RD54TNKO.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-O3XV2354.js → node-AQ7O3PGH.js} +2 -2
- package/dist/bundle/{node-sqlite-MJDZN4PN.js → node-sqlite-RKDBK624.js} +3 -3
- package/dist/bundle/{oauth-KEGXZT2C.js → oauth-ZQCL2HPA.js} +4 -4
- package/dist/bundle/{open-I3I57V2N.js → open-ME6M3BWL.js} +2 -2
- package/dist/bundle/{openai-VCEX4PW3.js → openai-PHW5QKNC.js} +7 -7
- package/dist/bundle/{process-BAT3Q3LY.js → process-4HJLMEHS.js} +1 -1
- package/dist/bundle/{program-IH6EXRJR.js → program-GVEBIXZL.js} +83 -61
- package/dist/bundle/{prompt-3AD7X52P.js → prompt-U5JMQJPC.js} +2 -2
- package/dist/bundle/{recognize-AMFTP45O.js → recognize-OYKFXOLL.js} +1 -1
- package/dist/bundle/{remote-Z5V5EKS4.js → remote-IXABNXVH.js} +4 -4
- package/dist/bundle/{rerank-PUDPLKON.js → rerank-6ASLHI5I.js} +4 -4
- package/dist/bundle/{serve-ZRBPK4GW.js → serve-ZYQO2Z23.js} +6 -6
- package/dist/bundle/server-BMXFJO2T.js +61 -0
- package/dist/bundle/{server-CJ5CMNEO.js → server-DMU7GDV2.js} +50 -50
- package/dist/bundle/server-V7JU6YLA.js +48 -0
- package/dist/bundle/{state-BVVIF6M3.js → state-5W7BQVQO.js} +3 -3
- package/dist/bundle/{store-2U3EY4N5.js → store-6WW7XV2O.js} +9 -9
- package/dist/bundle/store-maintenance-command-YPNP663U.js +48 -0
- package/dist/bundle/update-GLX3YE67.js +69 -0
- package/dist/examples.js +1 -1
- package/dist/examples.js.map +1 -1
- package/dist/mail/findings-command.d.ts +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +29 -4
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +1 -0
- package/dist/mail/review-command.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/cli-memo/topics/mail.md +2 -1
- package/skills/mail-triage/SKILL.md +34 -11
- package/dist/bundle/auto-QK6SSRWW.js +0 -86
- package/dist/bundle/failure-UOGNX3CX.js +0 -66
- package/dist/bundle/server-423F624R.js +0 -48
- package/dist/bundle/server-GHZF2UHL.js +0 -61
- package/dist/bundle/store-maintenance-command-MSYIPYY3.js +0 -48
- package/dist/bundle/update-NQNVV57J.js +0 -69
- /package/dist/bundle/{chunk-2HSW646W.js → chunk-FEJOKQPV.js} +0 -0
|
@@ -93,11 +93,11 @@ import {
|
|
|
93
93
|
validateQuery,
|
|
94
94
|
walkQuery,
|
|
95
95
|
zonedMoment
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-WRZP6DJT.js";
|
|
97
97
|
import {
|
|
98
98
|
holdsCredential,
|
|
99
99
|
secretNamed
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-32WLB6I3.js";
|
|
101
101
|
import {
|
|
102
102
|
DEFAULT_STEMMERS,
|
|
103
103
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -110,26 +110,26 @@ import {
|
|
|
110
110
|
fold,
|
|
111
111
|
normalize,
|
|
112
112
|
parseStemmers
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-7P3PM3OL.js";
|
|
114
114
|
import {
|
|
115
115
|
DEFAULT_TASK_CATEGORIES,
|
|
116
116
|
sharedConfigPath,
|
|
117
117
|
storedTaskCategories,
|
|
118
118
|
taskCategoriesReader
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-B4LT2DHH.js";
|
|
120
120
|
import {
|
|
121
121
|
refuseOwnerStoreInTests,
|
|
122
122
|
storePath
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-4CADISNA.js";
|
|
124
124
|
import {
|
|
125
125
|
quietSqliteWarning,
|
|
126
126
|
storeCapable
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-374FSLTB.js";
|
|
128
128
|
import {
|
|
129
129
|
PRAGMAS,
|
|
130
130
|
TIME_LIMIT_FUNCTION,
|
|
131
131
|
TimeLimitReached
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-L2M3LTQQ.js";
|
|
133
133
|
import {
|
|
134
134
|
array,
|
|
135
135
|
boolean,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
sql,
|
|
180
180
|
sqliteTable,
|
|
181
181
|
text
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-4AXSD77N.js";
|
|
183
183
|
import {
|
|
184
184
|
__commonJS,
|
|
185
185
|
__name,
|
|
@@ -9923,7 +9923,7 @@ var require_cjs = __commonJS({
|
|
|
9923
9923
|
}
|
|
9924
9924
|
});
|
|
9925
9925
|
|
|
9926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/account-store.js
|
|
9927
9927
|
var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
|
|
9928
9928
|
const methods = whole;
|
|
9929
9929
|
return Object.fromEntries(Object.keys(keyed).map((name) => [
|
|
@@ -10051,7 +10051,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
|
|
|
10051
10051
|
};
|
|
10052
10052
|
}, "bindAccount");
|
|
10053
10053
|
|
|
10054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
10055
10055
|
var SCHEME = "msg:";
|
|
10056
10056
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
|
|
10057
10057
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -10065,7 +10065,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
10065
10065
|
return { provider, account, chat: chat2, message: message2 };
|
|
10066
10066
|
}, "parseLocator");
|
|
10067
10067
|
|
|
10068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
10069
10069
|
var SIMPLE_REFERENCES = [
|
|
10070
10070
|
"note",
|
|
10071
10071
|
"document",
|
|
@@ -10213,7 +10213,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
|
|
|
10213
10213
|
return match !== null && byPrefix.has(match[1]);
|
|
10214
10214
|
}, "looksLikeReference");
|
|
10215
10215
|
|
|
10216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
10217
10217
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
10218
10218
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
10219
10219
|
var PROVIDERS = [
|
|
@@ -10329,7 +10329,7 @@ var providerNamed = /* @__PURE__ */ __name((word2) => {
|
|
|
10329
10329
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
10330
10330
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
10331
10331
|
|
|
10332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
10333
10333
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
10334
10334
|
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");
|
|
10335
10335
|
var fail = /* @__PURE__ */ __name((message2) => {
|
|
@@ -10352,7 +10352,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
10352
10352
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
10353
10353
|
}, "sourceOf");
|
|
10354
10354
|
|
|
10355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
10356
10356
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
10357
10357
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
10358
10358
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -10539,7 +10539,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
|
|
|
10539
10539
|
return { accounts: [...chosen.values()], skipped };
|
|
10540
10540
|
}, "fitting");
|
|
10541
10541
|
|
|
10542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
|
|
10543
10543
|
var IndexBuilderOn = class {
|
|
10544
10544
|
static {
|
|
10545
10545
|
__name(this, "IndexBuilderOn");
|
|
@@ -10734,7 +10734,7 @@ function alias(table, alias2) {
|
|
|
10734
10734
|
}
|
|
10735
10735
|
__name(alias, "alias");
|
|
10736
10736
|
|
|
10737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
|
|
10738
10738
|
var ENTITY_TABLES = {
|
|
10739
10739
|
account: "accounts",
|
|
10740
10740
|
attachment: "attachments",
|
|
@@ -10777,7 +10777,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
|
|
|
10777
10777
|
return { table, pointer, type, count, known: known2 };
|
|
10778
10778
|
}).filter(({ count }) => count > 0)), "orphanPointers");
|
|
10779
10779
|
|
|
10780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
|
|
10781
10781
|
var canonicalTags = sqliteTable("canonical_tags", {
|
|
10782
10782
|
id: integer("id").primaryKey(),
|
|
10783
10783
|
name: text("name").notNull().unique(),
|
|
@@ -10786,7 +10786,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
|
|
|
10786
10786
|
updatedAt: integer("updated_at").notNull()
|
|
10787
10787
|
});
|
|
10788
10788
|
|
|
10789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
|
|
10790
10790
|
var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
10791
10791
|
sourceKey: text("source_key").notNull(),
|
|
10792
10792
|
collection: text("collection").notNull(),
|
|
@@ -10796,13 +10796,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
|
|
|
10796
10796
|
createdAt: integer("created_at").notNull()
|
|
10797
10797
|
}, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
|
|
10798
10798
|
|
|
10799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
|
|
10800
10800
|
var documentIndexPending = sqliteTable("document_index_pending", {
|
|
10801
10801
|
id: integer("id").notNull(),
|
|
10802
10802
|
indexableType: text("indexable_type").notNull()
|
|
10803
10803
|
}, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
|
|
10804
10804
|
|
|
10805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
|
|
10806
10806
|
var tagRedirects = sqliteTable("tag_redirects", {
|
|
10807
10807
|
sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
|
|
10808
10808
|
survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
|
|
@@ -10828,7 +10828,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
|
|
|
10828
10828
|
index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
|
|
10829
10829
|
]);
|
|
10830
10830
|
|
|
10831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
|
|
10832
10832
|
var accounts = sqliteTable("accounts", {
|
|
10833
10833
|
id: integer("id").primaryKey(),
|
|
10834
10834
|
provider: text("provider").notNull(),
|
|
@@ -12495,7 +12495,7 @@ var storeSettings = sqliteTable("store_settings", {
|
|
|
12495
12495
|
at: integer("at").notNull()
|
|
12496
12496
|
});
|
|
12497
12497
|
|
|
12498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
|
|
12499
12499
|
var ARMS = [
|
|
12500
12500
|
[
|
|
12501
12501
|
"message",
|
|
@@ -12622,7 +12622,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
|
|
|
12622
12622
|
return recomputed;
|
|
12623
12623
|
}, "drainInvolvementQueue");
|
|
12624
12624
|
|
|
12625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
12626
12626
|
import { domainToUnicode } from "node:url";
|
|
12627
12627
|
|
|
12628
12628
|
// node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
|
|
@@ -22644,7 +22644,7 @@ var oa = /* @__PURE__ */ __name((e) => {
|
|
|
22644
22644
|
}, "oa");
|
|
22645
22645
|
var na = { parse: O, get: aa, isValid: oa };
|
|
22646
22646
|
|
|
22647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
|
|
22648
22648
|
var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
|
|
22649
22649
|
var ID = /^[\w-]{10,}$/;
|
|
22650
22650
|
var trimUrl = /* @__PURE__ */ __name((url) => {
|
|
@@ -22685,7 +22685,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
|
|
|
22685
22685
|
return { url, documentId: googleDocumentId(url) };
|
|
22686
22686
|
}), "googleDocumentLinks");
|
|
22687
22687
|
|
|
22688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
22689
22689
|
var PHONE_PLANS = [
|
|
22690
22690
|
{
|
|
22691
22691
|
country: "us",
|
|
@@ -23065,7 +23065,7 @@ var PHONE_PLANS = [
|
|
|
23065
23065
|
}
|
|
23066
23066
|
];
|
|
23067
23067
|
|
|
23068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
23069
23069
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
23070
23070
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
23071
23071
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -23106,7 +23106,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
|
|
|
23106
23106
|
return void 0;
|
|
23107
23107
|
}, "nationalPhone");
|
|
23108
23108
|
|
|
23109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/places.js
|
|
23110
23110
|
var BEFORE = [
|
|
23111
23111
|
[/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
|
|
23112
23112
|
[/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
|
|
@@ -23366,7 +23366,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
|
|
|
23366
23366
|
return found2.sort((a, b) => a.start - b.start);
|
|
23367
23367
|
}, "findPlaces");
|
|
23368
23368
|
|
|
23369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/mentions.js
|
|
23370
23370
|
var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
|
|
23371
23371
|
var MENTION_VERSIONS = {
|
|
23372
23372
|
phone: 1,
|
|
@@ -23556,7 +23556,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
|
|
|
23556
23556
|
};
|
|
23557
23557
|
}, "typedPhone");
|
|
23558
23558
|
|
|
23559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/first-names.js
|
|
23560
23560
|
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";
|
|
23561
23561
|
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";
|
|
23562
23562
|
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";
|
|
@@ -23564,7 +23564,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
|
|
|
23564
23564
|
var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
|
|
23565
23565
|
var NAME_WORDS = WORDS.split(" ");
|
|
23566
23566
|
|
|
23567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/person-names.js
|
|
23568
23568
|
var LATIN_TO_CYRILLIC = {
|
|
23569
23569
|
shch: "\u0449",
|
|
23570
23570
|
sch: "\u0449",
|
|
@@ -23772,7 +23772,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
|
|
|
23772
23772
|
return found2;
|
|
23773
23773
|
}, "findUnknownNames");
|
|
23774
23774
|
|
|
23775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/attachments.js
|
|
23776
23776
|
var NOT_FILES = /* @__PURE__ */ new Set([
|
|
23777
23777
|
"webpage",
|
|
23778
23778
|
"share",
|
|
@@ -23812,7 +23812,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
|
|
|
23812
23812
|
});
|
|
23813
23813
|
}, "matchDownloads");
|
|
23814
23814
|
|
|
23815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
23816
23816
|
var QUERY_VERSION = 1;
|
|
23817
23817
|
var QUERY_LIMITS2 = {
|
|
23818
23818
|
...QUERY_LIMITS,
|
|
@@ -23848,7 +23848,7 @@ function exhausted(budget) {
|
|
|
23848
23848
|
}
|
|
23849
23849
|
__name(exhausted, "exhausted");
|
|
23850
23850
|
|
|
23851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
23852
23852
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
23853
23853
|
var literal2 = /* @__PURE__ */ __name((c) => ({
|
|
23854
23854
|
kind: "char",
|
|
@@ -24248,7 +24248,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
24248
24248
|
return out;
|
|
24249
24249
|
}, "foldRegex");
|
|
24250
24250
|
|
|
24251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
|
|
24252
24252
|
var PRESET_VERSION = 1;
|
|
24253
24253
|
var PRESETS = {
|
|
24254
24254
|
password: {
|
|
@@ -24302,7 +24302,7 @@ var PRESETS = {
|
|
|
24302
24302
|
}
|
|
24303
24303
|
};
|
|
24304
24304
|
|
|
24305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
24306
24306
|
var FIELD_VERSION = 2;
|
|
24307
24307
|
var UNITS = {
|
|
24308
24308
|
"": 1,
|
|
@@ -24763,12 +24763,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
|
|
|
24763
24763
|
return validateFields(parsed3.output);
|
|
24764
24764
|
}, "validateAst");
|
|
24765
24765
|
|
|
24766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
24767
24767
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
24768
24768
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
24769
24769
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
24770
24770
|
|
|
24771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
|
|
24772
24772
|
var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
|
|
24773
24773
|
var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
|
|
24774
24774
|
var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
@@ -24792,7 +24792,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
|
|
|
24792
24792
|
};
|
|
24793
24793
|
}, "linkMatch");
|
|
24794
24794
|
|
|
24795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
|
|
24796
24796
|
var SETTING = "phoneCountries";
|
|
24797
24797
|
var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
|
|
24798
24798
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
|
|
@@ -24823,7 +24823,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
|
|
|
24823
24823
|
return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
|
|
24824
24824
|
}, "valueMatch");
|
|
24825
24825
|
|
|
24826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
|
|
24827
24827
|
var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
|
|
24828
24828
|
if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
|
|
24829
24829
|
throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
|
|
@@ -24851,7 +24851,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
|
|
|
24851
24851
|
return 2 * intersection2 / (aa2.size + bb.size);
|
|
24852
24852
|
}, "vocabularySimilarity");
|
|
24853
24853
|
|
|
24854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
|
|
24855
24855
|
import { createHash } from "node:crypto";
|
|
24856
24856
|
var folded2 = /* @__PURE__ */ __name((name) => {
|
|
24857
24857
|
try {
|
|
@@ -24917,7 +24917,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
|
|
|
24917
24917
|
});
|
|
24918
24918
|
}, "guardTagCreation");
|
|
24919
24919
|
|
|
24920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
|
|
24921
24921
|
var invalid2 = /* @__PURE__ */ __name((message2) => {
|
|
24922
24922
|
throw new CliError("validation_error", message2);
|
|
24923
24923
|
}, "invalid");
|
|
@@ -24994,7 +24994,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
|
|
|
24994
24994
|
};
|
|
24995
24995
|
}, "createTagRedirectIndex");
|
|
24996
24996
|
|
|
24997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
|
|
24998
24998
|
var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
|
|
24999
24999
|
const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
|
|
25000
25000
|
if (!row2)
|
|
@@ -25022,7 +25022,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
|
|
|
25022
25022
|
return snapshot2;
|
|
25023
25023
|
}, "tagRedirectSnapshot");
|
|
25024
25024
|
|
|
25025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
|
|
25026
25026
|
import { createHash as createHash2 } from "node:crypto";
|
|
25027
25027
|
var TASK_KEY_PREFIXES = {
|
|
25028
25028
|
question: "Q",
|
|
@@ -25050,7 +25050,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25050
25050
|
return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
|
|
25051
25051
|
}, "taskAccountOf");
|
|
25052
25052
|
|
|
25053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
|
|
25054
25054
|
var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
|
|
25055
25055
|
var REFERABLE = {
|
|
25056
25056
|
note: { tombstone: true },
|
|
@@ -25215,7 +25215,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
|
|
|
25215
25215
|
return row2 ? String(row2.id ?? row2.key) : void 0;
|
|
25216
25216
|
}, "taskIdOf");
|
|
25217
25217
|
|
|
25218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
|
|
25219
25219
|
var toMs = /* @__PURE__ */ __name((iso13) => {
|
|
25220
25220
|
if (iso13 === null || iso13 === void 0)
|
|
25221
25221
|
return null;
|
|
@@ -25229,7 +25229,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
|
|
|
25229
25229
|
var DELIVERY = { delivered: 1, read: 2 };
|
|
25230
25230
|
var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
|
|
25231
25231
|
|
|
25232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
|
|
25233
25233
|
var TAG_KINDS = ["tag", "topic"];
|
|
25234
25234
|
var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
|
|
25235
25235
|
var TAG_TYPE = {
|
|
@@ -25432,7 +25432,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
|
|
|
25432
25432
|
return result;
|
|
25433
25433
|
}, "tagsOf");
|
|
25434
25434
|
|
|
25435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
|
|
25436
25436
|
var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
|
|
25437
25437
|
var SPEECH = speech("att");
|
|
25438
25438
|
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");
|
|
@@ -25796,7 +25796,7 @@ var FIELD_COMPILERS = {
|
|
|
25796
25796
|
subject
|
|
25797
25797
|
};
|
|
25798
25798
|
|
|
25799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
|
|
25800
25800
|
var placeOf = /* @__PURE__ */ __name((database) => {
|
|
25801
25801
|
const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
|
|
25802
25802
|
const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
|
|
@@ -25812,7 +25812,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
|
|
|
25812
25812
|
};
|
|
25813
25813
|
}, "placeOf");
|
|
25814
25814
|
|
|
25815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
|
|
25816
25816
|
var DRAIN_ON_WRITE = 500;
|
|
25817
25817
|
var METHOD = "rules";
|
|
25818
25818
|
var telegramLink = /* @__PURE__ */ __name((database) => {
|
|
@@ -25975,7 +25975,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
|
|
|
25975
25975
|
return queued.length;
|
|
25976
25976
|
}, "drainMentions");
|
|
25977
25977
|
|
|
25978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
|
|
25979
25979
|
var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
25980
25980
|
const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
|
|
25981
25981
|
if (!exists2)
|
|
@@ -25983,7 +25983,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
|
|
|
25983
25983
|
return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
|
|
25984
25984
|
}, "indexRow");
|
|
25985
25985
|
|
|
25986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
|
|
25987
25987
|
var INDEX = "message_stems";
|
|
25988
25988
|
var SETTING2 = "searchStemmers";
|
|
25989
25989
|
var DRAIN_ON_WRITE2 = 500;
|
|
@@ -26105,7 +26105,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
|
|
|
26105
26105
|
};
|
|
26106
26106
|
}, "stemmerCache");
|
|
26107
26107
|
|
|
26108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
|
|
26109
26109
|
var SQLITE_BUSY = 5;
|
|
26110
26110
|
var pause = new Int32Array(new SharedArrayBuffer(4));
|
|
26111
26111
|
var isBusy = /* @__PURE__ */ __name((error) => {
|
|
@@ -26200,7 +26200,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
|
|
|
26200
26200
|
}
|
|
26201
26201
|
}, "read");
|
|
26202
26202
|
|
|
26203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
|
|
26204
26204
|
var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
|
|
26205
26205
|
coalesce(CASE k.chunkable_type
|
|
26206
26206
|
WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
|
|
@@ -26342,7 +26342,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
|
|
|
26342
26342
|
}, "dropUnusedVectors");
|
|
26343
26343
|
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");
|
|
26344
26344
|
|
|
26345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
|
|
26346
26346
|
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({
|
|
26347
26347
|
target: [accounts.provider, accounts.externalId],
|
|
26348
26348
|
set: {
|
|
@@ -26451,7 +26451,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
|
|
|
26451
26451
|
AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
|
|
26452
26452
|
}, "dropOrphanPeople");
|
|
26453
26453
|
|
|
26454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
|
|
26455
26455
|
var FOLDED = [
|
|
26456
26456
|
{ table: "tasks", column: "title" },
|
|
26457
26457
|
{ table: "tasks", column: "close_reason" },
|
|
@@ -26488,7 +26488,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
26488
26488
|
return filled2;
|
|
26489
26489
|
}, "fillFolded");
|
|
26490
26490
|
|
|
26491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
|
|
26492
26492
|
var HISTORY_KEY = "$history";
|
|
26493
26493
|
var objectOf = /* @__PURE__ */ __name((text6) => {
|
|
26494
26494
|
if (typeof text6 !== "string")
|
|
@@ -26564,7 +26564,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
|
|
|
26564
26564
|
return rest;
|
|
26565
26565
|
}, "withoutHistory");
|
|
26566
26566
|
|
|
26567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
|
|
26568
26568
|
import { createHash as createHash3 } from "node:crypto";
|
|
26569
26569
|
var CHUNK_CHARS = 1200;
|
|
26570
26570
|
var CHUNK_OVERLAP = 150;
|
|
@@ -26669,7 +26669,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
|
|
|
26669
26669
|
return chunks2;
|
|
26670
26670
|
}, "cutChunks");
|
|
26671
26671
|
|
|
26672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/task-signature.js
|
|
26673
26673
|
var DAY = 864e5;
|
|
26674
26674
|
var CURRENCY = [
|
|
26675
26675
|
[/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
|
|
@@ -26795,7 +26795,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
|
|
|
26795
26795
|
return best?.day ?? null;
|
|
26796
26796
|
}, "dueDayOf");
|
|
26797
26797
|
|
|
26798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
|
|
26799
26799
|
var DAY2 = 864e5;
|
|
26800
26800
|
var STOP_WORDS = new Set([
|
|
26801
26801
|
// Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
|
|
@@ -26950,7 +26950,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
|
|
|
26950
26950
|
...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
|
|
26951
26951
|
})).sort((a, b) => b.score - a.score), "rankCandidates");
|
|
26952
26952
|
|
|
26953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
|
|
26954
26954
|
var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
|
|
26955
26955
|
r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
|
|
26956
26956
|
JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
|
|
@@ -27221,7 +27221,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
|
|
|
27221
27221
|
};
|
|
27222
27222
|
}, "readiness");
|
|
27223
27223
|
|
|
27224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
|
|
27225
27225
|
var DOCUMENT_PICTURE = "document_picture";
|
|
27226
27226
|
var SCAN_PAGE2 = 5e3;
|
|
27227
27227
|
var idOf = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -27284,7 +27284,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
27284
27284
|
}, "nearestPictures")
|
|
27285
27285
|
}), "documentPicturesOver");
|
|
27286
27286
|
|
|
27287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
|
|
27288
27288
|
var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
|
|
27289
27289
|
const literal4 = escaped2 ?? plain2 ?? "";
|
|
27290
27290
|
return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
|
|
@@ -27349,7 +27349,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
|
|
|
27349
27349
|
var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
|
|
27350
27350
|
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");
|
|
27351
27351
|
|
|
27352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
|
|
27353
27353
|
var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
|
|
27354
27354
|
var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
|
|
27355
27355
|
var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
|
|
@@ -27439,7 +27439,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
|
|
|
27439
27439
|
});
|
|
27440
27440
|
}, "linkMeeting");
|
|
27441
27441
|
|
|
27442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
|
|
27443
27443
|
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), ''))";
|
|
27444
27444
|
var UNSEARCHED_EVENT_TYPES = [
|
|
27445
27445
|
"working-location",
|
|
@@ -27669,7 +27669,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
|
|
|
27669
27669
|
return true;
|
|
27670
27670
|
}, "resetNoteIndex");
|
|
27671
27671
|
|
|
27672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
|
|
27673
27673
|
var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
|
|
27674
27674
|
var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
27675
27675
|
for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
|
|
@@ -27688,7 +27688,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
|
|
|
27688
27688
|
}
|
|
27689
27689
|
}, "resolvePersonLinks");
|
|
27690
27690
|
|
|
27691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
|
|
27692
27692
|
var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
|
|
27693
27693
|
var prepare = /* @__PURE__ */ __name((orm) => ({
|
|
27694
27694
|
find: orm.select({
|
|
@@ -27913,7 +27913,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
|
|
|
27913
27913
|
}, "meetingIdentityPk");
|
|
27914
27914
|
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");
|
|
27915
27915
|
|
|
27916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
|
|
27917
27917
|
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");
|
|
27918
27918
|
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");
|
|
27919
27919
|
var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
|
|
@@ -28193,7 +28193,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
|
|
|
28193
28193
|
}
|
|
28194
28194
|
}, "replaceAutoTags");
|
|
28195
28195
|
|
|
28196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
28197
28197
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
28198
28198
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
28199
28199
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
|
|
@@ -28212,7 +28212,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
28212
28212
|
return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
|
|
28213
28213
|
}, "counterFreshness");
|
|
28214
28214
|
|
|
28215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/context/evidence.js
|
|
28216
28216
|
import { createHash as createHash4 } from "node:crypto";
|
|
28217
28217
|
var CONTEXT_MAX_READ_BYTES = 262144;
|
|
28218
28218
|
var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
|
|
@@ -28310,7 +28310,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
|
|
|
28310
28310
|
return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
|
|
28311
28311
|
}, "contextEvidenceRequest");
|
|
28312
28312
|
|
|
28313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
|
|
28314
28314
|
var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
|
|
28315
28315
|
var ACTIVITY = `
|
|
28316
28316
|
SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
|
|
@@ -28427,7 +28427,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
|
|
|
28427
28427
|
threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
|
|
28428
28428
|
}), "mailActivity");
|
|
28429
28429
|
|
|
28430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
|
|
28431
28431
|
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");
|
|
28432
28432
|
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;
|
|
28433
28433
|
var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
|
|
@@ -28568,7 +28568,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
|
|
|
28568
28568
|
return text6 || body2.trim();
|
|
28569
28569
|
}, "mailOwnText");
|
|
28570
28570
|
|
|
28571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
|
|
28572
28572
|
var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
|
|
28573
28573
|
var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
|
|
28574
28574
|
k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
|
|
@@ -28678,7 +28678,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
|
|
|
28678
28678
|
return emails3 + threads;
|
|
28679
28679
|
}, "drainEmailIndex");
|
|
28680
28680
|
|
|
28681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
|
|
28682
28682
|
var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
|
|
28683
28683
|
SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
|
|
28684
28684
|
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,
|
|
@@ -28776,7 +28776,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
|
|
|
28776
28776
|
var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
|
|
28777
28777
|
SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
|
|
28778
28778
|
|
|
28779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
|
|
28780
28780
|
var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
|
|
28781
28781
|
emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
|
|
28782
28782
|
last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
|
|
@@ -28826,7 +28826,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
|
|
|
28826
28826
|
return threads.length;
|
|
28827
28827
|
}, "markEmailsRestored");
|
|
28828
28828
|
|
|
28829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
|
|
28830
28830
|
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");
|
|
28831
28831
|
var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
|
|
28832
28832
|
var ruleOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -28893,7 +28893,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
|
|
|
28893
28893
|
}
|
|
28894
28894
|
}), "mailRulesOver");
|
|
28895
28895
|
|
|
28896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
|
|
28897
28897
|
var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
|
|
28898
28898
|
database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
|
|
28899
28899
|
VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
|
|
@@ -28901,7 +28901,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
|
|
|
28901
28901
|
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);
|
|
28902
28902
|
}, "reviewLink");
|
|
28903
28903
|
|
|
28904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
|
|
28905
28905
|
function checkMeetingCancelled(signal) {
|
|
28906
28906
|
if (!signal?.aborted)
|
|
28907
28907
|
return;
|
|
@@ -28912,7 +28912,7 @@ function checkMeetingCancelled(signal) {
|
|
|
28912
28912
|
}
|
|
28913
28913
|
__name(checkMeetingCancelled, "checkMeetingCancelled");
|
|
28914
28914
|
|
|
28915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
|
|
28916
28916
|
var meetingOf = /* @__PURE__ */ __name((row2) => ({
|
|
28917
28917
|
id: Number(row2.id),
|
|
28918
28918
|
accountId: Number(row2.account_id),
|
|
@@ -28962,7 +28962,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
|
|
|
28962
28962
|
createdAt: Number(row2.created_at)
|
|
28963
28963
|
}), "transcriptRowOf");
|
|
28964
28964
|
|
|
28965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
|
|
28966
28966
|
var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
|
|
28967
28967
|
var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
|
|
28968
28968
|
var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
|
|
@@ -29129,7 +29129,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29129
29129
|
}
|
|
29130
29130
|
}), "meetingReadsOver");
|
|
29131
29131
|
|
|
29132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
|
|
29133
29133
|
var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
29134
29134
|
const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
|
|
29135
29135
|
const params = [input.accountId];
|
|
@@ -29172,7 +29172,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
|
|
|
29172
29172
|
return { clauses, params };
|
|
29173
29173
|
}, "meetingSelectionSql");
|
|
29174
29174
|
|
|
29175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
|
|
29176
29176
|
var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
29177
29177
|
async meetingChatLines(input) {
|
|
29178
29178
|
checkMeetingCancelled(input.signal);
|
|
@@ -29200,7 +29200,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
29200
29200
|
}
|
|
29201
29201
|
}), "meetingChatLinesOver");
|
|
29202
29202
|
|
|
29203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
|
|
29204
29204
|
var MESSAGE_FIELDS = {
|
|
29205
29205
|
pk: messages.id,
|
|
29206
29206
|
nativeId: messages.externalId,
|
|
@@ -29371,7 +29371,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
|
|
|
29371
29371
|
storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
|
|
29372
29372
|
}), "chatActivity");
|
|
29373
29373
|
|
|
29374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
|
|
29375
29375
|
var HIT_FIELDS = {
|
|
29376
29376
|
...MESSAGE_FIELDS,
|
|
29377
29377
|
chatTitle: sql`${chats.title}`.as("chat_title"),
|
|
@@ -29470,7 +29470,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
|
|
|
29470
29470
|
};
|
|
29471
29471
|
}, "directReplies");
|
|
29472
29472
|
|
|
29473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
|
|
29474
29474
|
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");
|
|
29475
29475
|
var required = /* @__PURE__ */ __name((context, ref3) => {
|
|
29476
29476
|
const found2 = identityRow(context, ref3);
|
|
@@ -29601,7 +29601,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
|
|
|
29601
29601
|
}, "mentioning");
|
|
29602
29602
|
var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
29603
29603
|
|
|
29604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
|
|
29605
29605
|
var missing2 = /* @__PURE__ */ __name(() => {
|
|
29606
29606
|
throw new CliError("not_found", "Meeting, participant or selected target not found");
|
|
29607
29607
|
}, "missing");
|
|
@@ -29723,7 +29723,7 @@ function meetingContextLinksOver(context) {
|
|
|
29723
29723
|
}
|
|
29724
29724
|
__name(meetingContextLinksOver, "meetingContextLinksOver");
|
|
29725
29725
|
|
|
29726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
|
|
29727
29727
|
var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
|
|
29728
29728
|
var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
|
|
29729
29729
|
var summaryOf = /* @__PURE__ */ __name((row2) => ({
|
|
@@ -29752,7 +29752,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
29752
29752
|
return row2 ? summaryText(summaryOf(row2)) : null;
|
|
29753
29753
|
}, "indexedText");
|
|
29754
29754
|
|
|
29755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
|
|
29756
29756
|
var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
|
|
29757
29757
|
var meetingCurrentIndexRows = `
|
|
29758
29758
|
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
|
|
@@ -29783,7 +29783,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
|
|
|
29783
29783
|
}, "invalidateMeetingStems");
|
|
29784
29784
|
var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
|
|
29785
29785
|
|
|
29786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
|
|
29787
29787
|
function meetingHitIndexOver({ database, now: now2 }) {
|
|
29788
29788
|
return {
|
|
29789
29789
|
async indexSearch(original) {
|
|
@@ -29851,10 +29851,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
|
|
|
29851
29851
|
}
|
|
29852
29852
|
__name(meetingHitIndexOver, "meetingHitIndexOver");
|
|
29853
29853
|
|
|
29854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
29855
29855
|
import { createHash as createHash5 } from "node:crypto";
|
|
29856
29856
|
|
|
29857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
29858
29858
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
29859
29859
|
const padded = ` ${term} `;
|
|
29860
29860
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -29863,7 +29863,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
29863
29863
|
return [...pieces];
|
|
29864
29864
|
}, "trigrams");
|
|
29865
29865
|
|
|
29866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/correct.js
|
|
29867
29867
|
var SHORTEST_CORRECTION = 3;
|
|
29868
29868
|
var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
|
|
29869
29869
|
var editDistance = /* @__PURE__ */ __name((a, b, max) => {
|
|
@@ -29910,7 +29910,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
29910
29910
|
return corrections;
|
|
29911
29911
|
}, "correctWords");
|
|
29912
29912
|
|
|
29913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/garbled.js
|
|
29914
29914
|
var SHORTEST_GARBLED = 4;
|
|
29915
29915
|
var MOST_WIDENED = 64;
|
|
29916
29916
|
var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
|
|
@@ -30002,7 +30002,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
|
|
|
30002
30002
|
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));
|
|
30003
30003
|
}, "widenWords");
|
|
30004
30004
|
|
|
30005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
|
|
30006
30006
|
import { readFileSync } from "node:fs";
|
|
30007
30007
|
var loaded;
|
|
30008
30008
|
var dictionary = /* @__PURE__ */ __name(() => {
|
|
@@ -30061,7 +30061,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
|
|
|
30061
30061
|
return false;
|
|
30062
30062
|
}, "knownRussianWord");
|
|
30063
30063
|
|
|
30064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
|
|
30065
30065
|
var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
|
|
30066
30066
|
var MOST_WORDS = 128;
|
|
30067
30067
|
var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
|
|
@@ -30288,7 +30288,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
|
|
|
30288
30288
|
return check3(tree);
|
|
30289
30289
|
}, "matchMeetingText");
|
|
30290
30290
|
|
|
30291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
|
|
30292
30292
|
var fail3 = /* @__PURE__ */ __name((message2) => {
|
|
30293
30293
|
throw new CliError("validation_error", message2);
|
|
30294
30294
|
}, "fail");
|
|
@@ -30470,7 +30470,7 @@ function meetingHitSearchOver({ database }) {
|
|
|
30470
30470
|
}
|
|
30471
30471
|
__name(meetingHitSearchOver, "meetingHitSearchOver");
|
|
30472
30472
|
|
|
30473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
|
|
30474
30474
|
var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30475
30475
|
async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
|
|
30476
30476
|
positiveReadInteger(accountId, "accountId");
|
|
@@ -30502,7 +30502,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30502
30502
|
}
|
|
30503
30503
|
}), "meetingLanguagesOver");
|
|
30504
30504
|
|
|
30505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
|
|
30506
30506
|
import { createHash as createHash6 } from "node:crypto";
|
|
30507
30507
|
var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
|
|
30508
30508
|
if (value === void 0)
|
|
@@ -30592,7 +30592,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
|
|
|
30592
30592
|
}
|
|
30593
30593
|
}), "meetingParticipantSearchOver");
|
|
30594
30594
|
|
|
30595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
|
|
30596
30596
|
var preparationQueries = {
|
|
30597
30597
|
participants: {
|
|
30598
30598
|
fields: "p.id, p.identity_id, p.display_name, l.person_id",
|
|
@@ -30642,7 +30642,7 @@ var preparationQueries = {
|
|
|
30642
30642
|
}
|
|
30643
30643
|
};
|
|
30644
30644
|
|
|
30645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
|
|
30646
30646
|
var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30647
30647
|
async preparationContext(original) {
|
|
30648
30648
|
const input = validateMeetingPreparationContext(original);
|
|
@@ -30683,7 +30683,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30683
30683
|
}
|
|
30684
30684
|
}), "meetingPreparationContextOver");
|
|
30685
30685
|
|
|
30686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
|
|
30687
30687
|
var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
30688
30688
|
SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
|
|
30689
30689
|
WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
|
|
@@ -30697,7 +30697,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
|
|
|
30697
30697
|
JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
|
|
30698
30698
|
)`, "preparationSubjects");
|
|
30699
30699
|
|
|
30700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
|
|
30701
30701
|
var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30702
30702
|
async preparationKnowledge(original) {
|
|
30703
30703
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -30742,7 +30742,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
|
|
|
30742
30742
|
}
|
|
30743
30743
|
}), "meetingPreparationKnowledgeOver");
|
|
30744
30744
|
|
|
30745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
|
|
30746
30746
|
var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30747
30747
|
async preparationNotes(original) {
|
|
30748
30748
|
const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
|
|
@@ -30795,7 +30795,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30795
30795
|
}
|
|
30796
30796
|
}), "meetingPreparationNotesOver");
|
|
30797
30797
|
|
|
30798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
|
|
30799
30799
|
var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
30800
30800
|
async relatedHistory(original) {
|
|
30801
30801
|
const input = validateMeetingRelatedHistory(original);
|
|
@@ -30866,7 +30866,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30866
30866
|
}
|
|
30867
30867
|
}), "meetingRelatedHistoryOver");
|
|
30868
30868
|
|
|
30869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
|
|
30870
30870
|
var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
|
|
30871
30871
|
var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
|
|
30872
30872
|
var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
@@ -30947,7 +30947,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
30947
30947
|
}
|
|
30948
30948
|
}), "meetingReviewOver");
|
|
30949
30949
|
|
|
30950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
|
|
30951
30951
|
var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
|
|
30952
30952
|
var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
|
|
30953
30953
|
if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
|
|
@@ -31001,7 +31001,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31001
31001
|
}
|
|
31002
31002
|
}), "meetingSeriesHistoryOver");
|
|
31003
31003
|
|
|
31004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
|
|
31005
31005
|
var MOST_ROWS = 5e5;
|
|
31006
31006
|
var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
|
|
31007
31007
|
EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
|
|
@@ -31070,7 +31070,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
31070
31070
|
}
|
|
31071
31071
|
}), "meetingStatsOver");
|
|
31072
31072
|
|
|
31073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
|
|
31074
31074
|
var CURSOR_KEY = "meetings";
|
|
31075
31075
|
var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
|
|
31076
31076
|
id: Number(row2.id),
|
|
@@ -31639,7 +31639,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
31639
31639
|
};
|
|
31640
31640
|
}, "meetingStoreOver");
|
|
31641
31641
|
|
|
31642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
|
|
31643
31643
|
var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
|
|
31644
31644
|
const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
|
|
31645
31645
|
return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
|
|
@@ -31665,7 +31665,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
|
|
|
31665
31665
|
orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
|
|
31666
31666
|
}, "release");
|
|
31667
31667
|
|
|
31668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
|
|
31669
31669
|
var THREAD_COLUMNS = {
|
|
31670
31670
|
subject: {
|
|
31671
31671
|
where: /* @__PURE__ */ __name(({ value }) => ({
|
|
@@ -31682,7 +31682,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
|
|
|
31682
31682
|
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);
|
|
31683
31683
|
}, "threadRows");
|
|
31684
31684
|
|
|
31685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
|
|
31686
31686
|
var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
|
|
31687
31687
|
id: `email:${place.emailId}`,
|
|
31688
31688
|
chatId: place.threadExternalId,
|
|
@@ -32238,7 +32238,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
|
|
|
32238
32238
|
}
|
|
32239
32239
|
}), "mailStoreOver");
|
|
32240
32240
|
|
|
32241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/search/dictionary.js
|
|
32242
32242
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
32243
32243
|
var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
|
|
32244
32244
|
var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
|
|
@@ -32328,7 +32328,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
|
|
|
32328
32328
|
}, "knownWord");
|
|
32329
32329
|
var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
|
|
32330
32330
|
|
|
32331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
|
|
32332
32332
|
var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
|
|
32333
32333
|
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");
|
|
32334
32334
|
var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
|
|
@@ -32414,7 +32414,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
|
|
|
32414
32414
|
return found2;
|
|
32415
32415
|
}, "spokenTranscripts");
|
|
32416
32416
|
|
|
32417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
|
|
32418
32418
|
var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
|
|
32419
32419
|
const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
|
|
32420
32420
|
if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
|
|
@@ -32461,7 +32461,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
|
|
|
32461
32461
|
});
|
|
32462
32462
|
}, "placeHits");
|
|
32463
32463
|
|
|
32464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
|
|
32465
32465
|
var GROUPS = {
|
|
32466
32466
|
chat: {
|
|
32467
32467
|
key: "m.chat_id",
|
|
@@ -32483,7 +32483,7 @@ var GROUPS = {
|
|
|
32483
32483
|
}
|
|
32484
32484
|
};
|
|
32485
32485
|
|
|
32486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
|
|
32487
32487
|
var MESSAGES2 = {
|
|
32488
32488
|
rows: "messages",
|
|
32489
32489
|
threads: "chats",
|
|
@@ -32966,7 +32966,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
|
|
|
32966
32966
|
};
|
|
32967
32967
|
}, "runCompiled");
|
|
32968
32968
|
|
|
32969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
|
|
32970
32970
|
function invalidMetadata() {
|
|
32971
32971
|
throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
|
|
32972
32972
|
}
|
|
@@ -33068,7 +33068,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
|
|
|
33068
33068
|
};
|
|
33069
33069
|
}), "counterTargets");
|
|
33070
33070
|
|
|
33071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
|
|
33072
33072
|
var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
|
|
33073
33073
|
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,
|
|
33074
33074
|
att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
|
|
@@ -33187,7 +33187,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
|
|
|
33187
33187
|
}));
|
|
33188
33188
|
}, "attachmentViews");
|
|
33189
33189
|
|
|
33190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
|
|
33191
33191
|
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");
|
|
33192
33192
|
var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
|
|
33193
33193
|
const { orm, database, now: now2 } = context;
|
|
@@ -33225,7 +33225,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
|
|
|
33225
33225
|
keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
|
|
33226
33226
|
}, "intoVoiceAttachment");
|
|
33227
33227
|
|
|
33228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
|
|
33229
33229
|
var FIELDS = [
|
|
33230
33230
|
"threadExternalId",
|
|
33231
33231
|
"senderIdentityId",
|
|
@@ -33542,7 +33542,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
|
|
|
33542
33542
|
reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
|
|
33543
33543
|
}, "writeDerivedReactions");
|
|
33544
33544
|
|
|
33545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/keys.js
|
|
33546
33546
|
var keysOver = /* @__PURE__ */ __name((context) => {
|
|
33547
33547
|
const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
|
|
33548
33548
|
const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
|
|
@@ -33563,7 +33563,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
|
|
|
33563
33563
|
};
|
|
33564
33564
|
}, "keysOver");
|
|
33565
33565
|
|
|
33566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
|
|
33567
33567
|
var accountGroupsOf = /* @__PURE__ */ __name((database) => {
|
|
33568
33568
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
|
|
33569
33569
|
if (!row2)
|
|
@@ -33598,7 +33598,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
|
|
|
33598
33598
|
database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
|
|
33599
33599
|
}, "saveProfile");
|
|
33600
33600
|
|
|
33601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
|
|
33602
33602
|
var BOT_KINDS = ["agent", "rule", "script", "integration"];
|
|
33603
33603
|
var ownerPerson = /* @__PURE__ */ __name((database) => {
|
|
33604
33604
|
const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
|
|
@@ -33655,7 +33655,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
|
|
|
33655
33655
|
return { sql: bot("pb.name = ?"), params: [by.bot] };
|
|
33656
33656
|
}, "proposedBySql");
|
|
33657
33657
|
|
|
33658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
|
|
33659
33659
|
var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
|
|
33660
33660
|
const owner = ownerPerson(context.database).id;
|
|
33661
33661
|
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);
|
|
@@ -33676,7 +33676,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
|
|
|
33676
33676
|
return personOf(context, ref3);
|
|
33677
33677
|
}, "linkToOwner");
|
|
33678
33678
|
|
|
33679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
|
|
33680
33680
|
var PROVIDERS_SETTING = "providers";
|
|
33681
33681
|
var storedProvidersOf = /* @__PURE__ */ __name((database) => {
|
|
33682
33682
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
|
|
@@ -33711,7 +33711,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
33711
33711
|
});
|
|
33712
33712
|
}, "registerProvider");
|
|
33713
33713
|
|
|
33714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
|
|
33715
33715
|
var DAY3 = 864e5;
|
|
33716
33716
|
var RECENTLY_CLOSED_MS = 14 * DAY3;
|
|
33717
33717
|
var TEXT_LIMIT = 20;
|
|
@@ -33910,7 +33910,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
|
|
|
33910
33910
|
};
|
|
33911
33911
|
}, "taskSimilarityOver");
|
|
33912
33912
|
|
|
33913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
|
|
33914
33914
|
var SETTING3 = "taskCategories";
|
|
33915
33915
|
var savedTaskCategories = /* @__PURE__ */ __name((database) => {
|
|
33916
33916
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
|
|
@@ -33929,7 +33929,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
|
|
|
33929
33929
|
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);
|
|
33930
33930
|
}, "saveTaskCategories");
|
|
33931
33931
|
|
|
33932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
|
|
33933
33933
|
var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
|
|
33934
33934
|
var ALLOWED = "taskAgentClose";
|
|
33935
33935
|
var MIN = "taskAgentCloseMin";
|
|
@@ -33985,10 +33985,10 @@ var SUGGESTION_COLUMNS = [
|
|
|
33985
33985
|
];
|
|
33986
33986
|
var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
|
|
33987
33987
|
|
|
33988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
|
|
33989
33989
|
var MAIL_FINDINGS_KIND = "mail_findings";
|
|
33990
33990
|
|
|
33991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/decisions.js
|
|
33992
33992
|
var TASK_CLOSE_KIND = "task_close";
|
|
33993
33993
|
var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
|
|
33994
33994
|
var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
|
|
@@ -34036,7 +34036,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
|
|
|
34036
34036
|
}, "assertMayDecide");
|
|
34037
34037
|
var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
|
|
34038
34038
|
|
|
34039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
34040
34040
|
var PROFILE_PLACEHOLDER = "<profile>";
|
|
34041
34041
|
var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
|
|
34042
34042
|
var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
|
|
@@ -34089,7 +34089,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
|
|
|
34089
34089
|
return `${WORDS2[summary.kind]} ${named3}${notes2 === "" ? "" : ` (${notes2})`}`;
|
|
34090
34090
|
}, "refLabel");
|
|
34091
34091
|
|
|
34092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
|
|
34093
34093
|
var EXCERPT_CHARS = 280;
|
|
34094
34094
|
var TITLE_CHARS = 120;
|
|
34095
34095
|
var MEMORY_TITLE_CHARS = 80;
|
|
@@ -34450,7 +34450,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
|
|
|
34450
34450
|
var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
|
|
34451
34451
|
var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
|
|
34452
34452
|
|
|
34453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
|
|
34454
34454
|
var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
|
|
34455
34455
|
ref: ref3,
|
|
34456
34456
|
kind: read2.kind,
|
|
@@ -34486,7 +34486,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
|
|
|
34486
34486
|
});
|
|
34487
34487
|
}, "evidenceSourcesOf");
|
|
34488
34488
|
|
|
34489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/attachments/limits.js
|
|
34490
34490
|
var MAX_FILE_BYTES = 50 * 1024 * 1024;
|
|
34491
34491
|
var MAX_TEXT_CHARS = 2e6;
|
|
34492
34492
|
var ATTACHMENT_LIMIT_ENV = [
|
|
@@ -34512,7 +34512,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
34512
34512
|
return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
|
|
34513
34513
|
}, "pdfPreviewLimits");
|
|
34514
34514
|
|
|
34515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/ulid.js
|
|
34516
34516
|
import { randomBytes } from "node:crypto";
|
|
34517
34517
|
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
34518
34518
|
var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
@@ -34525,7 +34525,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
|
|
|
34525
34525
|
return time3 + random;
|
|
34526
34526
|
}, "ulid");
|
|
34527
34527
|
|
|
34528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
|
|
34529
34529
|
var FOLDED_FIELDS = ["title", "site", "language", "author"];
|
|
34530
34530
|
var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
|
|
34531
34531
|
if (!meta && !sections?.length)
|
|
@@ -34546,7 +34546,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
|
|
|
34546
34546
|
return typeof language === "string" && language !== "" ? language : null;
|
|
34547
34547
|
}, "languageOf");
|
|
34548
34548
|
|
|
34549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
|
|
34550
34550
|
var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
|
|
34551
34551
|
var objectOf2 = /* @__PURE__ */ __name((value) => {
|
|
34552
34552
|
if (isObject(value))
|
|
@@ -34789,7 +34789,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
34789
34789
|
};
|
|
34790
34790
|
}, "filesStoreOver");
|
|
34791
34791
|
|
|
34792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
|
|
34793
34793
|
var IMPORTED_DOCUMENT_QUERY = defineQuery({
|
|
34794
34794
|
entity: "document",
|
|
34795
34795
|
backend: "sql",
|
|
@@ -34835,7 +34835,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
|
|
|
34835
34835
|
return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
|
|
34836
34836
|
}, "importedDocumentWhere");
|
|
34837
34837
|
|
|
34838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
|
|
34839
34839
|
var NOTE_FORMATS = ["obsidian", "markdown"];
|
|
34840
34840
|
var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
34841
34841
|
var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
|
|
@@ -35361,7 +35361,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35361
35361
|
};
|
|
35362
35362
|
}, "notesStoreOver");
|
|
35363
35363
|
|
|
35364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
|
|
35365
35365
|
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";
|
|
35366
35366
|
var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
35367
35367
|
var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -35583,7 +35583,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
35583
35583
|
};
|
|
35584
35584
|
}, "memoriesStoreOver");
|
|
35585
35585
|
|
|
35586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
|
|
35587
35587
|
var DEFAULT_FIRST_PASS_PER_CHAT = 0;
|
|
35588
35588
|
var KEY = "taskFirstPassPerChat";
|
|
35589
35589
|
var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
|
|
@@ -35603,7 +35603,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
|
|
|
35603
35603
|
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);
|
|
35604
35604
|
}, "saveFirstPassPerChat");
|
|
35605
35605
|
|
|
35606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/external-links.js
|
|
35607
35607
|
var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
|
|
35608
35608
|
var EXTERNAL_ID_CHARS = 200;
|
|
35609
35609
|
var SOURCE_URL_CHARS = 2e3;
|
|
@@ -35630,7 +35630,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
|
|
|
35630
35630
|
return text6;
|
|
35631
35631
|
}, "sourceUrlOf");
|
|
35632
35632
|
|
|
35633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
|
|
35634
35634
|
var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
|
|
35635
35635
|
var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
|
|
35636
35636
|
name,
|
|
@@ -35853,7 +35853,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
|
|
|
35853
35853
|
return root === void 0 ? void 0 : { ...query, root };
|
|
35854
35854
|
}, "withoutField");
|
|
35855
35855
|
|
|
35856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
|
|
35857
35857
|
var authorNamed = /* @__PURE__ */ __name((database, row2) => {
|
|
35858
35858
|
if (row2.author_type == null)
|
|
35859
35859
|
return null;
|
|
@@ -35881,7 +35881,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
|
|
|
35881
35881
|
return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
|
|
35882
35882
|
}, "addComment");
|
|
35883
35883
|
|
|
35884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
|
|
35885
35885
|
var TASK_RELATION_KINDS = [
|
|
35886
35886
|
"blocked-by",
|
|
35887
35887
|
"follow-up-of",
|
|
@@ -36011,7 +36011,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
|
|
|
36011
36011
|
};
|
|
36012
36012
|
}, "taskRelationsStoreOver");
|
|
36013
36013
|
|
|
36014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
|
|
36015
36015
|
var TASK_ROLES = ["assignee", "reviewer", "watcher"];
|
|
36016
36016
|
var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
36017
36017
|
var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
|
|
@@ -36540,7 +36540,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
|
|
|
36540
36540
|
};
|
|
36541
36541
|
}, "workTasksOver");
|
|
36542
36542
|
|
|
36543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
|
|
36544
36544
|
var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
36545
36545
|
const { database, now: now2 } = context;
|
|
36546
36546
|
const liveRow = /* @__PURE__ */ __name((id2) => {
|
|
@@ -36589,7 +36589,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
|
|
|
36589
36589
|
};
|
|
36590
36590
|
}, "taskCloseOver");
|
|
36591
36591
|
|
|
36592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
|
|
36593
36593
|
var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
36594
36594
|
const { database, now: now2 } = context;
|
|
36595
36595
|
const required3 = /* @__PURE__ */ __name((id2) => {
|
|
@@ -36807,7 +36807,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
|
|
|
36807
36807
|
};
|
|
36808
36808
|
}, "taskPairsOver");
|
|
36809
36809
|
|
|
36810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
|
|
36811
36811
|
var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
|
|
36812
36812
|
var TASK_STATS_SQL = {
|
|
36813
36813
|
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"),
|
|
@@ -36846,7 +36846,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
|
|
|
36846
36846
|
}, "statNames")
|
|
36847
36847
|
}), "taskStatsOver");
|
|
36848
36848
|
|
|
36849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
|
|
36850
36850
|
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";
|
|
36851
36851
|
var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
|
|
36852
36852
|
const key2 = inboxKey(account);
|
|
@@ -37053,7 +37053,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
|
|
|
37053
37053
|
throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
|
|
37054
37054
|
}, "oneOf");
|
|
37055
37055
|
|
|
37056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/accounts.js
|
|
37057
37057
|
var accountAccountsOver = /* @__PURE__ */ __name((context) => {
|
|
37058
37058
|
const { database } = context;
|
|
37059
37059
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -37098,7 +37098,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
37098
37098
|
};
|
|
37099
37099
|
}, "accountsStoreOver");
|
|
37100
37100
|
|
|
37101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
|
|
37102
37102
|
var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
|
|
37103
37103
|
var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
|
|
37104
37104
|
const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
|
|
@@ -37122,7 +37122,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
|
|
|
37122
37122
|
})), "keepDownloads");
|
|
37123
37123
|
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");
|
|
37124
37124
|
|
|
37125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/attachments.js
|
|
37126
37126
|
var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
|
|
37127
37127
|
const { database } = context;
|
|
37128
37128
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -37179,7 +37179,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
37179
37179
|
}, "keepAttachmentText")
|
|
37180
37180
|
}), "attachmentsStoreOver");
|
|
37181
37181
|
|
|
37182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
|
|
37183
37183
|
var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
|
|
37184
37184
|
var pointerMover = /* @__PURE__ */ __name((context, type) => {
|
|
37185
37185
|
const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
|
|
@@ -37359,7 +37359,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
|
|
|
37359
37359
|
return done;
|
|
37360
37360
|
}, "rekeyChats");
|
|
37361
37361
|
|
|
37362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
|
|
37363
37363
|
var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
|
|
37364
37364
|
var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
|
|
37365
37365
|
var CHAT_LIST_KEY = "chat_list_complete";
|
|
@@ -37417,7 +37417,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
|
|
|
37417
37417
|
return { ...coverage, oldestMessageAt: toIso(oldest) };
|
|
37418
37418
|
}, "chatCoverage");
|
|
37419
37419
|
|
|
37420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/chats.js
|
|
37421
37421
|
var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
37422
37422
|
const { database } = context;
|
|
37423
37423
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
|
|
@@ -37552,7 +37552,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
37552
37552
|
};
|
|
37553
37553
|
}, "chatsStoreOver");
|
|
37554
37554
|
|
|
37555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
|
|
37556
37556
|
import { createHash as createHash7 } from "node:crypto";
|
|
37557
37557
|
var BATCH_CONTEXT = 50;
|
|
37558
37558
|
var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
|
|
@@ -37690,7 +37690,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
|
|
|
37690
37690
|
var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
|
|
37691
37691
|
${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
|
|
37692
37692
|
|
|
37693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
|
|
37694
37694
|
import { setTimeout } from "node:timers/promises";
|
|
37695
37695
|
var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
|
|
37696
37696
|
var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
|
|
@@ -38002,7 +38002,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
|
|
|
38002
38002
|
AND NOT EXISTS (SELECT 1 FROM messages d
|
|
38003
38003
|
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");
|
|
38004
38004
|
|
|
38005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/conversations.js
|
|
38006
38006
|
var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
38007
38007
|
const { database } = context;
|
|
38008
38008
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -38109,7 +38109,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
38109
38109
|
};
|
|
38110
38110
|
}, "conversationsStoreOver");
|
|
38111
38111
|
|
|
38112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/counters.js
|
|
38113
38113
|
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";
|
|
38114
38114
|
var accountCountersOver = /* @__PURE__ */ __name((context) => {
|
|
38115
38115
|
const { database } = context;
|
|
@@ -38134,7 +38134,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38134
38134
|
counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
|
|
38135
38135
|
}), "countersStoreOver");
|
|
38136
38136
|
|
|
38137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
|
|
38138
38138
|
var MENTION_STATUSES = ["found", "linked", "dismissed"];
|
|
38139
38139
|
var MENTION_QUERY = defineQuery({
|
|
38140
38140
|
entity: "mention",
|
|
@@ -38350,7 +38350,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
|
|
|
38350
38350
|
return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
|
|
38351
38351
|
}, "listPlaces");
|
|
38352
38352
|
|
|
38353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/mentions.js
|
|
38354
38354
|
var accountMentionsOver = /* @__PURE__ */ __name((context) => {
|
|
38355
38355
|
const { database } = context;
|
|
38356
38356
|
const { findAccountPk: findAccountPk2 } = keysOver(context);
|
|
@@ -38385,7 +38385,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38385
38385
|
places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
|
|
38386
38386
|
}), "mentionsStoreOver");
|
|
38387
38387
|
|
|
38388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
|
|
38389
38389
|
var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
|
|
38390
38390
|
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");
|
|
38391
38391
|
const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
|
|
@@ -38400,7 +38400,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
|
|
|
38400
38400
|
}));
|
|
38401
38401
|
}, "documentLinkMessages");
|
|
38402
38402
|
|
|
38403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
|
|
38404
38404
|
var stemmerFor = stemmerCache();
|
|
38405
38405
|
var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
|
|
38406
38406
|
if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -38444,7 +38444,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
|
|
|
38444
38444
|
});
|
|
38445
38445
|
}, "laterSharingRare");
|
|
38446
38446
|
|
|
38447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/messages.js
|
|
38448
38448
|
var accountMessagesOver = /* @__PURE__ */ __name((context) => {
|
|
38449
38449
|
const { database } = context;
|
|
38450
38450
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
|
|
@@ -38579,7 +38579,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
38579
38579
|
laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
|
|
38580
38580
|
}), "messagesStoreOver");
|
|
38581
38581
|
|
|
38582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
|
|
38583
38583
|
var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
|
|
38584
38584
|
var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
38585
38585
|
var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
|
|
@@ -38636,7 +38636,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
|
|
|
38636
38636
|
});
|
|
38637
38637
|
}, "personPreparation");
|
|
38638
38638
|
|
|
38639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
|
|
38640
38640
|
var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
|
|
38641
38641
|
const id2 = Number(uid);
|
|
38642
38642
|
if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
|
|
@@ -38644,7 +38644,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
|
|
|
38644
38644
|
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)));
|
|
38645
38645
|
}, "personSeenInAccounts");
|
|
38646
38646
|
|
|
38647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
|
|
38648
38648
|
var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
|
|
38649
38649
|
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);
|
|
38650
38650
|
if (!row2)
|
|
@@ -38710,7 +38710,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
|
|
|
38710
38710
|
return { id: id2, personId, removed: true };
|
|
38711
38711
|
}, "removeNote");
|
|
38712
38712
|
|
|
38713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/people.js
|
|
38714
38714
|
var accountPeopleOver = /* @__PURE__ */ __name((context) => {
|
|
38715
38715
|
const { database } = context;
|
|
38716
38716
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
|
|
@@ -38795,13 +38795,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
|
|
|
38795
38795
|
};
|
|
38796
38796
|
}, "peopleStoreOver");
|
|
38797
38797
|
|
|
38798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
38799
38799
|
import { createHash as createHash9 } from "node:crypto";
|
|
38800
38800
|
|
|
38801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
38802
38802
|
import { createHash as createHash8 } from "node:crypto";
|
|
38803
38803
|
|
|
38804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
38805
38805
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
38806
38806
|
var AUTHOR_MEASURES = [
|
|
38807
38807
|
"messages",
|
|
@@ -38941,7 +38941,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
|
|
|
38941
38941
|
var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
38942
38942
|
var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
|
|
38943
38943
|
|
|
38944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
|
|
38945
38945
|
var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
|
|
38946
38946
|
var exhausted2 = /* @__PURE__ */ __name((budget) => {
|
|
38947
38947
|
throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
|
|
@@ -39163,7 +39163,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
|
|
|
39163
39163
|
};
|
|
39164
39164
|
}, "rankReplyGraph");
|
|
39165
39165
|
|
|
39166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
|
|
39167
39167
|
var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
|
|
39168
39168
|
var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
|
|
39169
39169
|
var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
|
|
@@ -39337,7 +39337,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
|
|
|
39337
39337
|
return { items, evidence, summary, graph: graph.quality };
|
|
39338
39338
|
}, "calculateAdminStatistics");
|
|
39339
39339
|
|
|
39340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
|
|
39341
39341
|
var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
39342
39342
|
const dates = [];
|
|
39343
39343
|
const visit = /* @__PURE__ */ __name((node, required3) => {
|
|
@@ -39359,7 +39359,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
|
|
|
39359
39359
|
return dates[0].node.resolution.date;
|
|
39360
39360
|
}, "rankingContextRange");
|
|
39361
39361
|
|
|
39362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
|
|
39363
39363
|
var reactionCounts = /* @__PURE__ */ __name((stored3) => {
|
|
39364
39364
|
let counts;
|
|
39365
39365
|
try {
|
|
@@ -39654,7 +39654,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
|
|
|
39654
39654
|
});
|
|
39655
39655
|
}, "rankQuery");
|
|
39656
39656
|
|
|
39657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
|
|
39658
39658
|
function fail4(message2, reason = "query.too-large") {
|
|
39659
39659
|
throw new CliError("validation_error", message2, { reason, complete: false });
|
|
39660
39660
|
}
|
|
@@ -39831,7 +39831,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
|
|
|
39831
39831
|
return result;
|
|
39832
39832
|
}), "adminStatisticsQuery");
|
|
39833
39833
|
|
|
39834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
|
|
39835
39835
|
var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
|
|
39836
39836
|
if (!execution.accounts.length)
|
|
39837
39837
|
return { conversations: [], chats: [] };
|
|
@@ -39849,7 +39849,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
|
|
|
39849
39849
|
return { conversations: conversations2, chats: chats2 };
|
|
39850
39850
|
}, "conversationEligibility");
|
|
39851
39851
|
|
|
39852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
|
|
39853
39853
|
import { createHash as createHash10 } from "node:crypto";
|
|
39854
39854
|
var EVIDENCE_BYTES = 64 * 1024;
|
|
39855
39855
|
var FINGERPRINT_BYTES = 8 * 1024 * 1024;
|
|
@@ -39999,7 +39999,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
|
|
|
39999
39999
|
return result;
|
|
40000
40000
|
}, "rankingEvidence");
|
|
40001
40001
|
|
|
40002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
|
|
40003
40003
|
var FAR = Number.MAX_SAFE_INTEGER;
|
|
40004
40004
|
var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
|
|
40005
40005
|
const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
|
|
@@ -40093,7 +40093,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
|
|
|
40093
40093
|
});
|
|
40094
40094
|
}, "waitingChats");
|
|
40095
40095
|
|
|
40096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/queries.js
|
|
40097
40097
|
var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
40098
40098
|
const mailIndexed = /* @__PURE__ */ __name((execution) => {
|
|
40099
40099
|
if (execution.corpus === "mail")
|
|
@@ -40114,7 +40114,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
|
|
|
40114
40114
|
};
|
|
40115
40115
|
}, "queriesStoreOver");
|
|
40116
40116
|
|
|
40117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
|
|
40118
40118
|
var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
|
|
40119
40119
|
const { database, now: now2 } = context;
|
|
40120
40120
|
const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
|
|
@@ -40153,10 +40153,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
|
|
|
40153
40153
|
}));
|
|
40154
40154
|
}, "chatEventsOf");
|
|
40155
40155
|
|
|
40156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40157
40157
|
import { createHash as createHash11 } from "node:crypto";
|
|
40158
40158
|
|
|
40159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/calendar.js
|
|
40160
40160
|
var calendarKey = /* @__PURE__ */ __name((zone, by) => {
|
|
40161
40161
|
const format = new Intl.DateTimeFormat("en-CA", {
|
|
40162
40162
|
timeZone: zone,
|
|
@@ -40176,7 +40176,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
|
|
|
40176
40176
|
return date3.toISOString().slice(0, 10);
|
|
40177
40177
|
}, "weekKey");
|
|
40178
40178
|
|
|
40179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/retention.js
|
|
40180
40180
|
var RETENTION_TOLERANCE = 864e5;
|
|
40181
40181
|
var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
|
|
40182
40182
|
const { since, until, cutoff, checkpoints, within, limit, by } = options;
|
|
@@ -40230,7 +40230,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
|
|
|
40230
40230
|
return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
|
|
40231
40231
|
}, "retentionCohorts");
|
|
40232
40232
|
|
|
40233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
|
|
40234
40234
|
var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
|
|
40235
40235
|
var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
|
|
40236
40236
|
validateRetentionOptions(options);
|
|
@@ -40361,7 +40361,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
|
|
|
40361
40361
|
};
|
|
40362
40362
|
}, "retentionQuery");
|
|
40363
40363
|
|
|
40364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
|
|
40365
40365
|
var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
40366
40366
|
var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
|
|
40367
40367
|
...isBot === void 0 ? {} : { bot: isBot },
|
|
@@ -40492,7 +40492,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
|
|
|
40492
40492
|
lastCount: memberCountsOf(context, pk).at(-1) ?? null
|
|
40493
40493
|
})), "trackedChats");
|
|
40494
40494
|
|
|
40495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/roster.js
|
|
40496
40496
|
var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40497
40497
|
const { database } = context;
|
|
40498
40498
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
|
|
@@ -40548,7 +40548,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40548
40548
|
};
|
|
40549
40549
|
}, "rosterStoreOver");
|
|
40550
40550
|
|
|
40551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
|
|
40552
40552
|
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");
|
|
40553
40553
|
var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
|
|
40554
40554
|
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 ?`);
|
|
@@ -40572,7 +40572,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
|
|
|
40572
40572
|
}
|
|
40573
40573
|
}, "backfillNormalized");
|
|
40574
40574
|
|
|
40575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
|
|
40576
40576
|
var INDEX2 = "message_words";
|
|
40577
40577
|
var searchIndexState2 = /* @__PURE__ */ __name((database) => {
|
|
40578
40578
|
const row2 = indexRow(database, INDEX2);
|
|
@@ -40699,7 +40699,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
|
|
|
40699
40699
|
});
|
|
40700
40700
|
}, "resetSearchIndex");
|
|
40701
40701
|
|
|
40702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
|
|
40703
40703
|
var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
|
|
40704
40704
|
const filled2 = { stemmed: 0, drained: 0 };
|
|
40705
40705
|
const before2 = stemsState(database);
|
|
@@ -40794,7 +40794,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
|
|
|
40794
40794
|
return resetStems(database, { now: now2 });
|
|
40795
40795
|
}, "followDefaultStemmers");
|
|
40796
40796
|
|
|
40797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
|
|
40798
40798
|
var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
|
|
40799
40799
|
var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
|
|
40800
40800
|
const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
|
|
@@ -40816,7 +40816,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
|
|
|
40816
40816
|
});
|
|
40817
40817
|
}, "termCandidates");
|
|
40818
40818
|
|
|
40819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/search-index.js
|
|
40820
40820
|
var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40821
40821
|
const { database } = context;
|
|
40822
40822
|
const stemmerFor2 = stemmerCache();
|
|
@@ -40838,7 +40838,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40838
40838
|
};
|
|
40839
40839
|
}, "searchIndexStoreOver");
|
|
40840
40840
|
|
|
40841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
|
|
40842
40842
|
var HISTORY_KEPT = 1e3;
|
|
40843
40843
|
var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
|
|
40844
40844
|
var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
|
|
@@ -40907,7 +40907,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
|
|
|
40907
40907
|
return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
|
|
40908
40908
|
}, "clearHistory");
|
|
40909
40909
|
|
|
40910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/searches.js
|
|
40911
40911
|
var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
40912
40912
|
const { database } = context;
|
|
40913
40913
|
return {
|
|
@@ -40931,7 +40931,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
40931
40931
|
};
|
|
40932
40932
|
}, "searchesStoreOver");
|
|
40933
40933
|
|
|
40934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
|
|
40935
40935
|
var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
|
|
40936
40936
|
var ACTION_OUTCOMES = ["ok", "refused", "failed"];
|
|
40937
40937
|
var CODE = /^[a-z][a-z0-9_]{0,63}$/;
|
|
@@ -40974,7 +40974,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
|
|
|
40974
40974
|
};
|
|
40975
40975
|
}, "agentActionsStoreOver");
|
|
40976
40976
|
|
|
40977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
|
|
40978
40978
|
var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
40979
40979
|
}) => {
|
|
40980
40980
|
const { database, now: now2 } = context;
|
|
@@ -41033,7 +41033,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
|
|
|
41033
41033
|
};
|
|
41034
41034
|
}, "botUpdateStoreOver");
|
|
41035
41035
|
|
|
41036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
|
|
41037
41037
|
var DAY4 = 864e5;
|
|
41038
41038
|
var accountsOf = /* @__PURE__ */ __name((filter) => {
|
|
41039
41039
|
if (filter.accountIds !== void 0 && filter.accountId !== void 0)
|
|
@@ -41142,7 +41142,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
|
|
|
41142
41142
|
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);
|
|
41143
41143
|
}, "listEvents");
|
|
41144
41144
|
|
|
41145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
|
|
41146
41146
|
var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
|
|
41147
41147
|
var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
|
|
41148
41148
|
const unseenBefore = unreferenced(database, "identities");
|
|
@@ -41197,7 +41197,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
|
|
|
41197
41197
|
return { entries: entryIds.length, events: goneEvents.length };
|
|
41198
41198
|
}, "forgetCalendarRows");
|
|
41199
41199
|
|
|
41200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
|
|
41201
41201
|
var calendarOf = /* @__PURE__ */ __name((row2) => ({
|
|
41202
41202
|
id: Number(row2.id),
|
|
41203
41203
|
accountId: Number(row2.account_id),
|
|
@@ -41784,7 +41784,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
41784
41784
|
};
|
|
41785
41785
|
}, "eventStoreOver");
|
|
41786
41786
|
|
|
41787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
|
|
41788
41788
|
var CATALOG_QUERY = defineQuery({
|
|
41789
41789
|
entity: "document",
|
|
41790
41790
|
backend: "sql",
|
|
@@ -42026,7 +42026,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
|
|
|
42026
42026
|
};
|
|
42027
42027
|
}, "catalogStoreOver");
|
|
42028
42028
|
|
|
42029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
|
|
42030
42030
|
var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
|
|
42031
42031
|
var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
|
|
42032
42032
|
CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
|
|
@@ -42039,7 +42039,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
|
|
|
42039
42039
|
THEN 'source-modified' ELSE 'stored-update' END`;
|
|
42040
42040
|
var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
|
|
42041
42041
|
|
|
42042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
|
|
42043
42043
|
var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
42044
42044
|
const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
|
|
42045
42045
|
signal?.throwIfAborted();
|
|
@@ -42138,7 +42138,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
|
|
|
42138
42138
|
});
|
|
42139
42139
|
}, "readMeetingContextEvidence");
|
|
42140
42140
|
|
|
42141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
|
|
42142
42142
|
var corpora = {
|
|
42143
42143
|
message: {
|
|
42144
42144
|
table: "messages",
|
|
@@ -42377,7 +42377,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
42377
42377
|
}
|
|
42378
42378
|
}), "contextRecordsOver");
|
|
42379
42379
|
|
|
42380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
|
|
42381
42381
|
var NOTE_FIELDS = [
|
|
42382
42382
|
"text",
|
|
42383
42383
|
"exact",
|
|
@@ -42807,7 +42807,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
42807
42807
|
};
|
|
42808
42808
|
}, "noteSearchOver");
|
|
42809
42809
|
|
|
42810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
|
|
42811
42811
|
var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
|
|
42812
42812
|
var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
|
|
42813
42813
|
var EVENT_CORPUS = {
|
|
@@ -42939,7 +42939,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
|
|
|
42939
42939
|
};
|
|
42940
42940
|
}, "eventSearchOver");
|
|
42941
42941
|
|
|
42942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
|
|
42943
42943
|
var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
|
|
42944
42944
|
throw new CliError(code, message2, { reason });
|
|
42945
42945
|
}, "refuse");
|
|
@@ -43400,7 +43400,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43400
43400
|
};
|
|
43401
43401
|
}, "financeStoreOver");
|
|
43402
43402
|
|
|
43403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
|
|
43404
43404
|
var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
|
|
43405
43405
|
throw new CliError("validation_error", message2, { reason });
|
|
43406
43406
|
}, "refuse");
|
|
@@ -43478,7 +43478,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
|
|
|
43478
43478
|
};
|
|
43479
43479
|
}, "paymentEntriesOver");
|
|
43480
43480
|
|
|
43481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
|
|
43482
43482
|
var EVIDENCE_FINDINGS_KIND = "evidence_findings";
|
|
43483
43483
|
var reference = /* @__PURE__ */ __name((raw) => {
|
|
43484
43484
|
if (/^(document|note):[1-9]\d*$/.test(raw))
|
|
@@ -43504,7 +43504,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
|
|
|
43504
43504
|
return valid;
|
|
43505
43505
|
}, "validateEvidenceFindings");
|
|
43506
43506
|
|
|
43507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
43508
43508
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
|
|
43509
43509
|
try {
|
|
43510
43510
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -43516,7 +43516,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
|
|
|
43516
43516
|
}
|
|
43517
43517
|
}, "calendarMoment");
|
|
43518
43518
|
|
|
43519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
|
|
43520
43520
|
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";
|
|
43521
43521
|
var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
|
|
43522
43522
|
var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
|
|
@@ -43725,7 +43725,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43725
43725
|
};
|
|
43726
43726
|
}, "factsStoreOver");
|
|
43727
43727
|
|
|
43728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
|
|
43729
43729
|
var invalid4 = /* @__PURE__ */ __name((message2) => {
|
|
43730
43730
|
throw new CliError("validation_error", message2);
|
|
43731
43731
|
}, "invalid");
|
|
@@ -43829,7 +43829,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
|
|
|
43829
43829
|
return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
|
|
43830
43830
|
}, "findingsCoreOver");
|
|
43831
43831
|
|
|
43832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
|
|
43833
43833
|
var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
|
|
43834
43834
|
var PROPOSAL_VERDICTS = ["useful", "not_useful"];
|
|
43835
43835
|
var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
|
|
@@ -43994,7 +43994,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
43994
43994
|
};
|
|
43995
43995
|
}, "proposedActionsStoreOver");
|
|
43996
43996
|
|
|
43997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
|
|
43998
43998
|
var stale = /* @__PURE__ */ __name(() => {
|
|
43999
43999
|
throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
|
|
44000
44000
|
reason: "evidence-findings.stale"
|
|
@@ -44175,7 +44175,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
44175
44175
|
};
|
|
44176
44176
|
}, "evidenceFindingsStoreOver");
|
|
44177
44177
|
|
|
44178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
|
|
44179
44179
|
var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
|
|
44180
44180
|
var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
|
|
44181
44181
|
rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
|
|
@@ -44228,7 +44228,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
|
|
|
44228
44228
|
}, "forPerson")
|
|
44229
44229
|
}), "involvementStoreOver");
|
|
44230
44230
|
|
|
44231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
|
|
44232
44232
|
import { createHash as createHash12 } from "node:crypto";
|
|
44233
44233
|
var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
|
|
44234
44234
|
var id = /* @__PURE__ */ __name((value) => {
|
|
@@ -44314,7 +44314,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
|
|
|
44314
44314
|
};
|
|
44315
44315
|
}, "meetingProjectsStoreOver");
|
|
44316
44316
|
|
|
44317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
|
|
44318
44318
|
var relationOf = /* @__PURE__ */ __name((link3) => ({
|
|
44319
44319
|
id: link3.id,
|
|
44320
44320
|
from: link3.from,
|
|
@@ -44540,16 +44540,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
|
|
|
44540
44540
|
provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
|
|
44541
44541
|
}, "decidedOrigin");
|
|
44542
44542
|
|
|
44543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
44544
44544
|
import { createHash as createHash15 } from "node:crypto";
|
|
44545
44545
|
|
|
44546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
44547
44547
|
import { createHash as createHash14 } from "node:crypto";
|
|
44548
44548
|
|
|
44549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
44550
44550
|
import { createHash as createHash13 } from "node:crypto";
|
|
44551
44551
|
|
|
44552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
|
|
44553
44553
|
var consolidationId = /* @__PURE__ */ __name((value, field4) => {
|
|
44554
44554
|
if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
44555
44555
|
throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
|
|
@@ -44600,7 +44600,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
|
|
|
44600
44600
|
return input;
|
|
44601
44601
|
}, "consolidationApplyInput");
|
|
44602
44602
|
|
|
44603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
|
|
44604
44604
|
var receiptOf = /* @__PURE__ */ __name((row2) => ({
|
|
44605
44605
|
id: String(row2.id),
|
|
44606
44606
|
sourceId: String(row2.source_id),
|
|
@@ -44675,7 +44675,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
|
|
|
44675
44675
|
}, { beforeCommit: check3 });
|
|
44676
44676
|
}, "applyTagConsolidation");
|
|
44677
44677
|
|
|
44678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
|
|
44679
44679
|
var selections = [
|
|
44680
44680
|
["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
|
|
44681
44681
|
["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
|
|
@@ -44819,7 +44819,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
|
|
|
44819
44819
|
};
|
|
44820
44820
|
}, "previewRows");
|
|
44821
44821
|
|
|
44822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
|
|
44823
44823
|
var kinds = ["project", "tag", "topic"];
|
|
44824
44824
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
44825
44825
|
if (signal?.aborted)
|
|
@@ -45083,7 +45083,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
45083
45083
|
};
|
|
45084
45084
|
}, "vocabularyStoreOver");
|
|
45085
45085
|
|
|
45086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
|
|
45087
45087
|
var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
|
|
45088
45088
|
var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
|
|
45089
45089
|
var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
|
|
@@ -45640,7 +45640,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
|
|
|
45640
45640
|
return key2.padEnd(3, "X");
|
|
45641
45641
|
}, "projectKey");
|
|
45642
45642
|
|
|
45643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
|
|
45644
45644
|
var DAY5 = 864e5;
|
|
45645
45645
|
var SETTING4 = "logs_pruned_at";
|
|
45646
45646
|
var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
|
|
@@ -45667,7 +45667,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
|
|
|
45667
45667
|
};
|
|
45668
45668
|
}, "logPruner");
|
|
45669
45669
|
|
|
45670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mail/findings.js
|
|
45671
45671
|
var MAIL_FINDINGS_PER_RUN = 30;
|
|
45672
45672
|
var MAIL_FINDINGS_PER_SENDER = 5;
|
|
45673
45673
|
var invalid6 = /* @__PURE__ */ __name((message2) => {
|
|
@@ -45993,8 +45993,8 @@ var one = /* @__PURE__ */ __name((raw, ids) => {
|
|
|
45993
45993
|
return invalid6("a mail finding is a task, task_update, fact, memory, link, new_contact, invoice, payment, order or order_update");
|
|
45994
45994
|
}
|
|
45995
45995
|
}, "one");
|
|
45996
|
-
var KEY2 = /^[a-z0-9][a-z0-9-]{0,39}:[1-9]\d
|
|
45997
|
-
var KEY_SHAPE = "a mail findings key is <holder>:<through_id>, such as mail-triage:9123456";
|
|
45996
|
+
var KEY2 = /^[a-z0-9][a-z0-9-]{0,39}:[1-9]\d*(-r[1-9]\d*)?$/;
|
|
45997
|
+
var KEY_SHAPE = "a mail findings key is the one `review --holder` gave: <holder>:<through_id>, and -r<resets> after a reset, such as mail-triage:9123456 or mail-triage:9123456-r1";
|
|
45998
45998
|
var validateMailFindings = /* @__PURE__ */ __name((input) => {
|
|
45999
45999
|
const batch = validateBatch(input, RULES, MAIL_FINDINGS_PER_RUN, one);
|
|
46000
46000
|
if (!KEY2.test(batch.key))
|
|
@@ -46033,7 +46033,7 @@ var checkMailFindings = /* @__PURE__ */ __name((input) => {
|
|
|
46033
46033
|
}, "checkMailFindings");
|
|
46034
46034
|
var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
|
|
46035
46035
|
|
|
46036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
46037
46037
|
var import_disposable_email_domains_js = __toESM(require_dist(), 1);
|
|
46038
46038
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
46039
46039
|
var WEIGHTS = {
|
|
@@ -46166,7 +46166,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
46166
46166
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
46167
46167
|
}, "scoreGroup");
|
|
46168
46168
|
|
|
46169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
|
|
46170
46170
|
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";
|
|
46171
46171
|
var orderOperationsOver = /* @__PURE__ */ __name((context) => {
|
|
46172
46172
|
const { database, now: now2 } = context;
|
|
@@ -46318,7 +46318,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
46318
46318
|
};
|
|
46319
46319
|
}, "ordersStoreOver");
|
|
46320
46320
|
|
|
46321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
|
|
46322
46322
|
var stale2 = /* @__PURE__ */ __name(() => {
|
|
46323
46323
|
throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
|
|
46324
46324
|
reason: "mail-findings.stale"
|
|
@@ -46775,7 +46775,7 @@ ${evidence.join("\n")}`, agent);
|
|
|
46775
46775
|
};
|
|
46776
46776
|
}, "mailFindingsStoreOver");
|
|
46777
46777
|
|
|
46778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
|
|
46779
46779
|
var stale3 = /* @__PURE__ */ __name(() => {
|
|
46780
46780
|
throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
|
|
46781
46781
|
reason: "meeting-findings.stale"
|
|
@@ -46943,7 +46943,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
46943
46943
|
};
|
|
46944
46944
|
}, "meetingFindingsStoreOver");
|
|
46945
46945
|
|
|
46946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
46946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
|
|
46947
46947
|
var RANK_BATCH = 512;
|
|
46948
46948
|
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";
|
|
46949
46949
|
var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
|
|
@@ -47214,7 +47214,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
|
|
|
47214
47214
|
}
|
|
47215
47215
|
}), "meetingVectorsOver");
|
|
47216
47216
|
|
|
47217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
|
|
47218
47218
|
var OTHER_SOURCES = ["document", "note", "email"];
|
|
47219
47219
|
var TEXTS = {
|
|
47220
47220
|
document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
|
|
@@ -47315,11 +47315,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
47315
47315
|
};
|
|
47316
47316
|
}, "sourceMentionStoreOver");
|
|
47317
47317
|
|
|
47318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
47319
47319
|
import { mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
47320
47320
|
import { dirname } from "node:path";
|
|
47321
47321
|
|
|
47322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
|
|
47323
47323
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
47324
47324
|
var CLIENTS_SETTING = "clients";
|
|
47325
47325
|
var coreVersion = (() => {
|
|
@@ -47377,7 +47377,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
|
|
|
47377
47377
|
return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
|
|
47378
47378
|
}, "refusalAdvice");
|
|
47379
47379
|
|
|
47380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
|
|
47381
47381
|
var GENERATED = [
|
|
47382
47382
|
{
|
|
47383
47383
|
"name": "20261010184427_initial",
|
|
@@ -48380,7 +48380,7 @@ WHERE json_type(params, '$.selection') = 'object';`
|
|
|
48380
48380
|
}
|
|
48381
48381
|
];
|
|
48382
48382
|
|
|
48383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
|
|
48384
48384
|
var MANIFEST = [
|
|
48385
48385
|
{ name: "20261010184427_initial", version: 1, minCompatible: 1 },
|
|
48386
48386
|
{ name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
|
|
@@ -48472,7 +48472,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
|
|
|
48472
48472
|
return migrations;
|
|
48473
48473
|
}, "generatedMigrations");
|
|
48474
48474
|
|
|
48475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/migrations.js
|
|
48476
48476
|
var MIGRATIONS = generatedMigrations();
|
|
48477
48477
|
var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
48478
48478
|
version INTEGER PRIMARY KEY,
|
|
@@ -48525,7 +48525,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
|
|
|
48525
48525
|
}
|
|
48526
48526
|
}, "migrate");
|
|
48527
48527
|
|
|
48528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
|
|
48529
48529
|
var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
48530
48530
|
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 ?");
|
|
48531
48531
|
if (pending.get(0, 1) === void 0)
|
|
@@ -48547,7 +48547,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
|
|
|
48547
48547
|
}
|
|
48548
48548
|
}, "fillJoinKeys");
|
|
48549
48549
|
|
|
48550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
|
|
48551
48551
|
var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
48552
48552
|
refuseOwnerStoreInTests(path);
|
|
48553
48553
|
const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
|
|
@@ -48561,8 +48561,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
48561
48561
|
}, "openSqlite");
|
|
48562
48562
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
48563
48563
|
quietSqliteWarning();
|
|
48564
|
-
const { drizzle } = await import("./node-
|
|
48565
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
48564
|
+
const { drizzle } = await import("./node-AQ7O3PGH.js");
|
|
48565
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-RKDBK624.js");
|
|
48566
48566
|
const client = await nodeClient(path, { readOnly });
|
|
48567
48567
|
try {
|
|
48568
48568
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -48572,8 +48572,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
48572
48572
|
}
|
|
48573
48573
|
}, "openUnderNode");
|
|
48574
48574
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
48575
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
48576
|
-
const { drizzle } = await import("./bun-
|
|
48575
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-5X2NBSLA.js");
|
|
48576
|
+
const { drizzle } = await import("./bun-O3KE32D7.js");
|
|
48577
48577
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
48578
48578
|
try {
|
|
48579
48579
|
return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
|
|
@@ -48583,7 +48583,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
48583
48583
|
}
|
|
48584
48584
|
}, "openUnderBun");
|
|
48585
48585
|
|
|
48586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
|
|
48587
48587
|
var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
|
|
48588
48588
|
var paymentOf = /* @__PURE__ */ __name((metadata3) => {
|
|
48589
48589
|
try {
|
|
@@ -48651,7 +48651,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
|
|
|
48651
48651
|
});
|
|
48652
48652
|
}, "movePaymentFacts");
|
|
48653
48653
|
|
|
48654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
|
|
48655
48655
|
var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
48656
48656
|
const ours = MIGRATIONS.at(-1)?.version ?? 0;
|
|
48657
48657
|
if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
|
|
@@ -48666,7 +48666,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
|
|
|
48666
48666
|
throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
|
|
48667
48667
|
}, "assertReadCompatible");
|
|
48668
48668
|
|
|
48669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
|
|
48670
48670
|
var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
|
|
48671
48671
|
var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
|
|
48672
48672
|
if (provenance2?.startsWith("rule:"))
|
|
@@ -48712,7 +48712,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
|
|
|
48712
48712
|
});
|
|
48713
48713
|
}, "moveSuggestedLinks");
|
|
48714
48714
|
|
|
48715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
|
|
48716
48716
|
var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
|
|
48717
48717
|
var TEST_PROVIDER = "chat";
|
|
48718
48718
|
var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
@@ -48733,7 +48733,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
|
|
|
48733
48733
|
}
|
|
48734
48734
|
}, "purgeTestAccounts");
|
|
48735
48735
|
|
|
48736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
|
|
48737
48737
|
var BACKFILL_ON_OPEN = 5e3;
|
|
48738
48738
|
var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
|
|
48739
48739
|
var createWritable = /* @__PURE__ */ __name((file) => {
|
|
@@ -48798,10 +48798,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
|
|
|
48798
48798
|
}
|
|
48799
48799
|
}, "openStoreContext");
|
|
48800
48800
|
|
|
48801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
48802
48802
|
import { createHash as createHash16 } from "node:crypto";
|
|
48803
48803
|
|
|
48804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
|
|
48805
48805
|
var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
48806
48806
|
var ref = text4(2048);
|
|
48807
48807
|
var timestamp2 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -48867,7 +48867,7 @@ var projectAnnotationsSchema = strictObject({
|
|
|
48867
48867
|
}))
|
|
48868
48868
|
});
|
|
48869
48869
|
|
|
48870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
|
|
48871
48871
|
var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
|
|
48872
48872
|
var invalid9 = /* @__PURE__ */ __name((field4) => {
|
|
48873
48873
|
throw new CliError("validation_error", `invalid project annotations.${field4}`);
|
|
@@ -48971,7 +48971,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
|
|
|
48971
48971
|
invalid9("external.unused");
|
|
48972
48972
|
}, "validateProjectAnnotationsGraph");
|
|
48973
48973
|
|
|
48974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
|
|
48975
48975
|
var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
|
|
48976
48976
|
var ref2 = pipe(string(), minLength(1), maxLength(2048));
|
|
48977
48977
|
var targetSchema = strictObject({
|
|
@@ -49077,7 +49077,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
|
|
|
49077
49077
|
};
|
|
49078
49078
|
}, "planBoundProjectAnnotations");
|
|
49079
49079
|
|
|
49080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
|
|
49081
49081
|
import { createHash as createHash17 } from "node:crypto";
|
|
49082
49082
|
var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
|
|
49083
49083
|
var timestamp3 = pipe(number(), safeInteger(), minValue(0));
|
|
@@ -49171,7 +49171,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
|
|
|
49171
49171
|
})).digest("hex");
|
|
49172
49172
|
}, "projectAnnotationSnapshotFingerprint");
|
|
49173
49173
|
|
|
49174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
|
|
49175
49175
|
var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
|
|
49176
49176
|
if (!request || typeof request !== "object" || Array.isArray(request))
|
|
49177
49177
|
throw new CliError("validation_error", "project annotation request is required");
|
|
@@ -49188,7 +49188,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
|
|
|
49188
49188
|
return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
|
|
49189
49189
|
}, "projectAnnotationRequest");
|
|
49190
49190
|
|
|
49191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
|
|
49192
49192
|
var SnapshotBudget = class {
|
|
49193
49193
|
static {
|
|
49194
49194
|
__name(this, "SnapshotBudget");
|
|
@@ -49214,13 +49214,13 @@ var SnapshotBudget = class {
|
|
|
49214
49214
|
}
|
|
49215
49215
|
};
|
|
49216
49216
|
|
|
49217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
49218
49218
|
import { createHash as createHash19 } from "node:crypto";
|
|
49219
49219
|
|
|
49220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
|
|
49221
49221
|
var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
|
|
49222
49222
|
|
|
49223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
|
|
49224
49224
|
import { createHash as createHash18 } from "node:crypto";
|
|
49225
49225
|
var invalid11 = /* @__PURE__ */ __name(() => {
|
|
49226
49226
|
throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
|
|
@@ -49363,7 +49363,7 @@ var ProjectSnapshotSources = class {
|
|
|
49363
49363
|
}
|
|
49364
49364
|
};
|
|
49365
49365
|
|
|
49366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
|
|
49367
49367
|
var unsupported = /* @__PURE__ */ __name(() => {
|
|
49368
49368
|
throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
|
|
49369
49369
|
}, "unsupported");
|
|
@@ -49534,7 +49534,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
|
|
|
49534
49534
|
return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
|
|
49535
49535
|
}), "projectAnnotationSnapshot");
|
|
49536
49536
|
|
|
49537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
|
|
49538
49538
|
var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
|
|
49539
49539
|
const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
|
|
49540
49540
|
const sources = new ProjectSnapshotSources(database, budget);
|
|
@@ -49596,7 +49596,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
|
|
|
49596
49596
|
};
|
|
49597
49597
|
}), "previewAnnotationSnapshot");
|
|
49598
49598
|
|
|
49599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
|
|
49600
49600
|
var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
|
|
49601
49601
|
const mappings = { ...bindings };
|
|
49602
49602
|
const resolve = /* @__PURE__ */ __name((ref3) => {
|
|
@@ -49638,7 +49638,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
|
|
|
49638
49638
|
return mappings;
|
|
49639
49639
|
}, "restoreAnnotationRecords");
|
|
49640
49640
|
|
|
49641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
|
|
49642
49642
|
var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
49643
49643
|
async preview(request) {
|
|
49644
49644
|
const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
|
|
@@ -49668,7 +49668,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
|
|
|
49668
49668
|
}
|
|
49669
49669
|
}), "projectAnnotationStoreOver");
|
|
49670
49670
|
|
|
49671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
49672
49672
|
import { createHash as createHash20 } from "node:crypto";
|
|
49673
49673
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
49674
49674
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -49900,7 +49900,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
|
|
|
49900
49900
|
return isObject2(header) ? { ...header, records: records2 } : header;
|
|
49901
49901
|
}, "envelopeOfJsonl");
|
|
49902
49902
|
|
|
49903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
|
|
49904
49904
|
var PROJECTED = {
|
|
49905
49905
|
invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
|
|
49906
49906
|
payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
|
|
@@ -50313,7 +50313,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
50313
50313
|
};
|
|
50314
50314
|
}, "recordStoreOver");
|
|
50315
50315
|
|
|
50316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
|
|
50317
50317
|
var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
|
|
50318
50318
|
const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
|
|
50319
50319
|
let merged = { from: from2, to };
|
|
@@ -50326,7 +50326,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
|
|
|
50326
50326
|
}, "markRange");
|
|
50327
50327
|
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");
|
|
50328
50328
|
|
|
50329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
|
|
50330
50330
|
var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
|
|
50331
50331
|
var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
|
|
50332
50332
|
chatId: String(row2.key).slice(prefix.length),
|
|
@@ -50347,7 +50347,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
|
|
|
50347
50347
|
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);
|
|
50348
50348
|
}, "setTaskAnalysisMark");
|
|
50349
50349
|
|
|
50350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
|
|
50351
50351
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
|
|
50352
50352
|
var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
|
|
50353
50353
|
const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
|
|
@@ -50357,7 +50357,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
|
|
|
50357
50357
|
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);
|
|
50358
50358
|
}, "setTaskRulesStop");
|
|
50359
50359
|
|
|
50360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sync.js
|
|
50361
50361
|
var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
50362
50362
|
const { database } = context;
|
|
50363
50363
|
const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
|
|
@@ -50416,7 +50416,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
50416
50416
|
};
|
|
50417
50417
|
}, "syncStoreOver");
|
|
50418
50418
|
|
|
50419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/tags.js
|
|
50420
50420
|
var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
50421
50421
|
const { database } = context;
|
|
50422
50422
|
return {
|
|
@@ -50438,7 +50438,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
|
|
|
50438
50438
|
};
|
|
50439
50439
|
}, "tagsStoreOver");
|
|
50440
50440
|
|
|
50441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
|
|
50442
50442
|
var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
|
|
50443
50443
|
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
|
|
50444
50444
|
WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
|
|
@@ -50565,7 +50565,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
|
|
|
50565
50565
|
dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
|
|
50566
50566
|
}, "savePictureChunks");
|
|
50567
50567
|
|
|
50568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
|
|
50569
50569
|
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,
|
|
50570
50570
|
EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
|
|
50571
50571
|
FROM messages m
|
|
@@ -50654,7 +50654,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
|
|
|
50654
50654
|
return plain2(best(found2));
|
|
50655
50655
|
}, "nearestMessages");
|
|
50656
50656
|
|
|
50657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/vectors.js
|
|
50658
50658
|
var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
|
|
50659
50659
|
const { database } = context;
|
|
50660
50660
|
const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
|
|
@@ -50912,7 +50912,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
|
|
|
50912
50912
|
embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
|
|
50913
50913
|
}), "vectorsStoreOver");
|
|
50914
50914
|
|
|
50915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
|
|
50916
50916
|
import { existsSync, readFileSync as readFileSync4 } from "node:fs";
|
|
50917
50917
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
50918
50918
|
var BOOKKEEPING = ["schema_migrations", "store_settings"];
|
|
@@ -51000,10 +51000,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
|
|
|
51000
51000
|
}
|
|
51001
51001
|
}, "lastBackup");
|
|
51002
51002
|
|
|
51003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/providers.js
|
|
51004
51004
|
var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
|
|
51005
51005
|
|
|
51006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
|
|
51007
51007
|
var COUNTED_TABLES = [
|
|
51008
51008
|
"accounts",
|
|
51009
51009
|
"chats",
|
|
@@ -51088,7 +51088,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
|
|
|
51088
51088
|
};
|
|
51089
51089
|
}, "storeContents");
|
|
51090
51090
|
|
|
51091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/store.js
|
|
51092
51092
|
var openStore = /* @__PURE__ */ __name(async (options = {}) => {
|
|
51093
51093
|
const context = await openStoreContext(options);
|
|
51094
51094
|
try {
|