@wirecat/mail-cli 0.32.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 +31 -0
- package/contracts/wirecat.json +2 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-OTCWJSJS.js → all-profiles-2KUKROHY.js} +10 -10
- package/dist/bundle/{anthropic-GUXHDK32.js → anthropic-E5KRCEVC.js} +8 -8
- package/dist/bundle/{app-server-GX7DOE4O.js → app-server-HIQ3QO5K.js} +60 -52
- package/dist/bundle/{bun-V5QLYBZU.js → bun-KARJPE5D.js} +2 -2
- package/dist/bundle/{bun-sqlite-AXD5CCO3.js → bun-sqlite-NHGX6ZUN.js} +6 -6
- package/dist/bundle/{chunk-4YNUQGDP.js → chunk-26DYRMXE.js} +1 -1
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-2GDLJKPT.js} +1 -1
- package/dist/bundle/{chunk-JUS4Y4BW.js → chunk-2SCQ7Z4I.js} +4 -4
- package/dist/bundle/{chunk-LVJWN2PR.js → chunk-2VBEBPGX.js} +21 -11
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-4SKE5GYA.js} +1 -1
- package/dist/bundle/{chunk-WNGMI6AZ.js → chunk-4URI6EAV.js} +3 -3
- package/dist/bundle/chunk-4VHK5UBM.js +170 -0
- package/dist/bundle/{chunk-O7OP5NQO.js → chunk-4VM3UCSO.js} +2 -2
- package/dist/bundle/chunk-5GANGHQI.js +721 -0
- package/dist/bundle/{chunk-SWXKS7JK.js → chunk-6G4VQFVX.js} +19 -19
- package/dist/bundle/{chunk-TDTCCHAI.js → chunk-6GGMFL7J.js} +3 -3
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-6LFRZDPV.js} +1 -1
- package/dist/bundle/{chunk-CD3TAITM.js → chunk-A2Y2RFNW.js} +75 -11
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-AGZ7SNFF.js} +1 -1
- package/dist/bundle/chunk-CKVWAUBW.js +787 -0
- package/dist/bundle/{chunk-SZZJOSIS.js → chunk-DYQGEZA2.js} +3 -3
- package/dist/bundle/{chunk-JRGPPS6H.js → chunk-DZRP4UCK.js} +13 -13
- package/dist/bundle/{chunk-7GW4D3OW.js → chunk-EGQJDEFY.js} +85 -39
- package/dist/bundle/{chunk-7MEVD5PI.js → chunk-EZAX77SM.js} +20 -20
- package/dist/bundle/{chunk-2IYAZRTC.js → chunk-FNYWC6A3.js} +2 -2
- package/dist/bundle/chunk-FORAOCZ3.js +334 -0
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-H77ALM2Y.js} +4 -4
- package/dist/bundle/{chunk-MENP3FF5.js → chunk-HH647UBC.js} +23 -23
- package/dist/bundle/{chunk-HUWQ7LXZ.js → chunk-HRDCH2VB.js} +947 -953
- package/dist/bundle/{chunk-ZDP6A2VL.js → chunk-I3MS74OF.js} +4 -4
- package/dist/bundle/{chunk-TWHIZJAZ.js → chunk-IMQ4CVZJ.js} +2 -2
- package/dist/bundle/{chunk-NMN5JUYL.js → chunk-JVGVLRBA.js} +5 -5
- package/dist/bundle/{chunk-U57QRUP7.js → chunk-KF6O4RZO.js} +3 -3
- package/dist/bundle/{chunk-LVFI3TCG.js → chunk-KGYK3OI3.js} +6 -6
- package/dist/bundle/{chunk-PALY5PGE.js → chunk-KLI5FKZ2.js} +7 -7
- package/dist/bundle/chunk-KNVTBDTE.js +72 -0
- package/dist/bundle/{chunk-PCWAZVAD.js → chunk-LKTDW5LH.js} +7 -7
- package/dist/bundle/{chunk-ECZSYLSL.js → chunk-LOSYDRJU.js} +45 -8
- package/dist/bundle/{chunk-HFA6AZWA.js → chunk-MDISZMK4.js} +4 -4
- package/dist/bundle/{chunk-GPOTPA3S.js → chunk-MGXYIVVJ.js} +14 -13
- package/dist/bundle/{chunk-KLGZX6QT.js → chunk-NAENYLIO.js} +2 -2
- package/dist/bundle/{chunk-SDAYOJLL.js → chunk-NHD5BOJU.js} +6 -6
- package/dist/bundle/{chunk-FA3B2DHZ.js → chunk-NI4GCP2T.js} +2 -2
- package/dist/bundle/{chunk-ZAD7K4TI.js → chunk-NJVJH5MH.js} +8053 -8240
- package/dist/bundle/{chunk-IVD3JTN5.js → chunk-NWD7AFOR.js} +2 -2
- package/dist/bundle/{chunk-U346WBJ5.js → chunk-NXERDBEK.js} +4 -4
- package/dist/bundle/{chunk-AJY2IT25.js → chunk-OG5QO5RR.js} +8 -8
- package/dist/bundle/{chunk-RNBG75HW.js → chunk-OJ3BI2U4.js} +29 -30
- package/dist/bundle/chunk-OOYRMTX5.js +374 -0
- package/dist/bundle/{chunk-GSXCMQWV.js → chunk-OX5MCGXL.js} +40 -40
- package/dist/bundle/{chunk-T577U52I.js → chunk-PA4GEJXQ.js} +9 -9
- package/dist/bundle/{chunk-2UMEZY6D.js → chunk-PC3N3LH3.js} +3 -3
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-PRDKEVUL.js} +1 -1
- package/dist/bundle/{chunk-Z6OKVD3R.js → chunk-PVZMN3UZ.js} +8 -8
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-QFJC6POK.js} +1 -1
- package/dist/bundle/{chunk-MVMNZ3Q3.js → chunk-QOQF2TX3.js} +893 -1491
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-QQGPV3QN.js} +2 -2
- package/dist/bundle/{chunk-6SJ7HHAE.js → chunk-QXLYLVEC.js} +1 -1
- package/dist/bundle/chunk-QXYNDMA6.js +259 -0
- package/dist/bundle/{chunk-QHXOXYAT.js → chunk-R2GS3GBJ.js} +61 -59
- package/dist/bundle/{chunk-6TRKNME5.js → chunk-RPNQXWRS.js} +4 -4
- package/dist/bundle/{chunk-7C6FGWDH.js → chunk-SK3N4CK5.js} +4 -4
- package/dist/bundle/{chunk-GDDCKTBR.js → chunk-T2EE5M7O.js} +5 -5
- package/dist/bundle/{chunk-U7RLFLTM.js → chunk-TZJC4AOK.js} +30 -29
- package/dist/bundle/{chunk-PCMQYGEM.js → chunk-V43KEZYA.js} +9 -9
- package/dist/bundle/{chunk-MSK7RNOM.js → chunk-VBVR6JRC.js} +283 -515
- package/dist/bundle/{chunk-KLFF54AF.js → chunk-VRGEDK4T.js} +8 -8
- package/dist/bundle/{chunk-ANYADN3S.js → chunk-WYGDALB3.js} +31 -85
- package/dist/bundle/{chunk-IBCGCYRU.js → chunk-X6IGETU6.js} +2 -2
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-XIF75Z7D.js} +1 -1
- package/dist/bundle/chunk-XWU3A7H6.js +29 -0
- package/dist/bundle/{chunk-XXXVVNGI.js → chunk-YWX5X5RI.js} +19 -117
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-Z6A6QPPW.js} +1 -1
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-ZGZADWD7.js} +1 -1
- package/dist/bundle/{chunk-MT2WDBG2.js → chunk-ZZEWQR43.js} +18 -14
- package/dist/bundle/command-contract-PZ7VOOXP.js +39 -0
- package/dist/bundle/{command-server-entry-BVXOPKXH.js → command-server-entry-NF45UPEV.js} +28 -25
- package/dist/bundle/decode-DUZA3EHC.js +296 -0
- package/dist/bundle/{dispatch-DSVN7MNG.js → dispatch-CDJZAMVP.js} +8 -8
- package/dist/bundle/{dist-B2JWWTNN.js → dist-RH7EMC4J.js} +29 -24
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-GZHZBNRA.js} +2 -2
- package/dist/bundle/{embed-4NC4ELYP.js → embed-VE3CSJN4.js} +6 -6
- package/dist/bundle/{embedder-HBRDIFQC.js → embedder-DSJ77DX5.js} +9 -9
- package/dist/bundle/{failure-COTPFUP4.js → failure-YH6HAGFT.js} +2 -2
- package/dist/bundle/{first-run-6QF67AAZ.js → first-run-3L7HLYTI.js} +12 -12
- package/dist/bundle/first-screen-MY5KID77.js +37 -0
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-OZK3BLIO.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-TDKGDB4V.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-IEVT2FSJ.js → node-OS3VWBUZ.js} +2 -2
- package/dist/bundle/{node-sqlite-EOTTDMOG.js → node-sqlite-RQ623VFA.js} +7 -7
- package/dist/bundle/{oauth-A5BEFGCI.js → oauth-CBPAG734.js} +7 -7
- package/dist/bundle/{open-HWN2EZYG.js → open-H4DGOMBC.js} +5 -5
- package/dist/bundle/{openai-PJKJ4CIU.js → openai-EMWRGR54.js} +28 -26
- package/dist/bundle/{process-6Q23D3TO.js → process-3TOIYASI.js} +1 -1
- package/dist/bundle/{program-WR43NPAV.js → program-WA6RGAJL.js} +3151 -2105
- package/dist/bundle/{prompt-E7Q2662O.js → prompt-22KNCMBI.js} +5 -5
- package/dist/bundle/{recognize-4F4PIL4B.js → recognize-UWD4RSCZ.js} +4 -4
- package/dist/bundle/{remote-RGJXO7XK.js → remote-LJY7MF2E.js} +9 -9
- package/dist/bundle/{rerank-EDY7PHMG.js → rerank-JJ6KNJFB.js} +7 -7
- package/dist/bundle/{serve-Q4XF6ID2.js → serve-3EPLJYVZ.js} +9 -9
- package/dist/bundle/{server-5I72DSDF.js → server-5JOFO4V4.js} +52 -44
- package/dist/bundle/server-EOQNS7B7.js +75 -0
- package/dist/bundle/{sqlite-runtime-PU3Z2H7C.js → sqlite-runtime-MGJA5E27.js} +6 -6
- package/dist/bundle/{state-CWSXJBU2.js → state-UCRDOWOP.js} +6 -6
- package/dist/bundle/{store-KQPKS3PX.js → store-265VRRQV.js} +25 -20
- package/dist/bundle/{store-ZAMKKM2A.js → store-HS272YSA.js} +21 -17
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +66 -0
- package/dist/commands/messages.js +1 -1
- package/dist/commands/messages.js.map +1 -1
- 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/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +4 -3
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/rules/apply.js +1 -1
- package/dist/mail/rules/apply.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-DZ6XRIOI.js +0 -36
- package/dist/bundle/decode-STN3EHT7.js +0 -162
- package/dist/bundle/first-screen-LXSZMK2P.js +0 -34
- package/dist/bundle/server-2Y5NSP2U.js +0 -67
- package/dist/bundle/store-maintenance-command-PMTTDR6J.js +0 -58
- /package/dist/bundle/{chunk-XWBPP2HX.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-WQOGHND4.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,29 +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,
|
|
112
|
+
callStats,
|
|
100
113
|
describeQuery,
|
|
101
114
|
event,
|
|
102
115
|
meeting,
|
|
116
|
+
meetingCall,
|
|
103
117
|
meetingCounts,
|
|
104
118
|
meetingDetails,
|
|
105
119
|
meetingHit,
|
|
@@ -111,28 +125,27 @@ import {
|
|
|
111
125
|
meetingSpeaker,
|
|
112
126
|
meetingStats,
|
|
113
127
|
meetingSummary,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
128
|
+
meetingTagChange,
|
|
129
|
+
meetingTagging,
|
|
130
|
+
meetingTranscript,
|
|
131
|
+
parseLucene,
|
|
132
|
+
readsZone,
|
|
133
|
+
timezoneOf
|
|
134
|
+
} from "./chunk-QOQF2TX3.js";
|
|
120
135
|
import {
|
|
121
136
|
endpoint
|
|
122
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-T2EE5M7O.js";
|
|
123
138
|
import {
|
|
124
|
-
readSharedSection,
|
|
125
139
|
repairConfigText,
|
|
126
|
-
sharedConfigPath
|
|
127
|
-
|
|
128
|
-
} from "./chunk-PALY5PGE.js";
|
|
140
|
+
sharedConfigPath
|
|
141
|
+
} from "./chunk-KLI5FKZ2.js";
|
|
129
142
|
import {
|
|
130
143
|
filesPresent,
|
|
131
144
|
sharedModelsDirectory
|
|
132
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-2SCQ7Z4I.js";
|
|
133
146
|
import {
|
|
134
147
|
storePath
|
|
135
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-NI4GCP2T.js";
|
|
136
149
|
import {
|
|
137
150
|
configFilePath,
|
|
138
151
|
createRecordLog,
|
|
@@ -141,7 +154,7 @@ import {
|
|
|
141
154
|
resolvePaths,
|
|
142
155
|
saveConfigFile,
|
|
143
156
|
writeSecurely
|
|
144
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-EZAX77SM.js";
|
|
145
158
|
import {
|
|
146
159
|
COMPACT_FLAG,
|
|
147
160
|
MAX_NEXT_STEPS,
|
|
@@ -184,7 +197,6 @@ import {
|
|
|
184
197
|
regex,
|
|
185
198
|
safeInteger,
|
|
186
199
|
safeParse,
|
|
187
|
-
startsWith,
|
|
188
200
|
stepOf,
|
|
189
201
|
strictObject,
|
|
190
202
|
string,
|
|
@@ -192,20 +204,19 @@ import {
|
|
|
192
204
|
union,
|
|
193
205
|
unknown,
|
|
194
206
|
unwrap,
|
|
195
|
-
url,
|
|
196
207
|
variant,
|
|
197
208
|
writes
|
|
198
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-LOSYDRJU.js";
|
|
199
210
|
import {
|
|
200
211
|
CliError,
|
|
201
212
|
isCliError,
|
|
202
213
|
visibleControls
|
|
203
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-QQGPV3QN.js";
|
|
204
215
|
import {
|
|
205
216
|
__name
|
|
206
217
|
} from "./chunk-ZVVMGPBJ.js";
|
|
207
218
|
|
|
208
|
-
// 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
|
|
209
220
|
import { readFileSync } from "node:fs";
|
|
210
221
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
211
222
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -259,7 +270,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
259
270
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
260
271
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
261
272
|
|
|
262
|
-
// 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
|
|
263
274
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
264
275
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
265
276
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3760,7 +3771,7 @@ __name(useColor, "useColor");
|
|
|
3760
3771
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3761
3772
|
var program = new Command();
|
|
3762
3773
|
|
|
3763
|
-
// 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
|
|
3764
3775
|
var argumentInfoSchema = object({
|
|
3765
3776
|
name: string(),
|
|
3766
3777
|
required: boolean(),
|
|
@@ -3834,7 +3845,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3834
3845
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3835
3846
|
});
|
|
3836
3847
|
|
|
3837
|
-
// 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
|
|
3838
3849
|
import { isDeepStrictEqual } from "node:util";
|
|
3839
3850
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3840
3851
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3944,7 +3955,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3944
3955
|
return result;
|
|
3945
3956
|
}, "sharedCommand");
|
|
3946
3957
|
|
|
3947
|
-
// 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
|
|
3948
3959
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3949
3960
|
let command = root;
|
|
3950
3961
|
const path2 = [];
|
|
@@ -3962,7 +3973,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3962
3973
|
}
|
|
3963
3974
|
}, "refuseJoinedPath");
|
|
3964
3975
|
|
|
3965
|
-
// 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
|
|
3966
3977
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3967
3978
|
var requests = new AsyncLocalStorage();
|
|
3968
3979
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -3977,7 +3988,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
3977
3988
|
return direct;
|
|
3978
3989
|
}, "exitCodeSet");
|
|
3979
3990
|
|
|
3980
|
-
// 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
|
|
3981
3992
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
3982
3993
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3983
3994
|
messageId: message2.id,
|
|
@@ -4083,7 +4094,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4083
4094
|
}, "guardedWrite");
|
|
4084
4095
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4085
4096
|
|
|
4086
|
-
// 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
|
|
4087
4098
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4088
4099
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4089
4100
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4266,7 +4277,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4266
4277
|
}
|
|
4267
4278
|
}, "withAbort");
|
|
4268
4279
|
|
|
4269
|
-
// 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
|
|
4270
4281
|
import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
4271
4282
|
import { join } from "node:path";
|
|
4272
4283
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4288,7 +4299,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4288
4299
|
}, "profilesWithAccounts");
|
|
4289
4300
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4290
4301
|
|
|
4291
|
-
// 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
|
|
4292
4303
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4293
4304
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4294
4305
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4331,7 +4342,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4331
4342
|
};
|
|
4332
4343
|
}, "runBudget");
|
|
4333
4344
|
|
|
4334
|
-
// 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
|
|
4335
4346
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4336
4347
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4337
4348
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4369,7 +4380,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4369
4380
|
progress: "sync.progress"
|
|
4370
4381
|
};
|
|
4371
4382
|
|
|
4372
|
-
// 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
|
|
4373
4384
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4374
4385
|
const recording = startRecording(options);
|
|
4375
4386
|
try {
|
|
@@ -4584,7 +4595,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4584
4595
|
return void 0;
|
|
4585
4596
|
}, "partialOutcome");
|
|
4586
4597
|
|
|
4587
|
-
// 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
|
|
4588
4599
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4589
4600
|
if (ms2 === void 0)
|
|
4590
4601
|
return body();
|
|
@@ -4610,7 +4621,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4610
4621
|
}
|
|
4611
4622
|
}, "withDeadline");
|
|
4612
4623
|
|
|
4613
|
-
// 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
|
|
4614
4625
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4615
4626
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4616
4627
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4636,19 +4647,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
4636
4647
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
4637
4648
|
}, "takesProfile");
|
|
4638
4649
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
4639
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
4650
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
|
|
4640
4651
|
let at2 = 0;
|
|
4641
4652
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
4642
4653
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
4643
4654
|
const first2 = argv[at2];
|
|
4644
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
4655
|
+
if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
|
|
4645
4656
|
return { rest: argv };
|
|
4646
4657
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
4647
4658
|
}, "liftProfile");
|
|
4648
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");
|
|
4649
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
4650
|
-
if (
|
|
4651
|
-
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(", "));
|
|
4652
4663
|
}
|
|
4653
4664
|
}, "refuseCommandName");
|
|
4654
4665
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -4679,10 +4690,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4679
4690
|
return void 0;
|
|
4680
4691
|
}, "sampleCommand");
|
|
4681
4692
|
|
|
4682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4683
|
-
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";
|
|
4684
4695
|
|
|
4685
|
-
// 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
|
|
4686
4697
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4687
4698
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4688
4699
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4751,13 +4762,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4751
4762
|
};
|
|
4752
4763
|
}, "modelTarget");
|
|
4753
4764
|
|
|
4754
|
-
// 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
|
|
4755
4766
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4756
|
-
var
|
|
4767
|
+
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4757
4768
|
var AI_FIELDS = {
|
|
4758
4769
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
4759
4770
|
embeddingModel: optional(model),
|
|
4760
|
-
embeddingBaseUrl: optional(
|
|
4771
|
+
embeddingBaseUrl: optional(url),
|
|
4761
4772
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
4762
4773
|
models: optional(modelSettingsShape)
|
|
4763
4774
|
};
|
|
@@ -4795,7 +4806,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4795
4806
|
};
|
|
4796
4807
|
}, "resolveAISettings");
|
|
4797
4808
|
|
|
4798
|
-
// 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
|
|
4799
4810
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
4800
4811
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
4801
4812
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -4809,284 +4820,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
4809
4820
|
return ms2;
|
|
4810
4821
|
}, "parseDuration");
|
|
4811
4822
|
|
|
4812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4813
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
4814
|
-
import { join as join2 } from "node:path";
|
|
4815
|
-
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
4816
|
-
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
4817
|
-
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
4818
|
-
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
4819
|
-
var TEXT_MODELS = [
|
|
4820
|
-
{
|
|
4821
|
-
id: "e5-small",
|
|
4822
|
-
title: "multilingual-e5-small, 8-bit",
|
|
4823
|
-
size: "small",
|
|
4824
|
-
languages: "about 100 languages, Russian and English among them",
|
|
4825
|
-
licence: "MIT",
|
|
4826
|
-
dims: 384,
|
|
4827
|
-
maxTokens: 512,
|
|
4828
|
-
// 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
|
|
4829
|
-
chunksPerSecond: 31,
|
|
4830
|
-
pooling: "mean",
|
|
4831
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
4832
|
-
onnx: "onnx/model_quantized.onnx",
|
|
4833
|
-
files: [
|
|
4834
|
-
{
|
|
4835
|
-
name: "onnx/model_quantized.onnx",
|
|
4836
|
-
url: e5("onnx/model_quantized.onnx"),
|
|
4837
|
-
sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
|
|
4838
|
-
bytes: 118308185
|
|
4839
|
-
},
|
|
4840
|
-
{
|
|
4841
|
-
name: "tokenizer.json",
|
|
4842
|
-
url: e5("tokenizer.json"),
|
|
4843
|
-
sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
|
|
4844
|
-
bytes: 17082730
|
|
4845
|
-
},
|
|
4846
|
-
{
|
|
4847
|
-
name: "tokenizer_config.json",
|
|
4848
|
-
url: e5("tokenizer_config.json"),
|
|
4849
|
-
sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
|
|
4850
|
-
bytes: 443
|
|
4851
|
-
}
|
|
4852
|
-
]
|
|
4853
|
-
},
|
|
4854
|
-
{
|
|
4855
|
-
id: "embeddinggemma",
|
|
4856
|
-
title: "EmbeddingGemma 300M, 4-bit",
|
|
4857
|
-
size: "medium",
|
|
4858
|
-
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
4859
|
-
licence: "Gemma Terms of Use",
|
|
4860
|
-
terms: "https://ai.google.dev/gemma/terms",
|
|
4861
|
-
// Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
|
|
4862
|
-
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",
|
|
4863
|
-
dims: 768,
|
|
4864
|
-
maxTokens: 2048,
|
|
4865
|
-
// 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
|
|
4866
|
-
// 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
|
|
4867
|
-
chunksPerSecond: 5,
|
|
4868
|
-
pooling: "sentence_embedding",
|
|
4869
|
-
prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
|
|
4870
|
-
onnx: "onnx/model_q4.onnx",
|
|
4871
|
-
externalData: "onnx/model_q4.onnx_data",
|
|
4872
|
-
files: [
|
|
4873
|
-
{
|
|
4874
|
-
name: "onnx/model_q4.onnx",
|
|
4875
|
-
url: gemma("onnx/model_q4.onnx"),
|
|
4876
|
-
sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
|
|
4877
|
-
bytes: 519322
|
|
4878
|
-
},
|
|
4879
|
-
{
|
|
4880
|
-
name: "onnx/model_q4.onnx_data",
|
|
4881
|
-
url: gemma("onnx/model_q4.onnx_data"),
|
|
4882
|
-
sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
|
|
4883
|
-
bytes: 196725760
|
|
4884
|
-
},
|
|
4885
|
-
{
|
|
4886
|
-
name: "tokenizer.json",
|
|
4887
|
-
url: gemma("tokenizer.json"),
|
|
4888
|
-
sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
|
|
4889
|
-
bytes: 20323312
|
|
4890
|
-
},
|
|
4891
|
-
{
|
|
4892
|
-
name: "tokenizer_config.json",
|
|
4893
|
-
url: gemma("tokenizer_config.json"),
|
|
4894
|
-
sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
|
|
4895
|
-
bytes: 1156830
|
|
4896
|
-
}
|
|
4897
|
-
]
|
|
4898
|
-
},
|
|
4899
|
-
{
|
|
4900
|
-
id: "e5-large",
|
|
4901
|
-
title: "multilingual-e5-large, 8-bit",
|
|
4902
|
-
size: "large",
|
|
4903
|
-
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
4904
|
-
licence: "MIT",
|
|
4905
|
-
dims: 1024,
|
|
4906
|
-
maxTokens: 512,
|
|
4907
|
-
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
4908
|
-
chunksPerSecond: 4,
|
|
4909
|
-
pooling: "mean",
|
|
4910
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
4911
|
-
onnx: "onnx/model_quantized.onnx",
|
|
4912
|
-
files: [
|
|
4913
|
-
{
|
|
4914
|
-
name: "onnx/model_quantized.onnx",
|
|
4915
|
-
url: e5Large("onnx/model_quantized.onnx"),
|
|
4916
|
-
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
4917
|
-
bytes: 561768762
|
|
4918
|
-
},
|
|
4919
|
-
{
|
|
4920
|
-
name: "tokenizer.json",
|
|
4921
|
-
url: e5Large("tokenizer.json"),
|
|
4922
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
4923
|
-
bytes: 17082660
|
|
4924
|
-
},
|
|
4925
|
-
{
|
|
4926
|
-
name: "tokenizer_config.json",
|
|
4927
|
-
url: e5Large("tokenizer_config.json"),
|
|
4928
|
-
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
4929
|
-
bytes: 418
|
|
4930
|
-
}
|
|
4931
|
-
]
|
|
4932
|
-
}
|
|
4933
|
-
];
|
|
4934
|
-
var DEFAULT_TEXT_MODEL = "embeddinggemma";
|
|
4935
|
-
var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
|
|
4936
|
-
var SECTION = "text_models";
|
|
4937
|
-
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
4938
|
-
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
4939
|
-
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"));
|
|
4940
|
-
var modelFile = strictObject({
|
|
4941
|
-
name: fileName,
|
|
4942
|
-
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
4943
|
-
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
4944
|
-
bytes: pipe(number(), integer(), minValue(1))
|
|
4945
|
-
});
|
|
4946
|
-
var CustomTextModelShape = pipe(strictObject({
|
|
4947
|
-
id: slug,
|
|
4948
|
-
title: words,
|
|
4949
|
-
languages: words,
|
|
4950
|
-
licence: words,
|
|
4951
|
-
terms: optional(pipe(string(), url())),
|
|
4952
|
-
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
4953
|
-
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
4954
|
-
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
4955
|
-
pooling: picklist(["mean", "sentence_embedding"]),
|
|
4956
|
-
prefix: strictObject({
|
|
4957
|
-
query: pipe(string(), maxLength(200)),
|
|
4958
|
-
passage: pipe(string(), maxLength(200))
|
|
4959
|
-
}),
|
|
4960
|
-
onnx: fileName,
|
|
4961
|
-
externalData: optional(fileName),
|
|
4962
|
-
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
4963
|
-
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
4964
|
-
const names = model3.files.map(({ name }) => name);
|
|
4965
|
-
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
4966
|
-
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
4967
|
-
var TextModelsSection = strictObject({
|
|
4968
|
-
use: optional(slug),
|
|
4969
|
-
custom: optional(array(CustomTextModelShape))
|
|
4970
|
-
});
|
|
4971
|
-
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
4972
|
-
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
4973
|
-
const path2 = textModelsFile(env);
|
|
4974
|
-
const section2 = readSharedSection(path2, SECTION);
|
|
4975
|
-
if (section2 === void 0)
|
|
4976
|
-
return {};
|
|
4977
|
-
const checked = safeParse(TextModelsSection, section2);
|
|
4978
|
-
if (!checked.success) {
|
|
4979
|
-
const issue = checked.issues[0];
|
|
4980
|
-
const at2 = issue ? getDotPath(issue) : null;
|
|
4981
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
4982
|
-
}
|
|
4983
|
-
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
4984
|
-
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
4985
|
-
if (twice)
|
|
4986
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
4987
|
-
return checked.output;
|
|
4988
|
-
}, "readTextModelsSection");
|
|
4989
|
-
var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
|
|
4990
|
-
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
4991
|
-
...TEXT_MODELS,
|
|
4992
|
-
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
4993
|
-
], "textModels");
|
|
4994
|
-
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
4995
|
-
const known = textModels(env);
|
|
4996
|
-
const found = known.find((model3) => model3.id === id6);
|
|
4997
|
-
if (!found) {
|
|
4998
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
4999
|
-
}
|
|
5000
|
-
return found;
|
|
5001
|
-
}, "textModel");
|
|
5002
|
-
var downloaded = /* @__PURE__ */ __name((id6, env) => {
|
|
5003
|
-
const model3 = TEXT_MODELS.find((one) => one.id === id6);
|
|
5004
|
-
const directory = sharedModelsDirectory("text", env);
|
|
5005
|
-
return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join2(directory, model3.id, file.name)]));
|
|
5006
|
-
}, "downloaded");
|
|
5007
|
-
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
5008
|
-
const use = readTextModelsSection(env).use;
|
|
5009
|
-
if (use !== void 0)
|
|
5010
|
-
return { id: use, from: "chosen" };
|
|
5011
|
-
const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync2(join2(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
|
|
5012
|
-
return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
|
|
5013
|
-
}, "chosenTextModel");
|
|
5014
|
-
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
5015
|
-
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
5016
|
-
var RERANK_MODELS = [
|
|
5017
|
-
{
|
|
5018
|
-
id: "mmarco",
|
|
5019
|
-
title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
|
|
5020
|
-
languages: "about 100 languages, Russian and English among them",
|
|
5021
|
-
licence: "Apache-2.0",
|
|
5022
|
-
maxTokens: 512,
|
|
5023
|
-
// The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
|
|
5024
|
-
onnx: "onnx/model_quint8_avx2.onnx",
|
|
5025
|
-
files: [
|
|
5026
|
-
{
|
|
5027
|
-
name: "onnx/model_quint8_avx2.onnx",
|
|
5028
|
-
url: mmarco("onnx/model_quint8_avx2.onnx"),
|
|
5029
|
-
sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
|
|
5030
|
-
bytes: 118620016
|
|
5031
|
-
},
|
|
5032
|
-
{
|
|
5033
|
-
name: "tokenizer.json",
|
|
5034
|
-
url: mmarco("tokenizer.json"),
|
|
5035
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
5036
|
-
bytes: 17082660
|
|
5037
|
-
},
|
|
5038
|
-
{
|
|
5039
|
-
name: "tokenizer_config.json",
|
|
5040
|
-
url: mmarco("tokenizer_config.json"),
|
|
5041
|
-
sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
|
|
5042
|
-
bytes: 435
|
|
5043
|
-
}
|
|
5044
|
-
]
|
|
5045
|
-
},
|
|
5046
|
-
{
|
|
5047
|
-
id: "bge-reranker-v2-m3",
|
|
5048
|
-
title: "BGE reranker v2 m3, 8-bit",
|
|
5049
|
-
languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
|
|
5050
|
-
licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
|
|
5051
|
-
maxTokens: 512,
|
|
5052
|
-
onnx: "onnx/model_quantized.onnx",
|
|
5053
|
-
files: [
|
|
5054
|
-
{
|
|
5055
|
-
name: "onnx/model_quantized.onnx",
|
|
5056
|
-
url: bge("onnx/model_quantized.onnx"),
|
|
5057
|
-
sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
|
|
5058
|
-
bytes: 570727094
|
|
5059
|
-
},
|
|
5060
|
-
{
|
|
5061
|
-
name: "tokenizer.json",
|
|
5062
|
-
url: bge("tokenizer.json"),
|
|
5063
|
-
sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
|
|
5064
|
-
bytes: 17082900
|
|
5065
|
-
},
|
|
5066
|
-
{
|
|
5067
|
-
name: "tokenizer_config.json",
|
|
5068
|
-
url: bge("tokenizer_config.json"),
|
|
5069
|
-
sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
|
|
5070
|
-
bytes: 1203
|
|
5071
|
-
}
|
|
5072
|
-
]
|
|
5073
|
-
}
|
|
5074
|
-
];
|
|
5075
|
-
var DEFAULT_RERANK_MODEL = "mmarco";
|
|
5076
|
-
var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
5077
|
-
const found = RERANK_MODELS.find((model3) => model3.id === id6);
|
|
5078
|
-
if (!found) {
|
|
5079
|
-
throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
5080
|
-
}
|
|
5081
|
-
return found;
|
|
5082
|
-
}, "rerankModel");
|
|
5083
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
5084
|
-
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
5085
|
-
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
5086
|
-
}, "vectorModelKey");
|
|
5087
|
-
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5088
|
-
|
|
5089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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
|
|
5090
4824
|
var HISTORY_MAX_DAYS = 1095;
|
|
5091
4825
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5092
4826
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -5133,19 +4867,19 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5133
4867
|
return { batch: { ...batch, messages }, skipped };
|
|
5134
4868
|
}, "limitBatch");
|
|
5135
4869
|
|
|
5136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5137
|
-
import { existsSync as
|
|
5138
|
-
import { join as
|
|
5139
|
-
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");
|
|
5140
4874
|
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
5141
4875
|
const directory = botsDirectory(app, env);
|
|
5142
4876
|
return {
|
|
5143
|
-
registry:
|
|
5144
|
-
recipients:
|
|
5145
|
-
journal:
|
|
5146
|
-
updates:
|
|
5147
|
-
presses:
|
|
5148
|
-
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`)
|
|
5149
4883
|
};
|
|
5150
4884
|
}, "botFiles");
|
|
5151
4885
|
var ChatRegistry = class {
|
|
@@ -5172,7 +4906,7 @@ var ChatRegistry = class {
|
|
|
5172
4906
|
}
|
|
5173
4907
|
/** Makes this bot known to `bot list` before it has seen any chat. */
|
|
5174
4908
|
touch() {
|
|
5175
|
-
if (!
|
|
4909
|
+
if (!existsSync2(this.#path))
|
|
5176
4910
|
writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
|
|
5177
4911
|
`, 384);
|
|
5178
4912
|
}
|
|
@@ -5201,7 +4935,7 @@ var ChatRegistry = class {
|
|
|
5201
4935
|
this.#write({ ...this.#read(), chats: [...byId.values()] });
|
|
5202
4936
|
}
|
|
5203
4937
|
#read() {
|
|
5204
|
-
if (!
|
|
4938
|
+
if (!existsSync2(this.#path))
|
|
5205
4939
|
return {};
|
|
5206
4940
|
try {
|
|
5207
4941
|
const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
|
|
@@ -5217,12 +4951,12 @@ var ChatRegistry = class {
|
|
|
5217
4951
|
};
|
|
5218
4952
|
var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
5219
4953
|
const directory = botsDirectory(app, env);
|
|
5220
|
-
if (!
|
|
4954
|
+
if (!existsSync2(directory))
|
|
5221
4955
|
return [];
|
|
5222
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));
|
|
5223
4957
|
}, "registryProfiles");
|
|
5224
4958
|
|
|
5225
|
-
// 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
|
|
5226
4960
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5227
4961
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5228
4962
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5517,20 +5251,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5517
5251
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5518
5252
|
}, "readConfigFile");
|
|
5519
5253
|
|
|
5520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5521
|
-
import { existsSync as
|
|
5522
|
-
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";
|
|
5523
5257
|
var DEFAULT_CONFIG = {
|
|
5524
5258
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
5525
5259
|
profiles: {}
|
|
5526
5260
|
};
|
|
5527
5261
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
5528
|
-
if (
|
|
5262
|
+
if (existsSync3(path2))
|
|
5529
5263
|
return;
|
|
5530
5264
|
const directory = dirname(path2);
|
|
5531
5265
|
mkdirSync(directory, { recursive: true, mode: 448 });
|
|
5532
|
-
const temporary = mkdtempSync(
|
|
5533
|
-
const candidate =
|
|
5266
|
+
const temporary = mkdtempSync(join3(directory, ".config-"));
|
|
5267
|
+
const candidate = join3(temporary, "config.json");
|
|
5534
5268
|
try {
|
|
5535
5269
|
writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
|
|
5536
5270
|
`, { flag: "wx", mode: 384 });
|
|
@@ -5546,7 +5280,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5546
5280
|
}
|
|
5547
5281
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5548
5282
|
|
|
5549
|
-
// 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
|
|
5550
5284
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5551
5285
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5552
5286
|
const path2 = key.split(".");
|
|
@@ -5568,7 +5302,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5568
5302
|
return { config, added };
|
|
5569
5303
|
}, "withSettingDefaults");
|
|
5570
5304
|
|
|
5571
|
-
// 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
|
|
5572
5306
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5573
5307
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5574
5308
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5717,13 +5451,13 @@ var NoProfileHere = class extends CliError {
|
|
|
5717
5451
|
}
|
|
5718
5452
|
app;
|
|
5719
5453
|
constructor(app) {
|
|
5720
|
-
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: [] });
|
|
5721
5455
|
this.app = app;
|
|
5722
5456
|
}
|
|
5723
5457
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
5724
|
-
withoutSetup(
|
|
5725
|
-
const command =
|
|
5726
|
-
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: [] });
|
|
5727
5461
|
}
|
|
5728
5462
|
};
|
|
5729
5463
|
var first = /* @__PURE__ */ __name((candidates, fallback) => {
|
|
@@ -5801,7 +5535,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5801
5535
|
const here = profilesOf(config, env);
|
|
5802
5536
|
if (here.length === 0)
|
|
5803
5537
|
throw new NoProfileHere(app);
|
|
5804
|
-
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 });
|
|
5805
5539
|
}, "unnamed");
|
|
5806
5540
|
const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
|
|
5807
5541
|
const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
|
|
@@ -5930,7 +5664,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5930
5664
|
updateCheck: updateCheck.value,
|
|
5931
5665
|
skillHint: skillHint.value,
|
|
5932
5666
|
configPath,
|
|
5933
|
-
configFound:
|
|
5667
|
+
configFound: existsSync4(configPath),
|
|
5934
5668
|
configuredProfiles: namedProfiles(config),
|
|
5935
5669
|
profilesHere: profilesOf(config, env),
|
|
5936
5670
|
accountProfiles: accountsOf(config, env, bots),
|
|
@@ -6048,9 +5782,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6048
5782
|
saveConfigFile(path2, config);
|
|
6049
5783
|
return added;
|
|
6050
5784
|
}, "migrate");
|
|
5785
|
+
const settingSchema = /* @__PURE__ */ __name((key) => Object.hasOwn(profileEntries, key) ? profileEntries[key] : void 0, "settingSchema");
|
|
6051
5786
|
return {
|
|
6052
5787
|
resolveSettings,
|
|
6053
5788
|
configuredProfiles,
|
|
5789
|
+
settingSchema,
|
|
6054
5790
|
changeSetting,
|
|
6055
5791
|
migrate,
|
|
6056
5792
|
declaredSettings,
|
|
@@ -6094,7 +5830,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6094
5830
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6095
5831
|
}, "given");
|
|
6096
5832
|
|
|
6097
|
-
// 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
|
|
6098
5834
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
6099
5835
|
const { deadline, signal, app } = environmentOf(command);
|
|
6100
5836
|
const now = deadline?.();
|
|
@@ -6134,11 +5870,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
|
|
|
6134
5870
|
return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
|
|
6135
5871
|
}, "detailOf");
|
|
6136
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");
|
|
6137
5877
|
var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
|
|
6138
5878
|
var outputFor = /* @__PURE__ */ __name((command) => {
|
|
6139
5879
|
const { streams, tty, env, agent } = environmentOf(command);
|
|
5880
|
+
const { fields: _own, ...flags } = command.optsWithGlobals();
|
|
6140
5881
|
return resolveOutput({
|
|
6141
|
-
...
|
|
5882
|
+
...flags,
|
|
5883
|
+
...outputFieldsOf(command),
|
|
6142
5884
|
...detailOf(command.optsWithGlobals()),
|
|
6143
5885
|
compact: compactOf(command),
|
|
6144
5886
|
...agent ? { capture: agent.result } : {},
|
|
@@ -6156,7 +5898,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
6156
5898
|
env,
|
|
6157
5899
|
compact: compactOf(command),
|
|
6158
5900
|
...detailOf(command.optsWithGlobals()),
|
|
6159
|
-
...
|
|
5901
|
+
...outputFieldsOf(command),
|
|
6160
5902
|
...environment.agent ? { capture: environment.agent.result } : {},
|
|
6161
5903
|
...environment.streams ? { streams: environment.streams } : {},
|
|
6162
5904
|
...environment.tty === void 0 ? {} : { tty: environment.tty }
|
|
@@ -6228,13 +5970,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
6228
5970
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
6229
5971
|
}, "inCommandRun");
|
|
6230
5972
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
6231
|
-
const
|
|
5973
|
+
const words = [];
|
|
6232
5974
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
6233
|
-
|
|
6234
|
-
return
|
|
5975
|
+
words.unshift(current2.name());
|
|
5976
|
+
return words.join(" ");
|
|
6235
5977
|
}, "commandPath");
|
|
6236
5978
|
|
|
6237
|
-
// 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
|
|
6238
5980
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6239
5981
|
var FETCH = { remote: "read", local: "write" };
|
|
6240
5982
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6337,10 +6079,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
6337
6079
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
6338
6080
|
}, "refuseStoreChange");
|
|
6339
6081
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
6340
|
-
const
|
|
6082
|
+
const words = [];
|
|
6341
6083
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
6342
|
-
|
|
6343
|
-
return
|
|
6084
|
+
words.unshift(at2.name());
|
|
6085
|
+
return words;
|
|
6344
6086
|
}, "pathOf");
|
|
6345
6087
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
6346
6088
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -6374,7 +6116,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6374
6116
|
throw readOnlyRefusal(lock, what);
|
|
6375
6117
|
}, "refuseUnderReadOnly");
|
|
6376
6118
|
|
|
6377
|
-
// 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
|
|
6378
6120
|
var account = strictObject({
|
|
6379
6121
|
provider: text,
|
|
6380
6122
|
id,
|
|
@@ -6384,7 +6126,7 @@ var account = strictObject({
|
|
|
6384
6126
|
scope: optional(picklist(["personal", "work"]))
|
|
6385
6127
|
});
|
|
6386
6128
|
|
|
6387
|
-
// 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
|
|
6388
6130
|
var accountSession = strictObject({
|
|
6389
6131
|
current: boolean(),
|
|
6390
6132
|
client: nullable(text),
|
|
@@ -6394,7 +6136,7 @@ var accountSession = strictObject({
|
|
|
6394
6136
|
created_at: optional(nullable(time))
|
|
6395
6137
|
});
|
|
6396
6138
|
|
|
6397
|
-
// 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
|
|
6398
6140
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6399
6141
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6400
6142
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6423,7 +6165,7 @@ var accountRemoval = strictObject({
|
|
|
6423
6165
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6424
6166
|
});
|
|
6425
6167
|
|
|
6426
|
-
// 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
|
|
6427
6169
|
var accountProfile = strictObject({
|
|
6428
6170
|
profile: id,
|
|
6429
6171
|
current: boolean(),
|
|
@@ -6435,7 +6177,7 @@ var accountProfile = strictObject({
|
|
|
6435
6177
|
bot: optional(literal(true))
|
|
6436
6178
|
});
|
|
6437
6179
|
|
|
6438
|
-
// 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
|
|
6439
6181
|
var milliseconds = pipe(number(), minValue(0));
|
|
6440
6182
|
var counterReading = strictObject({
|
|
6441
6183
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6447,7 +6189,7 @@ var counterReading = strictObject({
|
|
|
6447
6189
|
});
|
|
6448
6190
|
var selection = record(string(), unknown());
|
|
6449
6191
|
|
|
6450
|
-
// 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
|
|
6451
6193
|
var adminRow = strictObject({
|
|
6452
6194
|
ref: reference,
|
|
6453
6195
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6500,7 +6242,7 @@ var adminReport = strictObject({
|
|
|
6500
6242
|
rows: array(adminRow)
|
|
6501
6243
|
});
|
|
6502
6244
|
|
|
6503
|
-
// 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
|
|
6504
6246
|
var closeSuggestion = strictObject({
|
|
6505
6247
|
as: picklist(["done", "dismissed"]),
|
|
6506
6248
|
/** The agent's name. */
|
|
@@ -6562,7 +6304,7 @@ var task = strictObject({
|
|
|
6562
6304
|
updated_at: optional(time)
|
|
6563
6305
|
});
|
|
6564
6306
|
|
|
6565
|
-
// 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
|
|
6566
6308
|
var agendaChat = strictObject({
|
|
6567
6309
|
chat: reference,
|
|
6568
6310
|
title: nullable(text),
|
|
@@ -6632,11 +6374,11 @@ var agenda = strictObject({
|
|
|
6632
6374
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6633
6375
|
});
|
|
6634
6376
|
|
|
6635
|
-
// 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
|
|
6636
6378
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6637
6379
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6638
6380
|
|
|
6639
|
-
// 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
|
|
6640
6382
|
var attachment = strictObject({
|
|
6641
6383
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6642
6384
|
message: optional(reference),
|
|
@@ -6681,7 +6423,7 @@ var hitFile = strictObject({
|
|
|
6681
6423
|
local_path: optional(text)
|
|
6682
6424
|
});
|
|
6683
6425
|
|
|
6684
|
-
// 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
|
|
6685
6427
|
var actionableError = objectWithRest({
|
|
6686
6428
|
code: text,
|
|
6687
6429
|
message: text,
|
|
@@ -6698,7 +6440,7 @@ var batchResult = strictObject({
|
|
|
6698
6440
|
max_error_percent: count
|
|
6699
6441
|
});
|
|
6700
6442
|
|
|
6701
|
-
// 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
|
|
6702
6444
|
var extractionItem = strictObject({
|
|
6703
6445
|
ref: reference,
|
|
6704
6446
|
attachment: count,
|
|
@@ -6731,7 +6473,7 @@ var extractionReport = strictObject({
|
|
|
6731
6473
|
cursor: optional(text)
|
|
6732
6474
|
});
|
|
6733
6475
|
|
|
6734
|
-
// 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
|
|
6735
6477
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
6736
6478
|
var attachmentBytes = strictObject({
|
|
6737
6479
|
ref: reference,
|
|
@@ -6762,7 +6504,7 @@ var attachmentTextChange = strictObject({
|
|
|
6762
6504
|
text: optional(text)
|
|
6763
6505
|
});
|
|
6764
6506
|
|
|
6765
|
-
// 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
|
|
6766
6508
|
var WEIGHTS = {
|
|
6767
6509
|
bot: 3,
|
|
6768
6510
|
scam: 3,
|
|
@@ -6787,7 +6529,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6787
6529
|
var DIGITS = /\d{5,}/;
|
|
6788
6530
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6789
6531
|
|
|
6790
|
-
// 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
|
|
6791
6533
|
var linkedIdentity = strictObject({
|
|
6792
6534
|
provider: text,
|
|
6793
6535
|
id,
|
|
@@ -6842,7 +6584,7 @@ var contactCheck = strictObject({
|
|
|
6842
6584
|
checked_at: time
|
|
6843
6585
|
});
|
|
6844
6586
|
|
|
6845
|
-
// 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
|
|
6846
6588
|
var member = strictObject({
|
|
6847
6589
|
id,
|
|
6848
6590
|
name: nullable(text),
|
|
@@ -6865,7 +6607,7 @@ var member = strictObject({
|
|
|
6865
6607
|
check: optional(record(string(), unknown()))
|
|
6866
6608
|
});
|
|
6867
6609
|
|
|
6868
|
-
// 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
|
|
6869
6611
|
var setting = optional(nullable(boolean()));
|
|
6870
6612
|
var chat = strictObject({
|
|
6871
6613
|
ref: reference,
|
|
@@ -6906,7 +6648,7 @@ var chat = strictObject({
|
|
|
6906
6648
|
members: optional(array(member))
|
|
6907
6649
|
});
|
|
6908
6650
|
|
|
6909
|
-
// 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
|
|
6910
6652
|
var quoted = strictObject({
|
|
6911
6653
|
id,
|
|
6912
6654
|
sender_id: nullable(id),
|
|
@@ -7025,7 +6767,7 @@ var message = strictObject({
|
|
|
7025
6767
|
provider_metadata: providerMetadata
|
|
7026
6768
|
});
|
|
7027
6769
|
|
|
7028
|
-
// 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
|
|
7029
6771
|
var recordedMeeting = strictObject({
|
|
7030
6772
|
ref: reference,
|
|
7031
6773
|
meeting_id: count,
|
|
@@ -7035,10 +6777,12 @@ var recordedMeeting = strictObject({
|
|
|
7035
6777
|
duration_ms: nullable(count),
|
|
7036
6778
|
has_transcript: boolean(),
|
|
7037
6779
|
event: nullable(reference),
|
|
7038
|
-
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)
|
|
7039
6783
|
});
|
|
7040
6784
|
|
|
7041
|
-
// 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
|
|
7042
6786
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7043
6787
|
var contextMessage = strictObject({
|
|
7044
6788
|
locator: reference,
|
|
@@ -7244,7 +6988,7 @@ var contactPreparation = strictObject({
|
|
|
7244
6988
|
})
|
|
7245
6989
|
});
|
|
7246
6990
|
|
|
7247
|
-
// 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
|
|
7248
6992
|
var nullableText = nullable(text);
|
|
7249
6993
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7250
6994
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7292,7 +7036,10 @@ var deal = strictObject({
|
|
|
7292
7036
|
external_id: nullableText,
|
|
7293
7037
|
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
7294
7038
|
assignee: nullableText,
|
|
7295
|
-
/**
|
|
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
|
+
*/
|
|
7296
7043
|
provider_metadata: record(string(), strictObject({
|
|
7297
7044
|
label: nullable(string()),
|
|
7298
7045
|
value: unknown(),
|
|
@@ -7355,7 +7102,7 @@ var stage = strictObject({
|
|
|
7355
7102
|
untrusted
|
|
7356
7103
|
});
|
|
7357
7104
|
|
|
7358
|
-
// 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
|
|
7359
7106
|
var nullableText2 = nullable(text);
|
|
7360
7107
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7361
7108
|
var standing = picklist(STANDINGS);
|
|
@@ -7529,7 +7276,7 @@ var dealBrief = strictObject({
|
|
|
7529
7276
|
not_read: coverage2.entries.not_read
|
|
7530
7277
|
});
|
|
7531
7278
|
|
|
7532
|
-
// 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
|
|
7533
7280
|
var chart = strictObject({
|
|
7534
7281
|
version: literal(1),
|
|
7535
7282
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7544,7 +7291,7 @@ var chart = strictObject({
|
|
|
7544
7291
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7545
7292
|
});
|
|
7546
7293
|
|
|
7547
|
-
// 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
|
|
7548
7295
|
var named = strictObject({
|
|
7549
7296
|
id,
|
|
7550
7297
|
title: nullable(text),
|
|
@@ -7567,7 +7314,7 @@ var folder = strictObject({
|
|
|
7567
7314
|
excluded_chats: optional(array(named))
|
|
7568
7315
|
});
|
|
7569
7316
|
|
|
7570
|
-
// 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
|
|
7571
7318
|
var inviteLink = strictObject({
|
|
7572
7319
|
link: text,
|
|
7573
7320
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7583,7 +7330,7 @@ var inviteLink = strictObject({
|
|
|
7583
7330
|
joined_count: optional(count)
|
|
7584
7331
|
});
|
|
7585
7332
|
|
|
7586
|
-
// 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
|
|
7587
7334
|
var operated = { operation_id: id, chat_id: id };
|
|
7588
7335
|
var group = strictObject({
|
|
7589
7336
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7663,7 +7410,7 @@ var chatFolderOrder = strictObject({
|
|
|
7663
7410
|
folders: array(strictObject({ id, title: text }))
|
|
7664
7411
|
});
|
|
7665
7412
|
|
|
7666
|
-
// 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
|
|
7667
7414
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7668
7415
|
var chatRemoval = strictObject(operated2);
|
|
7669
7416
|
var chatMuting = strictObject({
|
|
@@ -7674,7 +7421,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7674
7421
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7675
7422
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7676
7423
|
|
|
7677
|
-
// 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
|
|
7678
7425
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7679
7426
|
var chatEvent = strictObject({
|
|
7680
7427
|
chat_id: id,
|
|
@@ -7691,7 +7438,7 @@ var chatEvent = strictObject({
|
|
|
7691
7438
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7692
7439
|
});
|
|
7693
7440
|
|
|
7694
|
-
// 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
|
|
7695
7442
|
var chatMetadata = strictObject({
|
|
7696
7443
|
chat_id: id,
|
|
7697
7444
|
title: nullable(text),
|
|
@@ -7706,7 +7453,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7706
7453
|
has_more: boolean()
|
|
7707
7454
|
});
|
|
7708
7455
|
|
|
7709
|
-
// 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
|
|
7710
7457
|
var action = picklist(["report", "delete", "remove"]);
|
|
7711
7458
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7712
7459
|
var chatRules = strictObject({
|
|
@@ -7743,7 +7490,17 @@ var chatModeration = strictObject({
|
|
|
7743
7490
|
}))
|
|
7744
7491
|
});
|
|
7745
7492
|
|
|
7746
|
-
// 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
|
|
7747
7504
|
var optionalCount = optional(count);
|
|
7748
7505
|
var minutes = nullable(number());
|
|
7749
7506
|
var chatStats = strictObject({
|
|
@@ -7819,7 +7576,7 @@ var taskStats = strictObject({
|
|
|
7819
7576
|
}))
|
|
7820
7577
|
});
|
|
7821
7578
|
|
|
7822
|
-
// 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
|
|
7823
7580
|
var memberCount = strictObject({
|
|
7824
7581
|
day: pipe(text, isoDate()),
|
|
7825
7582
|
participants: nullable(count),
|
|
@@ -7842,7 +7599,7 @@ var chatTracking = strictObject({
|
|
|
7842
7599
|
tracked: boolean()
|
|
7843
7600
|
});
|
|
7844
7601
|
|
|
7845
|
-
// 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
|
|
7846
7603
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7847
7604
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7848
7605
|
var profileFields = {
|
|
@@ -7880,7 +7637,7 @@ var profileFields = {
|
|
|
7880
7637
|
}))
|
|
7881
7638
|
};
|
|
7882
7639
|
|
|
7883
|
-
// 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
|
|
7884
7641
|
var contact = strictObject({
|
|
7885
7642
|
ref: reference,
|
|
7886
7643
|
id,
|
|
@@ -7911,7 +7668,7 @@ var contact = strictObject({
|
|
|
7911
7668
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7912
7669
|
});
|
|
7913
7670
|
|
|
7914
|
-
// 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
|
|
7915
7672
|
var contactNote = strictObject({
|
|
7916
7673
|
id,
|
|
7917
7674
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7923,13 +7680,13 @@ var contactNote = strictObject({
|
|
|
7923
7680
|
updated_at: time
|
|
7924
7681
|
});
|
|
7925
7682
|
|
|
7926
|
-
// 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
|
|
7927
7684
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7928
7685
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7929
7686
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7930
7687
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7931
7688
|
|
|
7932
|
-
// 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
|
|
7933
7690
|
var conversation = strictObject({
|
|
7934
7691
|
id,
|
|
7935
7692
|
chat: reference,
|
|
@@ -7944,7 +7701,7 @@ var conversation = strictObject({
|
|
|
7944
7701
|
rules_version: count
|
|
7945
7702
|
});
|
|
7946
7703
|
|
|
7947
|
-
// 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
|
|
7948
7705
|
var conversationBuild = strictObject({
|
|
7949
7706
|
chat: id,
|
|
7950
7707
|
messages: count,
|
|
@@ -7969,7 +7726,7 @@ var catchUpPreparation = strictObject({
|
|
|
7969
7726
|
prepared: optional(conversationPreparation)
|
|
7970
7727
|
});
|
|
7971
7728
|
|
|
7972
|
-
// 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
|
|
7973
7730
|
var conversationDetails = union([
|
|
7974
7731
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7975
7732
|
message
|
|
@@ -8059,7 +7816,7 @@ var conversationHit = strictObject({
|
|
|
8059
7816
|
stale: boolean()
|
|
8060
7817
|
});
|
|
8061
7818
|
|
|
8062
|
-
// 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
|
|
8063
7820
|
var counters = strictObject({
|
|
8064
7821
|
cutoff: time,
|
|
8065
7822
|
max_age_ms: milliseconds,
|
|
@@ -8089,7 +7846,7 @@ var counterRefresh = strictObject({
|
|
|
8089
7846
|
complete: optional(boolean())
|
|
8090
7847
|
});
|
|
8091
7848
|
|
|
8092
|
-
// 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
|
|
8093
7850
|
var document = strictObject({
|
|
8094
7851
|
ref: reference,
|
|
8095
7852
|
id,
|
|
@@ -8104,7 +7861,7 @@ var document = strictObject({
|
|
|
8104
7861
|
owners: optional(array(text))
|
|
8105
7862
|
});
|
|
8106
7863
|
|
|
8107
|
-
// 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
|
|
8108
7865
|
var documentLink = strictObject({
|
|
8109
7866
|
ref: reference,
|
|
8110
7867
|
url: text,
|
|
@@ -8115,7 +7872,7 @@ var documentLink = strictObject({
|
|
|
8115
7872
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8116
7873
|
});
|
|
8117
7874
|
|
|
8118
|
-
// 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
|
|
8119
7876
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8120
7877
|
var contribution = strictObject({
|
|
8121
7878
|
message: evidenceMessage,
|
|
@@ -8145,7 +7902,7 @@ var retentionStay = strictObject({
|
|
|
8145
7902
|
});
|
|
8146
7903
|
var evidence = union([contribution, retentionStay]);
|
|
8147
7904
|
|
|
8148
|
-
// 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
|
|
8149
7906
|
var fact = strictObject({
|
|
8150
7907
|
ref: reference,
|
|
8151
7908
|
id,
|
|
@@ -8176,7 +7933,7 @@ var fact = strictObject({
|
|
|
8176
7933
|
updated_at: time
|
|
8177
7934
|
});
|
|
8178
7935
|
|
|
8179
|
-
// 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
|
|
8180
7937
|
var hit = strictObject({
|
|
8181
7938
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
8182
7939
|
ref: reference,
|
|
@@ -8224,7 +7981,7 @@ var hit = strictObject({
|
|
|
8224
7981
|
untrusted
|
|
8225
7982
|
});
|
|
8226
7983
|
|
|
8227
|
-
// 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
|
|
8228
7985
|
var identity = strictObject({
|
|
8229
7986
|
ref: reference,
|
|
8230
7987
|
provider: text,
|
|
@@ -8240,7 +7997,7 @@ var identity = strictObject({
|
|
|
8240
7997
|
person: optional(nullable(reference))
|
|
8241
7998
|
});
|
|
8242
7999
|
|
|
8243
|
-
// 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
|
|
8244
8001
|
var imageEmbedding = strictObject({
|
|
8245
8002
|
model: text,
|
|
8246
8003
|
embedded: count,
|
|
@@ -8249,13 +8006,13 @@ var imageEmbedding = strictObject({
|
|
|
8249
8006
|
more: boolean()
|
|
8250
8007
|
});
|
|
8251
8008
|
|
|
8252
|
-
// 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
|
|
8253
8010
|
import { spawn } from "node:child_process";
|
|
8254
8011
|
import { randomBytes } from "node:crypto";
|
|
8255
|
-
import { closeSync, existsSync as
|
|
8256
|
-
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";
|
|
8257
8014
|
|
|
8258
|
-
// 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
|
|
8259
8016
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8260
8017
|
const total = input.total ?? null;
|
|
8261
8018
|
const updated = input.updatedAt ?? null;
|
|
@@ -8271,7 +8028,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8271
8028
|
};
|
|
8272
8029
|
}, "progressOf");
|
|
8273
8030
|
|
|
8274
|
-
// 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
|
|
8275
8032
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8276
8033
|
const run = currentRun();
|
|
8277
8034
|
const trace = traceId ?? run.traceId;
|
|
@@ -8285,7 +8042,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8285
8042
|
}));
|
|
8286
8043
|
}, "recordLogFor");
|
|
8287
8044
|
|
|
8288
|
-
// 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
|
|
8289
8046
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8290
8047
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8291
8048
|
const out = openSync(log, "a", 384);
|
|
@@ -8301,15 +8058,15 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
|
8301
8058
|
closeSync(out);
|
|
8302
8059
|
}
|
|
8303
8060
|
}, "spawnDetached");
|
|
8304
|
-
var jobsDir = /* @__PURE__ */ __name((app, env) =>
|
|
8305
|
-
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");
|
|
8306
8063
|
var saveJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
8307
8064
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
8308
8065
|
writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
|
|
8309
8066
|
`, 384);
|
|
8310
8067
|
}, "saveJob");
|
|
8311
8068
|
var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
8312
|
-
if (!/^[\w-]+$/.test(id6) || !
|
|
8069
|
+
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8313
8070
|
return void 0;
|
|
8314
8071
|
try {
|
|
8315
8072
|
return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
|
|
@@ -8317,7 +8074,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
|
8317
8074
|
return void 0;
|
|
8318
8075
|
}
|
|
8319
8076
|
}, "readJob");
|
|
8320
|
-
var recordsPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8077
|
+
var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
|
|
8321
8078
|
var tracedJob = /* @__PURE__ */ __name((env) => {
|
|
8322
8079
|
const trace = childTrace();
|
|
8323
8080
|
return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
|
|
@@ -8354,7 +8111,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
|
8354
8111
|
if (dirname2(job2.log) === dir)
|
|
8355
8112
|
rmSync2(job2.log, { force: true });
|
|
8356
8113
|
}, "removeJob");
|
|
8357
|
-
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");
|
|
8358
8115
|
var jobDetails = /* @__PURE__ */ __name((job2) => ({
|
|
8359
8116
|
job: job2.id,
|
|
8360
8117
|
profile: job2.profile,
|
|
@@ -8420,7 +8177,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8420
8177
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
8421
8178
|
const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
|
|
8422
8179
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
8423
|
-
const log =
|
|
8180
|
+
const log = join4(dir, `${id6}.log`);
|
|
8424
8181
|
const job2 = {
|
|
8425
8182
|
id: id6,
|
|
8426
8183
|
chat: input.chat,
|
|
@@ -8440,7 +8197,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8440
8197
|
return { job: id6, pid, chat: input.chat, log };
|
|
8441
8198
|
}, "startArchiveJob");
|
|
8442
8199
|
|
|
8443
|
-
// 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
|
|
8444
8201
|
var problem = strictObject({ code: text, message: text });
|
|
8445
8202
|
var job = strictObject({
|
|
8446
8203
|
id,
|
|
@@ -8463,7 +8220,7 @@ var job = strictObject({
|
|
|
8463
8220
|
error: optional(problem)
|
|
8464
8221
|
});
|
|
8465
8222
|
|
|
8466
|
-
// 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
|
|
8467
8224
|
var joinRequest = strictObject({
|
|
8468
8225
|
person_id: id,
|
|
8469
8226
|
name: nullable(text),
|
|
@@ -8474,7 +8231,7 @@ var joinRequest = strictObject({
|
|
|
8474
8231
|
about: optional(text)
|
|
8475
8232
|
});
|
|
8476
8233
|
|
|
8477
|
-
// 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
|
|
8478
8235
|
var botProfile = strictObject({
|
|
8479
8236
|
name: text,
|
|
8480
8237
|
token: text,
|
|
@@ -8598,7 +8355,7 @@ var stickerInventory = strictObject({
|
|
|
8598
8355
|
url: optional(nullable(text))
|
|
8599
8356
|
});
|
|
8600
8357
|
|
|
8601
|
-
// 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
|
|
8602
8359
|
var pollVote = strictObject({
|
|
8603
8360
|
person_id: id,
|
|
8604
8361
|
name: nullable(text),
|
|
@@ -8608,7 +8365,7 @@ var pollVote = strictObject({
|
|
|
8608
8365
|
voted_at: time
|
|
8609
8366
|
});
|
|
8610
8367
|
|
|
8611
|
-
// 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
|
|
8612
8369
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8613
8370
|
var observation = strictObject({
|
|
8614
8371
|
value: pipe(number(), minValue(0)),
|
|
@@ -8650,7 +8407,7 @@ var serveSummary = strictObject({
|
|
|
8650
8407
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8651
8408
|
});
|
|
8652
8409
|
|
|
8653
|
-
// 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
|
|
8654
8411
|
var mailCounts = strictObject({
|
|
8655
8412
|
by: picklist(["day", "week", "sender"]),
|
|
8656
8413
|
received: count,
|
|
@@ -8665,7 +8422,7 @@ var mailCounts = strictObject({
|
|
|
8665
8422
|
}))
|
|
8666
8423
|
});
|
|
8667
8424
|
|
|
8668
|
-
// 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
|
|
8669
8426
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8670
8427
|
var base = { id, evidence: array(evidence2) };
|
|
8671
8428
|
var finding = variant("kind", [
|
|
@@ -8809,7 +8566,7 @@ var mailFindings = strictObject({
|
|
|
8809
8566
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8810
8567
|
});
|
|
8811
8568
|
|
|
8812
|
-
// 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
|
|
8813
8570
|
var mediaArchive = strictObject({
|
|
8814
8571
|
directory: text,
|
|
8815
8572
|
chats: count,
|
|
@@ -8841,7 +8598,7 @@ var mediaArchiveTimer = union([
|
|
|
8841
8598
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8842
8599
|
]);
|
|
8843
8600
|
|
|
8844
|
-
// 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
|
|
8845
8602
|
var preparationId = pipe(string(), minLength(1));
|
|
8846
8603
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8847
8604
|
var preparationTime = nullable(isoTime);
|
|
@@ -8933,7 +8690,7 @@ var preparationMeeting = strictObject({
|
|
|
8933
8690
|
updated_at: isoTime
|
|
8934
8691
|
});
|
|
8935
8692
|
|
|
8936
|
-
// 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
|
|
8937
8694
|
var meetingEvidence = preparationEvidence;
|
|
8938
8695
|
var meetingPersonContext = strictObject({
|
|
8939
8696
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8955,7 +8712,7 @@ var meetingPersonContext = strictObject({
|
|
|
8955
8712
|
})
|
|
8956
8713
|
});
|
|
8957
8714
|
|
|
8958
|
-
// 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
|
|
8959
8716
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8960
8717
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8961
8718
|
var finding2 = variant("kind", [
|
|
@@ -8993,7 +8750,7 @@ var meetingFindings = strictObject({
|
|
|
8993
8750
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
8994
8751
|
});
|
|
8995
8752
|
|
|
8996
|
-
// 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
|
|
8997
8754
|
var communicationCoverage = strictObject({
|
|
8998
8755
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
8999
8756
|
query: string(),
|
|
@@ -9038,7 +8795,7 @@ var preparationCommunications = strictObject({
|
|
|
9038
8795
|
}))
|
|
9039
8796
|
});
|
|
9040
8797
|
|
|
9041
|
-
// 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
|
|
9042
8799
|
var meetingPreparation = strictObject({
|
|
9043
8800
|
communications: optional(preparationCommunications),
|
|
9044
8801
|
schema_version: literal(1),
|
|
@@ -9151,7 +8908,7 @@ var meetingPreparation = strictObject({
|
|
|
9151
8908
|
})
|
|
9152
8909
|
});
|
|
9153
8910
|
|
|
9154
|
-
// 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
|
|
9155
8912
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9156
8913
|
var id3 = pipe(string(), minLength(1));
|
|
9157
8914
|
var text3 = string();
|
|
@@ -9215,7 +8972,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9215
8972
|
})
|
|
9216
8973
|
});
|
|
9217
8974
|
|
|
9218
|
-
// 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
|
|
9219
8976
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9220
8977
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9221
8978
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9245,7 +9002,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9245
9002
|
})
|
|
9246
9003
|
});
|
|
9247
9004
|
|
|
9248
|
-
// 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
|
|
9249
9006
|
var text4 = string();
|
|
9250
9007
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9251
9008
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9262,7 +9019,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9262
9019
|
persistence: literal("proposal-only")
|
|
9263
9020
|
});
|
|
9264
9021
|
|
|
9265
|
-
// 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
|
|
9266
9023
|
var memory = strictObject({
|
|
9267
9024
|
ref: reference,
|
|
9268
9025
|
id,
|
|
@@ -9290,7 +9047,7 @@ var memory = strictObject({
|
|
|
9290
9047
|
updated_at: time
|
|
9291
9048
|
});
|
|
9292
9049
|
|
|
9293
|
-
// 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
|
|
9294
9051
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9295
9052
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9296
9053
|
var mention = strictObject({
|
|
@@ -9334,13 +9091,13 @@ var mentionRebuild = strictObject({
|
|
|
9334
9091
|
mentions: count
|
|
9335
9092
|
});
|
|
9336
9093
|
|
|
9337
|
-
// 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
|
|
9338
9095
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9339
9096
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9340
9097
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9341
9098
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9342
9099
|
|
|
9343
|
-
// 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
|
|
9344
9101
|
var messageTranscript = strictObject({
|
|
9345
9102
|
message_id: id,
|
|
9346
9103
|
text,
|
|
@@ -9398,7 +9155,7 @@ var evidencePacket = strictObject({
|
|
|
9398
9155
|
}))
|
|
9399
9156
|
});
|
|
9400
9157
|
|
|
9401
|
-
// 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
|
|
9402
9159
|
var messageThread = strictObject({
|
|
9403
9160
|
ref: reference,
|
|
9404
9161
|
chat: id,
|
|
@@ -9415,7 +9172,7 @@ var messageThread = strictObject({
|
|
|
9415
9172
|
});
|
|
9416
9173
|
var messageContext = union([message, messageThread]);
|
|
9417
9174
|
|
|
9418
|
-
// 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
|
|
9419
9176
|
var messageCounts = strictObject({
|
|
9420
9177
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9421
9178
|
total: count,
|
|
@@ -9428,7 +9185,7 @@ var messageCounts = strictObject({
|
|
|
9428
9185
|
}))
|
|
9429
9186
|
});
|
|
9430
9187
|
|
|
9431
|
-
// 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
|
|
9432
9189
|
var messageLink = strictObject({
|
|
9433
9190
|
ref: reference,
|
|
9434
9191
|
url: nullable(text),
|
|
@@ -9445,7 +9202,7 @@ var messageLink = strictObject({
|
|
|
9445
9202
|
})))
|
|
9446
9203
|
});
|
|
9447
9204
|
|
|
9448
|
-
// 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
|
|
9449
9206
|
var savedMessageFile = strictObject({
|
|
9450
9207
|
kind: text,
|
|
9451
9208
|
path: text,
|
|
@@ -9532,7 +9289,7 @@ var messageSyncAll = strictObject({
|
|
|
9532
9289
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9533
9290
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9534
9291
|
|
|
9535
|
-
// 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
|
|
9536
9293
|
var messageWrite = strictObject({
|
|
9537
9294
|
operation_id: id,
|
|
9538
9295
|
message,
|
|
@@ -9547,7 +9304,7 @@ var draftWrite = strictObject({
|
|
|
9547
9304
|
});
|
|
9548
9305
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9549
9306
|
|
|
9550
|
-
// 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
|
|
9551
9308
|
var model2 = strictObject({
|
|
9552
9309
|
id,
|
|
9553
9310
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9582,7 +9339,7 @@ var chosenModel = strictObject({
|
|
|
9582
9339
|
estimate_seconds: nullable(count)
|
|
9583
9340
|
});
|
|
9584
9341
|
|
|
9585
|
-
// 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
|
|
9586
9343
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9587
9344
|
var modelKey = strictObject({
|
|
9588
9345
|
provider: text,
|
|
@@ -9592,7 +9349,7 @@ var modelKey = strictObject({
|
|
|
9592
9349
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9593
9350
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9594
9351
|
|
|
9595
|
-
// 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
|
|
9596
9353
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9597
9354
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9598
9355
|
var graph = strictObject({
|
|
@@ -9626,14 +9383,14 @@ var officialStats = strictObject({
|
|
|
9626
9383
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9627
9384
|
});
|
|
9628
9385
|
|
|
9629
|
-
// 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
|
|
9630
9387
|
var person2 = strictObject({
|
|
9631
9388
|
ref: reference,
|
|
9632
9389
|
name: nullable(text),
|
|
9633
9390
|
identities: optional(array(identity))
|
|
9634
9391
|
});
|
|
9635
9392
|
|
|
9636
|
-
// 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
|
|
9637
9394
|
var poll = strictObject({
|
|
9638
9395
|
chat_id: id,
|
|
9639
9396
|
message_id: id,
|
|
@@ -9649,11 +9406,11 @@ var poll = strictObject({
|
|
|
9649
9406
|
});
|
|
9650
9407
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9651
9408
|
|
|
9652
|
-
// 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
|
|
9653
9410
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9654
9411
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9655
9412
|
|
|
9656
|
-
// 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
|
|
9657
9414
|
var figures = record(string(), number());
|
|
9658
9415
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9659
9416
|
var rankingRow = strictObject({
|
|
@@ -9700,7 +9457,7 @@ var ranking = strictObject({
|
|
|
9700
9457
|
rows: array(rankingRow)
|
|
9701
9458
|
});
|
|
9702
9459
|
|
|
9703
|
-
// 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
|
|
9704
9461
|
var reaction = strictObject({
|
|
9705
9462
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9706
9463
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9708,7 +9465,7 @@ var reaction = strictObject({
|
|
|
9708
9465
|
reacted_at: time
|
|
9709
9466
|
});
|
|
9710
9467
|
|
|
9711
|
-
// 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
|
|
9712
9469
|
var reactionChange = strictObject({
|
|
9713
9470
|
operation_id: id,
|
|
9714
9471
|
chat_id: id,
|
|
@@ -9716,7 +9473,7 @@ var reactionChange = strictObject({
|
|
|
9716
9473
|
reaction: nullable(text)
|
|
9717
9474
|
});
|
|
9718
9475
|
|
|
9719
|
-
// 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
|
|
9720
9477
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9721
9478
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9722
9479
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9727,7 +9484,7 @@ var recipientChange = strictObject({
|
|
|
9727
9484
|
...partial(recipientOff).entries
|
|
9728
9485
|
});
|
|
9729
9486
|
|
|
9730
|
-
// 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
|
|
9731
9488
|
var events = array(record(string(), unknown()));
|
|
9732
9489
|
var recordedRun = strictObject({
|
|
9733
9490
|
run_id: id,
|
|
@@ -9799,7 +9556,7 @@ var runHit = strictObject({
|
|
|
9799
9556
|
});
|
|
9800
9557
|
var runLocation = strictObject({ path: text });
|
|
9801
9558
|
|
|
9802
|
-
// 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
|
|
9803
9560
|
var relationship = strictObject({
|
|
9804
9561
|
id,
|
|
9805
9562
|
from: reference,
|
|
@@ -9826,7 +9583,7 @@ var relationship = strictObject({
|
|
|
9826
9583
|
created_at: time
|
|
9827
9584
|
});
|
|
9828
9585
|
|
|
9829
|
-
// 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
|
|
9830
9587
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9831
9588
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9832
9589
|
var responseTimes = strictObject({
|
|
@@ -9843,7 +9600,7 @@ var waitingChats = strictObject({
|
|
|
9843
9600
|
by_kind: strictObject({ private: count, group: count })
|
|
9844
9601
|
});
|
|
9845
9602
|
|
|
9846
|
-
// 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
|
|
9847
9604
|
var retentionCohort = strictObject({
|
|
9848
9605
|
/** The first day of the joining day or week. */
|
|
9849
9606
|
cohort: text,
|
|
@@ -9891,7 +9648,7 @@ var retention = strictObject({
|
|
|
9891
9648
|
rows: array(retentionCohort)
|
|
9892
9649
|
});
|
|
9893
9650
|
|
|
9894
|
-
// 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
|
|
9895
9652
|
var savedSearch = strictObject({
|
|
9896
9653
|
id,
|
|
9897
9654
|
/** `null` for a run in the history. */
|
|
@@ -9908,7 +9665,7 @@ var savedSearch = strictObject({
|
|
|
9908
9665
|
});
|
|
9909
9666
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9910
9667
|
|
|
9911
|
-
// 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
|
|
9912
9669
|
var sendAttempt = strictObject({
|
|
9913
9670
|
at: time,
|
|
9914
9671
|
profile: text,
|
|
@@ -9936,7 +9693,7 @@ var sendAttempt = strictObject({
|
|
|
9936
9693
|
error_code: optional(text)
|
|
9937
9694
|
});
|
|
9938
9695
|
|
|
9939
|
-
// 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
|
|
9940
9697
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9941
9698
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9942
9699
|
var infoSchema = strictObject({
|
|
@@ -10166,7 +9923,7 @@ var storeRepair = union([
|
|
|
10166
9923
|
]);
|
|
10167
9924
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10168
9925
|
|
|
10169
|
-
// 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
|
|
10170
9927
|
var range = strictObject({ from: number(), to: number() });
|
|
10171
9928
|
var storeChatStatus = strictObject({
|
|
10172
9929
|
chat_id: id,
|
|
@@ -10264,7 +10021,7 @@ var storeJobRetry = union([
|
|
|
10264
10021
|
]);
|
|
10265
10022
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10266
10023
|
|
|
10267
|
-
// 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
|
|
10268
10025
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10269
10026
|
var storeTable = strictObject({
|
|
10270
10027
|
name: text,
|
|
@@ -10273,7 +10030,7 @@ var storeTable = strictObject({
|
|
|
10273
10030
|
bytes: optional(nullable(count))
|
|
10274
10031
|
});
|
|
10275
10032
|
|
|
10276
|
-
// 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
|
|
10277
10034
|
var tagTarget = variant("type", [
|
|
10278
10035
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10279
10036
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10304,7 +10061,7 @@ var automaticTags = strictObject({
|
|
|
10304
10061
|
dry_run: boolean()
|
|
10305
10062
|
});
|
|
10306
10063
|
|
|
10307
|
-
// 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
|
|
10308
10065
|
var tagging = strictObject({
|
|
10309
10066
|
tag: text,
|
|
10310
10067
|
type: picklist(TAG_TYPES),
|
|
@@ -10317,7 +10074,7 @@ var tagging = strictObject({
|
|
|
10317
10074
|
created_at: time
|
|
10318
10075
|
});
|
|
10319
10076
|
|
|
10320
|
-
// 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
|
|
10321
10078
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10322
10079
|
var taskPair = strictObject({
|
|
10323
10080
|
task: nullable(side),
|
|
@@ -10340,7 +10097,7 @@ var taskPair = strictObject({
|
|
|
10340
10097
|
created_at: time
|
|
10341
10098
|
});
|
|
10342
10099
|
|
|
10343
|
-
// 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
|
|
10344
10101
|
var nullableTime = nullable(time);
|
|
10345
10102
|
var link = strictObject({
|
|
10346
10103
|
id,
|
|
@@ -10514,7 +10271,7 @@ var taskReview = strictObject({
|
|
|
10514
10271
|
untrusted
|
|
10515
10272
|
});
|
|
10516
10273
|
|
|
10517
|
-
// 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
|
|
10518
10275
|
var template = strictObject({
|
|
10519
10276
|
key: text,
|
|
10520
10277
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10526,7 +10283,7 @@ var template = strictObject({
|
|
|
10526
10283
|
updated_by: nullable(text)
|
|
10527
10284
|
});
|
|
10528
10285
|
|
|
10529
|
-
// 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
|
|
10530
10287
|
var topic = strictObject({
|
|
10531
10288
|
id,
|
|
10532
10289
|
title: text,
|
|
@@ -10540,7 +10297,7 @@ var topic = strictObject({
|
|
|
10540
10297
|
untrusted
|
|
10541
10298
|
});
|
|
10542
10299
|
|
|
10543
|
-
// 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
|
|
10544
10301
|
var ENTITIES = {
|
|
10545
10302
|
sync_progress: progress,
|
|
10546
10303
|
deal,
|
|
@@ -10715,6 +10472,9 @@ var ENTITIES = {
|
|
|
10715
10472
|
meeting_link: meetingLink,
|
|
10716
10473
|
meeting_stats: meetingStats,
|
|
10717
10474
|
meeting_counts: meetingCounts,
|
|
10475
|
+
call_stats: callStats,
|
|
10476
|
+
meeting_tag_change: meetingTagChange,
|
|
10477
|
+
meeting_tagging: meetingTagging,
|
|
10718
10478
|
meeting_speaker: meetingSpeaker,
|
|
10719
10479
|
meeting_participants: meetingParticipants,
|
|
10720
10480
|
meeting_passage: meetingPassage,
|
|
@@ -10791,6 +10551,7 @@ var ENTITIES = {
|
|
|
10791
10551
|
chat_moderation: chatModeration,
|
|
10792
10552
|
"model.chosen": chosenModel,
|
|
10793
10553
|
model_key: modelKey,
|
|
10554
|
+
chat_sending: chatSending,
|
|
10794
10555
|
"model_key.stored": storedModelKey,
|
|
10795
10556
|
"model_key.removed": removedModelKey,
|
|
10796
10557
|
chat_event: chatEvent,
|
|
@@ -10835,7 +10596,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10835
10596
|
return [name, definition];
|
|
10836
10597
|
})), "entityDefinitions");
|
|
10837
10598
|
|
|
10838
|
-
// 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
|
|
10839
10600
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10840
10601
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10841
10602
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10869,8 +10630,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10869
10630
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10870
10631
|
}, "answerRow");
|
|
10871
10632
|
|
|
10872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10873
|
-
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";
|
|
10874
10635
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10875
10636
|
var IMAGE_MODELS = [
|
|
10876
10637
|
{
|
|
@@ -10920,10 +10681,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
10920
10681
|
return found;
|
|
10921
10682
|
}, "imageModel");
|
|
10922
10683
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
10923
|
-
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");
|
|
10924
10685
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10925
10686
|
|
|
10926
|
-
// 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
|
|
10927
10688
|
var STEPS2 = defineSteps([
|
|
10928
10689
|
...STEPS,
|
|
10929
10690
|
{
|
|
@@ -11160,10 +10921,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11160
10921
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11161
10922
|
return stepOf(definition, { ...input, args });
|
|
11162
10923
|
}, "nextStep");
|
|
11163
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
10924
|
+
var lineOf = /* @__PURE__ */ __name((command, words) => {
|
|
11164
10925
|
const root = rootOf2(command);
|
|
11165
10926
|
const profile = root.getOptionValue("profile");
|
|
11166
|
-
return typedCommand(root.name(),
|
|
10927
|
+
return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11167
10928
|
}, "lineOf");
|
|
11168
10929
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11169
10930
|
let root = command;
|
|
@@ -11213,7 +10974,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11213
10974
|
].join(" ");
|
|
11214
10975
|
}, "stepLine");
|
|
11215
10976
|
|
|
11216
|
-
// 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
|
|
11217
10978
|
var where = [{ field: "ref" }];
|
|
11218
10979
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11219
10980
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11305,7 +11066,7 @@ var STATUS_ROWS = {
|
|
|
11305
11066
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11306
11067
|
};
|
|
11307
11068
|
|
|
11308
|
-
// 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
|
|
11309
11070
|
var TEXT_CHARS = 400;
|
|
11310
11071
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11311
11072
|
var messageRow = {
|
|
@@ -11673,7 +11434,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11673
11434
|
return lines.concat(footerOf(body)).join("\n");
|
|
11674
11435
|
}, "compactText");
|
|
11675
11436
|
|
|
11676
|
-
// 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
|
|
11677
11438
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11678
11439
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11679
11440
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11699,10 +11460,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
11699
11460
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
11700
11461
|
}, "declaresRow");
|
|
11701
11462
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
11702
|
-
const
|
|
11463
|
+
const words = [];
|
|
11703
11464
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11704
|
-
|
|
11705
|
-
return
|
|
11465
|
+
words.unshift(at2.name());
|
|
11466
|
+
return words.join(" ");
|
|
11706
11467
|
}, "pathOf");
|
|
11707
11468
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
11708
11469
|
kind: "command",
|
|
@@ -11731,7 +11492,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11731
11492
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11732
11493
|
}, "largeAnswerSteps");
|
|
11733
11494
|
|
|
11734
|
-
// 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
|
|
11735
11496
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11736
11497
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11737
11498
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11745,7 +11506,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11745
11506
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11746
11507
|
}, "strip");
|
|
11747
11508
|
|
|
11748
|
-
// 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
|
|
11749
11510
|
var OPEN = "\u27E6";
|
|
11750
11511
|
var CLOSE = "\u27E7";
|
|
11751
11512
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11829,7 +11590,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11829
11590
|
return result;
|
|
11830
11591
|
}, "withFieldsMarked");
|
|
11831
11592
|
|
|
11832
|
-
// 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
|
|
11833
11594
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11834
11595
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11835
11596
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11935,9 +11696,27 @@ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
|
|
|
11935
11696
|
}, "withLargeAnswerStep");
|
|
11936
11697
|
var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
|
|
11937
11698
|
var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
|
|
11699
|
+
var listZone = /* @__PURE__ */ __name((command) => {
|
|
11700
|
+
const registry = metaOf(command).query;
|
|
11701
|
+
const words = command.processedArgs.at(-1);
|
|
11702
|
+
const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
|
|
11703
|
+
const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
11704
|
+
if (times.size === 0 || text5.trim() === "")
|
|
11705
|
+
return void 0;
|
|
11706
|
+
try {
|
|
11707
|
+
if (!readsZone(parseLucene(text5, { defaultField: "none" }), times))
|
|
11708
|
+
return void 0;
|
|
11709
|
+
} catch {
|
|
11710
|
+
return void 0;
|
|
11711
|
+
}
|
|
11712
|
+
return timezoneOf(command.optsWithGlobals().timezone);
|
|
11713
|
+
}, "listZone");
|
|
11938
11714
|
var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
|
|
11939
11715
|
if (!isBody(body))
|
|
11940
11716
|
refuse(body);
|
|
11717
|
+
const zone = "items" in body && body.meta?.timezone === void 0 ? listZone(command) : void 0;
|
|
11718
|
+
if (zone)
|
|
11719
|
+
body = { ...body, meta: { ...body.meta, timezone: zone } };
|
|
11941
11720
|
const root = rootOf2(command);
|
|
11942
11721
|
const runnableSteps = runnable(root, body.next);
|
|
11943
11722
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
@@ -12076,19 +11855,6 @@ export {
|
|
|
12076
11855
|
refuseCommandName,
|
|
12077
11856
|
rootOf,
|
|
12078
11857
|
sampleCommand,
|
|
12079
|
-
DEFAULT_TEXT_MODEL,
|
|
12080
|
-
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
12081
|
-
CustomTextModelShape,
|
|
12082
|
-
readTextModelsSection,
|
|
12083
|
-
writeTextModelsSection,
|
|
12084
|
-
textModels,
|
|
12085
|
-
textModel,
|
|
12086
|
-
chosenTextModel,
|
|
12087
|
-
RERANK_MODELS,
|
|
12088
|
-
DEFAULT_RERANK_MODEL,
|
|
12089
|
-
rerankModel,
|
|
12090
|
-
vectorModelKey,
|
|
12091
|
-
meaningFloor,
|
|
12092
11858
|
historyWindow,
|
|
12093
11859
|
limitBatch,
|
|
12094
11860
|
botFiles,
|
|
@@ -12100,6 +11866,7 @@ export {
|
|
|
12100
11866
|
fixVerb,
|
|
12101
11867
|
issueMessage,
|
|
12102
11868
|
readConfigFile,
|
|
11869
|
+
DEFAULT_CONFIG,
|
|
12103
11870
|
accountFileFor,
|
|
12104
11871
|
rememberAccount,
|
|
12105
11872
|
recalledAccount,
|
|
@@ -12115,6 +11882,7 @@ export {
|
|
|
12115
11882
|
environmentOf,
|
|
12116
11883
|
withAgentLevels,
|
|
12117
11884
|
secretInputOf,
|
|
11885
|
+
outputFieldsOf,
|
|
12118
11886
|
outputFor,
|
|
12119
11887
|
baseContext,
|
|
12120
11888
|
inCommandRun,
|