@wirecat/mail-cli 0.33.0 → 0.34.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 +16 -0
- package/contracts/wirecat.json +2 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-W3CGXEEJ.js → all-profiles-2KUKROHY.js} +10 -10
- package/dist/bundle/{anthropic-UMDO5AKP.js → anthropic-E5KRCEVC.js} +8 -8
- package/dist/bundle/{app-server-4SICQ5RP.js → app-server-HIQ3QO5K.js} +60 -52
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-KARJPE5D.js} +2 -2
- package/dist/bundle/{bun-sqlite-CHD4AIUK.js → bun-sqlite-NHGX6ZUN.js} +6 -6
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-26DYRMXE.js} +1 -1
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-2GDLJKPT.js} +1 -1
- package/dist/bundle/{chunk-JUYUWMTG.js → chunk-2SCQ7Z4I.js} +4 -4
- package/dist/bundle/{chunk-Y2P2LC5R.js → chunk-2VBEBPGX.js} +9 -9
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-4SKE5GYA.js} +1 -1
- package/dist/bundle/{chunk-H46MANPR.js → chunk-4URI6EAV.js} +3 -3
- package/dist/bundle/chunk-4VHK5UBM.js +170 -0
- package/dist/bundle/{chunk-L3MKFI3Y.js → chunk-4VM3UCSO.js} +2 -2
- package/dist/bundle/chunk-5GANGHQI.js +721 -0
- package/dist/bundle/{chunk-AEKWEYIG.js → chunk-6G4VQFVX.js} +19 -19
- package/dist/bundle/{chunk-KLLT572M.js → chunk-6GGMFL7J.js} +3 -3
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-6LFRZDPV.js} +1 -1
- package/dist/bundle/{chunk-LB5FTCPZ.js → chunk-A2Y2RFNW.js} +75 -10
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-AGZ7SNFF.js} +1 -1
- package/dist/bundle/chunk-CKVWAUBW.js +787 -0
- package/dist/bundle/{chunk-QN423PC6.js → chunk-DYQGEZA2.js} +3 -3
- package/dist/bundle/{chunk-BF73DBAA.js → chunk-DZRP4UCK.js} +13 -13
- package/dist/bundle/{chunk-CZ6ZXDSO.js → chunk-EGQJDEFY.js} +74 -36
- package/dist/bundle/{chunk-BRRHYXUP.js → chunk-EZAX77SM.js} +20 -20
- package/dist/bundle/{chunk-47YNANPZ.js → chunk-FNYWC6A3.js} +2 -2
- package/dist/bundle/chunk-FORAOCZ3.js +334 -0
- package/dist/bundle/{chunk-EW3JFV7J.js → chunk-H77ALM2Y.js} +4 -4
- package/dist/bundle/{chunk-OWAJN74H.js → chunk-HH647UBC.js} +23 -23
- package/dist/bundle/{chunk-74BYHR44.js → chunk-HRDCH2VB.js} +620 -622
- package/dist/bundle/{chunk-SDWYOYGN.js → chunk-I3MS74OF.js} +4 -4
- package/dist/bundle/{chunk-FSMCXQH2.js → chunk-IMQ4CVZJ.js} +2 -2
- package/dist/bundle/{chunk-XN5KH24X.js → chunk-JVGVLRBA.js} +5 -5
- package/dist/bundle/{chunk-MNJ3BMPZ.js → chunk-KF6O4RZO.js} +3 -3
- package/dist/bundle/{chunk-UX76GMQM.js → chunk-KGYK3OI3.js} +6 -6
- package/dist/bundle/{chunk-BZY5W35X.js → chunk-KLI5FKZ2.js} +7 -7
- package/dist/bundle/chunk-KNVTBDTE.js +72 -0
- package/dist/bundle/{chunk-SW7YGW3T.js → chunk-LKTDW5LH.js} +7 -7
- package/dist/bundle/{chunk-UWF3SSRL.js → chunk-LOSYDRJU.js} +28 -8
- package/dist/bundle/{chunk-MT7T5N2N.js → chunk-MDISZMK4.js} +4 -4
- package/dist/bundle/{chunk-CIG4UVP6.js → chunk-MGXYIVVJ.js} +14 -13
- package/dist/bundle/{chunk-2BFXHCZW.js → chunk-NAENYLIO.js} +2 -2
- package/dist/bundle/{chunk-LXAX6AZU.js → chunk-NHD5BOJU.js} +6 -6
- package/dist/bundle/{chunk-IPSLQX64.js → chunk-NI4GCP2T.js} +2 -2
- package/dist/bundle/{chunk-CHNNKHLL.js → chunk-NJVJH5MH.js} +1206 -1544
- package/dist/bundle/{chunk-S6CHYNFE.js → chunk-NWD7AFOR.js} +2 -2
- package/dist/bundle/{chunk-7OYZU5SP.js → chunk-NXERDBEK.js} +4 -4
- package/dist/bundle/{chunk-2L6D54BR.js → chunk-OG5QO5RR.js} +8 -8
- package/dist/bundle/{chunk-2P44S7XK.js → chunk-OJ3BI2U4.js} +26 -24
- package/dist/bundle/chunk-OOYRMTX5.js +374 -0
- package/dist/bundle/{chunk-I3UAD4EI.js → chunk-OX5MCGXL.js} +40 -40
- package/dist/bundle/{chunk-LACMDMDI.js → chunk-PA4GEJXQ.js} +9 -9
- package/dist/bundle/{chunk-RENCSP47.js → chunk-PC3N3LH3.js} +3 -3
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-PRDKEVUL.js} +1 -1
- package/dist/bundle/{chunk-2X344EUT.js → chunk-PVZMN3UZ.js} +8 -8
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-QFJC6POK.js} +1 -1
- package/dist/bundle/{chunk-OFMYFFEF.js → chunk-QOQF2TX3.js} +487 -1144
- package/dist/bundle/{chunk-BI5P7JWM.js → chunk-QQGPV3QN.js} +2 -2
- package/dist/bundle/{chunk-LXUHYDNE.js → chunk-QXLYLVEC.js} +1 -1
- package/dist/bundle/chunk-QXYNDMA6.js +259 -0
- package/dist/bundle/{chunk-HFFHL7SV.js → chunk-R2GS3GBJ.js} +61 -59
- package/dist/bundle/{chunk-LFBD6RTX.js → chunk-RPNQXWRS.js} +4 -4
- package/dist/bundle/{chunk-6IS4BEN4.js → chunk-SK3N4CK5.js} +4 -4
- package/dist/bundle/{chunk-JCQ47WR4.js → chunk-T2EE5M7O.js} +5 -5
- package/dist/bundle/{chunk-XQXYAOBV.js → chunk-TZJC4AOK.js} +26 -26
- package/dist/bundle/{chunk-LKGJMM6W.js → chunk-V43KEZYA.js} +9 -9
- package/dist/bundle/{chunk-SYUIAMVA.js → chunk-VBVR6JRC.js} +260 -516
- package/dist/bundle/{chunk-QO7BK4WD.js → chunk-VRGEDK4T.js} +8 -8
- package/dist/bundle/{chunk-DI74RP6R.js → chunk-WYGDALB3.js} +31 -85
- package/dist/bundle/{chunk-IBIFX2LK.js → chunk-X6IGETU6.js} +2 -2
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-XIF75Z7D.js} +1 -1
- package/dist/bundle/chunk-XWU3A7H6.js +29 -0
- package/dist/bundle/{chunk-TBZLGT7R.js → chunk-YWX5X5RI.js} +19 -117
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-Z6A6QPPW.js} +1 -1
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-ZGZADWD7.js} +1 -1
- package/dist/bundle/{chunk-MJ7DUSHT.js → chunk-ZZEWQR43.js} +18 -14
- package/dist/bundle/command-contract-PZ7VOOXP.js +39 -0
- package/dist/bundle/{command-server-entry-G2ZHCN5J.js → command-server-entry-NF45UPEV.js} +28 -25
- package/dist/bundle/decode-DUZA3EHC.js +296 -0
- package/dist/bundle/{dispatch-RHIK22OA.js → dispatch-CDJZAMVP.js} +8 -8
- package/dist/bundle/{dist-X5G2IMYG.js → dist-RH7EMC4J.js} +29 -24
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-GZHZBNRA.js} +2 -2
- package/dist/bundle/{embed-FEXLUH3T.js → embed-VE3CSJN4.js} +6 -6
- package/dist/bundle/{embedder-NHQARKFJ.js → embedder-DSJ77DX5.js} +9 -9
- package/dist/bundle/{failure-7DIA4OET.js → failure-YH6HAGFT.js} +2 -2
- package/dist/bundle/{first-run-PS5NR2QG.js → first-run-3L7HLYTI.js} +12 -12
- package/dist/bundle/first-screen-MY5KID77.js +37 -0
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-OZK3BLIO.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GN4FTJX5.js → mcp-YUG4YR4R.js} +2 -2
- package/dist/bundle/meeting-combined-RYMUPY54.js +24 -0
- package/dist/bundle/meeting-model-U7LW5WEN.js +24 -0
- package/dist/bundle/meeting-semantic-64IOIQRR.js +21 -0
- package/dist/bundle/{node-ELCNUOCE.js → node-OS3VWBUZ.js} +2 -2
- package/dist/bundle/{node-sqlite-2E5MKZMH.js → node-sqlite-RQ623VFA.js} +7 -7
- package/dist/bundle/{oauth-JGPEIY3M.js → oauth-CBPAG734.js} +7 -7
- package/dist/bundle/{open-6DEMCZAB.js → open-H4DGOMBC.js} +5 -5
- package/dist/bundle/{openai-IVKDU5AH.js → openai-EMWRGR54.js} +28 -26
- package/dist/bundle/{process-67DAKAAQ.js → process-3TOIYASI.js} +1 -1
- package/dist/bundle/{program-ESJDQMAJ.js → program-WA6RGAJL.js} +3075 -2024
- package/dist/bundle/{prompt-ZBWOT5KG.js → prompt-22KNCMBI.js} +5 -5
- package/dist/bundle/{recognize-UUBH2DOH.js → recognize-UWD4RSCZ.js} +4 -4
- package/dist/bundle/{remote-UYTNWNOB.js → remote-LJY7MF2E.js} +9 -9
- package/dist/bundle/{rerank-X2633CQN.js → rerank-JJ6KNJFB.js} +7 -7
- package/dist/bundle/{serve-CP7Q4OVW.js → serve-3EPLJYVZ.js} +9 -9
- package/dist/bundle/{server-I7MXRSAG.js → server-5JOFO4V4.js} +52 -44
- package/dist/bundle/server-EOQNS7B7.js +75 -0
- package/dist/bundle/{sqlite-runtime-BX55LI5G.js → sqlite-runtime-MGJA5E27.js} +6 -6
- package/dist/bundle/{state-LLNJQXFH.js → state-UCRDOWOP.js} +6 -6
- package/dist/bundle/{store-K4KU5N75.js → store-265VRRQV.js} +25 -20
- package/dist/bundle/{store-N27XI3VV.js → store-HS272YSA.js} +21 -17
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +66 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -2
- package/dist/identity.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-NRNQAFFE.js +0 -36
- package/dist/bundle/decode-U6V6D6XH.js +0 -162
- package/dist/bundle/first-screen-C2WTLOG2.js +0 -34
- package/dist/bundle/server-QGTMJ7SF.js +0 -67
- package/dist/bundle/store-maintenance-command-VPAFQCNA.js +0 -58
- /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-FEBUZHU3.js} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LKTDW5LH.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -23,16 +23,20 @@ import {
|
|
|
23
23
|
providerErrorKey,
|
|
24
24
|
renderEvent,
|
|
25
25
|
runContextOf
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
carries
|
|
29
|
-
} from "./chunk-UG2QDGAH.js";
|
|
26
|
+
} from "./chunk-PVZMN3UZ.js";
|
|
30
27
|
import {
|
|
31
28
|
permissionCeiling
|
|
32
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KF6O4RZO.js";
|
|
30
|
+
import {
|
|
31
|
+
DEFAULT_RERANK_MODEL,
|
|
32
|
+
RERANK_MODELS
|
|
33
|
+
} from "./chunk-FORAOCZ3.js";
|
|
34
|
+
import {
|
|
35
|
+
carries
|
|
36
|
+
} from "./chunk-PRDKEVUL.js";
|
|
33
37
|
import {
|
|
34
38
|
note
|
|
35
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4URI6EAV.js";
|
|
36
40
|
import {
|
|
37
41
|
CATEGORIES,
|
|
38
42
|
FACT_STATUSES,
|
|
@@ -77,30 +81,39 @@ import {
|
|
|
77
81
|
typedCommand,
|
|
78
82
|
untrusted,
|
|
79
83
|
useAsProcessRun
|
|
80
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-TZJC4AOK.js";
|
|
81
85
|
import {
|
|
82
86
|
BUSINESS_KINDS,
|
|
83
87
|
CRM_ACTIVITY_KINDS,
|
|
84
88
|
DEAL_KINDS,
|
|
85
89
|
DEAL_ROLES,
|
|
86
90
|
DEAL_STATUSES,
|
|
87
|
-
FACT_TYPES,
|
|
88
|
-
FIELD_TYPES,
|
|
89
91
|
FINANCE_REVIEWS,
|
|
90
92
|
INVOICE_DIRECTIONS,
|
|
91
93
|
INVOICE_STATUSES,
|
|
92
|
-
MEETING_RESULT_ENTITIES,
|
|
93
94
|
MONEY_DIRECTIONS,
|
|
94
95
|
ORDER_PURPOSES,
|
|
95
96
|
ORDER_STATUSES,
|
|
96
|
-
QUERY_BACKENDS,
|
|
97
97
|
RELATION_KINDS,
|
|
98
|
-
STANDINGS
|
|
99
|
-
|
|
98
|
+
STANDINGS
|
|
99
|
+
} from "./chunk-CKVWAUBW.js";
|
|
100
|
+
import {
|
|
101
|
+
isCliFailure,
|
|
102
|
+
storeDamaged
|
|
103
|
+
} from "./chunk-4VM3UCSO.js";
|
|
104
|
+
import {
|
|
105
|
+
TAG_TYPES
|
|
106
|
+
} from "./chunk-XWU3A7H6.js";
|
|
107
|
+
import {
|
|
108
|
+
FACT_TYPES,
|
|
109
|
+
FIELD_TYPES,
|
|
110
|
+
MEETING_RESULT_ENTITIES,
|
|
111
|
+
QUERY_BACKENDS,
|
|
100
112
|
callStats,
|
|
101
113
|
describeQuery,
|
|
102
114
|
event,
|
|
103
115
|
meeting,
|
|
116
|
+
meetingCall,
|
|
104
117
|
meetingCounts,
|
|
105
118
|
meetingDetails,
|
|
106
119
|
meetingHit,
|
|
@@ -112,31 +125,27 @@ import {
|
|
|
112
125
|
meetingSpeaker,
|
|
113
126
|
meetingStats,
|
|
114
127
|
meetingSummary,
|
|
128
|
+
meetingTagChange,
|
|
129
|
+
meetingTagging,
|
|
115
130
|
meetingTranscript,
|
|
116
131
|
parseLucene,
|
|
117
132
|
readsZone,
|
|
118
133
|
timezoneOf
|
|
119
|
-
} from "./chunk-
|
|
120
|
-
import {
|
|
121
|
-
isCliFailure,
|
|
122
|
-
storeDamaged
|
|
123
|
-
} from "./chunk-L3MKFI3Y.js";
|
|
134
|
+
} from "./chunk-QOQF2TX3.js";
|
|
124
135
|
import {
|
|
125
136
|
endpoint
|
|
126
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-T2EE5M7O.js";
|
|
127
138
|
import {
|
|
128
|
-
readSharedSection,
|
|
129
139
|
repairConfigText,
|
|
130
|
-
sharedConfigPath
|
|
131
|
-
|
|
132
|
-
} from "./chunk-BZY5W35X.js";
|
|
140
|
+
sharedConfigPath
|
|
141
|
+
} from "./chunk-KLI5FKZ2.js";
|
|
133
142
|
import {
|
|
134
143
|
filesPresent,
|
|
135
144
|
sharedModelsDirectory
|
|
136
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-2SCQ7Z4I.js";
|
|
137
146
|
import {
|
|
138
147
|
storePath
|
|
139
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-NI4GCP2T.js";
|
|
140
149
|
import {
|
|
141
150
|
configFilePath,
|
|
142
151
|
createRecordLog,
|
|
@@ -145,7 +154,7 @@ import {
|
|
|
145
154
|
resolvePaths,
|
|
146
155
|
saveConfigFile,
|
|
147
156
|
writeSecurely
|
|
148
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-EZAX77SM.js";
|
|
149
158
|
import {
|
|
150
159
|
COMPACT_FLAG,
|
|
151
160
|
MAX_NEXT_STEPS,
|
|
@@ -188,7 +197,6 @@ import {
|
|
|
188
197
|
regex,
|
|
189
198
|
safeInteger,
|
|
190
199
|
safeParse,
|
|
191
|
-
startsWith,
|
|
192
200
|
stepOf,
|
|
193
201
|
strictObject,
|
|
194
202
|
string,
|
|
@@ -196,20 +204,19 @@ import {
|
|
|
196
204
|
union,
|
|
197
205
|
unknown,
|
|
198
206
|
unwrap,
|
|
199
|
-
url,
|
|
200
207
|
variant,
|
|
201
208
|
writes
|
|
202
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-LOSYDRJU.js";
|
|
203
210
|
import {
|
|
204
211
|
CliError,
|
|
205
212
|
isCliError,
|
|
206
213
|
visibleControls
|
|
207
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-QQGPV3QN.js";
|
|
208
215
|
import {
|
|
209
216
|
__name
|
|
210
217
|
} from "./chunk-ZVVMGPBJ.js";
|
|
211
218
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
213
220
|
import { readFileSync } from "node:fs";
|
|
214
221
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
215
222
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -263,7 +270,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
263
270
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
264
271
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
265
272
|
|
|
266
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
273
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
267
274
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
268
275
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
269
276
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3764,7 +3771,7 @@ __name(useColor, "useColor");
|
|
|
3764
3771
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3765
3772
|
var program = new Command();
|
|
3766
3773
|
|
|
3767
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3774
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3768
3775
|
var argumentInfoSchema = object({
|
|
3769
3776
|
name: string(),
|
|
3770
3777
|
required: boolean(),
|
|
@@ -3838,7 +3845,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3838
3845
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3839
3846
|
});
|
|
3840
3847
|
|
|
3841
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3848
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3842
3849
|
import { isDeepStrictEqual } from "node:util";
|
|
3843
3850
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3844
3851
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3948,7 +3955,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3948
3955
|
return result;
|
|
3949
3956
|
}, "sharedCommand");
|
|
3950
3957
|
|
|
3951
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3958
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3952
3959
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3953
3960
|
let command = root;
|
|
3954
3961
|
const path2 = [];
|
|
@@ -3966,7 +3973,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3966
3973
|
}
|
|
3967
3974
|
}, "refuseJoinedPath");
|
|
3968
3975
|
|
|
3969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
3970
3977
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3971
3978
|
var requests = new AsyncLocalStorage();
|
|
3972
3979
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -3981,7 +3988,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
3981
3988
|
return direct;
|
|
3982
3989
|
}, "exitCodeSet");
|
|
3983
3990
|
|
|
3984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3985
3992
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
3986
3993
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3987
3994
|
messageId: message2.id,
|
|
@@ -4087,7 +4094,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4087
4094
|
}, "guardedWrite");
|
|
4088
4095
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4089
4096
|
|
|
4090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4091
4098
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4092
4099
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4093
4100
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4270,7 +4277,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4270
4277
|
}
|
|
4271
4278
|
}, "withAbort");
|
|
4272
4279
|
|
|
4273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4274
4281
|
import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
4275
4282
|
import { join } from "node:path";
|
|
4276
4283
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4292,7 +4299,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4292
4299
|
}, "profilesWithAccounts");
|
|
4293
4300
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4294
4301
|
|
|
4295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4296
4303
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4297
4304
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4298
4305
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4335,7 +4342,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4335
4342
|
};
|
|
4336
4343
|
}, "runBudget");
|
|
4337
4344
|
|
|
4338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4339
4346
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4340
4347
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4341
4348
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4373,7 +4380,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4373
4380
|
progress: "sync.progress"
|
|
4374
4381
|
};
|
|
4375
4382
|
|
|
4376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4377
4384
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4378
4385
|
const recording = startRecording(options);
|
|
4379
4386
|
try {
|
|
@@ -4588,7 +4595,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4588
4595
|
return void 0;
|
|
4589
4596
|
}, "partialOutcome");
|
|
4590
4597
|
|
|
4591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4592
4599
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4593
4600
|
if (ms2 === void 0)
|
|
4594
4601
|
return body();
|
|
@@ -4614,7 +4621,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4614
4621
|
}
|
|
4615
4622
|
}, "withDeadline");
|
|
4616
4623
|
|
|
4617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4618
4625
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4619
4626
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4620
4627
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4640,19 +4647,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
4640
4647
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
4641
4648
|
}, "takesProfile");
|
|
4642
4649
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
4643
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
4650
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
|
|
4644
4651
|
let at2 = 0;
|
|
4645
4652
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
4646
4653
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
4647
4654
|
const first2 = argv[at2];
|
|
4648
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
4655
|
+
if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
|
|
4649
4656
|
return { rest: argv };
|
|
4650
4657
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
4651
4658
|
}, "liftProfile");
|
|
4652
4659
|
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");
|
|
4653
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
4654
|
-
if (
|
|
4655
|
-
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: ` + [...
|
|
4660
|
+
var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
|
|
4661
|
+
if (words.has(profile)) {
|
|
4662
|
+
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: ` + [...words].sort().join(", "));
|
|
4656
4663
|
}
|
|
4657
4664
|
}, "refuseCommandName");
|
|
4658
4665
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -4683,10 +4690,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4683
4690
|
return void 0;
|
|
4684
4691
|
}, "sampleCommand");
|
|
4685
4692
|
|
|
4686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4687
|
-
import { existsSync as
|
|
4693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4694
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
4688
4695
|
|
|
4689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4690
4697
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4691
4698
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4692
4699
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4755,13 +4762,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4755
4762
|
};
|
|
4756
4763
|
}, "modelTarget");
|
|
4757
4764
|
|
|
4758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4759
4766
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4760
|
-
var
|
|
4767
|
+
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4761
4768
|
var AI_FIELDS = {
|
|
4762
4769
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
4763
4770
|
embeddingModel: optional(model),
|
|
4764
|
-
embeddingBaseUrl: optional(
|
|
4771
|
+
embeddingBaseUrl: optional(url),
|
|
4765
4772
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
4766
4773
|
models: optional(modelSettingsShape)
|
|
4767
4774
|
};
|
|
@@ -4799,7 +4806,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4799
4806
|
};
|
|
4800
4807
|
}, "resolveAISettings");
|
|
4801
4808
|
|
|
4802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
4803
4810
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
4804
4811
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
4805
4812
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -4813,284 +4820,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
4813
4820
|
return ms2;
|
|
4814
4821
|
}, "parseDuration");
|
|
4815
4822
|
|
|
4816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4817
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
4818
|
-
import { join as join2 } from "node:path";
|
|
4819
|
-
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
4820
|
-
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
4821
|
-
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
4822
|
-
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
4823
|
-
var TEXT_MODELS = [
|
|
4824
|
-
{
|
|
4825
|
-
id: "e5-small",
|
|
4826
|
-
title: "multilingual-e5-small, 8-bit",
|
|
4827
|
-
size: "small",
|
|
4828
|
-
languages: "about 100 languages, Russian and English among them",
|
|
4829
|
-
licence: "MIT",
|
|
4830
|
-
dims: 384,
|
|
4831
|
-
maxTokens: 512,
|
|
4832
|
-
// 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
|
|
4833
|
-
chunksPerSecond: 31,
|
|
4834
|
-
pooling: "mean",
|
|
4835
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
4836
|
-
onnx: "onnx/model_quantized.onnx",
|
|
4837
|
-
files: [
|
|
4838
|
-
{
|
|
4839
|
-
name: "onnx/model_quantized.onnx",
|
|
4840
|
-
url: e5("onnx/model_quantized.onnx"),
|
|
4841
|
-
sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
|
|
4842
|
-
bytes: 118308185
|
|
4843
|
-
},
|
|
4844
|
-
{
|
|
4845
|
-
name: "tokenizer.json",
|
|
4846
|
-
url: e5("tokenizer.json"),
|
|
4847
|
-
sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
|
|
4848
|
-
bytes: 17082730
|
|
4849
|
-
},
|
|
4850
|
-
{
|
|
4851
|
-
name: "tokenizer_config.json",
|
|
4852
|
-
url: e5("tokenizer_config.json"),
|
|
4853
|
-
sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
|
|
4854
|
-
bytes: 443
|
|
4855
|
-
}
|
|
4856
|
-
]
|
|
4857
|
-
},
|
|
4858
|
-
{
|
|
4859
|
-
id: "embeddinggemma",
|
|
4860
|
-
title: "EmbeddingGemma 300M, 4-bit",
|
|
4861
|
-
size: "medium",
|
|
4862
|
-
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
4863
|
-
licence: "Gemma Terms of Use",
|
|
4864
|
-
terms: "https://ai.google.dev/gemma/terms",
|
|
4865
|
-
// Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
|
|
4866
|
-
notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Its use is restricted by the Gemma Prohibited Use Policy: https://ai.google.dev/gemma/prohibited_use_policy",
|
|
4867
|
-
dims: 768,
|
|
4868
|
-
maxTokens: 2048,
|
|
4869
|
-
// 2026-11-08, 1,200-character chunks, 8 threads on the Ryzen AI 9 HX 470: 8.3 chunks/s against e5-small's 52.7, so
|
|
4870
|
-
// 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
|
|
4871
|
-
chunksPerSecond: 5,
|
|
4872
|
-
pooling: "sentence_embedding",
|
|
4873
|
-
prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
|
|
4874
|
-
onnx: "onnx/model_q4.onnx",
|
|
4875
|
-
externalData: "onnx/model_q4.onnx_data",
|
|
4876
|
-
files: [
|
|
4877
|
-
{
|
|
4878
|
-
name: "onnx/model_q4.onnx",
|
|
4879
|
-
url: gemma("onnx/model_q4.onnx"),
|
|
4880
|
-
sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
|
|
4881
|
-
bytes: 519322
|
|
4882
|
-
},
|
|
4883
|
-
{
|
|
4884
|
-
name: "onnx/model_q4.onnx_data",
|
|
4885
|
-
url: gemma("onnx/model_q4.onnx_data"),
|
|
4886
|
-
sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
|
|
4887
|
-
bytes: 196725760
|
|
4888
|
-
},
|
|
4889
|
-
{
|
|
4890
|
-
name: "tokenizer.json",
|
|
4891
|
-
url: gemma("tokenizer.json"),
|
|
4892
|
-
sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
|
|
4893
|
-
bytes: 20323312
|
|
4894
|
-
},
|
|
4895
|
-
{
|
|
4896
|
-
name: "tokenizer_config.json",
|
|
4897
|
-
url: gemma("tokenizer_config.json"),
|
|
4898
|
-
sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
|
|
4899
|
-
bytes: 1156830
|
|
4900
|
-
}
|
|
4901
|
-
]
|
|
4902
|
-
},
|
|
4903
|
-
{
|
|
4904
|
-
id: "e5-large",
|
|
4905
|
-
title: "multilingual-e5-large, 8-bit",
|
|
4906
|
-
size: "large",
|
|
4907
|
-
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
4908
|
-
licence: "MIT",
|
|
4909
|
-
dims: 1024,
|
|
4910
|
-
maxTokens: 512,
|
|
4911
|
-
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
4912
|
-
chunksPerSecond: 4,
|
|
4913
|
-
pooling: "mean",
|
|
4914
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
4915
|
-
onnx: "onnx/model_quantized.onnx",
|
|
4916
|
-
files: [
|
|
4917
|
-
{
|
|
4918
|
-
name: "onnx/model_quantized.onnx",
|
|
4919
|
-
url: e5Large("onnx/model_quantized.onnx"),
|
|
4920
|
-
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
4921
|
-
bytes: 561768762
|
|
4922
|
-
},
|
|
4923
|
-
{
|
|
4924
|
-
name: "tokenizer.json",
|
|
4925
|
-
url: e5Large("tokenizer.json"),
|
|
4926
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
4927
|
-
bytes: 17082660
|
|
4928
|
-
},
|
|
4929
|
-
{
|
|
4930
|
-
name: "tokenizer_config.json",
|
|
4931
|
-
url: e5Large("tokenizer_config.json"),
|
|
4932
|
-
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
4933
|
-
bytes: 418
|
|
4934
|
-
}
|
|
4935
|
-
]
|
|
4936
|
-
}
|
|
4937
|
-
];
|
|
4938
|
-
var DEFAULT_TEXT_MODEL = "embeddinggemma";
|
|
4939
|
-
var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
|
|
4940
|
-
var SECTION = "text_models";
|
|
4941
|
-
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
4942
|
-
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
4943
|
-
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"));
|
|
4944
|
-
var modelFile = strictObject({
|
|
4945
|
-
name: fileName,
|
|
4946
|
-
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
4947
|
-
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
4948
|
-
bytes: pipe(number(), integer(), minValue(1))
|
|
4949
|
-
});
|
|
4950
|
-
var CustomTextModelShape = pipe(strictObject({
|
|
4951
|
-
id: slug,
|
|
4952
|
-
title: words,
|
|
4953
|
-
languages: words,
|
|
4954
|
-
licence: words,
|
|
4955
|
-
terms: optional(pipe(string(), url())),
|
|
4956
|
-
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
4957
|
-
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
4958
|
-
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
4959
|
-
pooling: picklist(["mean", "sentence_embedding"]),
|
|
4960
|
-
prefix: strictObject({
|
|
4961
|
-
query: pipe(string(), maxLength(200)),
|
|
4962
|
-
passage: pipe(string(), maxLength(200))
|
|
4963
|
-
}),
|
|
4964
|
-
onnx: fileName,
|
|
4965
|
-
externalData: optional(fileName),
|
|
4966
|
-
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
4967
|
-
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
4968
|
-
const names = model3.files.map(({ name }) => name);
|
|
4969
|
-
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
4970
|
-
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
4971
|
-
var TextModelsSection = strictObject({
|
|
4972
|
-
use: optional(slug),
|
|
4973
|
-
custom: optional(array(CustomTextModelShape))
|
|
4974
|
-
});
|
|
4975
|
-
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
4976
|
-
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
4977
|
-
const path2 = textModelsFile(env);
|
|
4978
|
-
const section2 = readSharedSection(path2, SECTION);
|
|
4979
|
-
if (section2 === void 0)
|
|
4980
|
-
return {};
|
|
4981
|
-
const checked = safeParse(TextModelsSection, section2);
|
|
4982
|
-
if (!checked.success) {
|
|
4983
|
-
const issue = checked.issues[0];
|
|
4984
|
-
const at2 = issue ? getDotPath(issue) : null;
|
|
4985
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
4986
|
-
}
|
|
4987
|
-
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
4988
|
-
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
4989
|
-
if (twice)
|
|
4990
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
4991
|
-
return checked.output;
|
|
4992
|
-
}, "readTextModelsSection");
|
|
4993
|
-
var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
|
|
4994
|
-
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
4995
|
-
...TEXT_MODELS,
|
|
4996
|
-
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
4997
|
-
], "textModels");
|
|
4998
|
-
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
4999
|
-
const known = textModels(env);
|
|
5000
|
-
const found = known.find((model3) => model3.id === id6);
|
|
5001
|
-
if (!found) {
|
|
5002
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
5003
|
-
}
|
|
5004
|
-
return found;
|
|
5005
|
-
}, "textModel");
|
|
5006
|
-
var downloaded = /* @__PURE__ */ __name((id6, env) => {
|
|
5007
|
-
const model3 = TEXT_MODELS.find((one) => one.id === id6);
|
|
5008
|
-
const directory = sharedModelsDirectory("text", env);
|
|
5009
|
-
return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join2(directory, model3.id, file.name)]));
|
|
5010
|
-
}, "downloaded");
|
|
5011
|
-
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
5012
|
-
const use = readTextModelsSection(env).use;
|
|
5013
|
-
if (use !== void 0)
|
|
5014
|
-
return { id: use, from: "chosen" };
|
|
5015
|
-
const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync2(join2(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
|
|
5016
|
-
return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
|
|
5017
|
-
}, "chosenTextModel");
|
|
5018
|
-
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
5019
|
-
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
5020
|
-
var RERANK_MODELS = [
|
|
5021
|
-
{
|
|
5022
|
-
id: "mmarco",
|
|
5023
|
-
title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
|
|
5024
|
-
languages: "about 100 languages, Russian and English among them",
|
|
5025
|
-
licence: "Apache-2.0",
|
|
5026
|
-
maxTokens: 512,
|
|
5027
|
-
// The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
|
|
5028
|
-
onnx: "onnx/model_quint8_avx2.onnx",
|
|
5029
|
-
files: [
|
|
5030
|
-
{
|
|
5031
|
-
name: "onnx/model_quint8_avx2.onnx",
|
|
5032
|
-
url: mmarco("onnx/model_quint8_avx2.onnx"),
|
|
5033
|
-
sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
|
|
5034
|
-
bytes: 118620016
|
|
5035
|
-
},
|
|
5036
|
-
{
|
|
5037
|
-
name: "tokenizer.json",
|
|
5038
|
-
url: mmarco("tokenizer.json"),
|
|
5039
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
5040
|
-
bytes: 17082660
|
|
5041
|
-
},
|
|
5042
|
-
{
|
|
5043
|
-
name: "tokenizer_config.json",
|
|
5044
|
-
url: mmarco("tokenizer_config.json"),
|
|
5045
|
-
sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
|
|
5046
|
-
bytes: 435
|
|
5047
|
-
}
|
|
5048
|
-
]
|
|
5049
|
-
},
|
|
5050
|
-
{
|
|
5051
|
-
id: "bge-reranker-v2-m3",
|
|
5052
|
-
title: "BGE reranker v2 m3, 8-bit",
|
|
5053
|
-
languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
|
|
5054
|
-
licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
|
|
5055
|
-
maxTokens: 512,
|
|
5056
|
-
onnx: "onnx/model_quantized.onnx",
|
|
5057
|
-
files: [
|
|
5058
|
-
{
|
|
5059
|
-
name: "onnx/model_quantized.onnx",
|
|
5060
|
-
url: bge("onnx/model_quantized.onnx"),
|
|
5061
|
-
sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
|
|
5062
|
-
bytes: 570727094
|
|
5063
|
-
},
|
|
5064
|
-
{
|
|
5065
|
-
name: "tokenizer.json",
|
|
5066
|
-
url: bge("tokenizer.json"),
|
|
5067
|
-
sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
|
|
5068
|
-
bytes: 17082900
|
|
5069
|
-
},
|
|
5070
|
-
{
|
|
5071
|
-
name: "tokenizer_config.json",
|
|
5072
|
-
url: bge("tokenizer_config.json"),
|
|
5073
|
-
sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
|
|
5074
|
-
bytes: 1203
|
|
5075
|
-
}
|
|
5076
|
-
]
|
|
5077
|
-
}
|
|
5078
|
-
];
|
|
5079
|
-
var DEFAULT_RERANK_MODEL = "mmarco";
|
|
5080
|
-
var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
5081
|
-
const found = RERANK_MODELS.find((model3) => model3.id === id6);
|
|
5082
|
-
if (!found) {
|
|
5083
|
-
throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
5084
|
-
}
|
|
5085
|
-
return found;
|
|
5086
|
-
}, "rerankModel");
|
|
5087
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
5088
|
-
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
5089
|
-
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
5090
|
-
}, "vectorModelKey");
|
|
5091
|
-
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5092
|
-
|
|
5093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
4823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5094
4824
|
var HISTORY_MAX_DAYS = 1095;
|
|
5095
4825
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5096
4826
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -5137,19 +4867,19 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5137
4867
|
return { batch: { ...batch, messages }, skipped };
|
|
5138
4868
|
}, "limitBatch");
|
|
5139
4869
|
|
|
5140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5141
|
-
import { existsSync as
|
|
5142
|
-
import { join as
|
|
5143
|
-
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) =>
|
|
4870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4871
|
+
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
4872
|
+
import { join as join2 } from "node:path";
|
|
4873
|
+
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
5144
4874
|
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
5145
4875
|
const directory = botsDirectory(app, env);
|
|
5146
4876
|
return {
|
|
5147
|
-
registry:
|
|
5148
|
-
recipients:
|
|
5149
|
-
journal:
|
|
5150
|
-
updates:
|
|
5151
|
-
presses:
|
|
5152
|
-
checks:
|
|
4877
|
+
registry: join2(directory, `${profile}.json`),
|
|
4878
|
+
recipients: join2(directory, "recipients", `${profile}.json`),
|
|
4879
|
+
journal: join2(directory, "sends", `${profile}.jsonl`),
|
|
4880
|
+
updates: join2(directory, "updates", `${profile}.json`),
|
|
4881
|
+
presses: join2(directory, "presses", `${profile}.json`),
|
|
4882
|
+
checks: join2(directory, "checks", `${profile}.json`)
|
|
5153
4883
|
};
|
|
5154
4884
|
}, "botFiles");
|
|
5155
4885
|
var ChatRegistry = class {
|
|
@@ -5176,7 +4906,7 @@ var ChatRegistry = class {
|
|
|
5176
4906
|
}
|
|
5177
4907
|
/** Makes this bot known to `bot list` before it has seen any chat. */
|
|
5178
4908
|
touch() {
|
|
5179
|
-
if (!
|
|
4909
|
+
if (!existsSync2(this.#path))
|
|
5180
4910
|
writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
|
|
5181
4911
|
`, 384);
|
|
5182
4912
|
}
|
|
@@ -5205,7 +4935,7 @@ var ChatRegistry = class {
|
|
|
5205
4935
|
this.#write({ ...this.#read(), chats: [...byId.values()] });
|
|
5206
4936
|
}
|
|
5207
4937
|
#read() {
|
|
5208
|
-
if (!
|
|
4938
|
+
if (!existsSync2(this.#path))
|
|
5209
4939
|
return {};
|
|
5210
4940
|
try {
|
|
5211
4941
|
const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
|
|
@@ -5221,12 +4951,12 @@ var ChatRegistry = class {
|
|
|
5221
4951
|
};
|
|
5222
4952
|
var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
5223
4953
|
const directory = botsDirectory(app, env);
|
|
5224
|
-
if (!
|
|
4954
|
+
if (!existsSync2(directory))
|
|
5225
4955
|
return [];
|
|
5226
4956
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5227
4957
|
}, "registryProfiles");
|
|
5228
4958
|
|
|
5229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5230
4960
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5231
4961
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5232
4962
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5521,20 +5251,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5521
5251
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5522
5252
|
}, "readConfigFile");
|
|
5523
5253
|
|
|
5524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5525
|
-
import { existsSync as
|
|
5526
|
-
import { dirname, join as
|
|
5254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5255
|
+
import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5256
|
+
import { dirname, join as join3 } from "node:path";
|
|
5527
5257
|
var DEFAULT_CONFIG = {
|
|
5528
5258
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
5529
5259
|
profiles: {}
|
|
5530
5260
|
};
|
|
5531
5261
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
5532
|
-
if (
|
|
5262
|
+
if (existsSync3(path2))
|
|
5533
5263
|
return;
|
|
5534
5264
|
const directory = dirname(path2);
|
|
5535
5265
|
mkdirSync(directory, { recursive: true, mode: 448 });
|
|
5536
|
-
const temporary = mkdtempSync(
|
|
5537
|
-
const candidate =
|
|
5266
|
+
const temporary = mkdtempSync(join3(directory, ".config-"));
|
|
5267
|
+
const candidate = join3(temporary, "config.json");
|
|
5538
5268
|
try {
|
|
5539
5269
|
writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
|
|
5540
5270
|
`, { flag: "wx", mode: 384 });
|
|
@@ -5550,7 +5280,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5550
5280
|
}
|
|
5551
5281
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5552
5282
|
|
|
5553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5554
5284
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5555
5285
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5556
5286
|
const path2 = key.split(".");
|
|
@@ -5572,7 +5302,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5572
5302
|
return { config, added };
|
|
5573
5303
|
}, "withSettingDefaults");
|
|
5574
5304
|
|
|
5575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5576
5306
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5577
5307
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5578
5308
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5721,13 +5451,13 @@ var NoProfileHere = class extends CliError {
|
|
|
5721
5451
|
}
|
|
5722
5452
|
app;
|
|
5723
5453
|
constructor(app) {
|
|
5724
|
-
super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { profiles: [] });
|
|
5454
|
+
super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { reason: "profile.missing", profiles: [] });
|
|
5725
5455
|
this.app = app;
|
|
5726
5456
|
}
|
|
5727
5457
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
5728
|
-
withoutSetup(
|
|
5729
|
-
const command =
|
|
5730
|
-
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: [] });
|
|
5458
|
+
withoutSetup(words) {
|
|
5459
|
+
const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
|
|
5460
|
+
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")})`, { reason: "profile.missing", profiles: [] });
|
|
5731
5461
|
}
|
|
5732
5462
|
};
|
|
5733
5463
|
var first = /* @__PURE__ */ __name((candidates, fallback) => {
|
|
@@ -5805,7 +5535,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5805
5535
|
const here = profilesOf(config, env);
|
|
5806
5536
|
if (here.length === 0)
|
|
5807
5537
|
throw new NoProfileHere(app);
|
|
5808
|
-
throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
|
|
5538
|
+
throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { reason: "profile.missing", profiles: here });
|
|
5809
5539
|
}, "unnamed");
|
|
5810
5540
|
const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
|
|
5811
5541
|
const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
|
|
@@ -5934,7 +5664,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5934
5664
|
updateCheck: updateCheck.value,
|
|
5935
5665
|
skillHint: skillHint.value,
|
|
5936
5666
|
configPath,
|
|
5937
|
-
configFound:
|
|
5667
|
+
configFound: existsSync4(configPath),
|
|
5938
5668
|
configuredProfiles: namedProfiles(config),
|
|
5939
5669
|
profilesHere: profilesOf(config, env),
|
|
5940
5670
|
accountProfiles: accountsOf(config, env, bots),
|
|
@@ -6052,9 +5782,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6052
5782
|
saveConfigFile(path2, config);
|
|
6053
5783
|
return added;
|
|
6054
5784
|
}, "migrate");
|
|
5785
|
+
const settingSchema = /* @__PURE__ */ __name((key) => Object.hasOwn(profileEntries, key) ? profileEntries[key] : void 0, "settingSchema");
|
|
6055
5786
|
return {
|
|
6056
5787
|
resolveSettings,
|
|
6057
5788
|
configuredProfiles,
|
|
5789
|
+
settingSchema,
|
|
6058
5790
|
changeSetting,
|
|
6059
5791
|
migrate,
|
|
6060
5792
|
declaredSettings,
|
|
@@ -6098,7 +5830,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6098
5830
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6099
5831
|
}, "given");
|
|
6100
5832
|
|
|
6101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6102
5834
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
6103
5835
|
const { deadline, signal, app } = environmentOf(command);
|
|
6104
5836
|
const now = deadline?.();
|
|
@@ -6138,11 +5870,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
|
|
|
6138
5870
|
return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
|
|
6139
5871
|
}, "detailOf");
|
|
6140
5872
|
var COMPACT_KEY = new Option(COMPACT_FLAG).attributeName();
|
|
5873
|
+
var outputFieldsOf = /* @__PURE__ */ __name((command) => {
|
|
5874
|
+
const fields = rootOf(command).getOptionValue("fields");
|
|
5875
|
+
return typeof fields === "string" ? { fields } : {};
|
|
5876
|
+
}, "outputFieldsOf");
|
|
6141
5877
|
var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
|
|
6142
5878
|
var outputFor = /* @__PURE__ */ __name((command) => {
|
|
6143
5879
|
const { streams, tty, env, agent } = environmentOf(command);
|
|
5880
|
+
const { fields: _own, ...flags } = command.optsWithGlobals();
|
|
6144
5881
|
return resolveOutput({
|
|
6145
|
-
...
|
|
5882
|
+
...flags,
|
|
5883
|
+
...outputFieldsOf(command),
|
|
6146
5884
|
...detailOf(command.optsWithGlobals()),
|
|
6147
5885
|
compact: compactOf(command),
|
|
6148
5886
|
...agent ? { capture: agent.result } : {},
|
|
@@ -6160,7 +5898,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
6160
5898
|
env,
|
|
6161
5899
|
compact: compactOf(command),
|
|
6162
5900
|
...detailOf(command.optsWithGlobals()),
|
|
6163
|
-
...
|
|
5901
|
+
...outputFieldsOf(command),
|
|
6164
5902
|
...environment.agent ? { capture: environment.agent.result } : {},
|
|
6165
5903
|
...environment.streams ? { streams: environment.streams } : {},
|
|
6166
5904
|
...environment.tty === void 0 ? {} : { tty: environment.tty }
|
|
@@ -6232,13 +5970,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
6232
5970
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
6233
5971
|
}, "inCommandRun");
|
|
6234
5972
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
6235
|
-
const
|
|
5973
|
+
const words = [];
|
|
6236
5974
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
6237
|
-
|
|
6238
|
-
return
|
|
5975
|
+
words.unshift(current2.name());
|
|
5976
|
+
return words.join(" ");
|
|
6239
5977
|
}, "commandPath");
|
|
6240
5978
|
|
|
6241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6242
5980
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6243
5981
|
var FETCH = { remote: "read", local: "write" };
|
|
6244
5982
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6341,10 +6079,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
6341
6079
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
6342
6080
|
}, "refuseStoreChange");
|
|
6343
6081
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
6344
|
-
const
|
|
6082
|
+
const words = [];
|
|
6345
6083
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
6346
|
-
|
|
6347
|
-
return
|
|
6084
|
+
words.unshift(at2.name());
|
|
6085
|
+
return words;
|
|
6348
6086
|
}, "pathOf");
|
|
6349
6087
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
6350
6088
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -6378,7 +6116,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6378
6116
|
throw readOnlyRefusal(lock, what);
|
|
6379
6117
|
}, "refuseUnderReadOnly");
|
|
6380
6118
|
|
|
6381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6382
6120
|
var account = strictObject({
|
|
6383
6121
|
provider: text,
|
|
6384
6122
|
id,
|
|
@@ -6388,7 +6126,7 @@ var account = strictObject({
|
|
|
6388
6126
|
scope: optional(picklist(["personal", "work"]))
|
|
6389
6127
|
});
|
|
6390
6128
|
|
|
6391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6392
6130
|
var accountSession = strictObject({
|
|
6393
6131
|
current: boolean(),
|
|
6394
6132
|
client: nullable(text),
|
|
@@ -6398,7 +6136,7 @@ var accountSession = strictObject({
|
|
|
6398
6136
|
created_at: optional(nullable(time))
|
|
6399
6137
|
});
|
|
6400
6138
|
|
|
6401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6402
6140
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6403
6141
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6404
6142
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6427,7 +6165,7 @@ var accountRemoval = strictObject({
|
|
|
6427
6165
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6428
6166
|
});
|
|
6429
6167
|
|
|
6430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6431
6169
|
var accountProfile = strictObject({
|
|
6432
6170
|
profile: id,
|
|
6433
6171
|
current: boolean(),
|
|
@@ -6439,7 +6177,7 @@ var accountProfile = strictObject({
|
|
|
6439
6177
|
bot: optional(literal(true))
|
|
6440
6178
|
});
|
|
6441
6179
|
|
|
6442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6443
6181
|
var milliseconds = pipe(number(), minValue(0));
|
|
6444
6182
|
var counterReading = strictObject({
|
|
6445
6183
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6451,7 +6189,7 @@ var counterReading = strictObject({
|
|
|
6451
6189
|
});
|
|
6452
6190
|
var selection = record(string(), unknown());
|
|
6453
6191
|
|
|
6454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6455
6193
|
var adminRow = strictObject({
|
|
6456
6194
|
ref: reference,
|
|
6457
6195
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6504,7 +6242,7 @@ var adminReport = strictObject({
|
|
|
6504
6242
|
rows: array(adminRow)
|
|
6505
6243
|
});
|
|
6506
6244
|
|
|
6507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6508
6246
|
var closeSuggestion = strictObject({
|
|
6509
6247
|
as: picklist(["done", "dismissed"]),
|
|
6510
6248
|
/** The agent's name. */
|
|
@@ -6566,7 +6304,7 @@ var task = strictObject({
|
|
|
6566
6304
|
updated_at: optional(time)
|
|
6567
6305
|
});
|
|
6568
6306
|
|
|
6569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6570
6308
|
var agendaChat = strictObject({
|
|
6571
6309
|
chat: reference,
|
|
6572
6310
|
title: nullable(text),
|
|
@@ -6636,11 +6374,11 @@ var agenda = strictObject({
|
|
|
6636
6374
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6637
6375
|
});
|
|
6638
6376
|
|
|
6639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6640
6378
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6641
6379
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6642
6380
|
|
|
6643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6644
6382
|
var attachment = strictObject({
|
|
6645
6383
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6646
6384
|
message: optional(reference),
|
|
@@ -6685,7 +6423,7 @@ var hitFile = strictObject({
|
|
|
6685
6423
|
local_path: optional(text)
|
|
6686
6424
|
});
|
|
6687
6425
|
|
|
6688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6689
6427
|
var actionableError = objectWithRest({
|
|
6690
6428
|
code: text,
|
|
6691
6429
|
message: text,
|
|
@@ -6702,7 +6440,7 @@ var batchResult = strictObject({
|
|
|
6702
6440
|
max_error_percent: count
|
|
6703
6441
|
});
|
|
6704
6442
|
|
|
6705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6706
6444
|
var extractionItem = strictObject({
|
|
6707
6445
|
ref: reference,
|
|
6708
6446
|
attachment: count,
|
|
@@ -6735,7 +6473,7 @@ var extractionReport = strictObject({
|
|
|
6735
6473
|
cursor: optional(text)
|
|
6736
6474
|
});
|
|
6737
6475
|
|
|
6738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
6739
6477
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
6740
6478
|
var attachmentBytes = strictObject({
|
|
6741
6479
|
ref: reference,
|
|
@@ -6766,7 +6504,7 @@ var attachmentTextChange = strictObject({
|
|
|
6766
6504
|
text: optional(text)
|
|
6767
6505
|
});
|
|
6768
6506
|
|
|
6769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6770
6508
|
var WEIGHTS = {
|
|
6771
6509
|
bot: 3,
|
|
6772
6510
|
scam: 3,
|
|
@@ -6791,7 +6529,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6791
6529
|
var DIGITS = /\d{5,}/;
|
|
6792
6530
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6793
6531
|
|
|
6794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
6795
6533
|
var linkedIdentity = strictObject({
|
|
6796
6534
|
provider: text,
|
|
6797
6535
|
id,
|
|
@@ -6846,7 +6584,7 @@ var contactCheck = strictObject({
|
|
|
6846
6584
|
checked_at: time
|
|
6847
6585
|
});
|
|
6848
6586
|
|
|
6849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
6850
6588
|
var member = strictObject({
|
|
6851
6589
|
id,
|
|
6852
6590
|
name: nullable(text),
|
|
@@ -6869,7 +6607,7 @@ var member = strictObject({
|
|
|
6869
6607
|
check: optional(record(string(), unknown()))
|
|
6870
6608
|
});
|
|
6871
6609
|
|
|
6872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
6873
6611
|
var setting = optional(nullable(boolean()));
|
|
6874
6612
|
var chat = strictObject({
|
|
6875
6613
|
ref: reference,
|
|
@@ -6910,7 +6648,7 @@ var chat = strictObject({
|
|
|
6910
6648
|
members: optional(array(member))
|
|
6911
6649
|
});
|
|
6912
6650
|
|
|
6913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
6914
6652
|
var quoted = strictObject({
|
|
6915
6653
|
id,
|
|
6916
6654
|
sender_id: nullable(id),
|
|
@@ -7029,7 +6767,7 @@ var message = strictObject({
|
|
|
7029
6767
|
provider_metadata: providerMetadata
|
|
7030
6768
|
});
|
|
7031
6769
|
|
|
7032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
7033
6771
|
var recordedMeeting = strictObject({
|
|
7034
6772
|
ref: reference,
|
|
7035
6773
|
meeting_id: count,
|
|
@@ -7039,10 +6777,12 @@ var recordedMeeting = strictObject({
|
|
|
7039
6777
|
duration_ms: nullable(count),
|
|
7040
6778
|
has_transcript: boolean(),
|
|
7041
6779
|
event: nullable(reference),
|
|
7042
|
-
people: array(reference)
|
|
6780
|
+
people: array(reference),
|
|
6781
|
+
/** Present only on a phone call: its direction, manager and the other side's number. */
|
|
6782
|
+
call: optional(meetingCall)
|
|
7043
6783
|
});
|
|
7044
6784
|
|
|
7045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7046
6786
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7047
6787
|
var contextMessage = strictObject({
|
|
7048
6788
|
locator: reference,
|
|
@@ -7248,7 +6988,7 @@ var contactPreparation = strictObject({
|
|
|
7248
6988
|
})
|
|
7249
6989
|
});
|
|
7250
6990
|
|
|
7251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
7252
6992
|
var nullableText = nullable(text);
|
|
7253
6993
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7254
6994
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7296,7 +7036,10 @@ var deal = strictObject({
|
|
|
7296
7036
|
external_id: nullableText,
|
|
7297
7037
|
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
7298
7038
|
assignee: nullableText,
|
|
7299
|
-
/**
|
|
7039
|
+
/**
|
|
7040
|
+
* A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. `amount_note` is
|
|
7041
|
+
* WireCat's own note, not a CRM field: the CRM's amount the store could not keep, and why.
|
|
7042
|
+
*/
|
|
7300
7043
|
provider_metadata: record(string(), strictObject({
|
|
7301
7044
|
label: nullable(string()),
|
|
7302
7045
|
value: unknown(),
|
|
@@ -7359,7 +7102,7 @@ var stage = strictObject({
|
|
|
7359
7102
|
untrusted
|
|
7360
7103
|
});
|
|
7361
7104
|
|
|
7362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
7363
7106
|
var nullableText2 = nullable(text);
|
|
7364
7107
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7365
7108
|
var standing = picklist(STANDINGS);
|
|
@@ -7533,7 +7276,7 @@ var dealBrief = strictObject({
|
|
|
7533
7276
|
not_read: coverage2.entries.not_read
|
|
7534
7277
|
});
|
|
7535
7278
|
|
|
7536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7537
7280
|
var chart = strictObject({
|
|
7538
7281
|
version: literal(1),
|
|
7539
7282
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7548,7 +7291,7 @@ var chart = strictObject({
|
|
|
7548
7291
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7549
7292
|
});
|
|
7550
7293
|
|
|
7551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7552
7295
|
var named = strictObject({
|
|
7553
7296
|
id,
|
|
7554
7297
|
title: nullable(text),
|
|
@@ -7571,7 +7314,7 @@ var folder = strictObject({
|
|
|
7571
7314
|
excluded_chats: optional(array(named))
|
|
7572
7315
|
});
|
|
7573
7316
|
|
|
7574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7575
7318
|
var inviteLink = strictObject({
|
|
7576
7319
|
link: text,
|
|
7577
7320
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7587,7 +7330,7 @@ var inviteLink = strictObject({
|
|
|
7587
7330
|
joined_count: optional(count)
|
|
7588
7331
|
});
|
|
7589
7332
|
|
|
7590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7591
7334
|
var operated = { operation_id: id, chat_id: id };
|
|
7592
7335
|
var group = strictObject({
|
|
7593
7336
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7667,7 +7410,7 @@ var chatFolderOrder = strictObject({
|
|
|
7667
7410
|
folders: array(strictObject({ id, title: text }))
|
|
7668
7411
|
});
|
|
7669
7412
|
|
|
7670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7671
7414
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7672
7415
|
var chatRemoval = strictObject(operated2);
|
|
7673
7416
|
var chatMuting = strictObject({
|
|
@@ -7678,7 +7421,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7678
7421
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7679
7422
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7680
7423
|
|
|
7681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7682
7425
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7683
7426
|
var chatEvent = strictObject({
|
|
7684
7427
|
chat_id: id,
|
|
@@ -7695,7 +7438,7 @@ var chatEvent = strictObject({
|
|
|
7695
7438
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7696
7439
|
});
|
|
7697
7440
|
|
|
7698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7699
7442
|
var chatMetadata = strictObject({
|
|
7700
7443
|
chat_id: id,
|
|
7701
7444
|
title: nullable(text),
|
|
@@ -7710,7 +7453,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7710
7453
|
has_more: boolean()
|
|
7711
7454
|
});
|
|
7712
7455
|
|
|
7713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7714
7457
|
var action = picklist(["report", "delete", "remove"]);
|
|
7715
7458
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7716
7459
|
var chatRules = strictObject({
|
|
@@ -7747,7 +7490,17 @@ var chatModeration = strictObject({
|
|
|
7747
7490
|
}))
|
|
7748
7491
|
});
|
|
7749
7492
|
|
|
7750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
7494
|
+
var chatSending = strictObject({
|
|
7495
|
+
mode: picklist(["allowed", "ask", "denied"]),
|
|
7496
|
+
meaning: text,
|
|
7497
|
+
/** When the owner last set it; `null` while it is the default, ask. */
|
|
7498
|
+
since: nullable(time),
|
|
7499
|
+
/** `set` only: whether this run changed it. */
|
|
7500
|
+
changed: optional(boolean())
|
|
7501
|
+
});
|
|
7502
|
+
|
|
7503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7751
7504
|
var optionalCount = optional(count);
|
|
7752
7505
|
var minutes = nullable(number());
|
|
7753
7506
|
var chatStats = strictObject({
|
|
@@ -7823,7 +7576,7 @@ var taskStats = strictObject({
|
|
|
7823
7576
|
}))
|
|
7824
7577
|
});
|
|
7825
7578
|
|
|
7826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7827
7580
|
var memberCount = strictObject({
|
|
7828
7581
|
day: pipe(text, isoDate()),
|
|
7829
7582
|
participants: nullable(count),
|
|
@@ -7846,7 +7599,7 @@ var chatTracking = strictObject({
|
|
|
7846
7599
|
tracked: boolean()
|
|
7847
7600
|
});
|
|
7848
7601
|
|
|
7849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7850
7603
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7851
7604
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7852
7605
|
var profileFields = {
|
|
@@ -7884,7 +7637,7 @@ var profileFields = {
|
|
|
7884
7637
|
}))
|
|
7885
7638
|
};
|
|
7886
7639
|
|
|
7887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7888
7641
|
var contact = strictObject({
|
|
7889
7642
|
ref: reference,
|
|
7890
7643
|
id,
|
|
@@ -7915,7 +7668,7 @@ var contact = strictObject({
|
|
|
7915
7668
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7916
7669
|
});
|
|
7917
7670
|
|
|
7918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
7919
7672
|
var contactNote = strictObject({
|
|
7920
7673
|
id,
|
|
7921
7674
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7927,13 +7680,13 @@ var contactNote = strictObject({
|
|
|
7927
7680
|
updated_at: time
|
|
7928
7681
|
});
|
|
7929
7682
|
|
|
7930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
7931
7684
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7932
7685
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7933
7686
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7934
7687
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7935
7688
|
|
|
7936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7937
7690
|
var conversation = strictObject({
|
|
7938
7691
|
id,
|
|
7939
7692
|
chat: reference,
|
|
@@ -7948,7 +7701,7 @@ var conversation = strictObject({
|
|
|
7948
7701
|
rules_version: count
|
|
7949
7702
|
});
|
|
7950
7703
|
|
|
7951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
7952
7705
|
var conversationBuild = strictObject({
|
|
7953
7706
|
chat: id,
|
|
7954
7707
|
messages: count,
|
|
@@ -7973,7 +7726,7 @@ var catchUpPreparation = strictObject({
|
|
|
7973
7726
|
prepared: optional(conversationPreparation)
|
|
7974
7727
|
});
|
|
7975
7728
|
|
|
7976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
7977
7730
|
var conversationDetails = union([
|
|
7978
7731
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7979
7732
|
message
|
|
@@ -8063,7 +7816,7 @@ var conversationHit = strictObject({
|
|
|
8063
7816
|
stale: boolean()
|
|
8064
7817
|
});
|
|
8065
7818
|
|
|
8066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8067
7820
|
var counters = strictObject({
|
|
8068
7821
|
cutoff: time,
|
|
8069
7822
|
max_age_ms: milliseconds,
|
|
@@ -8093,7 +7846,7 @@ var counterRefresh = strictObject({
|
|
|
8093
7846
|
complete: optional(boolean())
|
|
8094
7847
|
});
|
|
8095
7848
|
|
|
8096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8097
7850
|
var document = strictObject({
|
|
8098
7851
|
ref: reference,
|
|
8099
7852
|
id,
|
|
@@ -8108,7 +7861,7 @@ var document = strictObject({
|
|
|
8108
7861
|
owners: optional(array(text))
|
|
8109
7862
|
});
|
|
8110
7863
|
|
|
8111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8112
7865
|
var documentLink = strictObject({
|
|
8113
7866
|
ref: reference,
|
|
8114
7867
|
url: text,
|
|
@@ -8119,7 +7872,7 @@ var documentLink = strictObject({
|
|
|
8119
7872
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8120
7873
|
});
|
|
8121
7874
|
|
|
8122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8123
7876
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8124
7877
|
var contribution = strictObject({
|
|
8125
7878
|
message: evidenceMessage,
|
|
@@ -8149,7 +7902,7 @@ var retentionStay = strictObject({
|
|
|
8149
7902
|
});
|
|
8150
7903
|
var evidence = union([contribution, retentionStay]);
|
|
8151
7904
|
|
|
8152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8153
7906
|
var fact = strictObject({
|
|
8154
7907
|
ref: reference,
|
|
8155
7908
|
id,
|
|
@@ -8180,7 +7933,7 @@ var fact = strictObject({
|
|
|
8180
7933
|
updated_at: time
|
|
8181
7934
|
});
|
|
8182
7935
|
|
|
8183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8184
7937
|
var hit = strictObject({
|
|
8185
7938
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
8186
7939
|
ref: reference,
|
|
@@ -8228,7 +7981,7 @@ var hit = strictObject({
|
|
|
8228
7981
|
untrusted
|
|
8229
7982
|
});
|
|
8230
7983
|
|
|
8231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8232
7985
|
var identity = strictObject({
|
|
8233
7986
|
ref: reference,
|
|
8234
7987
|
provider: text,
|
|
@@ -8244,7 +7997,7 @@ var identity = strictObject({
|
|
|
8244
7997
|
person: optional(nullable(reference))
|
|
8245
7998
|
});
|
|
8246
7999
|
|
|
8247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8248
8001
|
var imageEmbedding = strictObject({
|
|
8249
8002
|
model: text,
|
|
8250
8003
|
embedded: count,
|
|
@@ -8253,13 +8006,13 @@ var imageEmbedding = strictObject({
|
|
|
8253
8006
|
more: boolean()
|
|
8254
8007
|
});
|
|
8255
8008
|
|
|
8256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8257
8010
|
import { spawn } from "node:child_process";
|
|
8258
8011
|
import { randomBytes } from "node:crypto";
|
|
8259
|
-
import { closeSync, existsSync as
|
|
8260
|
-
import { dirname as dirname2, join as
|
|
8012
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
8013
|
+
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8261
8014
|
|
|
8262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8263
8016
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8264
8017
|
const total = input.total ?? null;
|
|
8265
8018
|
const updated = input.updatedAt ?? null;
|
|
@@ -8275,7 +8028,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8275
8028
|
};
|
|
8276
8029
|
}, "progressOf");
|
|
8277
8030
|
|
|
8278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8279
8032
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8280
8033
|
const run = currentRun();
|
|
8281
8034
|
const trace = traceId ?? run.traceId;
|
|
@@ -8289,7 +8042,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8289
8042
|
}));
|
|
8290
8043
|
}, "recordLogFor");
|
|
8291
8044
|
|
|
8292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8293
8046
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8294
8047
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8295
8048
|
const out = openSync(log, "a", 384);
|
|
@@ -8305,15 +8058,15 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
|
8305
8058
|
closeSync(out);
|
|
8306
8059
|
}
|
|
8307
8060
|
}, "spawnDetached");
|
|
8308
|
-
var jobsDir = /* @__PURE__ */ __name((app, env) =>
|
|
8309
|
-
var jobPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8061
|
+
var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
|
|
8062
|
+
var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
|
|
8310
8063
|
var saveJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
8311
8064
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
8312
8065
|
writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
|
|
8313
8066
|
`, 384);
|
|
8314
8067
|
}, "saveJob");
|
|
8315
8068
|
var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
8316
|
-
if (!/^[\w-]+$/.test(id6) || !
|
|
8069
|
+
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8317
8070
|
return void 0;
|
|
8318
8071
|
try {
|
|
8319
8072
|
return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
|
|
@@ -8321,7 +8074,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
|
8321
8074
|
return void 0;
|
|
8322
8075
|
}
|
|
8323
8076
|
}, "readJob");
|
|
8324
|
-
var recordsPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8077
|
+
var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
|
|
8325
8078
|
var tracedJob = /* @__PURE__ */ __name((env) => {
|
|
8326
8079
|
const trace = childTrace();
|
|
8327
8080
|
return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
|
|
@@ -8358,7 +8111,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
|
8358
8111
|
if (dirname2(job2.log) === dir)
|
|
8359
8112
|
rmSync2(job2.log, { force: true });
|
|
8360
8113
|
}, "removeJob");
|
|
8361
|
-
var listJobs = /* @__PURE__ */ __name((dir) =>
|
|
8114
|
+
var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(dir) ? readdirSync3(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
|
|
8362
8115
|
var jobDetails = /* @__PURE__ */ __name((job2) => ({
|
|
8363
8116
|
job: job2.id,
|
|
8364
8117
|
profile: job2.profile,
|
|
@@ -8424,7 +8177,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8424
8177
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
8425
8178
|
const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
|
|
8426
8179
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
8427
|
-
const log =
|
|
8180
|
+
const log = join4(dir, `${id6}.log`);
|
|
8428
8181
|
const job2 = {
|
|
8429
8182
|
id: id6,
|
|
8430
8183
|
chat: input.chat,
|
|
@@ -8444,7 +8197,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8444
8197
|
return { job: id6, pid, chat: input.chat, log };
|
|
8445
8198
|
}, "startArchiveJob");
|
|
8446
8199
|
|
|
8447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8448
8201
|
var problem = strictObject({ code: text, message: text });
|
|
8449
8202
|
var job = strictObject({
|
|
8450
8203
|
id,
|
|
@@ -8467,7 +8220,7 @@ var job = strictObject({
|
|
|
8467
8220
|
error: optional(problem)
|
|
8468
8221
|
});
|
|
8469
8222
|
|
|
8470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8471
8224
|
var joinRequest = strictObject({
|
|
8472
8225
|
person_id: id,
|
|
8473
8226
|
name: nullable(text),
|
|
@@ -8478,7 +8231,7 @@ var joinRequest = strictObject({
|
|
|
8478
8231
|
about: optional(text)
|
|
8479
8232
|
});
|
|
8480
8233
|
|
|
8481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8482
8235
|
var botProfile = strictObject({
|
|
8483
8236
|
name: text,
|
|
8484
8237
|
token: text,
|
|
@@ -8602,7 +8355,7 @@ var stickerInventory = strictObject({
|
|
|
8602
8355
|
url: optional(nullable(text))
|
|
8603
8356
|
});
|
|
8604
8357
|
|
|
8605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8606
8359
|
var pollVote = strictObject({
|
|
8607
8360
|
person_id: id,
|
|
8608
8361
|
name: nullable(text),
|
|
@@ -8612,7 +8365,7 @@ var pollVote = strictObject({
|
|
|
8612
8365
|
voted_at: time
|
|
8613
8366
|
});
|
|
8614
8367
|
|
|
8615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8616
8369
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8617
8370
|
var observation = strictObject({
|
|
8618
8371
|
value: pipe(number(), minValue(0)),
|
|
@@ -8654,7 +8407,7 @@ var serveSummary = strictObject({
|
|
|
8654
8407
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8655
8408
|
});
|
|
8656
8409
|
|
|
8657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8658
8411
|
var mailCounts = strictObject({
|
|
8659
8412
|
by: picklist(["day", "week", "sender"]),
|
|
8660
8413
|
received: count,
|
|
@@ -8669,7 +8422,7 @@ var mailCounts = strictObject({
|
|
|
8669
8422
|
}))
|
|
8670
8423
|
});
|
|
8671
8424
|
|
|
8672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8673
8426
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8674
8427
|
var base = { id, evidence: array(evidence2) };
|
|
8675
8428
|
var finding = variant("kind", [
|
|
@@ -8813,7 +8566,7 @@ var mailFindings = strictObject({
|
|
|
8813
8566
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8814
8567
|
});
|
|
8815
8568
|
|
|
8816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8817
8570
|
var mediaArchive = strictObject({
|
|
8818
8571
|
directory: text,
|
|
8819
8572
|
chats: count,
|
|
@@ -8845,7 +8598,7 @@ var mediaArchiveTimer = union([
|
|
|
8845
8598
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8846
8599
|
]);
|
|
8847
8600
|
|
|
8848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8849
8602
|
var preparationId = pipe(string(), minLength(1));
|
|
8850
8603
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8851
8604
|
var preparationTime = nullable(isoTime);
|
|
@@ -8937,7 +8690,7 @@ var preparationMeeting = strictObject({
|
|
|
8937
8690
|
updated_at: isoTime
|
|
8938
8691
|
});
|
|
8939
8692
|
|
|
8940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8941
8694
|
var meetingEvidence = preparationEvidence;
|
|
8942
8695
|
var meetingPersonContext = strictObject({
|
|
8943
8696
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8959,7 +8712,7 @@ var meetingPersonContext = strictObject({
|
|
|
8959
8712
|
})
|
|
8960
8713
|
});
|
|
8961
8714
|
|
|
8962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8963
8716
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8964
8717
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8965
8718
|
var finding2 = variant("kind", [
|
|
@@ -8997,7 +8750,7 @@ var meetingFindings = strictObject({
|
|
|
8997
8750
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
8998
8751
|
});
|
|
8999
8752
|
|
|
9000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9001
8754
|
var communicationCoverage = strictObject({
|
|
9002
8755
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9003
8756
|
query: string(),
|
|
@@ -9042,7 +8795,7 @@ var preparationCommunications = strictObject({
|
|
|
9042
8795
|
}))
|
|
9043
8796
|
});
|
|
9044
8797
|
|
|
9045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9046
8799
|
var meetingPreparation = strictObject({
|
|
9047
8800
|
communications: optional(preparationCommunications),
|
|
9048
8801
|
schema_version: literal(1),
|
|
@@ -9155,7 +8908,7 @@ var meetingPreparation = strictObject({
|
|
|
9155
8908
|
})
|
|
9156
8909
|
});
|
|
9157
8910
|
|
|
9158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9159
8912
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9160
8913
|
var id3 = pipe(string(), minLength(1));
|
|
9161
8914
|
var text3 = string();
|
|
@@ -9219,7 +8972,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9219
8972
|
})
|
|
9220
8973
|
});
|
|
9221
8974
|
|
|
9222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9223
8976
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9224
8977
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9225
8978
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9249,7 +9002,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9249
9002
|
})
|
|
9250
9003
|
});
|
|
9251
9004
|
|
|
9252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9253
9006
|
var text4 = string();
|
|
9254
9007
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9255
9008
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9266,7 +9019,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9266
9019
|
persistence: literal("proposal-only")
|
|
9267
9020
|
});
|
|
9268
9021
|
|
|
9269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9270
9023
|
var memory = strictObject({
|
|
9271
9024
|
ref: reference,
|
|
9272
9025
|
id,
|
|
@@ -9294,7 +9047,7 @@ var memory = strictObject({
|
|
|
9294
9047
|
updated_at: time
|
|
9295
9048
|
});
|
|
9296
9049
|
|
|
9297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9298
9051
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9299
9052
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9300
9053
|
var mention = strictObject({
|
|
@@ -9338,13 +9091,13 @@ var mentionRebuild = strictObject({
|
|
|
9338
9091
|
mentions: count
|
|
9339
9092
|
});
|
|
9340
9093
|
|
|
9341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9342
9095
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9343
9096
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9344
9097
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9345
9098
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9346
9099
|
|
|
9347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9348
9101
|
var messageTranscript = strictObject({
|
|
9349
9102
|
message_id: id,
|
|
9350
9103
|
text,
|
|
@@ -9402,7 +9155,7 @@ var evidencePacket = strictObject({
|
|
|
9402
9155
|
}))
|
|
9403
9156
|
});
|
|
9404
9157
|
|
|
9405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9406
9159
|
var messageThread = strictObject({
|
|
9407
9160
|
ref: reference,
|
|
9408
9161
|
chat: id,
|
|
@@ -9419,7 +9172,7 @@ var messageThread = strictObject({
|
|
|
9419
9172
|
});
|
|
9420
9173
|
var messageContext = union([message, messageThread]);
|
|
9421
9174
|
|
|
9422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9423
9176
|
var messageCounts = strictObject({
|
|
9424
9177
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9425
9178
|
total: count,
|
|
@@ -9432,7 +9185,7 @@ var messageCounts = strictObject({
|
|
|
9432
9185
|
}))
|
|
9433
9186
|
});
|
|
9434
9187
|
|
|
9435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9436
9189
|
var messageLink = strictObject({
|
|
9437
9190
|
ref: reference,
|
|
9438
9191
|
url: nullable(text),
|
|
@@ -9449,7 +9202,7 @@ var messageLink = strictObject({
|
|
|
9449
9202
|
})))
|
|
9450
9203
|
});
|
|
9451
9204
|
|
|
9452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9453
9206
|
var savedMessageFile = strictObject({
|
|
9454
9207
|
kind: text,
|
|
9455
9208
|
path: text,
|
|
@@ -9536,7 +9289,7 @@ var messageSyncAll = strictObject({
|
|
|
9536
9289
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9537
9290
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9538
9291
|
|
|
9539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9540
9293
|
var messageWrite = strictObject({
|
|
9541
9294
|
operation_id: id,
|
|
9542
9295
|
message,
|
|
@@ -9551,7 +9304,7 @@ var draftWrite = strictObject({
|
|
|
9551
9304
|
});
|
|
9552
9305
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9553
9306
|
|
|
9554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9555
9308
|
var model2 = strictObject({
|
|
9556
9309
|
id,
|
|
9557
9310
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9586,7 +9339,7 @@ var chosenModel = strictObject({
|
|
|
9586
9339
|
estimate_seconds: nullable(count)
|
|
9587
9340
|
});
|
|
9588
9341
|
|
|
9589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9590
9343
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9591
9344
|
var modelKey = strictObject({
|
|
9592
9345
|
provider: text,
|
|
@@ -9596,7 +9349,7 @@ var modelKey = strictObject({
|
|
|
9596
9349
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9597
9350
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9598
9351
|
|
|
9599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9600
9353
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9601
9354
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9602
9355
|
var graph = strictObject({
|
|
@@ -9630,14 +9383,14 @@ var officialStats = strictObject({
|
|
|
9630
9383
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9631
9384
|
});
|
|
9632
9385
|
|
|
9633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9634
9387
|
var person2 = strictObject({
|
|
9635
9388
|
ref: reference,
|
|
9636
9389
|
name: nullable(text),
|
|
9637
9390
|
identities: optional(array(identity))
|
|
9638
9391
|
});
|
|
9639
9392
|
|
|
9640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9641
9394
|
var poll = strictObject({
|
|
9642
9395
|
chat_id: id,
|
|
9643
9396
|
message_id: id,
|
|
@@ -9653,11 +9406,11 @@ var poll = strictObject({
|
|
|
9653
9406
|
});
|
|
9654
9407
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9655
9408
|
|
|
9656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9657
9410
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9658
9411
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9659
9412
|
|
|
9660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9661
9414
|
var figures = record(string(), number());
|
|
9662
9415
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9663
9416
|
var rankingRow = strictObject({
|
|
@@ -9704,7 +9457,7 @@ var ranking = strictObject({
|
|
|
9704
9457
|
rows: array(rankingRow)
|
|
9705
9458
|
});
|
|
9706
9459
|
|
|
9707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9708
9461
|
var reaction = strictObject({
|
|
9709
9462
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9710
9463
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9712,7 +9465,7 @@ var reaction = strictObject({
|
|
|
9712
9465
|
reacted_at: time
|
|
9713
9466
|
});
|
|
9714
9467
|
|
|
9715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9716
9469
|
var reactionChange = strictObject({
|
|
9717
9470
|
operation_id: id,
|
|
9718
9471
|
chat_id: id,
|
|
@@ -9720,7 +9473,7 @@ var reactionChange = strictObject({
|
|
|
9720
9473
|
reaction: nullable(text)
|
|
9721
9474
|
});
|
|
9722
9475
|
|
|
9723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9724
9477
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9725
9478
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9726
9479
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9731,7 +9484,7 @@ var recipientChange = strictObject({
|
|
|
9731
9484
|
...partial(recipientOff).entries
|
|
9732
9485
|
});
|
|
9733
9486
|
|
|
9734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9735
9488
|
var events = array(record(string(), unknown()));
|
|
9736
9489
|
var recordedRun = strictObject({
|
|
9737
9490
|
run_id: id,
|
|
@@ -9803,7 +9556,7 @@ var runHit = strictObject({
|
|
|
9803
9556
|
});
|
|
9804
9557
|
var runLocation = strictObject({ path: text });
|
|
9805
9558
|
|
|
9806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9807
9560
|
var relationship = strictObject({
|
|
9808
9561
|
id,
|
|
9809
9562
|
from: reference,
|
|
@@ -9830,7 +9583,7 @@ var relationship = strictObject({
|
|
|
9830
9583
|
created_at: time
|
|
9831
9584
|
});
|
|
9832
9585
|
|
|
9833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9834
9587
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9835
9588
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9836
9589
|
var responseTimes = strictObject({
|
|
@@ -9847,7 +9600,7 @@ var waitingChats = strictObject({
|
|
|
9847
9600
|
by_kind: strictObject({ private: count, group: count })
|
|
9848
9601
|
});
|
|
9849
9602
|
|
|
9850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9851
9604
|
var retentionCohort = strictObject({
|
|
9852
9605
|
/** The first day of the joining day or week. */
|
|
9853
9606
|
cohort: text,
|
|
@@ -9895,7 +9648,7 @@ var retention = strictObject({
|
|
|
9895
9648
|
rows: array(retentionCohort)
|
|
9896
9649
|
});
|
|
9897
9650
|
|
|
9898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9899
9652
|
var savedSearch = strictObject({
|
|
9900
9653
|
id,
|
|
9901
9654
|
/** `null` for a run in the history. */
|
|
@@ -9912,7 +9665,7 @@ var savedSearch = strictObject({
|
|
|
9912
9665
|
});
|
|
9913
9666
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9914
9667
|
|
|
9915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9916
9669
|
var sendAttempt = strictObject({
|
|
9917
9670
|
at: time,
|
|
9918
9671
|
profile: text,
|
|
@@ -9940,7 +9693,7 @@ var sendAttempt = strictObject({
|
|
|
9940
9693
|
error_code: optional(text)
|
|
9941
9694
|
});
|
|
9942
9695
|
|
|
9943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9944
9697
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9945
9698
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9946
9699
|
var infoSchema = strictObject({
|
|
@@ -10170,7 +9923,7 @@ var storeRepair = union([
|
|
|
10170
9923
|
]);
|
|
10171
9924
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10172
9925
|
|
|
10173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10174
9927
|
var range = strictObject({ from: number(), to: number() });
|
|
10175
9928
|
var storeChatStatus = strictObject({
|
|
10176
9929
|
chat_id: id,
|
|
@@ -10268,7 +10021,7 @@ var storeJobRetry = union([
|
|
|
10268
10021
|
]);
|
|
10269
10022
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10270
10023
|
|
|
10271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10272
10025
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10273
10026
|
var storeTable = strictObject({
|
|
10274
10027
|
name: text,
|
|
@@ -10277,7 +10030,7 @@ var storeTable = strictObject({
|
|
|
10277
10030
|
bytes: optional(nullable(count))
|
|
10278
10031
|
});
|
|
10279
10032
|
|
|
10280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10281
10034
|
var tagTarget = variant("type", [
|
|
10282
10035
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10283
10036
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10308,7 +10061,7 @@ var automaticTags = strictObject({
|
|
|
10308
10061
|
dry_run: boolean()
|
|
10309
10062
|
});
|
|
10310
10063
|
|
|
10311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10312
10065
|
var tagging = strictObject({
|
|
10313
10066
|
tag: text,
|
|
10314
10067
|
type: picklist(TAG_TYPES),
|
|
@@ -10321,7 +10074,7 @@ var tagging = strictObject({
|
|
|
10321
10074
|
created_at: time
|
|
10322
10075
|
});
|
|
10323
10076
|
|
|
10324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10325
10078
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10326
10079
|
var taskPair = strictObject({
|
|
10327
10080
|
task: nullable(side),
|
|
@@ -10344,7 +10097,7 @@ var taskPair = strictObject({
|
|
|
10344
10097
|
created_at: time
|
|
10345
10098
|
});
|
|
10346
10099
|
|
|
10347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10348
10101
|
var nullableTime = nullable(time);
|
|
10349
10102
|
var link = strictObject({
|
|
10350
10103
|
id,
|
|
@@ -10518,7 +10271,7 @@ var taskReview = strictObject({
|
|
|
10518
10271
|
untrusted
|
|
10519
10272
|
});
|
|
10520
10273
|
|
|
10521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10522
10275
|
var template = strictObject({
|
|
10523
10276
|
key: text,
|
|
10524
10277
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10530,7 +10283,7 @@ var template = strictObject({
|
|
|
10530
10283
|
updated_by: nullable(text)
|
|
10531
10284
|
});
|
|
10532
10285
|
|
|
10533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10534
10287
|
var topic = strictObject({
|
|
10535
10288
|
id,
|
|
10536
10289
|
title: text,
|
|
@@ -10544,7 +10297,7 @@ var topic = strictObject({
|
|
|
10544
10297
|
untrusted
|
|
10545
10298
|
});
|
|
10546
10299
|
|
|
10547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10548
10301
|
var ENTITIES = {
|
|
10549
10302
|
sync_progress: progress,
|
|
10550
10303
|
deal,
|
|
@@ -10720,6 +10473,8 @@ var ENTITIES = {
|
|
|
10720
10473
|
meeting_stats: meetingStats,
|
|
10721
10474
|
meeting_counts: meetingCounts,
|
|
10722
10475
|
call_stats: callStats,
|
|
10476
|
+
meeting_tag_change: meetingTagChange,
|
|
10477
|
+
meeting_tagging: meetingTagging,
|
|
10723
10478
|
meeting_speaker: meetingSpeaker,
|
|
10724
10479
|
meeting_participants: meetingParticipants,
|
|
10725
10480
|
meeting_passage: meetingPassage,
|
|
@@ -10796,6 +10551,7 @@ var ENTITIES = {
|
|
|
10796
10551
|
chat_moderation: chatModeration,
|
|
10797
10552
|
"model.chosen": chosenModel,
|
|
10798
10553
|
model_key: modelKey,
|
|
10554
|
+
chat_sending: chatSending,
|
|
10799
10555
|
"model_key.stored": storedModelKey,
|
|
10800
10556
|
"model_key.removed": removedModelKey,
|
|
10801
10557
|
chat_event: chatEvent,
|
|
@@ -10840,7 +10596,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10840
10596
|
return [name, definition];
|
|
10841
10597
|
})), "entityDefinitions");
|
|
10842
10598
|
|
|
10843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10844
10600
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10845
10601
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10846
10602
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10874,8 +10630,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10874
10630
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10875
10631
|
}, "answerRow");
|
|
10876
10632
|
|
|
10877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10878
|
-
import { join as
|
|
10633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10634
|
+
import { join as join5 } from "node:path";
|
|
10879
10635
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10880
10636
|
var IMAGE_MODELS = [
|
|
10881
10637
|
{
|
|
@@ -10925,10 +10681,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
10925
10681
|
return found;
|
|
10926
10682
|
}, "imageModel");
|
|
10927
10683
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
10928
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file,
|
|
10684
|
+
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
10929
10685
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10930
10686
|
|
|
10931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10932
10688
|
var STEPS2 = defineSteps([
|
|
10933
10689
|
...STEPS,
|
|
10934
10690
|
{
|
|
@@ -11165,10 +10921,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11165
10921
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11166
10922
|
return stepOf(definition, { ...input, args });
|
|
11167
10923
|
}, "nextStep");
|
|
11168
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
10924
|
+
var lineOf = /* @__PURE__ */ __name((command, words) => {
|
|
11169
10925
|
const root = rootOf2(command);
|
|
11170
10926
|
const profile = root.getOptionValue("profile");
|
|
11171
|
-
return typedCommand(root.name(),
|
|
10927
|
+
return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11172
10928
|
}, "lineOf");
|
|
11173
10929
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11174
10930
|
let root = command;
|
|
@@ -11218,7 +10974,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11218
10974
|
].join(" ");
|
|
11219
10975
|
}, "stepLine");
|
|
11220
10976
|
|
|
11221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11222
10978
|
var where = [{ field: "ref" }];
|
|
11223
10979
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11224
10980
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11310,7 +11066,7 @@ var STATUS_ROWS = {
|
|
|
11310
11066
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11311
11067
|
};
|
|
11312
11068
|
|
|
11313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11314
11070
|
var TEXT_CHARS = 400;
|
|
11315
11071
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11316
11072
|
var messageRow = {
|
|
@@ -11678,7 +11434,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11678
11434
|
return lines.concat(footerOf(body)).join("\n");
|
|
11679
11435
|
}, "compactText");
|
|
11680
11436
|
|
|
11681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11682
11438
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11683
11439
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11684
11440
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11704,10 +11460,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
11704
11460
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
11705
11461
|
}, "declaresRow");
|
|
11706
11462
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
11707
|
-
const
|
|
11463
|
+
const words = [];
|
|
11708
11464
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11709
|
-
|
|
11710
|
-
return
|
|
11465
|
+
words.unshift(at2.name());
|
|
11466
|
+
return words.join(" ");
|
|
11711
11467
|
}, "pathOf");
|
|
11712
11468
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
11713
11469
|
kind: "command",
|
|
@@ -11736,7 +11492,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11736
11492
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11737
11493
|
}, "largeAnswerSteps");
|
|
11738
11494
|
|
|
11739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11740
11496
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11741
11497
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11742
11498
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11750,7 +11506,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11750
11506
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11751
11507
|
}, "strip");
|
|
11752
11508
|
|
|
11753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
11754
11510
|
var OPEN = "\u27E6";
|
|
11755
11511
|
var CLOSE = "\u27E7";
|
|
11756
11512
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11834,7 +11590,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11834
11590
|
return result;
|
|
11835
11591
|
}, "withFieldsMarked");
|
|
11836
11592
|
|
|
11837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11838
11594
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11839
11595
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11840
11596
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11942,8 +11698,8 @@ var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body :
|
|
|
11942
11698
|
var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
|
|
11943
11699
|
var listZone = /* @__PURE__ */ __name((command) => {
|
|
11944
11700
|
const registry = metaOf(command).query;
|
|
11945
|
-
const
|
|
11946
|
-
const text5 = Array.isArray(
|
|
11701
|
+
const words = command.processedArgs.at(-1);
|
|
11702
|
+
const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
|
|
11947
11703
|
const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
11948
11704
|
if (times.size === 0 || text5.trim() === "")
|
|
11949
11705
|
return void 0;
|
|
@@ -12099,19 +11855,6 @@ export {
|
|
|
12099
11855
|
refuseCommandName,
|
|
12100
11856
|
rootOf,
|
|
12101
11857
|
sampleCommand,
|
|
12102
|
-
DEFAULT_TEXT_MODEL,
|
|
12103
|
-
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
12104
|
-
CustomTextModelShape,
|
|
12105
|
-
readTextModelsSection,
|
|
12106
|
-
writeTextModelsSection,
|
|
12107
|
-
textModels,
|
|
12108
|
-
textModel,
|
|
12109
|
-
chosenTextModel,
|
|
12110
|
-
RERANK_MODELS,
|
|
12111
|
-
DEFAULT_RERANK_MODEL,
|
|
12112
|
-
rerankModel,
|
|
12113
|
-
vectorModelKey,
|
|
12114
|
-
meaningFloor,
|
|
12115
11858
|
historyWindow,
|
|
12116
11859
|
limitBatch,
|
|
12117
11860
|
botFiles,
|
|
@@ -12139,6 +11882,7 @@ export {
|
|
|
12139
11882
|
environmentOf,
|
|
12140
11883
|
withAgentLevels,
|
|
12141
11884
|
secretInputOf,
|
|
11885
|
+
outputFieldsOf,
|
|
12142
11886
|
outputFor,
|
|
12143
11887
|
baseContext,
|
|
12144
11888
|
inCommandRun,
|