@moxxy/cli 0.42.0 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +40 -0
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -89989,6 +89989,20 @@ var init_ask = __esm({
|
|
|
89989
89989
|
}
|
|
89990
89990
|
});
|
|
89991
89991
|
|
|
89992
|
+
// ../desktop-ipc-contract/dist/attachment-limits.js
|
|
89993
|
+
var MB, ATTACHMENT_LIMITS;
|
|
89994
|
+
var init_attachment_limits = __esm({
|
|
89995
|
+
"../desktop-ipc-contract/dist/attachment-limits.js"() {
|
|
89996
|
+
MB = 1024 * 1024;
|
|
89997
|
+
ATTACHMENT_LIMITS = Object.freeze({
|
|
89998
|
+
/** An image goes to the model whole; this is what providers accept. */
|
|
89999
|
+
imageBytes: 8 * MB,
|
|
90000
|
+
/** A file handed over as bytes (dropped or pasted) crosses the IPC boundary in one piece. */
|
|
90001
|
+
fileBytes: 32 * MB
|
|
90002
|
+
});
|
|
90003
|
+
}
|
|
90004
|
+
});
|
|
90005
|
+
|
|
89992
90006
|
// ../desktop-ipc-contract/dist/error-envelope.js
|
|
89993
90007
|
var init_error_envelope = __esm({
|
|
89994
90008
|
"../desktop-ipc-contract/dist/error-envelope.js"() {
|
|
@@ -90018,6 +90032,12 @@ var init_focus_layout = __esm({
|
|
|
90018
90032
|
}
|
|
90019
90033
|
});
|
|
90020
90034
|
|
|
90035
|
+
// ../desktop-ipc-contract/dist/app-update.js
|
|
90036
|
+
var init_app_update = __esm({
|
|
90037
|
+
"../desktop-ipc-contract/dist/app-update.js"() {
|
|
90038
|
+
}
|
|
90039
|
+
});
|
|
90040
|
+
|
|
90021
90041
|
// ../desktop-ipc-contract/dist/remote.js
|
|
90022
90042
|
var REMOTE_ALLOWED_COMMANDS;
|
|
90023
90043
|
var init_remote = __esm({
|
|
@@ -90104,8 +90124,10 @@ var init_remote = __esm({
|
|
|
90104
90124
|
var init_dist30 = __esm({
|
|
90105
90125
|
"../desktop-ipc-contract/dist/index.js"() {
|
|
90106
90126
|
init_ask();
|
|
90127
|
+
init_attachment_limits();
|
|
90107
90128
|
init_error_envelope();
|
|
90108
90129
|
init_focus_layout();
|
|
90130
|
+
init_app_update();
|
|
90109
90131
|
init_remote();
|
|
90110
90132
|
}
|
|
90111
90133
|
});
|
|
@@ -90122,6 +90144,7 @@ function validateIpcInput(command, arg) {
|
|
|
90122
90144
|
var USER_PROMPT_ATTACHMENT_KINDS, providerName, loginId, httpUrl, skillName, vaultKeyName, optionalWorkspace, MAX_VOICE_EXCHANGE_TEXT, MAX_AUDIO_BASE64, MAX_SYNTHESIZE_TEXT, speechLanguage, speechRate, MAX_INLINE_ATTACHMENT_CONTENT, MAX_INLINE_ATTACHMENTS_TOTAL, BASE64_RE, base64, BASE64_ATTACHMENT_KINDS, commandName, appId, channelId, workflowName, scheduleId, webhookId, sessionRef, focusDelta, focusScreenPoint, FOCUS_WINDOW_MAX_SIZE, FOCUS_MINI_TEXT_MIN_WIDTH, FOCUS_MINI_TEXT_MIN_HEIGHT, focusSize, focusMiniTextSize, ipcInputSchemas;
|
|
90123
90145
|
var init_validation = __esm({
|
|
90124
90146
|
"../desktop-ipc-contract/dist/validation.js"() {
|
|
90147
|
+
init_attachment_limits();
|
|
90125
90148
|
USER_PROMPT_ATTACHMENT_KINDS = ["stdin", "file", "image", "document", "audio"];
|
|
90126
90149
|
providerName = z.string().regex(/^[a-z][a-z0-9-]{0,63}$/, "invalid provider name");
|
|
90127
90150
|
loginId = z.string().min(1).max(64).regex(/^[A-Za-z0-9-]+$/, "invalid login id");
|
|
@@ -90183,6 +90206,9 @@ var init_validation = __esm({
|
|
|
90183
90206
|
"app.checkUpdate": z.undefined(),
|
|
90184
90207
|
"app.updateDashboard": z.undefined(),
|
|
90185
90208
|
"app.updateShell": z.undefined(),
|
|
90209
|
+
"app.updateAll": z.undefined(),
|
|
90210
|
+
"app.updatePlan": z.undefined(),
|
|
90211
|
+
"app.setup": z.undefined(),
|
|
90186
90212
|
"app.relaunch": z.undefined(),
|
|
90187
90213
|
"app.appBooted": z.undefined(),
|
|
90188
90214
|
"app.updateDiagnostics": z.undefined(),
|
|
@@ -90216,6 +90242,7 @@ var init_validation = __esm({
|
|
|
90216
90242
|
// can't bloat the on-disk boot-log.
|
|
90217
90243
|
"app.bootHeartbeatFailed": z.object({ error: z.string().max(2048) }),
|
|
90218
90244
|
"focus.toggle": z.undefined(),
|
|
90245
|
+
"window.presence": z.undefined(),
|
|
90219
90246
|
"focus.moveBy": z.object({ dx: focusDelta, dy: focusDelta }).strict(),
|
|
90220
90247
|
"focus.dragStart": z.object({ screenX: focusScreenPoint, screenY: focusScreenPoint }).strict(),
|
|
90221
90248
|
"focus.dragMove": z.object({ screenX: focusScreenPoint, screenY: focusScreenPoint }).strict(),
|
|
@@ -90333,6 +90360,17 @@ var init_validation = __esm({
|
|
|
90333
90360
|
path: z.string().min(1).max(4096),
|
|
90334
90361
|
name: z.string().min(1).max(1024)
|
|
90335
90362
|
}).strict(),
|
|
90363
|
+
"session.checkAttachment": z.object({
|
|
90364
|
+
workspaceId: optionalWorkspace,
|
|
90365
|
+
path: z.string().min(1).max(4096),
|
|
90366
|
+
name: z.string().min(1).max(1024)
|
|
90367
|
+
}).strict(),
|
|
90368
|
+
// The bytes of a dropped or pasted file: bounded to the base64 of the largest
|
|
90369
|
+
// file allowed, so an oversized payload is refused before it is decoded.
|
|
90370
|
+
"session.saveAttachment": z.object({
|
|
90371
|
+
dataBase64: z.string().min(1).max(Math.ceil(ATTACHMENT_LIMITS.fileBytes / 3) * 4),
|
|
90372
|
+
name: z.string().min(1).max(1024)
|
|
90373
|
+
}).strict(),
|
|
90336
90374
|
// Runs an arbitrary registered slash command — the audit flagged this as the
|
|
90337
90375
|
// one mutating session command without a schema, so lock the name to a
|
|
90338
90376
|
// registry slug and bound the free-text args.
|
|
@@ -90486,6 +90524,8 @@ var init_validation = __esm({
|
|
|
90486
90524
|
mobileGatewayEnabled: z.boolean().optional(),
|
|
90487
90525
|
theme: z.enum(["light", "dark", "system"]).optional(),
|
|
90488
90526
|
voiceEngine: z.enum(["local", "gpt-live"]).optional(),
|
|
90527
|
+
replySound: z.boolean().optional(),
|
|
90528
|
+
systemNotifications: z.boolean().optional(),
|
|
90489
90529
|
focusMiniTextSize: focusMiniTextSize.nullable().optional()
|
|
90490
90530
|
}).strict(),
|
|
90491
90531
|
// Mobile-gateway control. Both no-arg variants pin the payload to "nothing"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/cli",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"description": "moxxy command-line agent: TUI, one-shot prompts, setup, services, and API-key or installed-CLI subscription providers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moxxy",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"undici": "^8.11.2",
|
|
51
51
|
"zod": "^3.25.76",
|
|
52
|
-
"@moxxy/sdk": "0.42.
|
|
52
|
+
"@moxxy/sdk": "0.42.1"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
55
|
"@napi-rs/keyring": "^2.1.0"
|