@wirecat/mail-cli 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +5 -3
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-DTUWUCQQ.js → all-profiles-CI32WFEV.js} +9 -9
- package/dist/bundle/{anthropic-YJAEQSNT.js → anthropic-ICSOMJIN.js} +9 -7
- package/dist/bundle/{app-server-3ZXSTBA3.js → app-server-3F4ZB7DH.js} +46 -46
- package/dist/bundle/{bun-34VBM7C5.js → bun-7AHNFZMZ.js} +2 -2
- package/dist/bundle/{bun-sqlite-GCT7ROCK.js → bun-sqlite-UIWRS4HI.js} +4 -4
- package/dist/bundle/{chunk-NOVBK4SY.js → chunk-2BAO4T4Z.js} +12 -12
- package/dist/bundle/{chunk-UWL2IOII.js → chunk-3QVGB2CI.js} +2 -2
- package/dist/bundle/{chunk-HN43G27G.js → chunk-4PNIZUEC.js} +45 -27
- package/dist/bundle/{chunk-LF5XM4HE.js → chunk-4TKQIXND.js} +1 -1
- package/dist/bundle/{chunk-HSBGNVEL.js → chunk-4YTX5YAU.js} +334 -185
- package/dist/bundle/{chunk-LTXYJAJK.js → chunk-5AQ4S4TZ.js} +24 -63
- package/dist/bundle/{chunk-ODFHIXMA.js → chunk-5AS5N7V5.js} +1 -1
- package/dist/bundle/{chunk-WBAA2X3E.js → chunk-5J4WNTTM.js} +11 -11
- package/dist/bundle/{chunk-GAPQENMY.js → chunk-5QQOUYNA.js} +22 -4
- package/dist/bundle/{chunk-RPCKBXKN.js → chunk-5Y2WRUYP.js} +2 -2
- package/dist/bundle/{chunk-AF62BPIW.js → chunk-5Z7LZAVP.js} +5 -5
- package/dist/bundle/{chunk-SYEICLTR.js → chunk-6FSLEARF.js} +1 -1
- package/dist/bundle/{chunk-QTMVGOSF.js → chunk-7DFWXIY5.js} +1336 -796
- package/dist/bundle/{chunk-J4UZXBEV.js → chunk-7OVVX4F4.js} +1 -1
- package/dist/bundle/{chunk-QE72KTS7.js → chunk-7SIWMF77.js} +1 -1
- package/dist/bundle/{chunk-J2U6LUT5.js → chunk-7ZDH2XEY.js} +3 -3
- package/dist/bundle/{chunk-SFC46MP2.js → chunk-AFPETMXZ.js} +10 -10
- package/dist/bundle/{chunk-Z7N4MGOQ.js → chunk-AHRHP2H2.js} +5 -5
- package/dist/bundle/{chunk-HJ2CXDKJ.js → chunk-B4MWHI2V.js} +12 -12
- package/dist/bundle/{chunk-HRRSTIGP.js → chunk-B6GITVDX.js} +10 -6
- package/dist/bundle/{chunk-3DSYLE5N.js → chunk-BT7UUI6E.js} +2 -2
- package/dist/bundle/{chunk-72N26BQM.js → chunk-CNYQ3TTZ.js} +88 -88
- package/dist/bundle/{chunk-RFB27ACZ.js → chunk-D6WTKSRA.js} +2 -2
- package/dist/bundle/{chunk-4FWJNIPH.js → chunk-ELGEHZK2.js} +1 -1
- package/dist/bundle/{chunk-3HDQVTND.js → chunk-ETIUB2DF.js} +5 -5
- package/dist/bundle/{chunk-VDUGE6TH.js → chunk-FHCOGR7S.js} +2 -2
- package/dist/bundle/{chunk-VQZCIDSO.js → chunk-FIZWQTUC.js} +3 -3
- package/dist/bundle/{chunk-KMQAHDBM.js → chunk-FVKZ55I2.js} +860 -420
- package/dist/bundle/{chunk-BHNBWFT5.js → chunk-GOMJNH56.js} +44 -0
- package/dist/bundle/{chunk-FTI73RLC.js → chunk-HGV7DSSA.js} +2 -2
- package/dist/bundle/{chunk-RY7PBP4F.js → chunk-HN6PB7F5.js} +16 -16
- package/dist/bundle/{chunk-R3WPMQYZ.js → chunk-HRIYU2HJ.js} +245 -387
- package/dist/bundle/{chunk-ZKLXSVIO.js → chunk-I3YNNSGB.js} +1 -1
- package/dist/bundle/{chunk-MDDB7M7Z.js → chunk-IMIY7HQB.js} +1 -1
- package/dist/bundle/{chunk-2PPEDB67.js → chunk-JDKC7EXM.js} +30 -30
- package/dist/bundle/{chunk-T3DTYJTG.js → chunk-JO4BJYVE.js} +1 -1
- package/dist/bundle/{chunk-O3M2S62X.js → chunk-KJQZXCNK.js} +3 -3
- package/dist/bundle/{chunk-T4FVIPUJ.js → chunk-KNRONMVG.js} +2 -2
- package/dist/bundle/{chunk-BMV56JCL.js → chunk-LLYVBO3R.js} +1 -1
- package/dist/bundle/{chunk-TCCN5TON.js → chunk-NEDYKKJJ.js} +24 -2
- package/dist/bundle/{chunk-OKO2Q6H6.js → chunk-NKDYHAHP.js} +2 -2
- package/dist/bundle/{chunk-P2QJA7S5.js → chunk-OMW37FXK.js} +1 -1
- package/dist/bundle/{chunk-P6FT6YYT.js → chunk-R4RAWEMV.js} +16 -16
- package/dist/bundle/{chunk-V6OIIVH3.js → chunk-RIAZTS6C.js} +11 -11
- package/dist/bundle/{chunk-7XLOWYGD.js → chunk-S2U5BXWS.js} +19 -4
- package/dist/bundle/{chunk-566MEXK5.js → chunk-SCH3NC5X.js} +3 -3
- package/dist/bundle/{chunk-Z75WYAX6.js → chunk-SETCGPFG.js} +7 -7
- package/dist/bundle/{chunk-4WIEVQ2Q.js → chunk-SGMENSI6.js} +127 -9
- package/dist/bundle/{chunk-I2SDXWLR.js → chunk-TEL2OMS5.js} +97 -54
- package/dist/bundle/{chunk-SCIC2CJS.js → chunk-UA4BOLIY.js} +4 -4
- package/dist/bundle/{chunk-VINSQR4X.js → chunk-UTLJQG6Q.js} +7 -7
- package/dist/bundle/{chunk-ZZSHGCRC.js → chunk-WQRX4RQS.js} +4 -4
- package/dist/bundle/{chunk-MD64ITYO.js → chunk-XP5FBDIG.js} +1 -1
- package/dist/bundle/{chunk-RT6SLZBI.js → chunk-XV3M3NAN.js} +1 -1
- package/dist/bundle/{chunk-B74SOC4R.js → chunk-ZYHBMDNU.js} +8 -8
- package/dist/bundle/command-contract-UIRWJVEY.js +35 -0
- package/dist/bundle/{decode-BIOOL5E4.js → decode-BJXABRAN.js} +4 -4
- package/dist/bundle/{dispatch-R5OF2FVZ.js → dispatch-G4CYFWQ2.js} +1 -1
- package/dist/bundle/{dist-TJVIRLE5.js → dist-LLEA6R4V.js} +36 -22
- package/dist/bundle/{echarts-ECPGMKXO.js → echarts-YPTKBOZV.js} +2 -2
- package/dist/bundle/{embed-F7JFSLHN.js → embed-DMROTI5M.js} +5 -5
- package/dist/bundle/{embedder-U4G74HV3.js → embedder-DWMHXCHJ.js} +8 -8
- package/dist/bundle/{failure-WYKVF6RH.js → failure-FFPK2WYB.js} +1 -1
- package/dist/bundle/{first-run-JTYPUYQP.js → first-run-FQOEF2IO.js} +8 -8
- package/dist/bundle/first-screen-B6LF5464.js +33 -0
- package/dist/bundle/{instructions-WNCGZ7OJ.js → instructions-OGKMROLD.js} +1 -1
- package/dist/bundle/mail.js +5 -5
- package/dist/bundle/{node-UIRGGMGT.js → node-HIKYE546.js} +2 -2
- package/dist/bundle/{node-sqlite-4ZM7OPRF.js → node-sqlite-3GJAG7VO.js} +5 -5
- package/dist/bundle/{oauth-5RAJZPBW.js → oauth-H3DB6IHI.js} +6 -6
- package/dist/bundle/{open-7ORCHOAI.js → open-DJ2PRG74.js} +4 -4
- package/dist/bundle/{openai-XSJNXJA7.js → openai-MDBRYB55.js} +12 -12
- package/dist/bundle/{process-ZLO72UVZ.js → process-4LBD72JH.js} +1 -1
- package/dist/bundle/{program-LBLGFZWU.js → program-F6WK6RX4.js} +3713 -2439
- package/dist/bundle/{prompt-IDUPCUGM.js → prompt-UNPUG6SO.js} +6 -4
- package/dist/bundle/{recognize-OS3EZKIM.js → recognize-DMIO4PDB.js} +3 -3
- package/dist/bundle/{remote-PF4LZR65.js → remote-24HJA72D.js} +6 -6
- package/dist/bundle/{rerank-CQNZF3JI.js → rerank-PTNCHHIU.js} +6 -6
- package/dist/bundle/{serve-Y2DDLGBT.js → serve-T6JHM2YD.js} +8 -8
- package/dist/bundle/{server-TVRT7YEY.js → server-BWEYRUR3.js} +36 -36
- package/dist/bundle/server-VUQNR5ZD.js +65 -0
- package/dist/bundle/{sqlite-runtime-5343C3OE.js → sqlite-runtime-ZJ4EH5ZM.js} +5 -5
- package/dist/bundle/{state-4GBTMPIV.js → state-KSN4OFYW.js} +5 -5
- package/dist/bundle/{store-OLBLTQPT.js → store-GVBW2ZFK.js} +24 -16
- package/dist/bundle/{store-QA6QJ5BB.js → store-OIEZJEA7.js} +31 -14
- package/dist/bundle/store-maintenance-command-KJ54HLUQ.js +54 -0
- package/dist/commands/account-remove.d.ts +3 -0
- package/dist/commands/account-remove.d.ts.map +1 -0
- package/dist/commands/account-remove.js +65 -0
- package/dist/commands/account-remove.js.map +1 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +3 -1
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +3 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +17 -4
- package/dist/commands/session-start.js.map +1 -1
- package/dist/mail/changes.d.ts +1 -0
- package/dist/mail/changes.d.ts.map +1 -1
- package/dist/mail/changes.js +1 -1
- package/dist/mail/changes.js.map +1 -1
- package/dist/providers.js +2 -2
- package/dist/providers.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-QPRXTLMD.js +0 -33
- package/dist/bundle/command-contract-Y4ZQAJEC.js +0 -35
- package/dist/bundle/first-screen-W6RWTAU7.js +0 -33
- package/dist/bundle/server-I3IALQMC.js +0 -65
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +0 -55
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B6GITVDX.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -23,16 +23,16 @@ import {
|
|
|
23
23
|
providerErrorKey,
|
|
24
24
|
renderEvent,
|
|
25
25
|
runContextOf
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
permissionCeiling
|
|
29
|
-
} from "./chunk-VDUGE6TH.js";
|
|
26
|
+
} from "./chunk-ZYHBMDNU.js";
|
|
30
27
|
import {
|
|
31
28
|
carries
|
|
32
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JO4BJYVE.js";
|
|
30
|
+
import {
|
|
31
|
+
permissionCeiling
|
|
32
|
+
} from "./chunk-FHCOGR7S.js";
|
|
33
33
|
import {
|
|
34
34
|
note
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SCH3NC5X.js";
|
|
36
36
|
import {
|
|
37
37
|
FACT_STATUSES,
|
|
38
38
|
LINK_KINDS,
|
|
@@ -59,8 +59,9 @@ import {
|
|
|
59
59
|
text,
|
|
60
60
|
time,
|
|
61
61
|
untrusted
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-B4MWHI2V.js";
|
|
63
63
|
import {
|
|
64
|
+
BUSINESS_KINDS,
|
|
64
65
|
DEAL_ROLES,
|
|
65
66
|
FACT_TYPES,
|
|
66
67
|
FIELD_TYPES,
|
|
@@ -88,21 +89,23 @@ import {
|
|
|
88
89
|
meetingStats,
|
|
89
90
|
meetingSummary,
|
|
90
91
|
meetingTranscript
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-TEL2OMS5.js";
|
|
92
93
|
import {
|
|
93
94
|
isCliFailure,
|
|
94
95
|
storeDamaged
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-6FSLEARF.js";
|
|
96
97
|
import {
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
readSharedSection,
|
|
99
|
+
sharedConfigPath,
|
|
100
|
+
writeSharedSection
|
|
101
|
+
} from "./chunk-ETIUB2DF.js";
|
|
99
102
|
import {
|
|
100
103
|
filesPresent,
|
|
101
104
|
sharedModelsDirectory
|
|
102
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-KJQZXCNK.js";
|
|
103
106
|
import {
|
|
104
107
|
storePath
|
|
105
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-5Y2WRUYP.js";
|
|
106
109
|
import {
|
|
107
110
|
configFilePath,
|
|
108
111
|
createRecordLog,
|
|
@@ -112,7 +115,7 @@ import {
|
|
|
112
115
|
saveConfigFile,
|
|
113
116
|
traceIdOf,
|
|
114
117
|
writeSecurely
|
|
115
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-LLYVBO3R.js";
|
|
116
119
|
import {
|
|
117
120
|
COMPACT_FLAG,
|
|
118
121
|
MAX_NEXT_STEPS,
|
|
@@ -155,6 +158,7 @@ import {
|
|
|
155
158
|
regex,
|
|
156
159
|
safeInteger,
|
|
157
160
|
safeParse,
|
|
161
|
+
startsWith,
|
|
158
162
|
stepOf,
|
|
159
163
|
strictObject,
|
|
160
164
|
string,
|
|
@@ -162,9 +166,10 @@ import {
|
|
|
162
166
|
union,
|
|
163
167
|
unknown,
|
|
164
168
|
unwrap,
|
|
169
|
+
url,
|
|
165
170
|
variant,
|
|
166
171
|
writes
|
|
167
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-GOMJNH56.js";
|
|
168
173
|
import {
|
|
169
174
|
CliError,
|
|
170
175
|
isCliError,
|
|
@@ -174,7 +179,7 @@ import {
|
|
|
174
179
|
__name
|
|
175
180
|
} from "./chunk-ZVVMGPBJ.js";
|
|
176
181
|
|
|
177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
178
183
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
179
184
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
180
185
|
const name = envName(app, "READ_ONLY");
|
|
@@ -3887,7 +3892,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3887
3892
|
}
|
|
3888
3893
|
}, "refuseJoinedPath");
|
|
3889
3894
|
|
|
3890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3891
3896
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3892
3897
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3893
3898
|
messageId: message2.id,
|
|
@@ -3993,7 +3998,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
3993
3998
|
}, "guardedWrite");
|
|
3994
3999
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
3995
4000
|
|
|
3996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3997
4002
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3998
4003
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3999
4004
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4176,7 +4181,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4176
4181
|
}
|
|
4177
4182
|
}, "withAbort");
|
|
4178
4183
|
|
|
4179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4180
4185
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4181
4186
|
import { join } from "node:path";
|
|
4182
4187
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4198,7 +4203,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4198
4203
|
}, "profilesWithAccounts");
|
|
4199
4204
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4200
4205
|
|
|
4201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4202
4207
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4203
4208
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4204
4209
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4241,7 +4246,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
4241
4246
|
};
|
|
4242
4247
|
}, "runBudget");
|
|
4243
4248
|
|
|
4244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4245
4250
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4246
4251
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4247
4252
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4275,7 +4280,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4275
4280
|
cache: "cache.answered"
|
|
4276
4281
|
};
|
|
4277
4282
|
|
|
4278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4279
4284
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4280
4285
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4281
4286
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4288,13 +4293,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4288
4293
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4289
4294
|
}), "snakeLogger");
|
|
4290
4295
|
|
|
4291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4292
4297
|
import { randomUUID } from "node:crypto";
|
|
4293
4298
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4294
4299
|
import { userInfo } from "node:os";
|
|
4295
4300
|
import { join as join2, sep } from "node:path";
|
|
4296
4301
|
|
|
4297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4298
4303
|
var diagnostic = {
|
|
4299
4304
|
event: true,
|
|
4300
4305
|
operation: true,
|
|
@@ -4364,7 +4369,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4364
4369
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4365
4370
|
].sort();
|
|
4366
4371
|
|
|
4367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4368
4373
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4369
4374
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4370
4375
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -4480,8 +4485,8 @@ var runtime = /* @__PURE__ */ __name(() => {
|
|
|
4480
4485
|
}, "runtime");
|
|
4481
4486
|
var newRunId = /* @__PURE__ */ __name((startedAt, command) => {
|
|
4482
4487
|
const stamp = startedAt.toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
|
|
4483
|
-
const
|
|
4484
|
-
return `${stamp}-${
|
|
4488
|
+
const slug2 = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
|
|
4489
|
+
return `${stamp}-${slug2}-${randomUUID().slice(0, 6)}`;
|
|
4485
4490
|
}, "newRunId");
|
|
4486
4491
|
var INDEX = "index.jsonl";
|
|
4487
4492
|
var appendIndex = /* @__PURE__ */ __name((dayDir, written) => {
|
|
@@ -4717,7 +4722,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
4717
4722
|
};
|
|
4718
4723
|
}, "metadataOf");
|
|
4719
4724
|
|
|
4720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
4721
4726
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4722
4727
|
import { randomBytes } from "node:crypto";
|
|
4723
4728
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -4736,7 +4741,7 @@ var currentRun = /* @__PURE__ */ __name(() => {
|
|
|
4736
4741
|
}, "currentRun");
|
|
4737
4742
|
var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
|
|
4738
4743
|
var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
|
|
4739
|
-
var typedCommand = /* @__PURE__ */ __name((tool,
|
|
4744
|
+
var typedCommand = /* @__PURE__ */ __name((tool, words2, profile = currentRun().profile) => [tool, profile, words2].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
|
|
4740
4745
|
var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
|
|
4741
4746
|
processScope = scope;
|
|
4742
4747
|
}, "useAsProcessRun");
|
|
@@ -4755,7 +4760,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
4755
4760
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
4756
4761
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
4757
4762
|
|
|
4758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4759
4764
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4760
4765
|
const recording = startRecording(options);
|
|
4761
4766
|
try {
|
|
@@ -4947,7 +4952,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4947
4952
|
return void 0;
|
|
4948
4953
|
}, "partialOutcome");
|
|
4949
4954
|
|
|
4950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4951
4956
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4952
4957
|
if (ms2 === void 0)
|
|
4953
4958
|
return body();
|
|
@@ -4973,7 +4978,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4973
4978
|
}
|
|
4974
4979
|
}, "withDeadline");
|
|
4975
4980
|
|
|
4976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4977
4982
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4978
4983
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4979
4984
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4999,19 +5004,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
4999
5004
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
5000
5005
|
}, "takesProfile");
|
|
5001
5006
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
5002
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
5007
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words2, valued = /* @__PURE__ */ new Set()) => {
|
|
5003
5008
|
let at2 = 0;
|
|
5004
5009
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
5005
5010
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
5006
5011
|
const first2 = argv[at2];
|
|
5007
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
5012
|
+
if (first2 === void 0 || first2.startsWith("-") || words2.has(first2))
|
|
5008
5013
|
return { rest: argv };
|
|
5009
5014
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
5010
5015
|
}, "liftProfile");
|
|
5011
5016
|
var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
|
|
5012
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
5013
|
-
if (
|
|
5014
|
-
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...
|
|
5017
|
+
var refuseCommandName = /* @__PURE__ */ __name((profile, words2, command) => {
|
|
5018
|
+
if (words2.has(profile)) {
|
|
5019
|
+
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words2].sort().join(", "));
|
|
5015
5020
|
}
|
|
5016
5021
|
}, "refuseCommandName");
|
|
5017
5022
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -5042,20 +5047,20 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5042
5047
|
return void 0;
|
|
5043
5048
|
}, "sampleCommand");
|
|
5044
5049
|
|
|
5045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5046
5051
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5047
5052
|
|
|
5048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5049
5054
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5050
5055
|
try {
|
|
5051
|
-
const
|
|
5052
|
-
return ["https:", "http:"].includes(
|
|
5056
|
+
const url3 = new URL(value);
|
|
5057
|
+
return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
|
|
5053
5058
|
} catch {
|
|
5054
5059
|
return false;
|
|
5055
5060
|
}
|
|
5056
5061
|
}, "endpoint");
|
|
5057
5062
|
|
|
5058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5059
5064
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5060
5065
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5061
5066
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5124,13 +5129,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5124
5129
|
};
|
|
5125
5130
|
}, "modelTarget");
|
|
5126
5131
|
|
|
5127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5128
5133
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5129
|
-
var
|
|
5134
|
+
var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5130
5135
|
var AI_FIELDS = {
|
|
5131
5136
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
5132
5137
|
embeddingModel: optional(model),
|
|
5133
|
-
embeddingBaseUrl: optional(
|
|
5138
|
+
embeddingBaseUrl: optional(url2),
|
|
5134
5139
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
5135
5140
|
models: optional(modelSettingsShape)
|
|
5136
5141
|
};
|
|
@@ -5168,7 +5173,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5168
5173
|
};
|
|
5169
5174
|
}, "resolveAISettings");
|
|
5170
5175
|
|
|
5171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5172
5177
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5173
5178
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5174
5179
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5182,14 +5187,16 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5182
5187
|
return ms2;
|
|
5183
5188
|
}, "parseDuration");
|
|
5184
5189
|
|
|
5185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5186
5191
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5187
5192
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5193
|
+
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
5188
5194
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
5189
5195
|
var TEXT_MODELS = [
|
|
5190
5196
|
{
|
|
5191
5197
|
id: "e5-small",
|
|
5192
5198
|
title: "multilingual-e5-small, 8-bit",
|
|
5199
|
+
size: "small",
|
|
5193
5200
|
languages: "about 100 languages, Russian and English among them",
|
|
5194
5201
|
licence: "MIT",
|
|
5195
5202
|
dims: 384,
|
|
@@ -5223,6 +5230,7 @@ var TEXT_MODELS = [
|
|
|
5223
5230
|
{
|
|
5224
5231
|
id: "embeddinggemma",
|
|
5225
5232
|
title: "EmbeddingGemma 300M, 4-bit",
|
|
5233
|
+
size: "medium",
|
|
5226
5234
|
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
5227
5235
|
licence: "Gemma Terms of Use",
|
|
5228
5236
|
terms: "https://ai.google.dev/gemma/terms",
|
|
@@ -5259,16 +5267,113 @@ var TEXT_MODELS = [
|
|
|
5259
5267
|
bytes: 1156830
|
|
5260
5268
|
}
|
|
5261
5269
|
]
|
|
5270
|
+
},
|
|
5271
|
+
{
|
|
5272
|
+
id: "e5-large",
|
|
5273
|
+
title: "multilingual-e5-large, 8-bit",
|
|
5274
|
+
size: "large",
|
|
5275
|
+
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
5276
|
+
licence: "MIT",
|
|
5277
|
+
dims: 1024,
|
|
5278
|
+
maxTokens: 512,
|
|
5279
|
+
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
5280
|
+
chunksPerSecond: 4,
|
|
5281
|
+
pooling: "mean",
|
|
5282
|
+
prefix: { query: "query: ", passage: "passage: " },
|
|
5283
|
+
onnx: "onnx/model_quantized.onnx",
|
|
5284
|
+
files: [
|
|
5285
|
+
{
|
|
5286
|
+
name: "onnx/model_quantized.onnx",
|
|
5287
|
+
url: e5Large("onnx/model_quantized.onnx"),
|
|
5288
|
+
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
5289
|
+
bytes: 561768762
|
|
5290
|
+
},
|
|
5291
|
+
{
|
|
5292
|
+
name: "tokenizer.json",
|
|
5293
|
+
url: e5Large("tokenizer.json"),
|
|
5294
|
+
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
5295
|
+
bytes: 17082660
|
|
5296
|
+
},
|
|
5297
|
+
{
|
|
5298
|
+
name: "tokenizer_config.json",
|
|
5299
|
+
url: e5Large("tokenizer_config.json"),
|
|
5300
|
+
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
5301
|
+
bytes: 418
|
|
5302
|
+
}
|
|
5303
|
+
]
|
|
5262
5304
|
}
|
|
5263
5305
|
];
|
|
5264
5306
|
var DEFAULT_TEXT_MODEL = "e5-small";
|
|
5265
|
-
var
|
|
5266
|
-
|
|
5307
|
+
var SECTION = "text_models";
|
|
5308
|
+
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
5309
|
+
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
5310
|
+
var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
|
|
5311
|
+
var modelFile = strictObject({
|
|
5312
|
+
name: fileName,
|
|
5313
|
+
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
5314
|
+
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
5315
|
+
bytes: pipe(number(), integer(), minValue(1))
|
|
5316
|
+
});
|
|
5317
|
+
var CustomTextModelShape = pipe(strictObject({
|
|
5318
|
+
id: slug,
|
|
5319
|
+
title: words,
|
|
5320
|
+
languages: words,
|
|
5321
|
+
licence: words,
|
|
5322
|
+
terms: optional(pipe(string(), url())),
|
|
5323
|
+
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
5324
|
+
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
5325
|
+
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
5326
|
+
pooling: picklist(["mean", "sentence_embedding"]),
|
|
5327
|
+
prefix: strictObject({
|
|
5328
|
+
query: pipe(string(), maxLength(200)),
|
|
5329
|
+
passage: pipe(string(), maxLength(200))
|
|
5330
|
+
}),
|
|
5331
|
+
onnx: fileName,
|
|
5332
|
+
externalData: optional(fileName),
|
|
5333
|
+
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
5334
|
+
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
5335
|
+
const names = model3.files.map(({ name }) => name);
|
|
5336
|
+
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
5337
|
+
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
5338
|
+
var TextModelsSection = strictObject({
|
|
5339
|
+
use: optional(slug),
|
|
5340
|
+
custom: optional(array(CustomTextModelShape))
|
|
5341
|
+
});
|
|
5342
|
+
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
5343
|
+
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
5344
|
+
const path2 = textModelsFile(env);
|
|
5345
|
+
const section = readSharedSection(path2, SECTION);
|
|
5346
|
+
if (section === void 0)
|
|
5347
|
+
return {};
|
|
5348
|
+
const checked = safeParse(TextModelsSection, section);
|
|
5349
|
+
if (!checked.success) {
|
|
5350
|
+
const issue = checked.issues[0];
|
|
5351
|
+
const at2 = issue ? getDotPath(issue) : null;
|
|
5352
|
+
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
5353
|
+
}
|
|
5354
|
+
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
5355
|
+
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
5356
|
+
if (twice)
|
|
5357
|
+
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
5358
|
+
return checked.output;
|
|
5359
|
+
}, "readTextModelsSection");
|
|
5360
|
+
var writeTextModelsSection = /* @__PURE__ */ __name((section, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section.use === void 0 && !section.custom?.length ? void 0 : section), "writeTextModelsSection");
|
|
5361
|
+
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
5362
|
+
...TEXT_MODELS,
|
|
5363
|
+
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
5364
|
+
], "textModels");
|
|
5365
|
+
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
5366
|
+
const known = textModels(env);
|
|
5367
|
+
const found = known.find((model3) => model3.id === id6);
|
|
5267
5368
|
if (!found) {
|
|
5268
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${
|
|
5369
|
+
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
5269
5370
|
}
|
|
5270
5371
|
return found;
|
|
5271
5372
|
}, "textModel");
|
|
5373
|
+
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
5374
|
+
const use = readTextModelsSection(env).use;
|
|
5375
|
+
return use === void 0 ? { id: DEFAULT_TEXT_MODEL, from: "default" } : { id: use, from: "chosen" };
|
|
5376
|
+
}, "chosenTextModel");
|
|
5272
5377
|
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
5273
5378
|
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
5274
5379
|
var RERANK_MODELS = [
|
|
@@ -5338,10 +5443,13 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5338
5443
|
}
|
|
5339
5444
|
return found;
|
|
5340
5445
|
}, "rerankModel");
|
|
5341
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) =>
|
|
5446
|
+
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
5447
|
+
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
5448
|
+
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
5449
|
+
}, "vectorModelKey");
|
|
5342
5450
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5343
5451
|
|
|
5344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5345
5453
|
var HISTORY_MAX_DAYS = 1095;
|
|
5346
5454
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5347
5455
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5388,7 +5496,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5388
5496
|
return { batch: { ...batch, messages }, skipped };
|
|
5389
5497
|
}, "limitBatch");
|
|
5390
5498
|
|
|
5391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5392
5500
|
import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
5393
5501
|
import { join as join3 } from "node:path";
|
|
5394
5502
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -5477,10 +5585,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
5477
5585
|
return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5478
5586
|
}, "registryProfiles");
|
|
5479
5587
|
|
|
5480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5481
5589
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5482
5590
|
|
|
5483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5484
5592
|
var REPAIR_WORDS = {
|
|
5485
5593
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5486
5594
|
comment: "a comment, which JSON does not allow",
|
|
@@ -5721,7 +5829,7 @@ ${parts.join(",\n")}
|
|
|
5721
5829
|
${indent}${close}`;
|
|
5722
5830
|
}, "serialise");
|
|
5723
5831
|
|
|
5724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5725
5833
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5726
5834
|
var SECTIONS = ["personal", "bot"];
|
|
5727
5835
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6015,7 +6123,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6015
6123
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6016
6124
|
}, "readConfigFile");
|
|
6017
6125
|
|
|
6018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6019
6127
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6020
6128
|
import { dirname, join as join4 } from "node:path";
|
|
6021
6129
|
var DEFAULT_CONFIG = {
|
|
@@ -6044,7 +6152,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6044
6152
|
}
|
|
6045
6153
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6046
6154
|
|
|
6047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6048
6156
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6049
6157
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6050
6158
|
const path2 = key.split(".");
|
|
@@ -6066,7 +6174,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6066
6174
|
return { config, added };
|
|
6067
6175
|
}, "withSettingDefaults");
|
|
6068
6176
|
|
|
6069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6070
6178
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6071
6179
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6072
6180
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6210,8 +6318,8 @@ var NoProfileHere = class extends CliError {
|
|
|
6210
6318
|
this.app = app;
|
|
6211
6319
|
}
|
|
6212
6320
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
6213
|
-
withoutSetup(
|
|
6214
|
-
const command =
|
|
6321
|
+
withoutSetup(words2) {
|
|
6322
|
+
const command = words2 ? `${this.app.command} personal ${words2}` : `${this.app.command} personal \u2026`;
|
|
6215
6323
|
return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
|
|
6216
6324
|
}
|
|
6217
6325
|
};
|
|
@@ -6576,7 +6684,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6576
6684
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6577
6685
|
}, "given");
|
|
6578
6686
|
|
|
6579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6580
6688
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
6581
6689
|
const { deadline, signal, app } = environmentOf(command);
|
|
6582
6690
|
const now = deadline?.();
|
|
@@ -6702,13 +6810,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
6702
6810
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
6703
6811
|
}, "inCommandRun");
|
|
6704
6812
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
6705
|
-
const
|
|
6813
|
+
const words2 = [];
|
|
6706
6814
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
6707
|
-
|
|
6708
|
-
return
|
|
6815
|
+
words2.unshift(current2.name());
|
|
6816
|
+
return words2.join(" ");
|
|
6709
6817
|
}, "commandPath");
|
|
6710
6818
|
|
|
6711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6712
6820
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6713
6821
|
var FETCH = { remote: "read", local: "write" };
|
|
6714
6822
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6799,10 +6907,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
6799
6907
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
6800
6908
|
}, "refuseStoreChange");
|
|
6801
6909
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
6802
|
-
const
|
|
6910
|
+
const words2 = [];
|
|
6803
6911
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
6804
|
-
|
|
6805
|
-
return
|
|
6912
|
+
words2.unshift(at2.name());
|
|
6913
|
+
return words2;
|
|
6806
6914
|
}, "pathOf");
|
|
6807
6915
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
6808
6916
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -6836,7 +6944,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6836
6944
|
throw readOnlyRefusal(lock, what);
|
|
6837
6945
|
}, "refuseUnderReadOnly");
|
|
6838
6946
|
|
|
6839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6840
6948
|
var account = strictObject({
|
|
6841
6949
|
provider: text,
|
|
6842
6950
|
id,
|
|
@@ -6846,7 +6954,7 @@ var account = strictObject({
|
|
|
6846
6954
|
scope: optional(picklist(["personal", "work"]))
|
|
6847
6955
|
});
|
|
6848
6956
|
|
|
6849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6850
6958
|
var accountSession = strictObject({
|
|
6851
6959
|
current: boolean(),
|
|
6852
6960
|
client: nullable(text),
|
|
@@ -6856,7 +6964,7 @@ var accountSession = strictObject({
|
|
|
6856
6964
|
created_at: optional(nullable(time))
|
|
6857
6965
|
});
|
|
6858
6966
|
|
|
6859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6860
6968
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6861
6969
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6862
6970
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6873,8 +6981,19 @@ var accountPrivacy = strictObject({
|
|
|
6873
6981
|
last_seen: optional(shownAudience)
|
|
6874
6982
|
});
|
|
6875
6983
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
6984
|
+
var removalKind = picklist(["sign_in", "keyring", "config", "file", "store", "unit", "schedule"]);
|
|
6985
|
+
var accountRemoval = strictObject({
|
|
6986
|
+
profile: text,
|
|
6987
|
+
data: picklist(["kept", "deleted"]),
|
|
6988
|
+
dry_run: boolean(),
|
|
6989
|
+
account: nullable(strictObject({ provider: text, account: text })),
|
|
6990
|
+
revoked: nullable(boolean()),
|
|
6991
|
+
config_file: text,
|
|
6992
|
+
removed: array(strictObject({ kind: removalKind, target: text })),
|
|
6993
|
+
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6994
|
+
});
|
|
6876
6995
|
|
|
6877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6878
6997
|
var accountProfile = strictObject({
|
|
6879
6998
|
profile: id,
|
|
6880
6999
|
current: boolean(),
|
|
@@ -6886,7 +7005,7 @@ var accountProfile = strictObject({
|
|
|
6886
7005
|
bot: optional(literal(true))
|
|
6887
7006
|
});
|
|
6888
7007
|
|
|
6889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6890
7009
|
var milliseconds = pipe(number(), minValue(0));
|
|
6891
7010
|
var counterReading = strictObject({
|
|
6892
7011
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6898,7 +7017,7 @@ var counterReading = strictObject({
|
|
|
6898
7017
|
});
|
|
6899
7018
|
var selection = record(string(), unknown());
|
|
6900
7019
|
|
|
6901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6902
7021
|
var adminRow = strictObject({
|
|
6903
7022
|
ref: reference,
|
|
6904
7023
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6951,7 +7070,7 @@ var adminReport = strictObject({
|
|
|
6951
7070
|
rows: array(adminRow)
|
|
6952
7071
|
});
|
|
6953
7072
|
|
|
6954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6955
7074
|
var closeSuggestion = strictObject({
|
|
6956
7075
|
as: picklist(["done", "dismissed"]),
|
|
6957
7076
|
/** The agent's name. */
|
|
@@ -7013,7 +7132,7 @@ var task = strictObject({
|
|
|
7013
7132
|
updated_at: optional(time)
|
|
7014
7133
|
});
|
|
7015
7134
|
|
|
7016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7017
7136
|
var agendaChat = strictObject({
|
|
7018
7137
|
chat: reference,
|
|
7019
7138
|
title: nullable(text),
|
|
@@ -7083,11 +7202,11 @@ var agenda = strictObject({
|
|
|
7083
7202
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7084
7203
|
});
|
|
7085
7204
|
|
|
7086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7087
7206
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7088
7207
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7089
7208
|
|
|
7090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7091
7210
|
var attachment = strictObject({
|
|
7092
7211
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7093
7212
|
message: optional(reference),
|
|
@@ -7125,7 +7244,7 @@ var attachment = strictObject({
|
|
|
7125
7244
|
});
|
|
7126
7245
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7127
7246
|
|
|
7128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7129
7248
|
var actionableError = objectWithRest({
|
|
7130
7249
|
code: text,
|
|
7131
7250
|
message: text,
|
|
@@ -7142,7 +7261,7 @@ var batchResult = strictObject({
|
|
|
7142
7261
|
max_error_percent: count
|
|
7143
7262
|
});
|
|
7144
7263
|
|
|
7145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7146
7265
|
var extractionItem = strictObject({
|
|
7147
7266
|
ref: reference,
|
|
7148
7267
|
attachment: count,
|
|
@@ -7175,7 +7294,7 @@ var extractionReport = strictObject({
|
|
|
7175
7294
|
cursor: optional(text)
|
|
7176
7295
|
});
|
|
7177
7296
|
|
|
7178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7179
7298
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7180
7299
|
var attachmentBytes = strictObject({
|
|
7181
7300
|
ref: reference,
|
|
@@ -7203,7 +7322,7 @@ var attachmentTextChange = strictObject({
|
|
|
7203
7322
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7204
7323
|
});
|
|
7205
7324
|
|
|
7206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7207
7326
|
var chart = strictObject({
|
|
7208
7327
|
version: literal(1),
|
|
7209
7328
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7218,7 +7337,7 @@ var chart = strictObject({
|
|
|
7218
7337
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7219
7338
|
});
|
|
7220
7339
|
|
|
7221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7222
7341
|
var member = strictObject({
|
|
7223
7342
|
id,
|
|
7224
7343
|
name: nullable(text),
|
|
@@ -7241,7 +7360,7 @@ var member = strictObject({
|
|
|
7241
7360
|
check: optional(record(string(), unknown()))
|
|
7242
7361
|
});
|
|
7243
7362
|
|
|
7244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7245
7364
|
var setting = optional(nullable(boolean()));
|
|
7246
7365
|
var chat = strictObject({
|
|
7247
7366
|
ref: reference,
|
|
@@ -7282,7 +7401,7 @@ var chat = strictObject({
|
|
|
7282
7401
|
members: optional(array(member))
|
|
7283
7402
|
});
|
|
7284
7403
|
|
|
7285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7286
7405
|
var named = strictObject({
|
|
7287
7406
|
id,
|
|
7288
7407
|
title: nullable(text),
|
|
@@ -7305,7 +7424,7 @@ var folder = strictObject({
|
|
|
7305
7424
|
excluded_chats: optional(array(named))
|
|
7306
7425
|
});
|
|
7307
7426
|
|
|
7308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7309
7428
|
var inviteLink = strictObject({
|
|
7310
7429
|
link: text,
|
|
7311
7430
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7321,7 +7440,7 @@ var inviteLink = strictObject({
|
|
|
7321
7440
|
joined_count: optional(count)
|
|
7322
7441
|
});
|
|
7323
7442
|
|
|
7324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7325
7444
|
var operated = { operation_id: id, chat_id: id };
|
|
7326
7445
|
var group = strictObject({
|
|
7327
7446
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7401,7 +7520,7 @@ var chatFolderOrder = strictObject({
|
|
|
7401
7520
|
folders: array(strictObject({ id, title: text }))
|
|
7402
7521
|
});
|
|
7403
7522
|
|
|
7404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7405
7524
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7406
7525
|
var chatRemoval = strictObject(operated2);
|
|
7407
7526
|
var chatMuting = strictObject({
|
|
@@ -7412,7 +7531,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7412
7531
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7413
7532
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7414
7533
|
|
|
7415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7416
7535
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7417
7536
|
var chatEvent = strictObject({
|
|
7418
7537
|
chat_id: id,
|
|
@@ -7429,7 +7548,7 @@ var chatEvent = strictObject({
|
|
|
7429
7548
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7430
7549
|
});
|
|
7431
7550
|
|
|
7432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7433
7552
|
var chatMetadata = strictObject({
|
|
7434
7553
|
chat_id: id,
|
|
7435
7554
|
title: nullable(text),
|
|
@@ -7444,7 +7563,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7444
7563
|
has_more: boolean()
|
|
7445
7564
|
});
|
|
7446
7565
|
|
|
7447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7448
7567
|
var action = picklist(["report", "delete", "remove"]);
|
|
7449
7568
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7450
7569
|
var chatRules = strictObject({
|
|
@@ -7481,7 +7600,7 @@ var chatModeration = strictObject({
|
|
|
7481
7600
|
}))
|
|
7482
7601
|
});
|
|
7483
7602
|
|
|
7484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7485
7604
|
var optionalCount = optional(count);
|
|
7486
7605
|
var minutes = nullable(number());
|
|
7487
7606
|
var chatStats = strictObject({
|
|
@@ -7555,7 +7674,7 @@ var taskStats = strictObject({
|
|
|
7555
7674
|
}))
|
|
7556
7675
|
});
|
|
7557
7676
|
|
|
7558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7559
7678
|
var memberCount = strictObject({
|
|
7560
7679
|
day: pipe(text, isoDate()),
|
|
7561
7680
|
participants: nullable(count),
|
|
@@ -7578,7 +7697,7 @@ var chatTracking = strictObject({
|
|
|
7578
7697
|
tracked: boolean()
|
|
7579
7698
|
});
|
|
7580
7699
|
|
|
7581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7582
7701
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7583
7702
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7584
7703
|
var profileFields = {
|
|
@@ -7616,7 +7735,7 @@ var profileFields = {
|
|
|
7616
7735
|
}))
|
|
7617
7736
|
};
|
|
7618
7737
|
|
|
7619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7620
7739
|
var contact = strictObject({
|
|
7621
7740
|
ref: reference,
|
|
7622
7741
|
id,
|
|
@@ -7647,7 +7766,7 @@ var contact = strictObject({
|
|
|
7647
7766
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7648
7767
|
});
|
|
7649
7768
|
|
|
7650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7651
7770
|
var WEIGHTS = {
|
|
7652
7771
|
bot: 3,
|
|
7653
7772
|
scam: 3,
|
|
@@ -7672,7 +7791,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7672
7791
|
var DIGITS = /\d{5,}/;
|
|
7673
7792
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7674
7793
|
|
|
7675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7676
7795
|
var linkedIdentity = strictObject({
|
|
7677
7796
|
provider: text,
|
|
7678
7797
|
id,
|
|
@@ -7714,7 +7833,7 @@ var contactCheck = strictObject({
|
|
|
7714
7833
|
checked_at: time
|
|
7715
7834
|
});
|
|
7716
7835
|
|
|
7717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7718
7837
|
var quoted = strictObject({
|
|
7719
7838
|
id,
|
|
7720
7839
|
sender_id: nullable(id),
|
|
@@ -7833,7 +7952,7 @@ var message = strictObject({
|
|
|
7833
7952
|
provider_metadata: providerMetadata
|
|
7834
7953
|
});
|
|
7835
7954
|
|
|
7836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7837
7956
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7838
7957
|
var contextMessage = strictObject({
|
|
7839
7958
|
locator: reference,
|
|
@@ -8033,7 +8152,7 @@ var contactPreparation = strictObject({
|
|
|
8033
8152
|
})
|
|
8034
8153
|
});
|
|
8035
8154
|
|
|
8036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8037
8156
|
var contactNote = strictObject({
|
|
8038
8157
|
id,
|
|
8039
8158
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8045,13 +8164,13 @@ var contactNote = strictObject({
|
|
|
8045
8164
|
updated_at: time
|
|
8046
8165
|
});
|
|
8047
8166
|
|
|
8048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8049
8168
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8050
8169
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8051
8170
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8052
8171
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8053
8172
|
|
|
8054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8055
8174
|
var conversation = strictObject({
|
|
8056
8175
|
id,
|
|
8057
8176
|
chat: reference,
|
|
@@ -8066,7 +8185,7 @@ var conversation = strictObject({
|
|
|
8066
8185
|
rules_version: count
|
|
8067
8186
|
});
|
|
8068
8187
|
|
|
8069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8070
8189
|
var conversationBuild = strictObject({
|
|
8071
8190
|
chat: id,
|
|
8072
8191
|
messages: count,
|
|
@@ -8091,7 +8210,7 @@ var catchUpPreparation = strictObject({
|
|
|
8091
8210
|
prepared: optional(conversationPreparation)
|
|
8092
8211
|
});
|
|
8093
8212
|
|
|
8094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8095
8214
|
var conversationDetails = union([
|
|
8096
8215
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8097
8216
|
message
|
|
@@ -8181,7 +8300,7 @@ var conversationHit = strictObject({
|
|
|
8181
8300
|
stale: boolean()
|
|
8182
8301
|
});
|
|
8183
8302
|
|
|
8184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8185
8304
|
var counters = strictObject({
|
|
8186
8305
|
cutoff: time,
|
|
8187
8306
|
max_age_ms: milliseconds,
|
|
@@ -8211,7 +8330,7 @@ var counterRefresh = strictObject({
|
|
|
8211
8330
|
complete: optional(boolean())
|
|
8212
8331
|
});
|
|
8213
8332
|
|
|
8214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8215
8334
|
var nullableText = nullable(text);
|
|
8216
8335
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8217
8336
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -8301,7 +8420,7 @@ var stage = strictObject({
|
|
|
8301
8420
|
untrusted
|
|
8302
8421
|
});
|
|
8303
8422
|
|
|
8304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8305
8424
|
var document = strictObject({
|
|
8306
8425
|
ref: reference,
|
|
8307
8426
|
id,
|
|
@@ -8316,7 +8435,7 @@ var document = strictObject({
|
|
|
8316
8435
|
owners: optional(array(text))
|
|
8317
8436
|
});
|
|
8318
8437
|
|
|
8319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8320
8439
|
var documentLink = strictObject({
|
|
8321
8440
|
ref: reference,
|
|
8322
8441
|
url: text,
|
|
@@ -8327,7 +8446,7 @@ var documentLink = strictObject({
|
|
|
8327
8446
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8328
8447
|
});
|
|
8329
8448
|
|
|
8330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8331
8450
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8332
8451
|
var contribution = strictObject({
|
|
8333
8452
|
message: evidenceMessage,
|
|
@@ -8357,7 +8476,7 @@ var retentionStay = strictObject({
|
|
|
8357
8476
|
});
|
|
8358
8477
|
var evidence = union([contribution, retentionStay]);
|
|
8359
8478
|
|
|
8360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8361
8480
|
var fact = strictObject({
|
|
8362
8481
|
ref: reference,
|
|
8363
8482
|
id,
|
|
@@ -8387,9 +8506,9 @@ var fact = strictObject({
|
|
|
8387
8506
|
updated_at: time
|
|
8388
8507
|
});
|
|
8389
8508
|
|
|
8390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8391
8510
|
var hit = strictObject({
|
|
8392
|
-
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8511
|
+
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
8393
8512
|
ref: reference,
|
|
8394
8513
|
provider: text,
|
|
8395
8514
|
url: optional(text),
|
|
@@ -8419,13 +8538,17 @@ var hit = strictObject({
|
|
|
8419
8538
|
lines_total: optional(count),
|
|
8420
8539
|
/** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
|
|
8421
8540
|
id: optional(pipe(string(), minLength(1))),
|
|
8541
|
+
/** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
|
|
8542
|
+
review: optional(picklist(["proposed", "confirmed"])),
|
|
8543
|
+
/** A business hit's record in the import that made it; absent for one the owner or an agent wrote. */
|
|
8544
|
+
source_record: optional(strictObject({ provider: text, account: text, external_id: text })),
|
|
8422
8545
|
/** A message's files; absent when it has none. */
|
|
8423
8546
|
attachments: optional(array(hitFile)),
|
|
8424
8547
|
/** Absent on a note hit: the owner wrote it. */
|
|
8425
8548
|
untrusted
|
|
8426
8549
|
});
|
|
8427
8550
|
|
|
8428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8429
8552
|
var identity = strictObject({
|
|
8430
8553
|
ref: reference,
|
|
8431
8554
|
provider: text,
|
|
@@ -8438,7 +8561,7 @@ var identity = strictObject({
|
|
|
8438
8561
|
person: optional(nullable(reference))
|
|
8439
8562
|
});
|
|
8440
8563
|
|
|
8441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8442
8565
|
var imageEmbedding = strictObject({
|
|
8443
8566
|
model: text,
|
|
8444
8567
|
embedded: count,
|
|
@@ -8447,13 +8570,13 @@ var imageEmbedding = strictObject({
|
|
|
8447
8570
|
more: boolean()
|
|
8448
8571
|
});
|
|
8449
8572
|
|
|
8450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8451
8574
|
import { spawn } from "node:child_process";
|
|
8452
8575
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8453
8576
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8454
8577
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8455
8578
|
|
|
8456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8457
8580
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8458
8581
|
const total = input.total ?? null;
|
|
8459
8582
|
const updated = input.updatedAt ?? null;
|
|
@@ -8469,7 +8592,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8469
8592
|
};
|
|
8470
8593
|
}, "progressOf");
|
|
8471
8594
|
|
|
8472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8473
8596
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8474
8597
|
const run = currentRun();
|
|
8475
8598
|
const trace = traceId ?? run.traceId;
|
|
@@ -8483,7 +8606,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8483
8606
|
}));
|
|
8484
8607
|
}, "recordLogFor");
|
|
8485
8608
|
|
|
8486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8487
8610
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8488
8611
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8489
8612
|
const out = openSync(log, "a", 384);
|
|
@@ -8638,7 +8761,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8638
8761
|
return { job: id6, pid, chat: input.chat, log };
|
|
8639
8762
|
}, "startArchiveJob");
|
|
8640
8763
|
|
|
8641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8642
8765
|
var problem = strictObject({ code: text, message: text });
|
|
8643
8766
|
var job = strictObject({
|
|
8644
8767
|
id,
|
|
@@ -8661,7 +8784,7 @@ var job = strictObject({
|
|
|
8661
8784
|
error: optional(problem)
|
|
8662
8785
|
});
|
|
8663
8786
|
|
|
8664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8665
8788
|
var joinRequest = strictObject({
|
|
8666
8789
|
person_id: id,
|
|
8667
8790
|
name: nullable(text),
|
|
@@ -8672,7 +8795,7 @@ var joinRequest = strictObject({
|
|
|
8672
8795
|
about: optional(text)
|
|
8673
8796
|
});
|
|
8674
8797
|
|
|
8675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8676
8799
|
var botProfile = strictObject({
|
|
8677
8800
|
name: text,
|
|
8678
8801
|
token: text,
|
|
@@ -8765,7 +8888,7 @@ var stickerInventory = strictObject({
|
|
|
8765
8888
|
url: optional(nullable(text))
|
|
8766
8889
|
});
|
|
8767
8890
|
|
|
8768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8769
8892
|
var pollVote = strictObject({
|
|
8770
8893
|
person_id: id,
|
|
8771
8894
|
name: nullable(text),
|
|
@@ -8775,7 +8898,7 @@ var pollVote = strictObject({
|
|
|
8775
8898
|
voted_at: time
|
|
8776
8899
|
});
|
|
8777
8900
|
|
|
8778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8779
8902
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8780
8903
|
var observation = strictObject({
|
|
8781
8904
|
value: pipe(number(), minValue(0)),
|
|
@@ -8817,7 +8940,7 @@ var serveSummary = strictObject({
|
|
|
8817
8940
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8818
8941
|
});
|
|
8819
8942
|
|
|
8820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8821
8944
|
var mailCounts = strictObject({
|
|
8822
8945
|
by: picklist(["day", "week", "sender"]),
|
|
8823
8946
|
received: count,
|
|
@@ -8832,7 +8955,7 @@ var mailCounts = strictObject({
|
|
|
8832
8955
|
}))
|
|
8833
8956
|
});
|
|
8834
8957
|
|
|
8835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8836
8959
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8837
8960
|
var base = { id, evidence: array(evidence2) };
|
|
8838
8961
|
var finding = variant("kind", [
|
|
@@ -8976,7 +9099,7 @@ var mailFindings = strictObject({
|
|
|
8976
9099
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8977
9100
|
});
|
|
8978
9101
|
|
|
8979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8980
9103
|
var mediaArchive = strictObject({
|
|
8981
9104
|
directory: text,
|
|
8982
9105
|
chats: count,
|
|
@@ -9008,7 +9131,7 @@ var mediaArchiveTimer = union([
|
|
|
9008
9131
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9009
9132
|
]);
|
|
9010
9133
|
|
|
9011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9012
9135
|
var preparationId = pipe(string(), minLength(1));
|
|
9013
9136
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9014
9137
|
var preparationTime = nullable(isoTime);
|
|
@@ -9100,7 +9223,7 @@ var preparationMeeting = strictObject({
|
|
|
9100
9223
|
updated_at: isoTime
|
|
9101
9224
|
});
|
|
9102
9225
|
|
|
9103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9104
9227
|
var meetingEvidence = preparationEvidence;
|
|
9105
9228
|
var meetingPersonContext = strictObject({
|
|
9106
9229
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9122,7 +9245,7 @@ var meetingPersonContext = strictObject({
|
|
|
9122
9245
|
})
|
|
9123
9246
|
});
|
|
9124
9247
|
|
|
9125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9126
9249
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9127
9250
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9128
9251
|
var finding2 = variant("kind", [
|
|
@@ -9160,7 +9283,7 @@ var meetingFindings = strictObject({
|
|
|
9160
9283
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9161
9284
|
});
|
|
9162
9285
|
|
|
9163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9164
9287
|
var communicationCoverage = strictObject({
|
|
9165
9288
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9166
9289
|
query: string(),
|
|
@@ -9205,7 +9328,7 @@ var preparationCommunications = strictObject({
|
|
|
9205
9328
|
}))
|
|
9206
9329
|
});
|
|
9207
9330
|
|
|
9208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9209
9332
|
var meetingPreparation = strictObject({
|
|
9210
9333
|
communications: optional(preparationCommunications),
|
|
9211
9334
|
schema_version: literal(1),
|
|
@@ -9318,7 +9441,7 @@ var meetingPreparation = strictObject({
|
|
|
9318
9441
|
})
|
|
9319
9442
|
});
|
|
9320
9443
|
|
|
9321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9322
9445
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9323
9446
|
var id3 = pipe(string(), minLength(1));
|
|
9324
9447
|
var text3 = string();
|
|
@@ -9382,7 +9505,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9382
9505
|
})
|
|
9383
9506
|
});
|
|
9384
9507
|
|
|
9385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9386
9509
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9387
9510
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9388
9511
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9412,7 +9535,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9412
9535
|
})
|
|
9413
9536
|
});
|
|
9414
9537
|
|
|
9415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9416
9539
|
var text4 = string();
|
|
9417
9540
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9418
9541
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9429,7 +9552,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9429
9552
|
persistence: literal("proposal-only")
|
|
9430
9553
|
});
|
|
9431
9554
|
|
|
9432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9433
9556
|
var memory = strictObject({
|
|
9434
9557
|
ref: reference,
|
|
9435
9558
|
id,
|
|
@@ -9456,7 +9579,7 @@ var memory = strictObject({
|
|
|
9456
9579
|
updated_at: time
|
|
9457
9580
|
});
|
|
9458
9581
|
|
|
9459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9460
9583
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9461
9584
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9462
9585
|
var mention = strictObject({
|
|
@@ -9499,13 +9622,13 @@ var mentionRebuild = strictObject({
|
|
|
9499
9622
|
mentions: count
|
|
9500
9623
|
});
|
|
9501
9624
|
|
|
9502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9503
9626
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9504
9627
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9505
9628
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9506
9629
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9507
9630
|
|
|
9508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9509
9632
|
var messageTranscript = strictObject({
|
|
9510
9633
|
message_id: id,
|
|
9511
9634
|
text,
|
|
@@ -9563,7 +9686,7 @@ var evidencePacket = strictObject({
|
|
|
9563
9686
|
}))
|
|
9564
9687
|
});
|
|
9565
9688
|
|
|
9566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9567
9690
|
var messageThread = strictObject({
|
|
9568
9691
|
ref: reference,
|
|
9569
9692
|
chat: id,
|
|
@@ -9580,7 +9703,7 @@ var messageThread = strictObject({
|
|
|
9580
9703
|
});
|
|
9581
9704
|
var messageContext = union([message, messageThread]);
|
|
9582
9705
|
|
|
9583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9584
9707
|
var messageCounts = strictObject({
|
|
9585
9708
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9586
9709
|
total: count,
|
|
@@ -9593,7 +9716,7 @@ var messageCounts = strictObject({
|
|
|
9593
9716
|
}))
|
|
9594
9717
|
});
|
|
9595
9718
|
|
|
9596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9597
9720
|
var messageLink = strictObject({
|
|
9598
9721
|
ref: reference,
|
|
9599
9722
|
url: nullable(text),
|
|
@@ -9610,7 +9733,7 @@ var messageLink = strictObject({
|
|
|
9610
9733
|
})))
|
|
9611
9734
|
});
|
|
9612
9735
|
|
|
9613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9614
9737
|
var savedMessageFile = strictObject({
|
|
9615
9738
|
kind: text,
|
|
9616
9739
|
path: text,
|
|
@@ -9697,7 +9820,7 @@ var messageSyncAll = strictObject({
|
|
|
9697
9820
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9698
9821
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9699
9822
|
|
|
9700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9701
9824
|
var messageWrite = strictObject({
|
|
9702
9825
|
operation_id: id,
|
|
9703
9826
|
message,
|
|
@@ -9712,7 +9835,7 @@ var draftWrite = strictObject({
|
|
|
9712
9835
|
});
|
|
9713
9836
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9714
9837
|
|
|
9715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9716
9839
|
var model2 = strictObject({
|
|
9717
9840
|
id,
|
|
9718
9841
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9720,16 +9843,34 @@ var model2 = strictObject({
|
|
|
9720
9843
|
/** Which languages it reads, in words. */
|
|
9721
9844
|
languages: text,
|
|
9722
9845
|
licence: optional(text),
|
|
9846
|
+
/** A text model's licence terms to accept with `models download --accept-terms`. */
|
|
9847
|
+
terms: optional(text),
|
|
9848
|
+
/** A text model's size next to the others: small is fastest, large reads best. */
|
|
9849
|
+
size: optional(picklist(["small", "medium", "large"])),
|
|
9850
|
+
/** A text model's vector length. */
|
|
9851
|
+
dims: optional(count),
|
|
9852
|
+
/** About how many chunks a second a text model embeds here, when measured. */
|
|
9853
|
+
chunks_per_second: optional(number()),
|
|
9854
|
+
/** A text model the owner added with `models add`. */
|
|
9855
|
+
custom: optional(boolean()),
|
|
9723
9856
|
/** What its files take on disk once downloaded. */
|
|
9724
9857
|
size_bytes: count,
|
|
9725
9858
|
downloaded: boolean(),
|
|
9726
|
-
/** The one used when no model is named. */
|
|
9859
|
+
/** The one used when no model is named: for text, the one `models use` chose. */
|
|
9727
9860
|
default: boolean(),
|
|
9728
9861
|
/** The folder its files are in once downloaded, so an agent can place them by hand. */
|
|
9729
9862
|
path: text
|
|
9730
9863
|
});
|
|
9864
|
+
var chosenModel = strictObject({
|
|
9865
|
+
...model2.entries,
|
|
9866
|
+
previous: id,
|
|
9867
|
+
/** Chunk texts the previous model has vectors for and this one has not; `null` when no store is there to count. */
|
|
9868
|
+
to_embed: nullable(count),
|
|
9869
|
+
/** Embedding time alone at the model's speed, done a part per sync; `null` when the speed or the count is unknown. */
|
|
9870
|
+
estimate_seconds: nullable(count)
|
|
9871
|
+
});
|
|
9731
9872
|
|
|
9732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9733
9874
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9734
9875
|
var modelKey = strictObject({
|
|
9735
9876
|
provider: text,
|
|
@@ -9739,7 +9880,7 @@ var modelKey = strictObject({
|
|
|
9739
9880
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9740
9881
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9741
9882
|
|
|
9742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9743
9884
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9744
9885
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9745
9886
|
var graph = strictObject({
|
|
@@ -9773,14 +9914,14 @@ var officialStats = strictObject({
|
|
|
9773
9914
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9774
9915
|
});
|
|
9775
9916
|
|
|
9776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9777
9918
|
var person2 = strictObject({
|
|
9778
9919
|
ref: reference,
|
|
9779
9920
|
name: nullable(text),
|
|
9780
9921
|
identities: optional(array(identity))
|
|
9781
9922
|
});
|
|
9782
9923
|
|
|
9783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9784
9925
|
var poll = strictObject({
|
|
9785
9926
|
chat_id: id,
|
|
9786
9927
|
message_id: id,
|
|
@@ -9796,11 +9937,11 @@ var poll = strictObject({
|
|
|
9796
9937
|
});
|
|
9797
9938
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9798
9939
|
|
|
9799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9800
9941
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9801
9942
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9802
9943
|
|
|
9803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9804
9945
|
var figures = record(string(), number());
|
|
9805
9946
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9806
9947
|
var rankingRow = strictObject({
|
|
@@ -9847,7 +9988,7 @@ var ranking = strictObject({
|
|
|
9847
9988
|
rows: array(rankingRow)
|
|
9848
9989
|
});
|
|
9849
9990
|
|
|
9850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9851
9992
|
var reaction = strictObject({
|
|
9852
9993
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9853
9994
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9855,7 +9996,7 @@ var reaction = strictObject({
|
|
|
9855
9996
|
reacted_at: time
|
|
9856
9997
|
});
|
|
9857
9998
|
|
|
9858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9859
10000
|
var reactionChange = strictObject({
|
|
9860
10001
|
operation_id: id,
|
|
9861
10002
|
chat_id: id,
|
|
@@ -9863,7 +10004,7 @@ var reactionChange = strictObject({
|
|
|
9863
10004
|
reaction: nullable(text)
|
|
9864
10005
|
});
|
|
9865
10006
|
|
|
9866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9867
10008
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9868
10009
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9869
10010
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9874,7 +10015,7 @@ var recipientChange = strictObject({
|
|
|
9874
10015
|
...partial(recipientOff).entries
|
|
9875
10016
|
});
|
|
9876
10017
|
|
|
9877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9878
10019
|
var events = array(record(string(), unknown()));
|
|
9879
10020
|
var recordedRun = strictObject({
|
|
9880
10021
|
run_id: id,
|
|
@@ -9946,7 +10087,7 @@ var runHit = strictObject({
|
|
|
9946
10087
|
});
|
|
9947
10088
|
var runLocation = strictObject({ path: text });
|
|
9948
10089
|
|
|
9949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9950
10091
|
var relationship = strictObject({
|
|
9951
10092
|
id,
|
|
9952
10093
|
from: reference,
|
|
@@ -9969,7 +10110,7 @@ var relationship = strictObject({
|
|
|
9969
10110
|
created_at: time
|
|
9970
10111
|
});
|
|
9971
10112
|
|
|
9972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9973
10114
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9974
10115
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9975
10116
|
var responseTimes = strictObject({
|
|
@@ -9986,7 +10127,7 @@ var waitingChats = strictObject({
|
|
|
9986
10127
|
by_kind: strictObject({ private: count, group: count })
|
|
9987
10128
|
});
|
|
9988
10129
|
|
|
9989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9990
10131
|
var retentionCohort = strictObject({
|
|
9991
10132
|
/** The first day of the joining day or week. */
|
|
9992
10133
|
cohort: text,
|
|
@@ -10034,7 +10175,7 @@ var retention = strictObject({
|
|
|
10034
10175
|
rows: array(retentionCohort)
|
|
10035
10176
|
});
|
|
10036
10177
|
|
|
10037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10038
10179
|
var savedSearch = strictObject({
|
|
10039
10180
|
id,
|
|
10040
10181
|
/** `null` for a run in the history. */
|
|
@@ -10051,7 +10192,7 @@ var savedSearch = strictObject({
|
|
|
10051
10192
|
});
|
|
10052
10193
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10053
10194
|
|
|
10054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10055
10196
|
var sendAttempt = strictObject({
|
|
10056
10197
|
at: time,
|
|
10057
10198
|
profile: text,
|
|
@@ -10079,7 +10220,7 @@ var sendAttempt = strictObject({
|
|
|
10079
10220
|
error_code: optional(text)
|
|
10080
10221
|
});
|
|
10081
10222
|
|
|
10082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10083
10224
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10084
10225
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10085
10226
|
var infoSchema = strictObject({
|
|
@@ -10300,7 +10441,7 @@ var storeRepair = union([
|
|
|
10300
10441
|
]);
|
|
10301
10442
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10302
10443
|
|
|
10303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10304
10445
|
var range = strictObject({ from: number(), to: number() });
|
|
10305
10446
|
var storeChatStatus = strictObject({
|
|
10306
10447
|
chat_id: id,
|
|
@@ -10398,7 +10539,7 @@ var storeJobRetry = union([
|
|
|
10398
10539
|
]);
|
|
10399
10540
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10400
10541
|
|
|
10401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10402
10543
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10403
10544
|
var storeTable = strictObject({
|
|
10404
10545
|
name: text,
|
|
@@ -10407,7 +10548,7 @@ var storeTable = strictObject({
|
|
|
10407
10548
|
bytes: optional(nullable(count))
|
|
10408
10549
|
});
|
|
10409
10550
|
|
|
10410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10411
10552
|
var tagTarget = variant("type", [
|
|
10412
10553
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10413
10554
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10438,7 +10579,7 @@ var automaticTags = strictObject({
|
|
|
10438
10579
|
dry_run: boolean()
|
|
10439
10580
|
});
|
|
10440
10581
|
|
|
10441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10442
10583
|
var tagging = strictObject({
|
|
10443
10584
|
tag: text,
|
|
10444
10585
|
type: picklist(TAG_TYPES),
|
|
@@ -10451,7 +10592,7 @@ var tagging = strictObject({
|
|
|
10451
10592
|
created_at: time
|
|
10452
10593
|
});
|
|
10453
10594
|
|
|
10454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10455
10596
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10456
10597
|
var taskPair = strictObject({
|
|
10457
10598
|
task: nullable(side),
|
|
@@ -10474,7 +10615,7 @@ var taskPair = strictObject({
|
|
|
10474
10615
|
created_at: time
|
|
10475
10616
|
});
|
|
10476
10617
|
|
|
10477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10478
10619
|
var nullableTime = nullable(time);
|
|
10479
10620
|
var link = strictObject({
|
|
10480
10621
|
id,
|
|
@@ -10648,7 +10789,7 @@ var taskReview = strictObject({
|
|
|
10648
10789
|
untrusted
|
|
10649
10790
|
});
|
|
10650
10791
|
|
|
10651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10652
10793
|
var topic = strictObject({
|
|
10653
10794
|
id,
|
|
10654
10795
|
title: text,
|
|
@@ -10662,7 +10803,7 @@ var topic = strictObject({
|
|
|
10662
10803
|
untrusted
|
|
10663
10804
|
});
|
|
10664
10805
|
|
|
10665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10666
10807
|
var ENTITIES = {
|
|
10667
10808
|
sync_progress: progress,
|
|
10668
10809
|
deal,
|
|
@@ -10750,6 +10891,7 @@ var ENTITIES = {
|
|
|
10750
10891
|
account_session: accountSession,
|
|
10751
10892
|
account_change: accountChange,
|
|
10752
10893
|
ended_account_sessions: endedAccountSessions,
|
|
10894
|
+
account_removal: accountRemoval,
|
|
10753
10895
|
account_privacy: accountPrivacy,
|
|
10754
10896
|
account_privacy_change: accountPrivacyChange,
|
|
10755
10897
|
account_profile: accountProfile,
|
|
@@ -10904,6 +11046,7 @@ var ENTITIES = {
|
|
|
10904
11046
|
chat_folder_order: chatFolderOrder,
|
|
10905
11047
|
chat_rules: chatRules,
|
|
10906
11048
|
chat_moderation: chatModeration,
|
|
11049
|
+
"model.chosen": chosenModel,
|
|
10907
11050
|
model_key: modelKey,
|
|
10908
11051
|
"model_key.stored": storedModelKey,
|
|
10909
11052
|
"model_key.removed": removedModelKey,
|
|
@@ -10948,7 +11091,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10948
11091
|
return [name, definition];
|
|
10949
11092
|
})), "entityDefinitions");
|
|
10950
11093
|
|
|
10951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10952
11095
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10953
11096
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10954
11097
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10982,7 +11125,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10982
11125
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10983
11126
|
}, "answerRow");
|
|
10984
11127
|
|
|
10985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10986
11129
|
import { join as join6 } from "node:path";
|
|
10987
11130
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10988
11131
|
var IMAGE_MODELS = [
|
|
@@ -11036,7 +11179,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11036
11179
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11037
11180
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11038
11181
|
|
|
11039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11040
11183
|
var STEPS2 = defineSteps([
|
|
11041
11184
|
...STEPS,
|
|
11042
11185
|
{
|
|
@@ -11270,10 +11413,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11270
11413
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11271
11414
|
return stepOf(definition, { ...input, args });
|
|
11272
11415
|
}, "nextStep");
|
|
11273
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
11416
|
+
var lineOf = /* @__PURE__ */ __name((command, words2) => {
|
|
11274
11417
|
const root = rootOf2(command);
|
|
11275
11418
|
const profile = root.getOptionValue("profile");
|
|
11276
|
-
return typedCommand(root.name(),
|
|
11419
|
+
return typedCommand(root.name(), words2, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11277
11420
|
}, "lineOf");
|
|
11278
11421
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11279
11422
|
let root = command;
|
|
@@ -11323,7 +11466,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11323
11466
|
].join(" ");
|
|
11324
11467
|
}, "stepLine");
|
|
11325
11468
|
|
|
11326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11327
11470
|
var where = [{ field: "ref" }];
|
|
11328
11471
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11329
11472
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11415,7 +11558,7 @@ var STATUS_ROWS = {
|
|
|
11415
11558
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11416
11559
|
};
|
|
11417
11560
|
|
|
11418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11419
11562
|
var TEXT_CHARS = 400;
|
|
11420
11563
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11421
11564
|
var messageRow = {
|
|
@@ -11781,7 +11924,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11781
11924
|
return lines.concat(footerOf(body)).join("\n");
|
|
11782
11925
|
}, "compactText");
|
|
11783
11926
|
|
|
11784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11785
11928
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11786
11929
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11787
11930
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11807,10 +11950,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
11807
11950
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
11808
11951
|
}, "declaresRow");
|
|
11809
11952
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
11810
|
-
const
|
|
11953
|
+
const words2 = [];
|
|
11811
11954
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11812
|
-
|
|
11813
|
-
return
|
|
11955
|
+
words2.unshift(at2.name());
|
|
11956
|
+
return words2.join(" ");
|
|
11814
11957
|
}, "pathOf");
|
|
11815
11958
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
11816
11959
|
kind: "command",
|
|
@@ -11839,7 +11982,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11839
11982
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11840
11983
|
}, "largeAnswerSteps");
|
|
11841
11984
|
|
|
11842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11843
11986
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11844
11987
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11845
11988
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11853,7 +11996,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11853
11996
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11854
11997
|
}, "strip");
|
|
11855
11998
|
|
|
11856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_af5f2db22f61976c09fb28de9c7dc33e/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11857
12000
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11858
12001
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11859
12002
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12107,9 +12250,13 @@ export {
|
|
|
12107
12250
|
refuseCommandName,
|
|
12108
12251
|
rootOf,
|
|
12109
12252
|
sampleCommand,
|
|
12110
|
-
TEXT_MODELS,
|
|
12111
12253
|
DEFAULT_TEXT_MODEL,
|
|
12254
|
+
CustomTextModelShape,
|
|
12255
|
+
readTextModelsSection,
|
|
12256
|
+
writeTextModelsSection,
|
|
12257
|
+
textModels,
|
|
12112
12258
|
textModel,
|
|
12259
|
+
chosenTextModel,
|
|
12113
12260
|
RERANK_MODELS,
|
|
12114
12261
|
DEFAULT_RERANK_MODEL,
|
|
12115
12262
|
rerankModel,
|
|
@@ -12123,10 +12270,12 @@ export {
|
|
|
12123
12270
|
REPAIR_WORDS,
|
|
12124
12271
|
repairConfigText,
|
|
12125
12272
|
permissionIssues,
|
|
12273
|
+
withoutPath,
|
|
12126
12274
|
publicIssue,
|
|
12127
12275
|
fixVerb,
|
|
12128
12276
|
issueMessage,
|
|
12129
12277
|
readConfigFile,
|
|
12278
|
+
accountFileFor,
|
|
12130
12279
|
rememberAccount,
|
|
12131
12280
|
recalledAccount,
|
|
12132
12281
|
profilesHere,
|