@wirecat/mail-cli 0.35.0 → 0.37.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 +55 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-OU4K7TKQ.js +40 -0
- package/dist/bundle/{all-profiles-6BDSMVOO.js → all-profiles-ICGWDPUU.js} +11 -11
- package/dist/bundle/{anthropic-C3XUXUCJ.js → anthropic-TL4WFWGU.js} +5 -5
- package/dist/bundle/{app-server-GUHDK4OR.js → app-server-YAR5EFOO.js} +69 -67
- package/dist/bundle/{bun-FN7AM4AG.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-56IVBF22.js → bun-sqlite-WI3ZPANS.js} +6 -6
- package/dist/bundle/{chunk-L4RCWRWS.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-RJNKM3CQ.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-7FXZKQAC.js → chunk-2YO3PLOE.js} +19 -19
- package/dist/bundle/{chunk-YCIWSKOH.js → chunk-3DHJF57U.js} +9 -9
- package/dist/bundle/{chunk-5XQI7WCJ.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-6Q5THDNW.js → chunk-3SKTQ2HC.js} +2 -2
- package/dist/bundle/{chunk-ZMYRPMAJ.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-7YMLEWTX.js → chunk-3ZOOTTFW.js} +6 -6
- package/dist/bundle/{chunk-CMGZXBJW.js → chunk-4FTIHADB.js} +6 -6
- package/dist/bundle/{chunk-3EV2B7KZ.js → chunk-4IZ6R5FS.js} +19 -15
- package/dist/bundle/{chunk-W7ICCFG5.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-PQDQCCGG.js → chunk-7HRKUKKY.js} +23 -23
- package/dist/bundle/{chunk-GG634DR3.js → chunk-7PDGZFXD.js} +5 -5
- package/dist/bundle/{chunk-OOQFBRNR.js → chunk-7YKWFERX.js} +6 -6
- package/dist/bundle/{chunk-E6HSSKRX.js → chunk-BNURKCQG.js} +2 -3
- package/dist/bundle/{chunk-I3QZCQJT.js → chunk-BNVISIHP.js} +6 -6
- package/dist/bundle/{chunk-4U5ODZO7.js → chunk-BQMJYSA4.js} +11 -11
- package/dist/bundle/{chunk-TARNPINT.js → chunk-BYITYTRL.js} +16 -3
- package/dist/bundle/{chunk-GU3PYIV2.js → chunk-CICUPYHT.js} +2 -2
- package/dist/bundle/{chunk-6B4WZVLN.js → chunk-CQHLWMKK.js} +33 -28
- package/dist/bundle/{chunk-HKWZG7CZ.js → chunk-CUW7Y2HJ.js} +6 -6
- package/dist/bundle/{chunk-WDEVKKAD.js → chunk-DJZIFZOT.js} +3 -3
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-ILEKGH44.js → chunk-DTR7JO2M.js} +35 -35
- package/dist/bundle/{chunk-TP766H4O.js → chunk-ES2FF42M.js} +14 -14
- package/dist/bundle/{chunk-635AFLZO.js → chunk-EV72K4IU.js} +4 -4
- package/dist/bundle/{chunk-XQNKAM26.js → chunk-EZQ5BYNL.js} +6 -6
- package/dist/bundle/{chunk-AISQNKT7.js → chunk-F2D3J5DR.js} +8 -8
- package/dist/bundle/{chunk-OO4OKMNB.js → chunk-FTT7UDYV.js} +3 -3
- package/dist/bundle/{chunk-DD2P67NP.js → chunk-FXNCKPQ7.js} +3 -3
- package/dist/bundle/{chunk-6VARUB3J.js → chunk-G4VJN75G.js} +37 -18
- package/dist/bundle/{chunk-2UNQTKRH.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-3WAZKCDF.js → chunk-GPUC3FTU.js} +2 -2
- package/dist/bundle/{chunk-ZX7HZDD6.js → chunk-GQIMVR7C.js} +180 -38
- package/dist/bundle/{chunk-4IASS7NQ.js → chunk-HCRUGAIN.js} +252 -60
- package/dist/bundle/{chunk-YQTRKNZQ.js → chunk-HES6YMYN.js} +4 -4
- package/dist/bundle/{chunk-2B67TUIF.js → chunk-HFY7536N.js} +201 -111
- package/dist/bundle/{chunk-5WYBI35N.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-HF5QWKK2.js → chunk-IUJDWEGJ.js} +7 -7
- package/dist/bundle/{chunk-UHGKN5US.js → chunk-IWFWWO37.js} +8 -8
- package/dist/bundle/{chunk-7PXAUMK5.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-UWDRU3R6.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-G662S2M4.js → chunk-JNP3XGJI.js} +16 -16
- package/dist/bundle/{chunk-DREU6TN6.js → chunk-JZUYZ2XJ.js} +38 -24
- package/dist/bundle/chunk-K4DEQAEW.js +1291 -0
- package/dist/bundle/{chunk-7KMI47AP.js → chunk-KCM3WSER.js} +6 -6
- package/dist/bundle/{chunk-YA44BG3N.js → chunk-KP5JDYY6.js} +42 -10
- package/dist/bundle/{chunk-QFMKCU42.js → chunk-KUX54EGR.js} +1982 -802
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-HJDIMVFW.js → chunk-KZD3H5QA.js} +2 -2
- package/dist/bundle/{chunk-XKKYRMGG.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-QYCMB7JY.js → chunk-NAOLBEFX.js} +226 -164
- package/dist/bundle/{chunk-46SBNO67.js → chunk-NB52JKLR.js} +13 -9
- package/dist/bundle/{chunk-3KAJCOJP.js → chunk-NB7EOAUZ.js} +15 -1
- package/dist/bundle/{chunk-DFHUJTP5.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-EU4J6GCJ.js → chunk-NQSKI7XK.js} +4 -4
- package/dist/bundle/{chunk-YRAJFTFU.js → chunk-OWPRJLHV.js} +8 -8
- package/dist/bundle/{chunk-V4O47JV6.js → chunk-OZKZT3ZI.js} +10 -3
- package/dist/bundle/{chunk-CDGVYQXG.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-Q5U2HIBJ.js → chunk-QLJGYDWG.js} +7 -7
- package/dist/bundle/{chunk-W4JYGMTU.js → chunk-R44KVISE.js} +12 -12
- package/dist/bundle/{chunk-MCJYJIH5.js → chunk-R73VWPNL.js} +8 -8
- package/dist/bundle/{chunk-YTI533XF.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-AXKIXVQA.js → chunk-TMJLGR4A.js} +61 -61
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-ODQCRZX5.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-ZYEU35MB.js → chunk-UTS5NMR3.js} +2 -2
- package/dist/bundle/{chunk-RBV2AM52.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-RQHWSNX4.js → chunk-VK24UQSD.js} +4 -4
- package/dist/bundle/{chunk-TP2BCK2Z.js → chunk-VYCB5EVI.js} +8 -8
- package/dist/bundle/{chunk-EHAXFDDP.js → chunk-VZ5PPYDG.js} +3 -4
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-3ACF6TIV.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-J5ULUTWE.js → chunk-XWBTD2WP.js} +4 -4
- package/dist/bundle/chunk-XXPJF2VD.js +2 -0
- package/dist/bundle/{chunk-OTP2HJ67.js → chunk-YODGIMMM.js} +9 -9
- package/dist/bundle/{chunk-NEDS4ORI.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-EX4Z7CCO.js → chunk-Z4BLNAWI.js} +15062 -11852
- package/dist/bundle/{chunk-WZKM5I7B.js → chunk-ZSAPOC7B.js} +27 -176
- package/dist/bundle/{chunk-RQJGX7F7.js → chunk-ZTWTEXB2.js} +3 -3
- package/dist/bundle/command-contract-UC6IGCCM.js +39 -0
- package/dist/bundle/{command-server-entry-TPJ47FYS.js → command-server-entry-RA3ZX2KV.js} +28 -28
- package/dist/bundle/{decode-XHUASXQK.js → decode-QVKRSRVF.js} +5 -5
- package/dist/bundle/{dispatch-MQZHGGVP.js → dispatch-USKS7J74.js} +8 -8
- package/dist/bundle/{dist-BAE4IQ52.js → dist-ITIXJAXK.js} +20 -18
- package/dist/bundle/{echarts-U7Z2PKIG.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-W7GPB6EI.js → embed-2HOODFQT.js} +6 -6
- package/dist/bundle/{embedder-T72XLFQ5.js → embedder-22AJGCZX.js} +9 -9
- package/dist/bundle/{failure-MP6VKL5Y.js → failure-D4FGOIWF.js} +2 -2
- package/dist/bundle/{first-run-C44TJXRI.js → first-run-FU4MFXOA.js} +12 -12
- package/dist/bundle/first-screen-A7SEI2ON.js +40 -0
- package/dist/bundle/{instructions-WGMWQNPP.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-KC6YGWA7.js +24 -0
- package/dist/bundle/{meeting-model-QVHLD4WI.js → meeting-model-QWGAOQHL.js} +11 -11
- package/dist/bundle/{meeting-semantic-QKQHUHXX.js → meeting-semantic-7PVO6RNB.js} +6 -6
- package/dist/bundle/{node-WANDMJJQ.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-NM5XA4DR.js → node-sqlite-JXUELLMP.js} +7 -7
- package/dist/bundle/{oauth-6E63ELEE.js → oauth-OYAYWH4K.js} +7 -7
- package/dist/bundle/{open-5542RTLE.js → open-GLEUJGNA.js} +5 -5
- package/dist/bundle/{openai-NOYNPFB5.js → openai-PYTVNB6L.js} +15 -15
- package/dist/bundle/{process-7AEXXSBX.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-VMA5CGNR.js → program-7CFNZ2DF.js} +2227 -2291
- package/dist/bundle/{prompt-WYYO4AJL.js → prompt-CYTILD7N.js} +5 -5
- package/dist/bundle/public-XWMXEGEF.js +196 -0
- package/dist/bundle/{recognize-UGCCOMAS.js → recognize-26UNETSQ.js} +4 -4
- package/dist/bundle/{remote-VZS6BNQB.js → remote-PKXBQA5N.js} +9 -9
- package/dist/bundle/{rerank-O46D5GJ2.js → rerank-LLKP7M6Q.js} +7 -7
- package/dist/bundle/{serve-QAAF2LCW.js → serve-ZRJEAPJI.js} +9 -9
- package/dist/bundle/{server-Q3PUZLLX.js → server-4OQ4G5JY.js} +61 -59
- package/dist/bundle/server-VVRQ4A34.js +86 -0
- package/dist/bundle/{sqlite-runtime-EQBCDO2U.js → sqlite-runtime-667VV4VY.js} +6 -6
- package/dist/bundle/{state-XIOHYXCR.js → state-V3CAAJBE.js} +6 -6
- package/dist/bundle/{store-VJBL5XKR.js → store-BJCIMIAH.js} +31 -24
- package/dist/bundle/{store-OXJZZUR7.js → store-GLBBY4OZ.js} +22 -22
- package/dist/bundle/store-maintenance-command-N7L5OVUE.js +73 -0
- package/dist/bundle/surface-26EUQNDT.js +72 -0
- package/dist/commands/import.js +2 -2
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/messages.js +3 -3
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/read.js +2 -2
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +1 -0
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/sync.js +1 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js.map +1 -1
- package/dist/commands/words.js +1 -1
- package/dist/commands/words.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/mail/imap/account.d.ts.map +1 -1
- package/dist/mail/imap/account.js +2 -1
- package/dist/mail/imap/account.js.map +1 -1
- package/dist/mail/send.d.ts +2 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +1 -1
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -1
- package/dist/oauth.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -4
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.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/agent-KWLCQCSC.js +0 -39
- package/dist/bundle/chunk-DZHEVVXA.js +0 -1264
- package/dist/bundle/command-contract-D5UXWHMS.js +0 -39
- package/dist/bundle/first-screen-IESI7DAU.js +0 -39
- package/dist/bundle/meeting-combined-XGZBSWIQ.js +0 -24
- package/dist/bundle/server-456MYK3X.js +0 -84
- package/dist/bundle/store-maintenance-command-D7XYIX52.js +0 -71
- package/dist/bundle/surface-N7LK7PKN.js +0 -70
|
@@ -5,31 +5,31 @@ import {
|
|
|
5
5
|
isNewer,
|
|
6
6
|
readNoticeState,
|
|
7
7
|
writeUpdateState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VK24UQSD.js";
|
|
9
9
|
import {
|
|
10
10
|
executableEnvironment,
|
|
11
11
|
executableOnPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TY7NDMFY.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
15
15
|
Option,
|
|
16
16
|
annotate
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NAOLBEFX.js";
|
|
18
18
|
import {
|
|
19
19
|
require_cross_spawn
|
|
20
20
|
} from "./chunk-D72URWJE.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerHomeInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2YO3PLOE.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-S6JG4YUH.js";
|
|
27
27
|
import {
|
|
28
28
|
__name,
|
|
29
29
|
__toESM
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/skill/index.js
|
|
33
33
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
34
34
|
import { homedir } from "node:os";
|
|
35
35
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S6JG4YUH.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -155,6 +155,7 @@ var ValiError = class extends Error {
|
|
|
155
155
|
this.issues = issues;
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
+
var EMAIL_REGEX = /^[\w+-]+(?:\.[\w+-]+)*@[\da-zA-Z]+(?:[.-][\da-zA-Z]+)*\.[a-zA-Z]{2,}$/u;
|
|
158
159
|
var EMOJI_REGEX = new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation}))*)+$", "u");
|
|
159
160
|
var ISO_DATE_REGEX = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
160
161
|
var ISO_TIMESTAMP_REGEX = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z| ?[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;
|
|
@@ -186,6 +187,23 @@ function description(description_) {
|
|
|
186
187
|
}
|
|
187
188
|
__name(description, "description");
|
|
188
189
|
// @__NO_SIDE_EFFECTS__
|
|
190
|
+
function email(message$1) {
|
|
191
|
+
return {
|
|
192
|
+
kind: "validation",
|
|
193
|
+
type: "email",
|
|
194
|
+
reference: email,
|
|
195
|
+
expects: null,
|
|
196
|
+
async: false,
|
|
197
|
+
requirement: EMAIL_REGEX,
|
|
198
|
+
message: message$1,
|
|
199
|
+
"~run"(dataset, config$1) {
|
|
200
|
+
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue(this, "email", dataset, config$1);
|
|
201
|
+
return dataset;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
__name(email, "email");
|
|
206
|
+
// @__NO_SIDE_EFFECTS__
|
|
189
207
|
function endsWith(requirement, message$1) {
|
|
190
208
|
return {
|
|
191
209
|
kind: "validation",
|
|
@@ -282,8 +300,8 @@ function maxEntries(requirement, message$1) {
|
|
|
282
300
|
message: message$1,
|
|
283
301
|
"~run"(dataset, config$1) {
|
|
284
302
|
if (!dataset.typed) return dataset;
|
|
285
|
-
const
|
|
286
|
-
if (dataset.typed &&
|
|
303
|
+
const count2 = Object.keys(dataset.value).length;
|
|
304
|
+
if (dataset.typed && count2 > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count2}` });
|
|
287
305
|
return dataset;
|
|
288
306
|
}
|
|
289
307
|
};
|
|
@@ -1409,7 +1427,7 @@ function unwrap(schema) {
|
|
|
1409
1427
|
}
|
|
1410
1428
|
__name(unwrap, "unwrap");
|
|
1411
1429
|
|
|
1412
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1430
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1413
1431
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1414
1432
|
var effectsSchema = strictObject({
|
|
1415
1433
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -2046,7 +2064,7 @@ function toStandardJsonSchema(schema) {
|
|
|
2046
2064
|
}
|
|
2047
2065
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
2048
2066
|
|
|
2049
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2067
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
2050
2068
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
2051
2069
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
2052
2070
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -2088,7 +2106,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
2088
2106
|
return String(value);
|
|
2089
2107
|
}), "fill");
|
|
2090
2108
|
|
|
2091
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2109
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
2092
2110
|
var MAX_NEXT_STEPS = 2;
|
|
2093
2111
|
var COMPACT_FLAG = "--compact";
|
|
2094
2112
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2165,6 +2183,18 @@ var rankingSchema = strictObject({
|
|
|
2165
2183
|
})),
|
|
2166
2184
|
ms: pipe(number(), integer(), minValue(0))
|
|
2167
2185
|
});
|
|
2186
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
2187
|
+
var modelRunSchema = strictObject({
|
|
2188
|
+
provider: text,
|
|
2189
|
+
model: text,
|
|
2190
|
+
endpoint: text,
|
|
2191
|
+
sent: count,
|
|
2192
|
+
done: count,
|
|
2193
|
+
left: count,
|
|
2194
|
+
usage: optional(strictObject({ input: count, output: count })),
|
|
2195
|
+
cost_usd: nullable(pipe(number(), minValue(0))),
|
|
2196
|
+
ms: count
|
|
2197
|
+
});
|
|
2168
2198
|
var querySchema = strictObject({
|
|
2169
2199
|
chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
|
|
2170
2200
|
respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
|
|
@@ -2182,6 +2212,7 @@ var metaSchema = strictObject({
|
|
|
2182
2212
|
now_local: optional(localTime),
|
|
2183
2213
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
|
|
2184
2214
|
ranking: optional(rankingSchema),
|
|
2215
|
+
model_run: optional(modelRunSchema),
|
|
2185
2216
|
query: optional(querySchema)
|
|
2186
2217
|
});
|
|
2187
2218
|
var offsetOf = /* @__PURE__ */ __name((at, zone) => {
|
|
@@ -2220,7 +2251,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2220
2251
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2221
2252
|
].join("\n"), "jsonlOf");
|
|
2222
2253
|
|
|
2223
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2254
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2224
2255
|
var CRASH_CODE = "internal_error";
|
|
2225
2256
|
var CRASH_REASON = "command.crashed";
|
|
2226
2257
|
var errorObjectSchema = strictObject({
|
|
@@ -2319,7 +2350,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2319
2350
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2320
2351
|
]);
|
|
2321
2352
|
|
|
2322
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2353
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2323
2354
|
var SAME_COMMAND = "*";
|
|
2324
2355
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2325
2356
|
var stepSchema = union([
|
|
@@ -2398,7 +2429,7 @@ var STEPS = defineSteps([
|
|
|
2398
2429
|
}
|
|
2399
2430
|
]);
|
|
2400
2431
|
|
|
2401
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2432
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
2402
2433
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2403
2434
|
if (isCliError(failure))
|
|
2404
2435
|
return failure;
|
|
@@ -2552,6 +2583,7 @@ export {
|
|
|
2552
2583
|
getDotPath,
|
|
2553
2584
|
check,
|
|
2554
2585
|
description,
|
|
2586
|
+
email,
|
|
2555
2587
|
finite,
|
|
2556
2588
|
integer,
|
|
2557
2589
|
isoDate,
|